/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Softer Color Palette - Muted Blue with subtle accents */
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #6BA3E8;
    --secondary: #7C8FA1;
    --accent: #5B9BD5;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-tertiary: #EDF2F7;
    --bg-gradient: linear-gradient(135deg, #4A90E2 0%, #5B9BD5 50%, #6BA3E8 100%);
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #48BB78;
    --error: #F56565;
    --warning: #ED8936;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(26, 32, 44, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 32, 44, 0.08), 0 2px 4px -1px rgba(26, 32, 44, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(26, 32, 44, 0.08), 0 4px 6px -2px rgba(26, 32, 44, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(26, 32, 44, 0.08), 0 10px 10px -5px rgba(26, 32, 44, 0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(26, 32, 44, 0.15);
    --shadow-colored: 0 10px 30px -5px rgba(74, 144, 226, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    background-image: url('assets/Gemini_Generated_Image_rcmfixrcmfixrcmf.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 58vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0.6) 85%, rgba(255, 255, 255, 0.3) 95%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Top Left Menu Container */
.top-left-menu {
    position: fixed;
    top: 24px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

/* Top Right Menu Container */
.top-right-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
}

/* Marketplace Link */
.marketplace-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.marketplace-link:hover {
    color: var(--primary);
}

/* Pricing Link */
.pricing-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.pricing-link:hover {
    color: var(--primary);
}

/* Sign In Button */
.sign-in-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-in-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

/* Main Title */
.main-title {
    font-family: 'Lora', serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    position: fixed;
    top: 30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
    z-index: 10;
}

.title-highlight {
    font-family: 'Playwrite NO', cursive;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--primary);
}

.title-italic {
    font-style: italic;
}

/* URL Container - Centered */
.url-container {
    width: 100%;
    max-width: 450px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 58vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Input Group - Grande bulle */
.input-group {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
    padding: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within {
    box-shadow: var(--shadow-2xl), 0 0 0 2px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.input-url {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--text-primary);
}

.input-url::placeholder {
    color: var(--text-light);
}

.input-url:focus {
    outline: none;
    background: var(--bg-secondary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(74, 144, 226, 0.25);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-large {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-large svg {
    transition: transform 0.3s ease;
}

.btn-large:hover svg {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 640px) {
    .top-left-menu {
        top: 12px;
        left: 16px;
    }

    .top-right-menu {
        top: 16px;
        right: 16px;
        gap: 12px;
    }

    .pricing-link {
        font-size: 13px;
    }

    .sign-in-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .main-title {
        font-size: 32px;
        top: 28vh;
        padding: 0 20px;
    }

    .input-group {
        flex-direction: row;
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }

    .input-url {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-large {
        width: 48px;
        height: 48px;
        padding: 12px;
        flex-shrink: 0;
    }

    .url-container {
        padding: 0 20px;
        top: 48vh;
    }
}

/* Footer Links */
.footer-links {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1000;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* Terms and Policy Link - Bottom Left */
.terms-policy-link-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.terms-policy-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.terms-policy-link:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .top-left-menu {
        top: 8px;
        left: 12px;
    }

    .top-right-menu {
        top: 12px;
        right: 12px;
        gap: 10px;
    }

    .pricing-link {
        font-size: 12px;
    }

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

    .main-title {
        font-size: 28px;
        top: 25vh;
        padding: 0 16px;
        line-height: 1.25;
    }

    .url-container {
        padding: 0 16px;
        top: 46vh;
    }

    .input-group {
        padding: 6px;
        border-radius: 14px;
        flex-direction: row;
        gap: 6px;
    }

    .input-url {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-large {
        width: 44px;
        height: 44px;
        padding: 10px;
        flex-shrink: 0;
    }
    
    .btn-large svg {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        top: 16px;
        left: 16px;
        gap: 20px;
    }

    .footer-link {
        font-size: 13px;
    }

    .terms-policy-link-container {
        bottom: 16px;
        left: 16px;
    }

    .terms-policy-link {
        font-size: 12px;
    }
}

/* Pricing Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-title {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
}

.pricing-grid-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-card-modal {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-modal:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.pricing-card-modal.featured-modal {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.pricing-badge-modal {
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 4px 16px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    transform: none;
    z-index: 10;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.pricing-badge-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 4px;
}


.pricing-name-modal {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.pricing-price-modal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount-modal {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period-modal {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features-modal {
    list-style: none;
    margin-bottom: 16px;
    padding: 0;
}

.pricing-features-modal li {
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features-modal li:last-child {
    border-bottom: none;
}

.btn-modal {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-modal {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(74, 144, 226, 0.25);
}

.btn-outline-modal {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-modal:hover {
    background: var(--primary);
    color: white;
}

/* Sign In Modal Specific */
.modal-signin {
    max-width: 380px;
    padding: 32px 24px;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Password Evaluator */
.password-evaluator {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-fill.weak {
    width: 25%;
    background: var(--error);
}

.password-strength-fill.fair {
    width: 50%;
    background: var(--warning);
}

.password-strength-fill.good {
    width: 75%;
    background: #4A90E2;
}

.password-strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.password-strength-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.password-strength-text.weak {
    color: var(--error);
}

.password-strength-text.fair {
    color: var(--warning);
}

.password-strength-text.good {
    color: #4A90E2;
}

.password-strength-text.strong {
    color: var(--success);
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.requirement-item.valid {
    color: var(--success);
}

.requirement-icon {
    font-size: 16px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
}

.requirement-item.valid .requirement-icon {
    color: transparent;
}

.requirement-item.valid .requirement-icon::after {
    content: '✓';
    position: absolute;
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-full-modal {
    width: 100%;
    margin-top: 8px;
}

.signup-link {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pricing-grid-modal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .modal-signin {
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

/* Terms and Policy Content */
.terms-policy-content {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.8;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.terms-policy-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-policy-content h3:first-child {
    margin-top: 0;
}

.terms-policy-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-policy-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.terms-policy-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.terms-policy-content li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Scrollbar styling for terms content */
.terms-policy-content::-webkit-scrollbar {
    width: 8px;
}

.terms-policy-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.terms-policy-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.terms-policy-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.notification.success::before {
    background: var(--success);
}

.notification.error::before {
    background: var(--error);
}

.notification.warning::before {
    background: var(--warning);
}

.notification.info::before {
    background: var(--primary);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
}

.notification.success .notification-icon {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.notification.error .notification-icon {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
}

.notification.warning .notification-icon {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning);
}

.notification.info .notification-icon {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
    margin-top: 2px;
}

.notification-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.notification-close svg {
    width: 14px;
    height: 14px;
}

.notification.exiting {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .notification-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }
    
    .notification {
        min-width: auto;
        max-width: 100%;
    }
}
