/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gradient-start: #e0e7ff;
    --bg-gradient-end: #f3e8ff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 0 32px 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: block;
}

.sidebar-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}


.sidebar-toggle {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    padding: 80px 60px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.chart-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0;
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

.hero-button {
    display: inline-block;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    text-align: left;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(79, 70, 229, 0.3);
}


/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-heading {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
    letter-spacing: -1px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.feature-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-box.visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardAppear 0.6s ease-out;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* About Section */
/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
    text-align: left;
}



.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-items {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    margin-top: 32px;
}

.about-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.about-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.about-item-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}




/* FAQ Section - Two Columns */
.faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(79, 70, 229, 0.05);
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-answer.active {
    max-height: 300px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Final Section */
.final-section {
    padding: 120px 0;
    text-align: left;
    position: relative;
    z-index: 1;
}

.final-wrapper {
    max-width: 800px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.final-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.final-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    position: relative;
    z-index: 1;
    margin-left: var(--sidebar-width);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-top {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-separator {
    color: var(--text-light);
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.exit-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideInDown 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.modal-heading {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--text-secondary);
    color: var(--bg-white);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .hero-title {
        font-size: 3rem;
    }



    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        box-shadow: var(--shadow-md);
    }

    .mobile-logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
        text-decoration: none;
        letter-spacing: -0.5px;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-link {
        display: block;
        padding: 16px 24px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .mobile-menu-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-link:hover {
        color: var(--primary-color);
        background: var(--bg-light);
    }

    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }

    .site-footer {
        margin-left: 0;
    }
}


/* Privacy and Legal Pages */
.content-section {
    padding: 120px 0;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    margin-left: var(--sidebar-width);
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.content-heading {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

.content-heading::after {
    display: none;
}

.content-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.8;
}

.content-article {
    margin-bottom: 40px;
}

.content-article:last-child {
    margin-bottom: 0;
}

.article-heading {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 600;
    padding-left: 0;
}

.article-heading::before {
    display: none;
}

.article-subheading {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.content-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.content-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    font-size: 1rem;
    list-style: disc;
    margin-left: 20px;
}

.content-list li::before {
    display: none;
}

.content-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.legal-details {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.legal-detail-item:hover {
    background: rgba(79, 70, 229, 0.05);
    border-left-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.legal-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-value {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

.legal-contact {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.legal-contact p {
    margin-bottom: 10px;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-contact strong {
    color: var(--primary-color);
}

.legal-blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.legal-block-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.legal-block-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.legal-block-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-block-value {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

.legal-blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.legal-block-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.legal-block-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.legal-block-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-block-value {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
}
@media (max-width: 768px) {
    .section-container {
        padding: 0 24px;
    }

    .hero-section {
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sidebar-nav .sidebar-divider,
    .sidebar-nav .sidebar-link[href="privacy.html"],
    .sidebar-nav .sidebar-link[href="legal.html"],
    .sidebar-nav .sidebar-link[href^="mailto:"] {
        display: none;
    }


    .about-items {
        flex-direction: column;
    }

    .alerts-wrapper {
        bottom: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 980px) {
    .content-section {
        margin-left: 0;
        padding: 70px 0 120px 0;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 100px 24px 60px;
    }

    .content-box {
        padding: 32px 24px;
    }

    .content-heading {
        font-size: 1.9rem;
    }

    .article-heading {
        font-size: 1.3rem;
    }

    .article-subheading {
        font-size: 1.1rem;
    }

    .legal-blocks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .legal-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   FORM POPUP — Site Design Overrides
   ============================================= */

.popup_download .popup_content,
.popup_sms .popup_content,
.popup_sms_change .popup_content {
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideInDown 0.4s ease;
}

.popup_download *,
.popup_sms *,
.popup_sms_change * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popup_download h3,
.popup_sms h3,
.popup_sms_change h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.popup_download p,
.popup_sms p,
.popup_sms_change p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
    text-align: center;
}

/* --- Inputs --- */
.popup_download .t-input,
.popup_sms .t-input,
.popup_sms_change .t-input {
    font-family: 'Inter', sans-serif;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* intlTelInput inside popups: restore left padding for flag */
.popup_download .iti .t-input,
.popup_sms_change .iti .t-input {
    padding-left: 64px !important;
}

.popup_download .iti,
.popup_sms_change .iti {
    width: 100%;
}

.popup_download .t-input:focus,
.popup_sms .t-input:focus,
.popup_sms_change .t-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: var(--bg-white);
}

.popup_download .t-input.error,
.popup_sms .t-input.error,
.popup_sms_change .t-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* --- Buttons --- */
.popup_download .t-submit,
.popup_sms .t-submit,
.popup_sms_change .t-submit {
    font-family: 'Inter', sans-serif;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.popup_download .t-submit:hover,
.popup_sms .t-submit:hover,
.popup_sms_change .t-submit:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

/* --- Close button --- */
.popup_download .close_popup svg rect,
.popup_sms .close_popup svg rect,
.popup_sms_change .close_popup svg rect {
    fill: var(--text-light);
    transition: fill 0.2s ease;
}

.popup_download .close_popup:hover svg rect,
.popup_sms .close_popup:hover svg rect,
.popup_sms_change .close_popup:hover svg rect {
    fill: var(--text-primary);
}

/* --- Labels --- */
.popup_download .jhuy,
.popup_sms .jhuy,
.popup_sms_change .jhuy {
    margin-bottom: 20px;
    position: relative;
}

/* --- Validation errors: override absolute → relative under input --- */
.popup_download #name-error,
.popup_download #email-error,
.popup_sms #codeError {
    position: relative !important;
    display: block !important;
    margin: 6px 0 0 0 !important;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #ef4444;
    background: transparent !important;
    line-height: 1.3;
}

/* Phone errors: absolute inside .iti so flag doesn't stretch */
.popup_download #phone-error,
.popup_sms_change #phoneConfirm-error {
    position: absolute !important;
    left: 0;
    top: 100%;
    display: block !important;
    margin: 4px 0 0 0 !important;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #ef4444;
    background: transparent !important;
    line-height: 1.3;
}

/* Extra bottom margin on phone label to make room for absolute error */
.popup_download .jhuy:last-of-type,
.popup_sms_change .jhuy {
    margin-bottom: 36px;
}

.popup_sms #codeError {
    display: none !important;
}

.popup_sms #codeError[style*="block"] {
    display: block !important;
}

/* --- Change phone link --- */
.popup_sms .change_phone {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.popup_sms .change_phone:hover {
    color: var(--primary-hover);
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .popup_download .popup_content,
    .popup_sms .popup_content,
    .popup_sms_change .popup_content {
        width: 100%;
        max-width: none;
        height: 100%;
        padding: 36px 24px;
        border-radius: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
    }

    .popup_download h3,
    .popup_sms h3,
    .popup_sms_change h3 {
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
    }

    .popup_download p,
    .popup_sms p,
    .popup_sms_change p {
        text-align: center;
        width: 100%;
    }
}

