* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.sidebar {
    position: fixed;
    width: 240px;
    height: 100vh;
    background: #0f172a;
    color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
    color: #38bdf8;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 5px;
}

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

.sidebar hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 20px 0;
}

.main {
    margin-left: 240px;
    padding: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

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

.status-active {
    color: #16a34a;
    font-weight: bold;
}

.status-blocked {
    color: #7f1d1d;
    font-weight: bold;
}

.status-pending {
    color: #c2410c;
    font-weight: bold;
}

.status-suspended {
    color: #f87171;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
}

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

input, select {
    width: 100%;
    max-width: 420px;
    padding: 11px;
    margin-top: 6px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #0f172a;
    color: white;
}

td, th {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.alert {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

.popup-box {
    background: white;
    width: 400px;
    max-width: 90%;
    margin: 12% auto;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
}

/* ===== SUCCESS PAGE ===== */

.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.success-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.success-card h2 {
    margin-bottom: 10px;
}

.success-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
}

/* ===== ERROR PAGE ===== */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.error-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.error-card h2 {
    margin-bottom: 10px;
}

.error-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
}

/* auth login page */

.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;
    /* margin: auto; */
    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;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 18px;
}

.error-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.error-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* router badge in admin sidebar */
.router-badge {
    font-size: 12px;
    background: #1e3a5f;
    color: #93c5fd;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    word-break: break-all;
}

.router-badge-none {
    color: #f87171;
    background: #3b1212;
}

/* for all forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
}

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

.tab-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all .15s;
}

.tab-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.tab-btn.active:hover {
    background: #1d4ed8;
}

/* ── Sync bar ─────────────────────────────────────────────── */
.sync-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
}

.sync-time {
    color: #64748b;
}

/* ── Status dots ──────────────────────────────────────────── */
.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    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: 12px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* ── 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: .25s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .25s;
}

.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: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #0f172a;
}

.setting-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ── Customer login verified notice ──────────────────────── */
.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

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

/* ── Sortable column headers ──────────────────────────────── */
.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable::after           { content: ' ↕'; opacity: .35; font-size: 11px; }
.sortable.sort-asc::after  { content: ' ↑'; opacity: 1; }
.sortable.sort-desc::after { content: ' ↓'; opacity: 1; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
}

.page-info { color: #64748b; }

.page-controls { display: flex; gap: 4px; }

.page-btn {
    padding: 5px 11px;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    transition: background .12s;
}

.page-btn:hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; }
.page-btn.active { background: #2563eb; color: white; border-color: #2563eb; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Status maintenance ───────────────────────────────────── */
.status-maintenance { color: #b45309; font-weight: bold; }

/* ════════════════════════════════════════════════════════════
   AUTH LAYOUT — branding above login card
═══════════════════════════════════════════════════════════ */

.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: -.5px;
    display: inline-block;
}

/* ════════════════════════════════════════════════════════════
   ADMIN PAGE LAYOUT UTILITIES
═══════════════════════════════════════════════════════════ */

/* Page header row: title left, action right */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 { margin: 0; }

/* Back button + title row */
.back-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.back-row h1 { margin: 0; }

/* Overflow wrapper for wide tables */
.table-wrap { overflow-x: auto; }

/* Inline button group (inside a table cell) */
.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Small button variant */
.btn-sm { padding: 5px 11px !important; font-size: 12px !important; }

/* Search / filter bar above a table */
.filter-bar {
    display: flex;
    gap: 10px;
    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; }

/* Info / hint boxes */
.info-box {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.info-box-blue   { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }
.info-box-yellow { background: #fef3c7; border: 1px solid #fbbf24; color: #92400e; }
.info-box-red    { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.info-box-green  { background: #dcfce7; border: 1px solid #86efac; color: #166534; }

/* Card accent borders */
.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; }

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

/* Inline code / tag chip */
.code-chip {
    font-family: monospace;
    font-size: 12px;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
}

/* Horizontal rule divider inside cards */
.card-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

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

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

/* Status badge variants */
.badge-verified   { color: #16a34a; font-size: 11px; margin-left: 6px; }
.badge-unverified { color: #dc2626; font-size: 11px; margin-left: 6px; }
.badge-pending    { color: #d97706; font-size: 11px; margin-left: 6px; }

/* Pending admin badge (sidebar) */
.pending-badge {
    background: #dc2626;
    color: white;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: bold;
}

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

/* ════════════════════════════════════════════════════════════
   LANDING PAGE  —  All .lp-* styles (moved from inline <style>)
═══════════════════════════════════════════════════════════ */

/* Navigation */
.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;
}

/* Hero */
.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); }

/* Sections */
.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; }

/* Features */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 960px;
    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; }

/* Plans */
.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; }

/* Site location header in plans section */
.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; }

/* Steps */
.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; }

/* CTA section */
.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; }

/* Footer */
.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; }

/* Landing responsive */
@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; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
}

