* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-400: #4ade80;
    --green-600: #16a34a;
    --green-700: #15803d;
}

body {
    min-height: 100vh;
    background: #4CAF50;
    color: var(--green-600);
    padding: 20px;
    text-align: center;
}

/* Rest of the original CSS */
main {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--green-100);
    z-index: 50;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(to right, var(--green-600), var(--green-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
}

.btn-ghost {
    background: transparent;
    color: var(--green-600);
}

.btn-ghost:hover {
    background: var(--green-50);
}

.btn-primary {
    background: var(--green-600);
    color: white;
    padding: 8px 16px;
    font-size: 20px;
}

.btn-primary:hover {
    background: var(--green-700);
}

/* Hero Section */
.hero {
    padding-top: 128px;
    padding-bottom: 128px;
    background: linear-gradient(to bottom, var(--green-50), white);
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--green-100);
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.3;
}

.hero::before {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.hero::after {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 60px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(to right, var(--green-600), var(--green-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto 32px;
}

/* Features Section */
.features {
    padding: 96px 0;
    background: white;
}

.features-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.features-title {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 64px;
    color: #111827;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--green-50);
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--green-100);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--green-600);
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #111827;
}

.feature-desc {
    color: #4b5563;
}

/* Updated Navigation Styles */
.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    color: var(--green-600);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Styles */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--green-600);
    text-align: left;
}

.input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.input:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 2px var(--green-100);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.separator span {
    padding: 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.logo-container {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(to right, var(--green-600), var(--green-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.modal-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.modal-footer p {
    margin: 0;
}

.link-button {
    background: none;
    border: none;
    color: var(--green-600);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-size: 14px;
}

.link-button:hover {
    color: var(--green-700);
    text-decoration: underline;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.input.error {
    border-color: #dc2626;
}

.input.error:focus {
    box-shadow: 0 0 0 2px #fee2e2;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.password-icon {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    transition: stroke 0.2s;
}

.toggle-password:hover .password-icon {
    stroke: var(--green-600);
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 4px;
    font-size: 12px;
}

.success-message {
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #16a34a;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.verification-badge {
    background-color: #FEF3C7;
    color: #D97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.input[type="file"] {
    border: 1px dashed var(--green-400);
    background-color: var(--green-50);
    cursor: pointer;
    color: var(--green-600) !important;
    padding: 6px;
}

.input[type="file"]:hover {
    border-color: var(--green-600);
    background-color: var(--green-100);
}

.required-field::after {
    content: " *";
    color: #dc2626;
}

.modal.blocking {
    background: rgba(0, 0, 0, 0.8);
}

.modal.blocking .modal-content {
    max-width: 400px;
}

.verification-message {
    color: var(--green-600) !important;
    margin: 24px 0 16px 0;
    text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        padding: 0 8px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .user-info {
        gap: 8px;
    }

    .user-email {
        max-width: 120px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-image {
        height: 24px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Additional Mobile Styles */
@media (max-width: 480px) {
    .user-email {
        display: none;
    }
    
    .verification-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    #profileBtn {
        width: auto;
        padding: 6px 12px;
    }
    
    .nav-buttons .btn-ghost {
        padding: 6px 10px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-title {
        font-size: 24px;
    }

    .modal-content {
        padding: 24px 16px;
        margin: 0 16px;
    }
}

/* Footer Styles */
.footer {
    background: #f8f9fa; /* Light gray */
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--green-100);
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer .link-button {
    color: var(--green-400);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.footer .link-button:hover {
    color: var(--green-600);
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--green-600);
}

.modal-content .terms-text {
    margin-bottom: 16px;
    text-align: left;
    font-size: 14px;
}

.modal-content .btn {
    display: inline-block;
    margin-top: 16px;
}

.terms-text {
    margin-bottom: 16px;
    text-align: left;
    font-size: 14px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 16px;
}

.terms-content h4 {
    color: var(--green-600);
    margin: 20px 0 10px;
    font-size: 16px;
}

.terms-content p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.terms-content ul {
    margin: 8px 0 16px 20px;
}

.terms-content li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.terms-footer {
    margin-top: 24px;
    color: #6b7280;
    font-style: italic;
}

.terms-text {
    margin-bottom: 16px;
    text-align: left;
    font-size: 14px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 16px;
}

.terms-content {
    color: #374151;
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.terms-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.terms-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: 8px;
}

.terms-content h4 {
    color: #111827;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 16px;
    color: #4b5563;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bullet {
    color: var(--green-600);
    font-size: 18px;
    line-height: 1;
}

.terms-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 32px 0;
}

.terms-footer {
    text-align: center;
    color: #6b7280;
}

.terms-footer .highlight {
    color: var(--green-600);
    font-weight: 500;
}

.last-updated {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.loading-spinner {
    text-align: center;
    color: var(--green-600);
    padding: 20px;
    font-style: italic;
}

/* Make terms modal wider */
#termsModal .modal-content {
    max-width: 700px;
}

/* Custom scrollbar for terms */
.terms-text::-webkit-scrollbar {
    width: 8px;
}

.terms-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.terms-text::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}