/*
 * tailwind_admin.css — Tailwind-inspired redesign of the entire admin panel.
 * Replaces style.css. All existing PHP view class names are preserved so no
 * view files need editing. Inter font, slate color palette, rounded cards.
 *
 * @author Jefferson Brown Esquivel
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800&display=swap');

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

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    width: 240px;
    height: 100vh;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
    z-index: 100;
}

.sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: #0f172a; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.sidebar h2 {
    color: #38bdf8;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0 0 4px;
    padding: 0 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.sidebar a:hover {
    background: #1e293b;
    color: #f1f5f9;
}

.sidebar hr {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 10px 8px;
}

/* ── Main content area ─────────────────────────────────────────────────── */
.main {
    margin-left: 240px;
    padding: 28px 32px;
    min-height: 100vh;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card-accent-yellow { border-left: 4px solid #f59e0b; }
.card-accent-green  { border-left: 4px solid #16a34a; }
.card-accent-blue   { border-left: 4px solid #2563eb; }
.card-accent-red    { border-left: 4px solid #dc2626; }
.card-muted         { background: #f8fafc; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2563eb;
    color: white;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover  { background: #1d4ed8; }
.btn:active { transform: scale(.98); }

.btn-sm { padding: 5px 11px !important; font-size: 12px !important; }

.btn-danger  { background: #dc2626; }
.btn-danger:hover  { background: #b91c1c; }

.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; }

.btn-primary { background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }

.btn-export  { background: #16a34a; color: white; }
.btn-export:hover { background: #15803d; }

/* ── Inputs ────────────────────────────────────────────────────────────── */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: white;
}

input[type="file"] {
    padding: 7px;
    font-size: 13px;
    background: white;
}

/* ── Tables ────────────────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13.5px;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    white-space: nowrap;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
    text-align: center;
}

tr:hover td { background: rgba(248,250,252,0.7); }
tr:last-child td { border-bottom: none; }

.data-table th,
.data-table td {
    text-align: center;
    vertical-align: middle;
}

.table-wrap { overflow-x: auto; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    display: none;
}

.alert-success {
    background: #f0fdf4;
    color: #14532d;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #78350f;
    border-color: #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ── Modals ────────────────────────────────────────────────────────────── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 24px 16px;
    backdrop-filter: blur(2px);
}

.popup-box {
    background: white;
    width: 460px;
    max-width: 100%;
    margin: 60px auto;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
    position: relative;
}

/* ── Status classes ────────────────────────────────────────────────────── */
.status-active    { color: #16a34a; font-weight: 600; }
.status-blocked   { color: #dc2626; font-weight: 600; }
.status-pending   { color: #d97706; font-weight: 600; }
.status-suspended { color: #64748b; font-weight: 600; }
.status-maintenance { color: #b45309; font-weight: 600; }

/* ── Status badges (inline SVG pill) ──────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.status-badge svg { flex-shrink: 0; }

.status-badge-online   { background: #dcfce7; color: #15803d; }
.status-badge-offline  { background: #f1f5f9; color: #64748b; }
.status-badge-enabled  { background: #dbeafe; color: #1d4ed8; }
.status-badge-disabled { background: #fee2e2; color: #b91c1c; }

/* ── Customer badges ───────────────────────────────────────────────────── */
.customer-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.customer-badge-active    { background: #dcfce7; color: #166534; }
.customer-badge-blocked   { background: #fee2e2; color: #991b1b; }
.customer-badge-pending   { background: #fef3c7; color: #92400e; }
.customer-badge-suspended { background: #f1f5f9; color: #475569; }
.customer-badge-approved  { background: #dbeafe; color: #1e40af; }

/* ── Badge counter ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
    min-width: 20px;
}

/* Pending notification badge (sidebar) */
.pending-badge {
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/* ── Router badge ──────────────────────────────────────────────────────── */
.router-badge {
    font-size: 11.5px;
    background: rgba(30,58,95,0.7);
    color: #93c5fd;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 6px 0 14px;
    word-break: break-all;
    border: 1px solid rgba(147,197,253,0.15);
}

.router-badge-none {
    color: #f87171;
    background: rgba(59,18,18,0.7);
    border-color: rgba(248,113,113,0.15);
}

/* ── Sidebar account link ──────────────────────────────────────────────── */
.sidebar-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 4px;
}
.sidebar-account-link:hover { background: #1e293b; color: #f1f5f9; }
.sidebar-account-link .acct-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #93c5fd;
    flex-shrink: 0;
}

/* ── Platform sidebar (teal) ───────────────────────────────────────────── */
.platform-sidebar {
    background: #042f2e;
    scrollbar-color: #0a4f4f #042f2e;
}
.platform-sidebar::-webkit-scrollbar-track { background: #042f2e; }
.platform-sidebar::-webkit-scrollbar-thumb { background: #0a4f4f; }
.platform-sidebar h2,
.platform-sidebar .router-badge { color: #5eead4; }
.platform-sidebar a { color: #99f6e4; }
.platform-sidebar a:hover { background: #0a4f4f; color: white; }
.platform-sidebar hr { border-color: #0a4f4f; }
.platform-sidebar .sidebar-account-link { color: #99f6e4; }
.platform-sidebar .sidebar-account-link:hover { background: #0a4f4f; }
.platform-sidebar .sidebar-account-link .acct-icon {
    background: linear-gradient(135deg, #0d6363, #0d9488);
    color: #5eead4;
}

/* ── Router tabs ───────────────────────────────────────────────────────── */
.router-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
}
.tab-btn:hover          { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
.tab-btn.active         { background: #2563eb; color: white; border-color: #2563eb; }
.tab-btn.active:hover   { background: #1d4ed8; }

/* ── Sync / status bar ─────────────────────────────────────────────────── */
.sync-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 11px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
}
.sync-time { color: #64748b; font-size: 13px; }

/* ── Status dots ───────────────────────────────────────────────────────── */
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.dot-green { background: #16a34a; }
.dot-red   { background: #dc2626; }
.dot-gray  { background: #94a3b8; }

/* ── Section header ────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* ── Page header ───────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; }

/* ── Back row ──────────────────────────────────────────────────────────── */
.back-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.back-row h1 { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; }

/* ── Filter bar ────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar input[type="search"],
.filter-bar input[type="text"] { width: 200px; margin: 0; }
.filter-bar select { width: 130px; margin: 0; }

/* ── Form layout ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}
.form-group input,
.form-group select,
.form-group textarea { width: 100%; max-width: 100%; }

.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #475569;
}
.form-check input[type="checkbox"] {
    width: 16px; min-width: 16px; max-width: 16px; height: 16px;
    margin: 0; padding: 0; cursor: pointer; accent-color: #2563eb;
}

/* ── Toggle switch ─────────────────────────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.25s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: #2563eb; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ── Settings rows ─────────────────────────────────────────────────────── */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #1e293b; }
.setting-info p  { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }

/* ── Info boxes ────────────────────────────────────────────────────────── */
.info-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
    border: 1px solid transparent;
}
.info-box-blue   { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.info-box-yellow { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.info-box-red    { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.info-box-green  { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
}
.page-info { color: #64748b; }
.page-controls { display: flex; gap: 4px; }
.page-btn {
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12.5px;
    color: #475569;
    font-family: inherit;
    transition: all 0.12s;
}
.page-btn:hover:not(:disabled) { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
.page-btn.active { background: #2563eb; color: white; border-color: #2563eb; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Sortable columns ──────────────────────────────────────────────────── */
.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable::after           { content: ' ↕'; opacity: 0.3; font-size: 10px; }
.sortable.sort-asc::after  { content: ' ↑'; opacity: 0.8; }
.sortable.sort-desc::after { content: ' ↓'; opacity: 0.8; }

/* ── Button group ──────────────────────────────────────────────────────── */
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Text utilities ────────────────────────────────────────────────────── */
.text-muted  { color: #64748b; }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 11.5px; }
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }

/* ── Code chip ─────────────────────────────────────────────────────────── */
.code-chip {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    color: #334155;
}

/* ── Migration code block ──────────────────────────────────────────────── */
.migration-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    overflow-x: auto;
    display: block;
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.card-divider { border: none; border-top: 1px solid #f1f5f9; margin: 16px 0; }

/* ── Log badges ────────────────────────────────────────────────────────── */
.log-action-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.log-event-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.log-event-success { background: #dcfce7; color: #166534; }
.log-event-failed  { background: #fee2e2; color: #991b1b; }
.log-event-logout  { background: #f1f5f9; color: #374151; }
.log-event-csrf    { background: #fef3c7; color: #92400e; }
.log-event-sql     { background: #ede9fe; color: #4c1d95; }

/* ── Export bar ────────────────────────────────────────────────────────── */
.export-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.export-bar input[type="date"] { width: auto; margin: 0; padding: 8px 10px; }

/* ── Search group ──────────────────────────────────────────────────────── */
.search-group input { width: 220px; max-width: 100%; padding: 8px 12px; margin: 0; font-size: 13px; }

/* ── Profile ───────────────────────────────────────────────────────────── */
.profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0369a1);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: white; flex-shrink: 0;
}
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile-header h2 { margin: 0 0 4px; font-size: 20px; color: #0f172a; }
.profile-header p  { margin: 0; font-size: 13px; color: #64748b; }
.profile-section { border-top: 1px solid #f1f5f9; padding-top: 20px; margin-top: 20px; }
.profile-section h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: #374151; }
.change-form { max-width: 480px; }
.code-input {
    font-size: 28px; font-weight: 700; font-family: monospace; letter-spacing: 8px;
    text-align: center; padding: 14px; border: 2px solid #2563eb; border-radius: 10px;
    width: 100%; max-width: 280px;
}

/* ── Success / error pages ─────────────────────────────────────────────── */
.success-container,
.error-container {
    display: flex; justify-content: center; align-items: center; height: 70vh;
}
.success-card,
.error-card {
    background: white; padding: 32px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center;
    max-width: 440px; width: 100%;
    border: 1px solid #e2e8f0;
}
.success-card h2, .error-card h2 { margin-bottom: 12px; color: #0f172a; font-size: 20px; }
.success-message { margin-top: 16px; padding: 14px; border-radius: 8px; background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.error-message   { margin-top: 16px; padding: 14px; border-radius: 8px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Auth pages (keep for fallback) ───────────────────────────────────── */
.auth-body    { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.auth-wrapper { min-height: 100vh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.auth-card    { background: white; width: 100%; max-width: 600px; padding: 32px; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.auth-card h2 { text-align: center; margin-bottom: 20px; }
.auth-card .btn { width: 100%; text-align: center; justify-content: center; }
.auth-link    { display: block; text-align: center; margin-top: 18px; color: #2563eb; }
.auth-brand   { text-align: center; margin-bottom: 24px; }
.auth-brand a { text-decoration: none; }
.auth-brand img { max-height: 56px; max-width: 220px; object-fit: contain; }
.auth-brand-name { font-size: 24px; font-weight: 800; color: white; letter-spacing: -0.5px; display: inline-block; }

/* ── Application tracking ──────────────────────────────────────────────── */
.tracking-number-box {
    background: #eff6ff; border: 2px solid #2563eb; border-radius: 12px;
    padding: 20px 24px; text-align: center; margin: 20px 0;
}
.tracking-number-box .tn-label {
    font-size: 11px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.tracking-number-box .tn-value {
    font-size: 26px; font-weight: 900; color: #2563eb; font-family: monospace; letter-spacing: 2px;
}
.tracking-number-box .tn-hint { font-size: 12px; color: #94a3b8; margin-top: 8px; }

.track-status-card {
    background: white; border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); padding: 28px;
    max-width: 560px; margin: 0 auto; border: 1px solid #e2e8f0;
}
.track-timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.track-timeline::before { content:''; position:absolute; left:15px; top:0; bottom:0; width:2px; background:#e2e8f0; }
.track-timeline li { display:flex; align-items:flex-start; gap:14px; padding:0 0 20px; position:relative; }
.track-timeline li:last-child { padding-bottom: 0; }
.track-dot { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:13px; font-weight:700; z-index:1; position:relative; }
.track-dot.done    { background: #16a34a; color: white; }
.track-dot.active  { background: #2563eb; color: white; }
.track-dot.pending { background: #f1f5f9; color: #94a3b8; }
.track-info h4 { margin: 4px 0; font-size: 14px; font-weight: 600; color: #0f172a; }
.track-info p  { margin: 0; font-size: 12.5px; color: #64748b; }

/* ── Customer badge variants ───────────────────────────────────────────── */
.badge-verified   { color: #16a34a; font-size: 11px; margin-left: 5px; font-weight: 700; }
.badge-unverified { color: #dc2626; font-size: 11px; margin-left: 5px; font-weight: 700; }
.badge-pending    { color: #d97706; font-size: 11px; margin-left: 5px; font-weight: 700; }
.customer-row-info { font-size: 12.5px; color: #64748b; margin-top: 2px; }

/* ── Landing page (keep as-is — these are public-facing) ──────────────── */
.lp-nav { position:sticky; top:0; z-index:100; display:flex; align-items:center; justify-content:space-between; padding:14px 40px; background:rgba(15,23,42,.95); backdrop-filter:blur(8px); }
.lp-logo { font-size:22px; font-weight:800; color:#38bdf8; letter-spacing:-.5px; }
.lp-logo img { max-height:38px; max-width:180px; object-fit:contain; vertical-align:middle; }
.lp-nav-links { display:flex; align-items:center; gap:20px; }
.lp-nav-links a { color:#cbd5e1; text-decoration:none; font-size:14px; transition:color .15s; }
.lp-nav-links a:hover { color:white; }
.lp-nav-links .lp-nav-btn { background:#2563eb; color:white !important; padding:9px 18px; border-radius:8px; font-weight:600; }
.lp-nav-links .lp-nav-btn:hover { background:#1d4ed8; }
.lp-nav-links .lp-nav-outline { border:1.5px solid #334155; color:#94a3b8 !important; padding:8px 18px; border-radius:8px; }
.lp-hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 60%,#0369a1 100%); padding:100px 40px 80px; text-align:center; color:white; }
.lp-hero h1 { font-size:clamp(2rem,5vw,3.8rem); font-weight:800; margin:0 0 20px; line-height:1.15; letter-spacing:-.5px; }
.lp-hero h1 span { color:#38bdf8; }
.lp-hero p { font-size:18px; color:#94a3b8; margin:0 auto 36px; max-width:560px; line-height:1.7; }
.lp-hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.lp-btn-lg { padding:15px 32px; border-radius:10px; font-size:16px; font-weight:700; text-decoration:none; display:inline-block; transition:all .15s; }
.lp-btn-primary { background:#2563eb; color:white; }
.lp-btn-primary:hover { background:#1d4ed8; transform:translateY(-1px); }
.lp-btn-ghost { background:rgba(255,255,255,.12); color:white; border:1.5px solid rgba(255,255,255,.25); }
.lp-btn-ghost:hover { background:rgba(255,255,255,.2); }
.lp-section { padding:80px 40px; }
.lp-section.lp-gray { background:#f8fafc; }
.lp-section h2 { text-align:center; font-size:clamp(1.5rem,3vw,2.2rem); font-weight:800; margin:0 0 48px; color:#0f172a; }
.lp-section h2 span { color:#2563eb; }
.lp-features { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; max-width:1100px; margin:0 auto; }
.lp-feature-card { background:white; padding:32px 28px; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,.07); text-align:center; border-top:4px solid #2563eb; }
.lp-icon { font-size:40px; margin-bottom:16px; }
.lp-feature-card h3 { font-size:18px; margin:0 0 10px; color:#0f172a; }
.lp-feature-card p { color:#64748b; font-size:14px; margin:0; line-height:1.6; }
.lp-plans-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:24px; max-width:1100px; margin:0 auto; }
.lp-plan-card { background:white; padding:32px 28px; border-radius:16px; box-shadow:0 4px 20px rgba(0,0,0,.08); text-align:center; transition:transform .15s; border:2px solid transparent; }
.lp-plan-card:hover { transform:translateY(-4px); border-color:#2563eb; }
.lp-plan-card h3 { font-size:18px; margin:0 0 16px; color:#0f172a; }
.lp-price { font-size:38px; font-weight:800; color:#2563eb; margin:0 0 4px; }
.lp-price span { font-size:14px; font-weight:400; color:#94a3b8; }
.lp-plan-desc { color:#64748b; font-size:13px; margin:0 0 16px; }
.lp-plan-rows { list-style:none; padding:0; margin:0 0 24px; text-align:left; }
.lp-plan-rows li { display:flex; justify-content:space-between; padding:8px 0; font-size:14px; border-bottom:1px solid #f1f5f9; color:#475569; }
.lp-plan-rows li:last-child { border:none; }
.lp-plan-rows li strong { color:#0f172a; }
.lp-plan-apply { display:block; background:#2563eb; color:white; text-decoration:none; padding:12px; border-radius:8px; font-weight:700; font-size:15px; transition:background .15s; }
.lp-plan-apply:hover { background:#1d4ed8; }
.lp-site-header { display:flex; align-items:center; gap:12px; margin-bottom:28px; max-width:1100px; margin-left:auto; margin-right:auto; }
.lp-site-header span { font-size:24px; }
.lp-site-header h3 { margin:0; font-size:1.25rem; font-weight:700; color:#0f172a; }
.lp-site-divider { flex:1; height:2px; background:#e2e8f0; border-radius:2px; }
.lp-site-group { margin-bottom:52px; }
.lp-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; max-width:860px; margin:0 auto; }
.lp-step { text-align:center; padding:20px; }
.lp-step-num { width:56px; height:56px; background:#2563eb; color:white; border-radius:50%; font-size:24px; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.lp-step h3 { margin:0 0 10px; font-size:17px; color:#0f172a; }
.lp-step p { color:#64748b; font-size:14px; margin:0; line-height:1.6; }
.lp-cta { background:linear-gradient(135deg,#1e3a8a,#0369a1); padding:80px 40px; text-align:center; color:white; }
.lp-cta h2 { font-size:clamp(1.5rem,3vw,2.5rem); margin:0 0 16px; }
.lp-cta p  { color:rgba(255,255,255,.75); margin:0 0 32px; font-size:17px; }
.lp-footer { background:#0f172a; color:#64748b; padding:28px 40px; text-align:center; font-size:13px; }
.lp-footer a { color:#94a3b8; text-decoration:none; margin:0 10px; }
.lp-footer a:hover { color:white; }
.lp-footer-links { margin-top:10px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) { .lp-features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
    .sidebar { transform: translateX(-240px); transition: transform 0.25s; }
    .main { margin-left: 0; padding: 20px; }
}
@media (max-width: 640px) {
    .lp-nav { padding: 12px 20px; }
    .lp-nav-links .lp-nav-outline { display: none; }
    .lp-hero, .lp-section, .lp-cta { padding-left: 20px; padding-right: 20px; }
    .lp-hero { padding-top: 60px; padding-bottom: 60px; }
    .lp-features { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
}
