/* CertGuard Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --cg-navy: #0c1f33;
    --cg-navy-light: #152a42;
    --cg-teal: #0d9488;
    --cg-teal-dark: #0f766e;
    --cg-teal-light: #ccfbf1;
    --cg-amber: #ea580c;
    --cg-amber-light: #fff7ed;
    --cg-surface: #ffffff;
    --cg-bg: #f4f7fb;
    --cg-bg-alt: #e8eef5;
    --cg-text: #1e293b;
    --cg-text-muted: #64748b;
    --cg-border: #e2e8f0;
    --cg-success: #059669;
    --cg-success-bg: #ecfdf5;
    --cg-warning: #d97706;
    --cg-warning-bg: #fffbeb;
    --cg-danger: #dc2626;
    --cg-danger-bg: #fef2f2;
    --cg-info: #0284c7;
    --cg-info-bg: #f0f9ff;
    --cg-radius: 12px;
    --cg-radius-lg: 16px;
    --cg-radius-xl: 24px;
    --cg-shadow: 0 1px 3px rgba(12, 31, 51, 0.06), 0 4px 12px rgba(12, 31, 51, 0.04);
    --cg-shadow-md: 0 4px 6px rgba(12, 31, 51, 0.05), 0 10px 24px rgba(12, 31, 51, 0.08);
    --cg-shadow-lg: 0 8px 16px rgba(12, 31, 51, 0.06), 0 20px 40px rgba(12, 31, 51, 0.1);
    --cg-transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--cg-text);
    background-color: var(--cg-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

body.layout-public { background: var(--cg-surface); }
body.layout-app { background: var(--cg-bg); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cg-navy);
}

a { color: var(--cg-teal); text-decoration: none; transition: color var(--cg-transition); }
a:hover { color: var(--cg-teal-dark); }

/* ── Public Navbar ── */
.navbar-public {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cg-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-public .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--cg-navy) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-public .nav-link {
    color: var(--cg-text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--cg-transition);
}

.navbar-public .nav-link:hover {
    color: var(--cg-navy) !important;
    background: var(--cg-bg);
}

/* ── App Topbar ── */
.app-topbar {
    background: var(--cg-navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(12, 31, 51, 0.15);
}

.app-topbar .navbar-brand {
    font-weight: 800;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
}

.app-topbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all var(--cg-transition);
}

.app-topbar .nav-link:hover,
.app-topbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.app-topbar .user-badge {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Sidebar ── */
.app-layout { display: flex; min-height: calc(100vh - 56px); }

.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--cg-surface);
    border-right: 1px solid var(--cg-border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.app-sidebar .sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cg-text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.app-sidebar .sidebar-label:first-child { margin-top: 0; }

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--cg-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: all var(--cg-transition);
}

.app-sidebar .nav-link i { font-size: 1.15rem; width: 1.25rem; text-align: center; }

.app-sidebar .nav-link:hover {
    background: var(--cg-bg);
    color: var(--cg-navy);
}

.app-sidebar .nav-link.active {
    background: var(--cg-teal-light);
    color: var(--cg-teal-dark);
    font-weight: 600;
}

.app-sidebar .nav-link.active i { color: var(--cg-teal); }

.app-sidebar .sidebar-cta {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-navy-light) 100%);
    border-radius: var(--cg-radius);
    color: #fff;
}

.app-sidebar .sidebar-cta p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    color: #fff;
}

.app-sidebar .sidebar-cta .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
}

.app-main {
    flex: 1;
    padding: 1.75rem 2rem;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 56px;
        z-index: 1020;
        transition: left 0.3s ease;
        box-shadow: var(--cg-shadow-lg);
    }
    .app-sidebar.show { left: 0; }
    .app-main { padding: 1.25rem 1rem; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(12, 31, 51, 0.4);
        z-index: 1015;
    }
    .sidebar-overlay.show { display: block; }
}

/* ── Buttons ── */
.btn {
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--cg-transition);
    border: none;
}

.btn-primary {
    background: var(--cg-teal);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--cg-teal-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-amber {
    background: var(--cg-amber);
    color: #fff;
}
.btn-amber:hover {
    background: #c2410c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--cg-teal);
    color: var(--cg-teal);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--cg-teal);
    color: #fff;
    border-color: var(--cg-teal);
}

.btn-navy {
    background: var(--cg-navy);
    color: #fff;
}
.btn-navy:hover {
    background: var(--cg-navy-light);
    color: #fff;
}

.btn-light-custom {
    background: #fff;
    color: var(--cg-navy);
    font-weight: 700;
}
.btn-light-custom:hover {
    background: var(--cg-bg);
    color: var(--cg-navy);
    transform: translateY(-1px);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}
.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.btn-success { background: var(--cg-success); border-color: var(--cg-success); }
.btn-danger { background: var(--cg-danger); border-color: var(--cg-danger); }

.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 8px; }

/* ── Cards ── */
.card {
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    box-shadow: var(--cg-shadow);
    background: var(--cg-surface);
    transition: box-shadow var(--cg-transition), transform var(--cg-transition);
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--cg-shadow-md);
}

.card-body { padding: 1.5rem; }

/* ── Stat Cards ── */
.stat-card {
    border-radius: var(--cg-radius-lg);
    padding: 1.25rem 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.15;
    background: currentColor;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
}

.stat-valid { background: var(--cg-success-bg); color: var(--cg-success); }
.stat-valid .stat-icon { background: rgba(5, 150, 105, 0.15); }

.stat-expiring { background: var(--cg-warning-bg); color: var(--cg-warning); }
.stat-expiring .stat-icon { background: rgba(217, 119, 6, 0.15); }

.stat-expired { background: var(--cg-danger-bg); color: var(--cg-danger); }
.stat-expired .stat-icon { background: rgba(220, 38, 38, 0.15); }

.stat-total { background: var(--cg-info-bg); color: var(--cg-info); }
.stat-total .stat-icon { background: rgba(2, 132, 199, 0.15); }

/* ── Status Badges ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-valid { background: var(--cg-success-bg); color: var(--cg-success); }
.status-expiring_soon { background: var(--cg-warning-bg); color: var(--cg-warning); }
.status-expired { background: var(--cg-danger-bg); color: var(--cg-danger); }

/* ── Forms ── */
.form-control, .form-select {
    border: 1.5px solid var(--cg-border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color var(--cg-transition), box-shadow var(--cg-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--cg-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cg-text);
    margin-bottom: 0.4rem;
}

.form-card {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-xl);
    box-shadow: var(--cg-shadow-md);
    padding: 2rem;
}

/* ── Tables ── */
.table-card {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    overflow: hidden;
    box-shadow: var(--cg-shadow);
}

.table-card .table { margin-bottom: 0; }

.table-card .table thead th {
    background: var(--cg-bg);
    border-bottom: 1px solid var(--cg-border);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cg-text-muted);
    padding: 0.85rem 1.25rem;
}

.table-card .table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--cg-border);
    font-size: 0.9rem;
}

.table-card .table tbody tr:last-child td { border-bottom: none; }
.table-card .table tbody tr:hover { background: var(--cg-bg); }

/* ── Alerts ── */
.alert {
    border-radius: var(--cg-radius);
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success { background: var(--cg-success-bg); color: #065f46; }
.alert-danger { background: var(--cg-danger-bg); color: #991b1b; }
.alert-warning { background: var(--cg-warning-bg); color: #92400e; }
.alert-info { background: var(--cg-info-bg); color: #075985; }

/* ── Page Headers ── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1, .page-header h2 {
    margin: 0;
    font-size: 1.65rem;
}

.page-header .subtitle {
    color: var(--cg-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, var(--cg-navy) 0%, #1a3a5c 50%, var(--cg-teal-dark) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-section h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-section .hero-lead {
    font-size: 1.15rem;
    opacity: 0.88;
    line-height: 1.7;
    max-width: 520px;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats .hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.hero-stats .hero-stat span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ── Feature Cards ── */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--cg-radius-lg);
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    height: 100%;
    transition: all var(--cg-transition);
}

.feature-card:hover {
    border-color: var(--cg-teal);
    box-shadow: var(--cg-shadow-md);
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--cg-teal-light);
    color: var(--cg-teal);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--cg-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Pricing Cards ── */
.pricing-card {
    border-radius: var(--cg-radius-xl);
    border: 2px solid var(--cg-border);
    padding: 2rem;
    height: 100%;
    background: var(--cg-surface);
    transition: all var(--cg-transition);
    position: relative;
}

.pricing-card:hover { box-shadow: var(--cg-shadow-md); }

.pricing-card.featured {
    border-color: var(--cg-teal);
    box-shadow: var(--cg-shadow-md);
    transform: scale(1.03);
}

.pricing-card .plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cg-teal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card .plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--cg-navy);
    line-height: 1;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cg-text-muted);
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-card .plan-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-card .plan-features li i {
    color: var(--cg-teal);
    font-size: 1rem;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-tag {
    display: inline-block;
    background: var(--cg-teal-light);
    color: var(--cg-teal-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--cg-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── FAQ ── */
.faq-section .accordion-item {
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cg-navy);
    padding: 1.1rem 1.25rem;
    background: var(--cg-surface);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--cg-teal-light);
    color: var(--cg-teal-dark);
    box-shadow: none;
}

.faq-section .accordion-body {
    font-size: 0.9rem;
    color: var(--cg-text-muted);
    padding: 0 1.25rem 1.25rem;
}

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-teal-dark) 100%);
    border-radius: var(--cg-radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
}

.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── Auth Pages ── */
.auth-wrapper {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, var(--cg-bg) 0%, var(--cg-surface) 100%);
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.auth-card-wide { max-width: 520px; }

.auth-card .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--cg-navy);
}

.auth-card h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.35rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--cg-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--cg-surface);
    border: 2px dashed var(--cg-border);
    border-radius: var(--cg-radius-xl);
}

.empty-state img, .empty-state svg {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--cg-text-muted);
    margin-bottom: 1.5rem;
}

/* ── Detail Card ── */
.detail-card .detail-row {
    display: flex;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cg-border);
}

.detail-card .detail-row:last-child { border-bottom: none; }

.detail-card .detail-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cg-text-muted);
    width: 160px;
    flex-shrink: 0;
}

.detail-card .detail-value {
    font-size: 0.9rem;
    color: var(--cg-text);
}

/* ── Filter Bar ── */
.filter-bar {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cg-shadow);
}

/* ── Tabs ── */
.nav-tabs-cg {
    border-bottom: 2px solid var(--cg-border);
    gap: 0.25rem;
}

.nav-tabs-cg .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--cg-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
}

.nav-tabs-cg .nav-link:hover { color: var(--cg-navy); background: var(--cg-bg); }

.nav-tabs-cg .nav-link.active {
    color: var(--cg-teal);
    border-bottom-color: var(--cg-teal);
    background: transparent;
}

/* ── Footer ── */
.footer-public {
    background: var(--cg-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 2rem;
}

.footer-public h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-public a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color var(--cg-transition);
}

.footer-public a:hover { color: #fff; }

.footer-public .footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-public .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.footer-app {
    background: var(--cg-surface);
    border-top: 1px solid var(--cg-border);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--cg-text-muted);
}

.footer-app a { color: var(--cg-teal); text-decoration: none; }
.footer-app a:hover { text-decoration: underline; }

/* ── Password Strength ── */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--cg-border);
    margin-top: 0.5rem;
    overflow: hidden;
    transition: all var(--cg-transition);
}

.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.strength-weak .strength-bar { width: 33%; background: var(--cg-danger); }
.strength-medium .strength-bar { width: 66%; background: var(--cg-warning); }
.strength-strong .strength-bar { width: 100%; background: var(--cg-success); }

.strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Reminder Pills ── */
.reminder-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reminder-pills .form-check {
    background: var(--cg-bg);
    border: 1.5px solid var(--cg-border);
    border-radius: 20px;
    padding: 0.4rem 0.85rem 0.4rem 2rem;
    margin: 0;
    transition: all var(--cg-transition);
}

.reminder-pills .form-check:has(input:checked) {
    background: var(--cg-teal-light);
    border-color: var(--cg-teal);
}

.reminder-pills .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Trial Banner ── */
.trial-banner {
    background: linear-gradient(90deg, var(--cg-warning-bg) 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--cg-radius);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #92400e;
}

.trial-banner.danger {
    background: linear-gradient(90deg, var(--cg-danger-bg) 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #991b1b;
}

.trial-banner i { font-size: 1.25rem; }

/* ── Subscription Cards ── */
.plan-current-card {
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-navy-light) 100%);
    color: #fff;
    border-radius: var(--cg-radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.plan-current-card h5 { color: #fff; margin-bottom: 0.25rem; }
.plan-current-card p { opacity: 0.8; margin: 0; font-size: 0.9rem; }

/* ── Utilities ── */
.text-teal { color: var(--cg-teal) !important; }
.text-navy { color: var(--cg-navy) !important; }
.bg-section { background: var(--cg-bg); }
.bg-section-alt { background: var(--cg-bg-alt); }

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    opacity: 0.6;
}

.hero-preview-img {
    max-height: 380px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.navbar-public .navbar-toggler {
    border-color: var(--cg-border);
    padding: 0.4rem 0.6rem;
}

.navbar-public .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* ── Legal Pages ── */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--cg-shadow);
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--cg-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.legal-content h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--cg-navy);
}

.legal-content p,
.legal-content li {
    color: var(--cg-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content li { margin-bottom: 0.35rem; }

.legal-content a { color: var(--cg-teal); font-weight: 500; }

@media (max-width: 767.98px) {
    .legal-content { padding: 1.5rem; }
}

/* ── Admin Console ── */
.admin-topbar {
    background: linear-gradient(90deg, #0c1f33 0%, #1e293b 100%);
    border-bottom: 3px solid var(--cg-amber);
}

.admin-nav-badge {
    display: inline-block;
    background: var(--cg-amber);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.admin-badge-sidebar {
    background: var(--cg-amber-light);
    color: var(--cg-amber);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.admin-sidebar .nav-link.active {
    background: #fff7ed;
    color: var(--cg-amber);
}

.admin-sidebar .nav-link.active i { color: var(--cg-amber); }

.status-badge.status-trial,
.status-badge.status-cancelled,
.status-badge.status-expired { background: var(--cg-danger-bg); color: var(--cg-danger); }
.status-badge.status-active { background: var(--cg-success-bg); color: var(--cg-success); }

/* ── 404 Error Page ── */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.error-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: var(--cg-radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--cg-shadow-md);
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--cg-teal);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.error-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
