/* ============================================================
   e-Certify  - Global Stylesheet
   To retheme the app, edit the variables in :root below.
   ============================================================ */

:root {
    /* Brand / accent  - alignées sur la palette de la page d'accueil (welcome.html) */
    --primary:          #4F6EF7;
    --primary-hover:    #3B54D6;
    --primary-alpha:    rgba(79, 110, 247, 0.12);
    --accent:           #4F6EF7;      /* sidebar active indicator */
    --accent-light:     #7C93FB;
    --accent-gradient:  var(--primary);   /* couleur unie (pas de dégradé) */

    /* Sidebar */
    --sidebar-bg:       #14121F;
    --sidebar-text:     #8B879C;
    --sidebar-hover:    #211E33;
    --sidebar-active:   var(--accent);

    /* Page */
    --body-bg:          #F5F5FA;
    --card-bg:          #ffffff;
    --card-shadow:      0 1px 4px rgba(20, 18, 31, 0.06);
    --border-color:     #E6E8F0;

    /* Typography */
    --text-dark:        #14121F;
    --text-body:        #374151;
    --text-muted:       #6b7280;
    --text-subtle:      #9ca3af;

    /* Radii (nouveau système, cartes plus arrondies) */
    --radius-card:      20px;
    --radius-pill:      999px;
}

/* ── BASE ── */
* { font-family: 'Inter', sans-serif; }
body { background: var(--body-bg); margin: 0; }

/* ── SIDEBAR ── */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
    background: var(--sidebar-bg);
    z-index: 1000;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 18px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; gap: 10px;
}
.brand-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--sidebar-active);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px; flex-shrink: 0;
}
.sidebar .logo-wrapper {
    background: var(--accent-gradient) !important;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(79,110,247,0.4);
}
.brand-name { color: white; font-weight: 600; font-size: 15px; line-height: 1.2; }
.brand-sub  { color: var(--sidebar-text); font-size: 11px; }

.sidebar-section-label {
    color: var(--sidebar-text); font-size: 10px; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase;
    padding: 18px 20px 8px;
    opacity: 0.75;
}
.sidebar .nav-link {
    color: var(--sidebar-text);
    margin: 2px 12px;
    padding: 10px 14px;
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    border-radius: 10px;
    transition: all 0.15s;
}
.sidebar .nav-link:hover  { color: white; background: var(--sidebar-hover); }
.sidebar .nav-link.active {
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 4px 14px rgba(79,110,247,0.35);
}
.sidebar .nav-link i { font-size: 16px; width: 18px; text-align: center; }

/* ── LANG SWITCHER (sidebar) ── */
.lang-switcher {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 8px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.lang-btn {
    color: var(--sidebar-text); font-size: 11px; font-weight: 600;
    text-decoration: none; padding: 3px 7px; border-radius: 4px;
    letter-spacing: 0.5px; transition: all 0.15s;
}
.lang-btn:hover         { color: white; }
.lang-btn.active        { color: white; background: var(--accent-gradient); }
.lang-divider           { color: rgba(255,255,255,0.15); font-size: 11px; }

/* ── SIDEBAR FOOTER ── */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; gap: 10px;
}
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.user-name  { color: white; font-size: 13px; font-weight: 500; }
.user-plan-badge {
    display: inline-block; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 1px 7px; border-radius: var(--radius-pill);
    margin-top: 2px;
}
.logout-btn {
    margin-left: auto; color: var(--sidebar-text); font-size: 15px; text-decoration: none;
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.logout-btn:hover { color: white; background: var(--sidebar-hover); }

/* ── MAIN LAYOUT ── */
.main-wrapper             { min-height: 100vh; display: flex; flex-direction: column; }
.main-wrapper.with-sidebar { margin-left: 240px; }

.topbar {
    background: white; border-bottom: 1px solid #e8eaf0;
    padding: 14px 28px;
    display: flex; align-items: center; gap: 16px;
    position: sticky; top: 0; z-index: 100;
}
.topbar .page-title { font-size: 19px; font-weight: 700; color: var(--text-dark); margin: 0; letter-spacing: -0.2px; }
.topbar .page-subtitle { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }

.content-area { padding: 28px; flex: 1; }

/* ── ALERTS ── */
.alert              { border: none; border-radius: 12px; font-size: 14px; }
.alert-success      { background: #d4f8e6; color: #1a7a45; }
.alert-danger       { background: #fde8e8; color: #922b21; }
.alert-info         { background: #dbeafe; color: #1e40af; }
.alert-warning      { background: #fef3c7; color: #92400e; }

/* ── CARDS ── */
.card { border: none; border-radius: var(--radius-card); box-shadow: var(--card-shadow); }
.card-header {
    background: var(--card-bg); border-bottom: 1px solid var(--body-bg);
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
    padding: 16px 22px; font-weight: 600; font-size: 14.5px; color: var(--text-dark);
}
.card-footer { border-radius: 0 0 var(--radius-card) var(--radius-card) !important; }

/* ── TABLES ── */
.table th {
    font-size: 11.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-subtle);
    border-bottom: 1px solid var(--body-bg); padding-top: 12px; padding-bottom: 12px;
}
.table td { font-size: 14px; color: var(--text-body); vertical-align: middle; }
.table-hover tbody tr:hover { background: #FAFAFE; }

/* ── BADGES ── */
.badge              { font-weight: 600; font-size: 11.5px; padding: 4px 11px; border-radius: var(--radius-pill); }
.badge-sent,
.badge-completed    { background: #d4f8e6; color: #1a7a45; }
.badge-failed       { background: #fde8e8; color: #922b21; }
.badge-pending,
.badge-draft        { background: #f3f4f6; color: var(--text-muted); }
.badge-running      { background: #dbeafe; color: #1e40af; }
.badge-active       { background: #d4f8e6; color: #1a7a45; }
.badge-inactive     { background: #f3f4f6; color: var(--text-muted); }

/* Pilules translucides pour surfaces colorées (carte dégradé) et surfaces claires (upsell) */
.badge-pill-light {
    background: rgba(255,255,255,0.22); color: #fff;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 5px 12px; border-radius: var(--radius-pill);
    display: inline-flex; align-items: center; gap: 6px;
}
.badge-pill-tint {
    background: var(--primary-alpha); color: var(--primary);
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    padding: 5px 12px; border-radius: var(--radius-pill);
    display: inline-flex; align-items: center; gap: 6px;
}

/* ── BUTTONS ── */
.btn-primary        { background: var(--primary); border-color: var(--primary); font-size: 13.5px; font-weight: 500; }
.btn-primary:hover  { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-sm             { font-size: 12.5px; padding: 5px 14px; border-radius: 8px; }
.btn-icon {
    width: 30px; height: 30px; padding: 0; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-gradient {
    background: var(--accent-gradient); border: none; color: #fff; font-weight: 600;
    border-radius: 10px; transition: filter 0.15s, transform 0.15s;
}
.btn-gradient:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); }
.btn-white-solid {
    background: #fff; border: none; color: var(--primary); font-weight: 600; border-radius: 10px;
}
.btn-white-solid:hover { background: #F5F4FF; color: var(--primary-hover); }

/* ── STAT CARDS (legacy) / STAT TILES (nouveau système) ── */
.stat-card {
    border-radius: var(--radius-card); padding: 22px; background: var(--card-bg);
    box-shadow: var(--card-shadow);
    display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    flex-shrink: 0;
}
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--text-dark); }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.stat-tile {
    background: var(--card-bg); border-radius: var(--radius-card);
    box-shadow: var(--card-shadow); padding: 20px;
}
.stat-tile .icon-square {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    margin-bottom: 14px;
}
.stat-tile-value { font-size: 25px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stat-tile-label {
    font-size: 12.5px; color: var(--text-muted); font-weight: 500;
    margin: 4px 0 12px; display: flex; align-items: center; gap: 6px;
}
.icon-square-purple { background: #EAF0FF; color: #4F6EF7; }
.icon-square-teal    { background: #E1FBF6; color: #14B8A6; }
.icon-square-orange  { background: #FFF1E6; color: #F97316; }
.icon-square-blue    { background: #E6F0FF; color: #3B82F6; }
.icon-square-green   { background: #E7FBEE; color: #16A34A; }
.icon-square-pink    { background: #FDE8F3; color: #EC4899; }

/* Icône de ligne de tableau (historique paiements, listes) */
.table-icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    flex-shrink: 0;
}

/* Barre de progression sur fond coloré (carte plan actuel) */
.progress-light { background: rgba(255,255,255,0.25); border-radius: var(--radius-pill); height: 8px; overflow: hidden; }
.progress-light .progress-bar-fill { background: #fff; height: 100%; border-radius: var(--radius-pill); }

/* Mini barre de progression pour tuiles de stats (fond clair) */
.progress-mini { background: #EFEFF6; border-radius: var(--radius-pill); height: 6px; overflow: hidden; }
.progress-mini-fill { height: 100%; border-radius: var(--radius-pill); background: var(--primary); }

/* Pile d'avatars superposés (ex. équipe) */
.avatar-stack { display: flex; }
.avatar-stack .avatar-stack-item {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card-bg);
    margin-left: -8px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #fff; background: var(--accent-gradient);
}
.avatar-stack .avatar-stack-item:first-child { margin-left: 0; }
.avatar-stack .avatar-stack-more {
    background: #EFEFF6; color: var(--text-muted);
}

/* Carte en dégradé (plan actuel) */
.card-gradient {
    background: var(--accent-gradient); color: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 50px rgba(79,110,247,0.35);
    position: relative; overflow: hidden;
}
.card-gradient .text-white-70 { color: rgba(255,255,255,0.78); }

/* ── FORMS ── */
.form-label { font-size: 13.5px; font-weight: 500; color: var(--text-body); margin-bottom: 5px; }
.form-control, .form-select { font-size: 14px; border-radius: 8px; border-color: var(--border-color); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-alpha);
}
.form-text { font-size: 12px; color: var(--text-subtle); margin-top: 4px; }

/* ── LOGIN PAGE ── */
.login-lang-btn         { color: var(--text-subtle); text-decoration: none; font-size: 12px; }
.login-lang-btn.active  { color: var(--text-dark); font-weight: 600; }
.login-lang-btn:hover   { color: var(--primary); }

/* ── UTILITIES ── */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ── LANDING PAGE ── */
.landing-nav {
    padding: 16px 0; position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--body-bg);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); display: flex; align-items: center;
    justify-content: center; color: white; font-size: 18px;
}
.nav-logo-text { font-weight: 700; font-size: 18px; color: var(--text-dark); }

.hero {
    padding: 96px 0 80px;
    background: #F3F5FF;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eef0ff; color: var(--primary);
    font-size: 12px; font-weight: 600; padding: 5px 14px;
    border-radius: 20px; letter-spacing: 0.5px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.1; color: var(--text-dark); margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin-bottom: 36px; }
.hero-img { border-radius: 16px; box-shadow: 0 20px 60px rgba(79,110,247,0.15); border: 1px solid #e8eaf0; overflow: hidden; }
.hero-mockup { background: var(--sidebar-bg); border-radius: 16px; padding: 20px; min-height: 340px; display: flex; flex-direction: column; }
.mockup-bar  { display: flex; gap: 6px; margin-bottom: 16px; }
.mockup-dot  { width: 10px; height: 10px; border-radius: 50%; }
.mockup-sidebar { width: 52px; background: rgba(255,255,255,0.06); border-radius: 8px; flex-shrink: 0; }
.mockup-content { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.mockup-stat    { background: rgba(79,110,247,0.2); border-radius: 6px; height: 52px; flex: 1; }

.features     { padding: 80px 0; }
.section-label {
    font-size: 12px; font-weight: 600; color: var(--primary);
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px; }
.section-sub   { font-size: 16px; color: var(--text-muted); max-width: 520px; }

.feature-card { padding: 28px; border-radius: 14px; border: 1px solid var(--body-bg); transition: all 0.2s; height: 100%; }
.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(79,110,247,0.1); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature-card h5 { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.how     { padding: 80px 0; background: #f8f9ff; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: white; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.pricing      { padding: 80px 0; }
.pricing-card {
    border-radius: 16px; border: 2px solid var(--body-bg);
    padding: 36px 32px; height: 100%;
    transition: all 0.2s; display: flex; flex-direction: column;
}
.pricing-card.featured   { border-color: var(--primary); box-shadow: 0 12px 40px rgba(79,110,247,0.15); }
.pricing-card.enterprise { border-color: #7c3aed; }

.plan-badge            { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 14px; }
.plan-badge.pro        { background: #eef0ff; color: var(--primary); }
.plan-badge.enterprise { background: #f3e8ff; color: #7c3aed; }
.plan-badge.free       { background: #f3f4f6; color: var(--text-muted); }

.plan-price       { font-size: 42px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.plan-price sup   { font-size: 20px; font-weight: 600; vertical-align: top; margin-top: 6px; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--text-muted); }

.plan-features          { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan-features li       { padding: 8px 0; font-size: 14px; color: var(--text-body); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f9fafb; }
.plan-features li:last-child { border: none; }
.plan-features li i     { font-size: 15px; }

.popular-label {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: 11px; font-weight: 600; padding: 3px 14px;
    border-radius: 20px; white-space: nowrap;
}

.cta-section    { padding: 80px 0; background: var(--primary); color: white; text-align: center; }
.cta-section h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta-section p  { font-size: 17px; opacity: 0.85; margin-bottom: 32px; }

.landing-footer  { padding: 32px 0; border-top: 1px solid var(--body-bg); background: var(--sidebar-bg); color: var(--sidebar-text); }
.footer-logo-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px;
}
.footer-link { color: var(--sidebar-text); text-decoration: none; }

.btn-primary-landing       { background: var(--primary); border: none; color: white; font-weight: 600; padding: 13px 28px; border-radius: 10px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.btn-primary-landing:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); }

.btn-outline-landing       { background: transparent; border: 2px solid var(--border-color); color: var(--text-body); font-weight: 600; padding: 11px 26px; border-radius: 10px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.btn-outline-landing:hover { border-color: var(--primary); color: var(--primary); }

.btn-white-landing       { background: white; color: var(--primary); font-weight: 600; padding: 13px 28px; border-radius: 10px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; border: none; }
.btn-white-landing:hover { background: #f8f9ff; color: var(--primary-hover); transform: translateY(-1px); }

.btn-outline-white       { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: white; font-weight: 600; padding: 11px 26px; border-radius: 10px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }

.btn-kkiapay            { width: 100%; padding: 13px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-kkiapay-pro        { background: var(--primary); color: white; }
.btn-kkiapay-pro:hover  { background: var(--primary-hover); }
.btn-kkiapay-enterprise { background: #7c3aed; color: white; }
.btn-kkiapay-enterprise:hover { background: #6d28d9; }

.lang-top a        { color: var(--text-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.lang-top a.active { color: var(--primary); }
.lang-top a:hover  { color: var(--primary); }

/* ── Landing nav links ── */
.landing-nav-link { color: var(--text-body); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.landing-nav-link:hover { color: var(--primary); }

/* ── Stats bar ── */
.stats-bar { background: var(--sidebar-bg); padding: 40px 0; }
.stats-bar-item { text-align: center; padding: 8px 24px; border-color: rgba(255,255,255,0.1) !important; }
.stats-bar-value { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: white; line-height: 1; }
.stats-bar-label { font-size: 14px; color: var(--sidebar-text); margin-top: 6px; font-weight: 500; }

/* ── How it works steps ── */
.how-step { padding: 24px; background: white; border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.how-step:hover { box-shadow: 0 6px 20px rgba(79,110,247,0.1); }

/* ── FAQ section ── */
.faq-section { padding: 80px 0; }
.faq-item { border: 1px solid var(--body-bg); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.faq-btn {
    font-size: 15px; font-weight: 500; color: var(--text-dark); background: white;
    padding: 18px 20px; box-shadow: none !important;
}
.faq-btn:not(.collapsed) { color: var(--primary); background: #f8f9ff; }
.faq-btn::after { filter: none; }
.faq-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; background: white; padding: 4px 20px 20px; }

/* ── Contact CTA ── */
.contact-cta { padding: 60px 0; background: #f8f9ff; }

/* ── REGISTER PAGE ── */
.register-logo {
    width: 54px; height: 54px; border-radius: 14px;
    background: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.plan-pill                     { border: 2px solid var(--border-color); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all 0.15s; background: white; }
.plan-pill.selected-free       { border-color: var(--text-muted); background: #f9fafb; }
.plan-pill.selected-pro        { border-color: var(--primary); background: #eef0ff; }
.plan-pill.selected-enterprise { border-color: #7c3aed; background: #f3e8ff; }
.auth-link { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-link:hover { color: var(--primary-hover); }

/* ── VERIFY PAGE ── */
.verify-page-wrapper { background: var(--body-bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.verify-card    { background: #fff; border-radius: 20px; box-shadow: 0 4px 32px rgba(0,0,0,0.08); max-width: 520px; width: 100%; overflow: hidden; }
.verify-header  { padding: 32px 36px 28px; border-bottom: 1px solid #f0f0f0; text-align: center; }
.verify-logo    { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; margin: 0 auto 16px; }
.verify-logo img { height: 26px; width: auto; display: block; }
.verify-body    { padding: 28px 36px; }
.verify-footer  { background: #f8f9fb; padding: 18px 36px; text-align: center; font-size: 12px; color: #9199a6; border-top: 1px solid #f0f0f0; }
.verify-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

.status-badge   { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.status-valid   { background: #e6f9f0; color: #1a9e5c; }
.status-invalid { background: #fdeaea; color: #d32f2f; }

.info-row           { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.info-row:last-child { border-bottom: none; }
.info-icon  { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.info-label { font-size: 11px; color: #9199a6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.info-value { font-size: 15px; color: var(--text-dark); font-weight: 500; word-break: break-all; }

/* ══════════════════════════════════════════════
   RESPONSIVE  ·  mobile-first additions
   ══════════════════════════════════════════════ */

/* Overlay shown behind the sidebar on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
}
.sidebar-overlay.active { display: block; }

/* Hamburger button inside topbar (hidden on ≥ 768px) */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 2px 6px;
    margin-right: 6px;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--body-bg); }

/* Landing page hamburger button */
.landing-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1;
    transition: background 0.15s;
}
.landing-hamburger:hover { background: var(--body-bg); }

/* Mobile nav menu for landing page */
.landing-mobile-nav {
    padding: 8px 0 4px;
    border-top: 1px solid var(--body-bg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}
.landing-mobile-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
}
.landing-mobile-nav a:hover { background: var(--body-bg); color: var(--primary); }
.landing-mobile-nav .lang-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ── md breakpoint (< 768 px) ─────────────────── */
@media (max-width: 767.98px) {
    /* Reveal hamburger toggle */
    .sidebar-toggle { display: inline-flex; align-items: center; }

    /* Sidebar slides off-canvas by default */
    .sidebar {
        transform: translateX(-260px);
        transition: transform 0.25s ease;
        width: 260px;
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    }

    /* Main wrapper fills full width when sidebar is hidden */
    .main-wrapper.with-sidebar { margin-left: 0; }

    /* Topbar */
    .topbar { padding: 12px 16px; }
    .topbar .page-title { font-size: 15px; }

    /* Content area */
    .content-area { padding: 16px; }

    /* Stat cards slightly more compact */
    .stat-card  { padding: 16px; gap: 12px; }
    .stat-icon  { width: 40px; height: 40px; font-size: 19px; }
    .stat-value { font-size: 22px; }

    /* Card header filter forms wrap nicely */
    .card-header form.d-flex { flex-wrap: wrap; }
    .card-header form .input-group { max-width: 100% !important; }
}

/* ── sm breakpoint (< 576 px) ─────────────────── */
@media (max-width: 575.98px) {
    .content-area { padding: 12px; }
    .topbar        { padding: 10px 12px; }
    .stat-value    { font-size: 19px; }

    /* Landing: hide desktop nav links, show hamburger */
    .landing-nav-desktop { display: none !important; }
    .landing-hamburger   { display: inline-flex; align-items: center; }

    /* Hero section less padding */
    .hero { padding: 60px 0 48px; }

    /* Pricing cards full-width on phones */
    .pricing .row > [class*="col-"] { width: 100%; }

    /* Stats bar compact on mobile */
    .stats-bar-value { font-size: 28px; }
    .stats-bar-label { font-size: 12px; }
    .stats-bar-item  { padding: 8px 10px; }
}
