/* ─── PAGE TRANSITIONS ─── */
#app {
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── ICONS ─── */
i.ph { display: inline-block; vertical-align: middle; }
svg[data-lucide-rendered]:not(.sidebar-link-icon) { width: 1em; height: 1em; }
.ph-spin { animation: ph-spin 1s linear infinite; }
@keyframes ph-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── ACTIVE NAV LINK ─── */
.nav-link.active { color: var(--accent); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── LOADING STATE ─── */
body.loading #app { opacity: 0.6; pointer-events: none; }
body.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    animation: loadBar 1s ease infinite;
}
@keyframes loadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── LOADER SPINNER ─── */
.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── FORM VALIDATION ─── */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.form-error {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ─── RESPONSIVE SIDEBAR TOGGLE ─── */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
}
@media (max-width: 768px) {
    .sidebar-toggle { display: block; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-content { margin-left: 0; }
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
    .finance-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .finance-stat-card {
        padding: 1rem;
    }
    .finance-stat-value {
        font-size: 1.25rem;
    }
    .finance-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .finance-header-right {
        width: 100%;
        justify-content: flex-start;
    }
    .finance-date-range {
        font-size: 0.8rem;
    }
    .finance-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    input, select, textarea, .finance-form-input {
        font-size: 16px !important;
    }
}

/* ─── FORM GROUP COMPAT ─── */
.finance-form-group {
    margin-bottom: 1.25rem;
}
.finance-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.4rem;
}
.finance-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.9rem;
    font-family: 'Noto Sans', sans-serif;
    transition: var(--transition);
    box-sizing: border-box;
}
.finance-form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.finance-form-input { resize: vertical; }
select.finance-form-input { appearance: auto; }
.finance-form-input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── FINANCE ALERT ─── */
.finance-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.finance-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}
.finance-alert-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}
.finance-alert-close:hover { color: var(--foreground); }

/* ─── FINANCE GRID 4 ─── */
.finance-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 1024px) {
    .finance-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .finance-grid-4 { grid-template-columns: 1fr; }
}

/* ─── FINANCE TABLE WRAPPER ─── */
.finance-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── ACCENT STANDALONE CLASSES ─── */
.accent-teal::before { background: #14b8a6 !important; }
.accent-blue::before { background: #3b82f6 !important; }
.accent-amber::before { background: #f59e0b !important; }
.accent-red::before { background: #ef4444 !important; }
.accent-purple::before { background: #8b5cf6 !important; }

.finance-stat-icon.teal i { color: #14b8a6; }
.finance-stat-icon.blue i { color: #3b82f6; }
.finance-stat-icon.amber i { color: #f59e0b; }
.finance-stat-icon.red i { color: #ef4444; }
.finance-stat-icon.purple i { color: #8b5cf6; }

/* ─── BADGES ─── */
.badge-admin {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-foreground);
}

/* ─── MODAL OVERLAY ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

/* ─── PAGINATION ─── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0;
    justify-content: center;
}
.pagination a, .pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--foreground);
    background: var(--card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ─── ONBOARDING STEPS ─── */
.onboarding-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.onboarding-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.onboarding-step-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.onboarding-step-subtitle {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.15rem;
}
.onboarding-submit-card {
    text-align: center;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    background: var(--secondary);
    color: var(--muted-foreground);
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.step-circle.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.step-circle.completed {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    position: relative;
}
.step-connector.active {
    background: var(--primary);
}
.step-label-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.35rem;
    font-weight: 500;
}
.step-label-text.active { color: var(--foreground); }
.step-content {
    animation: fadeIn 0.3s ease;
}
.step-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.step-btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}
.step-btn-primary:hover { background: var(--accent-hover); }
.step-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}
.step-btn-outline:hover { border-color: var(--primary); }
.required-star { color: #ef4444; margin-left: 2px; }

/* ─── CHAT WIDGET ─── */
.live-chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}
.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}
.chat-fab:hover { transform: scale(1.1); }
.chat-popup {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 360px;
    max-height: 520px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-popup.open { display: flex; }
.chat-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--primary);
    color: var(--primary-foreground);
}
.chat-popup-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.chat-avatar-icon { font-size: 1.25rem; }
.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}
.chat-popup-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--muted);
    min-height: 280px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chat-msg {
    max-width: 80%;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
}
.chat-msg.received {
    background: var(--card);
    color: var(--foreground);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-msg.sent {
    background: var(--primary);
    color: var(--primary-foreground);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chat-popup-input {
    display: flex;
    padding: 0.75rem;
    background: var(--muted);
    gap: 0.5rem;
}
.chat-popup-input input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.88rem;
    outline: none;
    font-family: 'Noto Sans', sans-serif;
    background: var(--card);
    color: var(--foreground);
}
.chat-popup-input input:focus { border-color: var(--primary); }
.chat-popup-input button {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}
.chat-popup-input button:hover { opacity: 0.9; }
.chat-icon { font-size: 1.25rem; }

/* ─── FOMO NOTIFICATIONS ─── */
.fomo-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 380px;
    animation: fomoSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
@keyframes fomoSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
.fomo-toast.fomo-hide {
    animation: fomoSlideOut 0.4s ease forwards;
}
@keyframes fomoSlideOut {
    to { opacity: 0; transform: translateX(-40px); }
}
.fomo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fomo-body { flex: 1; }
.fomo-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}
.fomo-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.2rem;
}
.fomo-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: #34d399; }
.status-dot.offline { background: var(--muted-foreground); }

/* ─── VIRTUAL ACCOUNTS ─── */
.virtual-accounts-container { padding: 1rem 0; }
.va-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.va-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}
.va-card:hover { border-color: var(--primary); }
.va-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.va-name { font-weight: 600; font-size: 1rem; }
.va-number {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    font-family: monospace;
    margin-top: 0.15rem;
}
.va-meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}
.va-badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.va-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.payouts-container { padding: 1rem 0; }
.payouts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.payouts-table { width: 100%; }
.payout-status {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.fincra-settings { max-width: 600px; }
.config-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.config-list .config-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* ─── BLOG / KNOWLEDGEBASE ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.blog-card-body { padding: 1.25rem; }
.blog-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.blog-category {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--foreground);
    text-decoration: none;
    transition: var(--transition);
}
.blog-category:hover { background: var(--primary); color: var(--primary-foreground); }
.blog-meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}
.blog-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.blog-search input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--foreground);
    font-family: 'Noto Sans', sans-serif;
}
.blog-search input:focus { border-color: var(--primary); outline: none; }
.blog-page, .kb-page { padding: 1.5rem 0; }
.blog-article, .kb-article { max-width: 800px; margin: 0 auto; }
.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.kb-count {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.kb-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.article-content {
    line-height: 1.8;
    font-size: 0.95rem;
}
.article-content p { margin-bottom: 1rem; }
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.article-excerpt {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
}
.article-meta {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.popular-section, .related-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ─── TICKETS ─── */
.ticket-page { max-width: 800px; }
.ticket-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
}
.ticket-info-icon {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.ticket-info-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.ticket-info-desc {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}
.ticket-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ─── CONTACT ─── */
.contact-page { max-width: 800px; }
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ─── MISC ─── */
.preview-schedule { margin-top: 1rem; }
.rates-page { max-width: 1000px; margin: 0 auto; }
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    background: var(--muted);
    border-color: var(--primary);
}
.settings-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.create-va-form { max-width: 500px; }

/* ─── MOMO STEP CARDS ─── */
.momo-step-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius-sm);
}
.momo-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.momo-step-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.momo-step-desc {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* ─── INPUT ICON WRAPPER ─── */
.input-icon-wrap {
    position: relative;
}
.input-icon-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--muted-foreground);
    z-index: 1;
    pointer-events: none;
    font-size: 0.9rem;
}
.input-icon-prefix i {
    font-size: 1.1rem;
}
input.finance-form-input.input-with-icon {
    padding-left: 2.4rem;
}

/* ─── PRINT ─── */
@media print {
    .navbar, .whatsapp-float, .footer, .sidebar, .sidebar-topbar,
    .chat-fab, .live-chat-widget, .fomo-toast, #toast-container { display: none !important; }
    body { background: white; color: black; }
    .sidebar-main { margin-left: 0 !important; }
}

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-consent-text { flex: 1; min-width: 280px; }
.cookie-consent-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; }
.cookie-consent-text p { font-size: 0.82rem; color: var(--muted-foreground); line-height: 1.5; margin: 0; }
.cookie-consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }
.cookie-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    transition: all 0.2s;
    font-family: 'Noto Sans', sans-serif;
    white-space: nowrap;
}
.cookie-btn:hover { border-color: var(--primary); }
.cookie-btn-accept {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.cookie-btn-accept:hover { opacity: 0.9; }
.cookie-btn-essential { border-color: var(--border); }
.cookie-settings {
    max-width: 1200px;
    margin: 0.75rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.cookie-settings h4 { font-size: 0.9rem; margin: 0 0 0.75rem; }
.cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    cursor: pointer;
}
.cookie-setting-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    cursor: pointer;
}
.cookie-badge-required {
    font-size: 0.7rem;
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    font-weight: 400;
}
@media (max-width: 640px) {
    .cookie-consent-content { flex-direction: column; align-items: stretch; }
    .cookie-consent-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; text-align: center; }
}

/* ─── INSTALLER ─── */
.installer-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    padding: 2rem;
}
.installer-card {
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.installer-card h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.installer-card .subtitle { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.5rem; }
.installer-field, .installer-step { margin-bottom: 1.25rem; }
.installer-field label, .installer-step label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.installer-field input, .installer-field select, .installer-step input, .installer-step select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.installer-field input:focus, .installer-step input:focus { border-color: var(--primary); outline: none; }
.installer-check { margin: 1rem 0; }
.installer-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}
.installer-check-item .check-icon { font-size: 1rem; }
.installer-check-item.pass { color: var(--primary); }
.installer-check-item.fail { color: #ef4444; }
.installer-check-item.warn { color: #f59e0b; }
.installer-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    background: var(--primary);
    color: var(--primary-foreground);
    transition: all 0.2s;
}
.installer-btn:hover { opacity: 0.9; }
.installer-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.installer-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.installer-success {
    text-align: center;
    padding: 2rem 1rem;
}
.installer-success .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.installer-success h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.installer-success p { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.5rem; }
.installer-check-value { color: var(--muted-foreground); font-size: 0.8rem; }

/* ─── Stepper ─── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}
.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}
.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--muted);
    color: var(--muted-foreground);
    border: 2px solid var(--border);
    transition: all 0.3s;
}
.stepper-step.active .stepper-circle {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.stepper-step.current .stepper-circle {
    box-shadow: 0 0 0 4px rgba(118,185,0,0.2);
}
.stepper-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 500;
    white-space: nowrap;
}
.stepper-step.active .stepper-label {
    color: var(--foreground);
}
.stepper-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 1.2rem;
    transition: background 0.3s;
}
.stepper-step.active ~ .stepper-line {
    background: var(--border);
}
