/* ========================================
   RESET
======================================== */

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


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #172033;

    background: #ffffff;

    line-height: 1.6;

}


a {
    text-decoration: none;
    color: inherit;
}


.container {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

}


/* ========================================
   NAVBAR
======================================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    backdrop-filter:
        blur(12px);

    border-bottom:
        1px solid #edf0f5;

}


.navbar {

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.brand-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f1f5ff;

    border-radius: 12px;

    font-size: 22px;

}


.brand-text {

    display: flex;

    flex-direction: column;

}


.brand-name {

    font-size: 18px;

    font-weight: 800;

    letter-spacing: -0.4px;

}


.brand-tagline {

    font-size: 10px;

    color: #8b95a7;

}


.main-nav {

    display: flex;

    gap: 34px;

}


.main-nav a {

    font-size: 14px;

    font-weight: 500;

    color: #596579;

    transition:
        color 0.2s;

}


.main-nav a:hover {

    color: #2563eb;

}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 20px;

}


.login-link {

    font-size: 14px;

    font-weight: 600;

}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        13px 22px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;

}


.btn:hover {

    transform:
        translateY(-2px);

}


.btn-primary {

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    box-shadow:
        0 8px 20px
        rgba(
            37,
            99,
            235,
            0.22
        );

}


.btn-primary:hover {

    box-shadow:
        0 12px 28px
        rgba(
            37,
            99,
            235,
            0.3
        );

}


.btn-small {

    padding:
        10px 17px;

}


.btn-secondary {

    background: #f6f8fb;

    color: #354154;

}


.btn-white {

    background: white;

    color: #2563eb;

}


.mobile-menu-button {

    display: none;

    border: none;

    background: none;

    font-size: 24px;

    cursor: pointer;

}


/* ========================================
   HERO
======================================== */

.hero {

    padding:
        90px 0
        100px;

    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(
                79,
                70,
                229,
                0.1
            ),
            transparent 30%
        ),

        radial-gradient(
            circle at 10% 60%,
            rgba(
                37,
                99,
                235,
                0.07
            ),
            transparent 30%
        );

}


.hero-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 70px;

    align-items: center;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

    border-radius: 30px;

    background: #eefbf3;

    color: #16834b;

    font-size: 12px;

    font-weight: 700;

}


.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #22c55e;

}


.hero h1 {

    margin-top: 22px;

    font-size:
        clamp(
            42px,
            5vw,
            64px
        );

    line-height: 1.08;

    letter-spacing:
        -2.5px;

}


.hero h1 span {

    color: #2563eb;

}


.hero-description {

    max-width: 560px;

    margin-top: 25px;

    font-size: 18px;

    color: #687386;

}


.hero-actions {

    display: flex;

    gap: 14px;

    margin-top: 32px;

}


.hero-trust {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 28px;

    font-size: 12px;

    color: #788396;

}


/* ========================================
   DASHBOARD PREVIEW
======================================== */

.hero-visual {

    position: relative;

}


.dashboard-window {

    background: white;

    border-radius: 18px;

    overflow: hidden;

    border:
        1px solid #e5e9f1;

    box-shadow:
        0 30px 70px
        rgba(
            25,
            40,
            70,
            0.13
        );

    transform:
        rotate(1deg);

}


.window-header {

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    border-bottom:
        1px solid #edf0f5;

}


.window-dots {

    position: absolute;

    left: 16px;

    display: flex;

    gap: 5px;

}


.window-dots span {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #d8dde7;

}


.window-title {

    font-size: 11px;

    color: #9aa3b2;

}


.preview-dashboard {

    padding: 25px;

}


.preview-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

}


.preview-label {

    display: block;

    font-size: 11px;

    color: #8993a3;

}


.preview-header h3 {

    font-size: 21px;

}


.preview-status {

    padding:
        6px 10px;

    border-radius: 20px;

    background: #ecfdf3;

    color: #15945b;

    font-size: 9px;

    font-weight: 700;

}


.status-card {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 22px;

    padding: 18px;

    border-radius: 13px;

    background: #f8fafc;

}


.status-card-icon {

    font-size: 25px;

}


.status-card-content {

    display: flex;

    flex-direction: column;

}


.status-card-content span {

    font-size: 10px;

    color: #8b95a5;

}


.status-card-content strong {

    font-size: 14px;

}


.status-card-content small {

    font-size: 9px;

    color: #8b95a5;

}


.preview-stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 12px;

}


.preview-stat {

    padding: 13px;

    border:
        1px solid #edf0f5;

    border-radius: 11px;

}


.preview-stat span {

    font-size: 15px;

}


.preview-stat strong {

    display: block;

    font-size: 17px;

}


.preview-stat small {

    color: #8a94a4;

    font-size: 9px;

}


.preview-timeline {

    margin-top: 24px;

}


.preview-timeline h4 {

    font-size: 13px;

    margin-bottom: 14px;

}


.preview-event {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        9px 0;

    border-bottom:
        1px solid #f0f2f6;

}


.event-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

}


.event-dot.blue {

    background: #3b82f6;

}


.event-dot.green {

    background: #22c55e;

}


.event-dot.purple {

    background: #8b5cf6;

}


.preview-event div:last-child {

    display: flex;

    flex-direction: column;

}


.preview-event strong {

    font-size: 10px;

}


.preview-event small {

    font-size: 9px;

    color: #929aaa;

}


.floating-notification {

    position: absolute;

    right: -30px;

    bottom: 40px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 15px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 15px 35px
        rgba(
            30,
            45,
            70,
            0.15
        );

    animation:
        floating 3s
        ease-in-out
        infinite;

}


.notification-icon {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef4ff;

    border-radius: 9px;

}


.floating-notification div:last-child {

    display: flex;

    flex-direction: column;

}


.floating-notification strong {

    font-size: 11px;

}


.floating-notification span {

    font-size: 9px;

    color: #8b95a5;

}


@keyframes floating {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-8px);

    }

}


/* ========================================
   SECTIONS
======================================== */

.features-section,
.how-section {

    padding:
        100px 0;

}


.section-heading {

    max-width: 650px;

    margin:
        0 auto
        60px;

    text-align: center;

}


.section-label {

    font-size: 11px;

    font-weight: 800;

    letter-spacing:
        1.5px;

    color: #2563eb;

}


.section-heading h2 {

    margin-top: 12px;

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

    line-height: 1.15;

    letter-spacing:
        -1.5px;

}


.section-heading p {

    margin-top: 18px;

    color: #748094;

}


.features-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.feature-card {

    padding: 30px;

    border:
        1px solid #edf0f5;

    border-radius: 16px;

    transition:
        transform 0.2s,
        box-shadow 0.2s;

}


.feature-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 15px 35px
        rgba(
            30,
            45,
            70,
            0.08
        );

}


.feature-icon {

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-size: 21px;

}


.blue-icon {
    background: #eef4ff;
}

.green-icon {
    background: #edfcf3;
}

.purple-icon {
    background: #f4efff;
}

.orange-icon {
    background: #fff5e8;
}

.red-icon {
    background: #fff0f0;
}

.gold-icon {
    background: #fff8df;
}


.feature-card h3 {

    margin-top: 20px;

    font-size: 17px;

}


.feature-card p {

    margin-top: 10px;

    color: #7b8596;

    font-size: 14px;

}


.pro-badge {

    margin-left: 5px;

    padding:
        3px 6px;

    border-radius: 5px;

    background: #fff1c7;

    color: #9a6b00;

    font-size: 8px;

}


/* ========================================
   HOW IT WORKS
======================================== */

.how-section {

    background: #f8fafc;

}


.steps-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;

}


.step {

    position: relative;

    padding: 35px;

    text-align: center;

    background: white;

    border-radius: 16px;

}


.step-number {

    position: absolute;

    top: 18px;

    right: 20px;

    font-size: 12px;

    font-weight: 800;

    color: #d7dce5;

}


.step-icon {

    font-size: 35px;

}


.step h3 {

    margin-top: 18px;

}


.step p {

    margin-top: 10px;

    color: #7b8596;

    font-size: 14px;

}


/* ========================================
   PREMIUM
======================================== */

.premium-section {

    padding:
        100px 0;

}


.premium-card {

    display: grid;

    grid-template-columns:
        1fr
        300px;

    align-items: center;

    padding:
        60px;

    border-radius: 25px;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            135deg,
            #172554,
            #312e81
        );

}


.section-label.light {

    color: #93c5fd;

}


.premium-content h2 {

    max-width: 550px;

    margin-top: 15px;

    font-size:
        clamp(
            30px,
            4vw,
            45px
        );

    line-height: 1.15;

}


.premium-content p {

    max-width: 520px;

    margin:
        20px 0
        30px;

    color: #cbd5e1;

}


.premium-visual {

    display: flex;

    justify-content: center;

}


.premium-orb {

    width: 150px;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 60px;

    background:
        rgba(
            255,
            255,
            255,
            0.1
        );

    box-shadow:
        0 0 80px
        rgba(
            147,
            197,
            253,
            0.25
        );

}


/* ========================================
   FINAL CTA
======================================== */

.final-cta {

    padding:
        100px 20px;

    text-align: center;

}


.final-cta h2 {

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    letter-spacing:
        -1.5px;

}


.final-cta p {

    max-width: 600px;

    margin:
        18px auto
        30px;

    color: #748094;

}


/* ========================================
   FOOTER
======================================== */

.site-footer {

    border-top:
        1px solid #edf0f5;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 50px;

    padding:
        70px 0;

}


.footer-brand p {

    max-width: 300px;

    margin-top: 15px;

    color: #7b8596;

    font-size: 13px;

}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.footer-column h4 {

    margin-bottom: 7px;

    font-size: 13px;

}


.footer-column a {

    font-size: 12px;

    color: #7b8596;

}


.footer-column a:hover {

    color: #2563eb;

}


.footer-bottom {

    padding:
        20px 0;

    border-top:
        1px solid #edf0f5;

}


.footer-bottom p {

    font-size: 11px;

    color: #9aa3b2;

}


/* ========================================
   RESPONSIVE
======================================== */

@media (
    max-width: 900px
) {

    .main-nav,
    .nav-actions {

        display: none;

    }


    .mobile-menu-button {

        display: block;

    }


    .main-nav.mobile-open {

        position: absolute;

        top: 76px;

        left: 0;

        right: 0;

        display: flex;

        flex-direction: column;

        gap: 0;

        padding: 20px;

        background: white;

        border-bottom:
            1px solid #edf0f5;

    }


    .main-nav.mobile-open a {

        padding: 12px 0;

    }


    .hero-grid {

        grid-template-columns: 1fr;

    }


    .hero {

        padding:
            60px 0
            80px;

    }


    .features-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .premium-card {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .premium-visual {

        display: none;

    }


    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (
    max-width: 600px
) {

    .container {

        width:
            calc(100% - 30px);

    }


    .hero h1 {

        letter-spacing:
            -1.5px;

    }


    .hero-actions {

        flex-direction: column;

    }


    .hero-actions .btn {

        width: 100%;

    }


    .hero-trust {

        flex-direction: column;

        gap: 7px;

    }


    .dashboard-window {

        transform: none;

    }


    .floating-notification {

        right: 10px;

        bottom: -25px;

    }


    .features-grid,
    .steps-grid {

        grid-template-columns: 1fr;

    }


    .premium-card {

        padding: 35px 25px;

    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 35px;

    }

}
/* ========================================
   AUTHENTICATION
======================================== */

.auth-section {

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 80px 20px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(
                37,
                99,
                235,
                0.08
            ),
            transparent 40%
        );

}


.auth-card {

    width: 100%;

    max-width: 460px;

    padding: 40px;

    background: white;

    border:
        1px solid #edf0f5;

    border-radius: 20px;

    box-shadow:
        0 20px 50px
        rgba(
            30,
            45,
            70,
            0.08
        );

}


.auth-header {

    text-align: center;

    margin-bottom: 30px;

}


.auth-icon {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto
        20px;

    border-radius: 15px;

    background: #eef4ff;

    font-size: 26px;

}


.auth-header h1 {

    font-size: 25px;

    letter-spacing:
        -0.7px;

}


.auth-header p {

    margin-top: 8px;

    color: #7b8596;

    font-size: 14px;

}


.auth-card form p {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 20px;

}


.auth-card label {

    font-size: 13px;

    font-weight: 600;

}


.auth-card input {

    width: 100%;

    padding:
        12px 14px;

    border:
        1px solid #dfe4ec;

    border-radius: 9px;

    outline: none;

    font-size: 14px;

}


.auth-card input:focus {

    border-color:
        #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(
            37,
            99,
            235,
            0.1
        );

}


.auth-button {

    width: 100%;

    border: none;

    cursor: pointer;

}


.auth-footer {

    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid #edf0f5;

    text-align: center;

    font-size: 13px;

}


.auth-footer p {

    color: #7b8596;

}


.auth-footer a {

    display: inline-block;

    margin-top: 5px;

    color: #2563eb;

    font-weight: 700;

}

.form-group {

    margin-bottom: 18px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 600;

    color: #354154;

}


.form-group input {

    width: 100%;

    padding: 12px 14px;

    border:
        1px solid #dfe4ec;

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;

}


.form-group input:focus {

    border-color:
        #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(
            37,
            99,
            235,
            0.1
        );

}


.field-error {

    display: block;

    margin-top: 5px;

    color: #dc2626;

    font-size: 12px;

}


.form-errors {

    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 8px;

    background: #fff1f2;

    color: #dc2626;

    font-size: 13px;

}


.auth-card ul.errorlist {

    list-style: none;

    padding: 0;

    margin: 5px 0;

    color: #dc2626;

    font-size: 12px;

}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-page {

    min-height: 700px;

    padding: 50px 20px 80px;

    background: #f7f9fc;

}


.dashboard-container {

    max-width: 1180px;

    margin: 0 auto;

}


.dashboard-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 35px;

}


.dashboard-header h1 {

    margin: 0;

    font-size: 30px;

    letter-spacing: -1px;

    color: #172033;

}


.dashboard-header p {

    margin-top: 8px;

    color: #7b8596;

}


.dashboard-status {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    background: #ecfdf5;

    border: 1px solid #bbf7d0;

    border-radius: 30px;

    color: #15803d;

    font-size: 13px;

    font-weight: 600;

}


.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #22c55e;

}


/* STATISTICS */

.dashboard-stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 25px;

}


.stat-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    background: white;

    border: 1px solid #edf0f5;

    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(
            30,
            45,
            70,
            0.04
        );

}


.stat-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eef4ff;

    font-size: 22px;

}


.stat-label {

    display: block;

    margin-bottom: 5px;

    color: #7b8596;

    font-size: 12px;

}


.stat-card strong {

    color: #172033;

    font-size: 16px;

}


/* MAIN GRID */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

}


.dashboard-card {

    min-height: 380px;

    padding: 25px;

    background: white;

    border: 1px solid #edf0f5;

    border-radius: 18px;

    box-shadow:
        0 5px 20px
        rgba(
            30,
            45,
            70,
            0.04
        );

}


.card-header {

    display: flex;

    justify-content: space-between;

    gap: 20px;

}


.card-header h2 {

    margin: 0;

    font-size: 19px;

    color: #172033;

}


.card-header p {

    margin-top: 7px;

    color: #7b8596;

    font-size: 13px;

}


.card-icon {

    font-size: 25px;

}


.empty-state {

    height: 270px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.empty-icon {

    font-size: 35px;

    margin-bottom: 15px;

}


.empty-state h3 {

    margin: 0;

    color: #263247;

    font-size: 16px;

}


.empty-state p {

    max-width: 330px;

    margin:
        10px auto 20px;

    color: #7b8596;

    font-size: 13px;

    line-height: 1.6;

}


/* PREMIUM */

.premium-banner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-top: 25px;

    padding: 25px 30px;

    background:
        linear-gradient(
            135deg,
            #172554,
            #1e3a8a
        );

    border-radius: 18px;

    color: white;

}


.premium-content {

    display: flex;

    align-items: center;

    gap: 18px;

}


.premium-icon {

    font-size: 35px;

}


.premium-banner h2 {

    margin: 0;

    font-size: 19px;

}


.premium-banner p {

    margin-top: 6px;

    color: #dbeafe;

    font-size: 13px;

}


.btn-premium {

    white-space: nowrap;

    background: white;

    color: #1e3a8a;

    padding:
        11px 18px;

    border-radius: 9px;

    font-weight: 700;

}


@media (
    max-width: 800px
) {

    .dashboard-header {

        flex-direction: column;

        align-items: flex-start;

    }


    .dashboard-stats {

        grid-template-columns: 1fr;

    }


    .dashboard-grid {

        grid-template-columns: 1fr;

    }


    .premium-banner {

        flex-direction: column;

        align-items: flex-start;

    }

}

.extension-status {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 24px;

    padding: 16px;

    background: #f8fafc;

    border-radius: 12px;
}


.status-indicator {
    width: 12px;

    height: 12px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ef4444;

    box-shadow:
        0 0 0 5px
        rgba(
            239,
            68,
            68,
            0.1
        );
}


.status-indicator.connected {
    background: #22c55e;

    box-shadow:
        0 0 0 5px
        rgba(
            34,
            197,
            94,
            0.1
        );
}


.status-indicator.inactive {
    background: #f59e0b;

    box-shadow:
        0 0 0 5px
        rgba(
            245,
            158,
            11,
            0.1
        );
}


.extension-status strong {
    display: block;

    font-size: 15px;

    color: #111827;
}


.extension-status p {
    margin: 4px 0 0;

    font-size: 13px;

    color: #6b7280;
}


.extension-last-activity {
    margin-top: 12px;

    font-size: 13px;

    color: #6b7280;
}


.extension-actions {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}

.hidden {
    display: none !important;
}



    
.extension-management-status {
    display: flex;

    gap: 15px;

    align-items: center;

    margin-top: 20px;

    padding: 15px;

    background: #f8fafc;

    border-radius: 10px;
}

.extension-management-actions {
    display: flex;

    gap: 10px;

    margin-top: 25px;
}


.modal {
    display: none;

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(
            0,
            0,
            0,
            0.5
        );

    align-items: center;

    justify-content: center;

    z-index: 9999;
}


.modal.open {
    display: flex;
}


.modal-content {
    position: relative;

    width: 90%;

    max-width: 500px;

    padding: 30px;

    background: white;

    border-radius: 16px;

    box-shadow:
        0 20px 50px
        rgba(
            0,
            0,
            0,
            0.2
        );
}


.modal-close {
    position: absolute;

    top: 12px;

    right: 15px;

    border: none;

    background: transparent;

    font-size: 28px;

    cursor: pointer;
}

/* =========================================
   DossierVeille - Extension Connection Page
========================================= */

.connect-page {
    width: 100%;
    max-width: 760px;
    margin: 50px auto;
    padding: 0 20px 60px;
}


/* =========================================
   Main Connection Card
========================================= */

.connect-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 24px;

    padding: 45px 40px;

    text-align: center;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.08);

    overflow: hidden;
}


/* Top decorative line */

.connect-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #4f46e5,
            #7c3aed
        );
}


/* =========================================
   Icon
========================================= */

.connect-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    font-size: 32px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #eef2ff
        );

    border: 1px solid #dbeafe;

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.12);
}


/* =========================================
   Heading
========================================= */

.connect-card h1 {
    margin: 0 0 14px;

    font-size: 30px;

    line-height: 1.2;

    font-weight: 700;

    color: #111827;

    letter-spacing: -0.5px;
}


.connect-card > p {
    max-width: 560px;

    margin: 0 auto 30px;

    color: #6b7280;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   Primary Button
========================================= */

.connect-card .btn-primary {
    min-width: 240px;

    padding: 13px 24px;

    border: none;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.connect-card .btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.3);
}


.connect-card .btn-primary:active {
    transform: translateY(0);
}


.connect-card .btn-primary:disabled {
    cursor: wait;

    opacity: 0.65;

    transform: none;

    box-shadow: none;
}


/* =========================================
   Connection Code Container
========================================= */

.connection-code-container {
    margin-top: 35px;

    padding: 25px;

    border-radius: 16px;

    background:
        #f8fafc;

    border: 1px solid #e2e8f0;

    animation:
        connectionCodeAppear
        0.3s
        ease;
}


@keyframes connectionCodeAppear {

    from {

        opacity: 0;

        transform:
            translateY(10px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.connection-code-container p {
    margin: 0 0 15px;

    color: #64748b;

    font-size: 14px;
}


/* =========================================
   Connection Code
========================================= */

.connection-code {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 280px;

    padding: 15px 25px;

    margin-bottom: 12px;

    border-radius: 12px;

    background: #ffffff;

    border: 2px dashed #93c5fd;

    color: #1d4ed8;

    font-size: 26px;

    font-weight: 700;

    letter-spacing: 4px;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    box-shadow:
        0 4px 12px
        rgba(37, 99, 235, 0.08);
}


/* =========================================
   Expiration
========================================= */

.connection-expiration {
    color: #dc2626 !important;

    font-size: 13px !important;

    font-weight: 600;
}


/* =========================================
   Extension Status
========================================= */

.extension-status {
    max-width: 760px;

    margin: 20px auto 60px;

    padding: 22px 25px;

    display: flex;

    align-items: center;

    gap: 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.06);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.extension-status:hover {
    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.09);
}


/* =========================================
   Status Icon
========================================= */

.status-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #f8fafc;

    font-size: 25px;
}


/* =========================================
   Status Text
========================================= */

#extensionStatusTitle {
    display: block;

    margin-bottom: 4px;

    color: #111827;

    font-size: 16px;

    font-weight: 700;
}


#extensionStatusText {
    margin: 0;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================
   Connected State
========================================= */

.extension-status.connected {
    border-color: #bbf7d0;

    background:
        linear-gradient(
            135deg,
            #f0fdf4,
            #ffffff
        );
}


/* =========================================
   Responsive
========================================= */

@media (
    max-width: 640px
) {

    .connect-page {
        margin-top: 30px;

        padding:
            0 15px 40px;
    }


    .connect-card {
        padding:
            35px 22px;

        border-radius: 20px;
    }


    .connect-card h1 {
        font-size: 24px;
    }


    .connect-card > p {
        font-size: 14px;
    }


    .connection-code {
        min-width: 0;

        width: 100%;

        box-sizing: border-box;

        font-size: 21px;

        letter-spacing: 3px;
    }


    .connect-card .btn-primary {
        width: 100%;
    }


    .extension-status {
        margin:
            15px 15px 40px;

        padding: 18px;
    }

}


.settings-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.settings-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h1 {
    margin-bottom: 8px;
}

.settings-header p {
    color: #6b7280;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    margin: 0 0 6px;
}

.setting-info p {
    margin: 0;
    color: #6b7280;
}

.interval-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-input {
    width: 80px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.save-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.settings-footer {
    margin-top: 30px;
    text-align: right;
}

/* =========================================================
   EMAIL / PASSWORD AUTHENTICATION PAGES
   ========================================================= */

.email-verification-page {

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eff6ff 100%
        );

}


/* =========================================================
   CARD
   ========================================================= */

.email-verification-card {

    width: 100%;

    max-width: 520px;

    padding: 42px 40px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    box-shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.10);

    text-align: center;

}


/* =========================================================
   ICON
   ========================================================= */

.email-verification-icon {

    width: 68px;

    height: 68px;

    margin: 0 auto 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    border: 1px solid #bfdbfe;

    border-radius: 50%;

    font-size: 30px;

    line-height: 1;

}


/* =========================================================
   TITLE
   ========================================================= */

.email-verification-card h1 {

    margin: 0 0 16px;

    color: #111827;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.4px;

}


/* =========================================================
   TEXT
   ========================================================= */

.email-verification-card p {

    margin: 0 auto 16px;

    max-width: 440px;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.7;

}


.email-verification-intro {

    font-size: 16px !important;

    color: #4b5563 !important;

}


/* =========================================================
   EMAIL ADDRESS DISPLAY
   ========================================================= */

.email-verification-email {

    display: inline-block;

    max-width: 100%;

    margin: 8px auto 20px;

    padding: 11px 18px;

    box-sizing: border-box;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    color: #1e293b;

    font-size: 14px;

    font-weight: 600;

    word-break: break-word;

}


/* =========================================================
   FORM
   ========================================================= */

.email-verification-card form {

    width: 100%;

    margin-top: 25px;

    text-align: left;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #374151;

    font-size: 14px;

    font-weight: 600;

}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    color: #111827;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;

}


.form-group input:hover {

    border-color: #9ca3af;

}


.form-group input:focus {

    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.12);

}


/* =========================================================
   PASSWORD RESET HELP TEXT
   ========================================================= */

.form-group .helptext {

    display: block;

    margin-top: 7px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;

}


/* Django password validation list */

.form-group ul {

    margin: 8px 0 0;

    padding-left: 18px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   BUTTON
   ========================================================= */

.email-verification-card .btn-primary {

    width: 100%;

    min-height: 48px;

    padding: 12px 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.2;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 6px 16px
        rgba(37, 99, 235, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.email-verification-card .btn-primary:hover {

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
        );

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.30);

    transform: translateY(-1px);

}


.email-verification-card .btn-primary:active {

    transform: translateY(0);

    box-shadow:
        0 4px 10px
        rgba(37, 99, 235, 0.20);

}


/* =========================================================
   SECONDARY ACTIONS
   ========================================================= */

.email-verification-actions {

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #f1f5f9;

    text-align: center;

}


.email-verification-actions a {

    color: #2563eb;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;

}


.email-verification-actions a:hover {

    color: #1d4ed8;

    text-decoration: underline;

}


/* =========================================================
   FORM ERRORS
   ========================================================= */

.form-error {

    margin-top: 7px;

    color: #dc2626;

    font-size: 13px;

    line-height: 1.5;

}


.errorlist {

    margin: 8px 0 0;

    padding: 0;

    list-style: none;

    color: #dc2626;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================================
   NON-FIELD ERRORS
   ========================================================= */

.email-verification-card
.errorlist.nonfield {

    margin-bottom: 20px;

    padding: 12px 14px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: 10px;

    text-align: left;

}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.email-verification-success {

    margin: 20px 0;

    padding: 14px 16px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    border-radius: 10px;

    color: #166534;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   WARNING MESSAGE
   ========================================================= */

.email-verification-warning {

    margin: 20px 0;

    padding: 14px 16px;

    background: #fffbeb;

    border: 1px solid #fde68a;

    border-radius: 10px;

    color: #92400e;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
    max-width: 600px
) {

    .email-verification-page {

        min-height: calc(100vh - 60px);

        padding: 30px 15px;

    }


    .email-verification-card {

        padding: 32px 22px;

        border-radius: 16px;

    }


    .email-verification-card h1 {

        font-size: 24px;

    }


    .email-verification-card p {

        font-size: 14px;

    }


    .email-verification-icon {

        width: 60px;

        height: 60px;

        font-size: 26px;

    }

}

