/* ===== Steadfast – Production-level UI ===== */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --primary: #000;
    --primary-dark: #0a0a0a;
    --primary-light: #1a1a1a;
    --accent: #333;
    --accent-hover: #000;
    --success: #047857;
    --success-bg: #d1fae5;
    --error: #b91c1c;
    --error-bg: #fee2e2;
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --info: #0e7490;
    --info-bg: #cffafe;
    --neutral-900: #0f172a;
    --neutral-700: #334155;
    --neutral-500: #64748b;
    --neutral-300: #cbd5e1;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --radius: 10px;
    --radius-lg: 14px;
    --sidebar-w: 260px;
}

* { box-sizing: border-box; }
body {
    font-family: var(--font);
    margin: 0;
    padding: 0;
    background: var(--neutral-100);
    color: var(--neutral-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* গ্লোবাল লোডার */
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.global-loader.active {
    display: flex;
    pointer-events: auto;
    opacity: 1;
}
.global-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
}
.global-loader-box {
    position: relative;
    background: #fff;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 200px;
}
.global-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--neutral-200, #e2e8f0);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.global-loader-text { display: none; }

/* লগইন পেজ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--neutral-100) 0%, #e2e8f0 50%, var(--neutral-100) 100%);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-brand {
    text-align: center;
    margin-bottom: 32px;
}
.login-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.login-tagline {
    color: var(--neutral-500);
    font-size: 0.9375rem;
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.55;
}
.login-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 680px;
    width: 100%;
}
.login-card { margin-bottom: 0; box-shadow: var(--shadow-md); border: 1px solid var(--neutral-300); }

/* অ্যাপ লেআউট */
.app-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    transition: width 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}
/* PC: hamburger toggles sidebar collapse */
@media (min-width: 769px) {
    .app-wrap .sidebar:not(.open) {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-shadow: none;
        overflow: hidden;
    }
}
.sidebar-user {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 16px;
}
.sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
}
.sidebar-name { font-size: 0.9375rem; font-weight: 600; word-break: break-all; }
.sidebar-id { font-size: 0.8125rem; opacity: 0.85; margin-top: 4px; }
.sidebar-menu-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    padding: 0 20px 10px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    margin: 0 8px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-link.active {
    background: var(--primary-light);
    color: #fff;
    font-weight: 600;
    border-left-color: #fff;
}
.sidebar-icon { width: 20px; text-align: center; font-size: 1rem; opacity: 0.95; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-header {
    background: #fff;
    border-bottom: 1px solid var(--neutral-300);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    flex-shrink: 0;
}
.header-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--neutral-700);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease;
}
.header-toggle:hover { background: var(--neutral-100); color: var(--primary); }
.header-toggle i { pointer-events: none; }
.header-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-logo-icon { color: var(--neutral-700); font-size: 1.2rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-check-balance {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-check-balance:hover { background: var(--primary-light); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.header-logout {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--neutral-300);
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.header-logout:hover { background: var(--neutral-50); border-color: var(--neutral-700); }

.content-area {
    flex: 1;
    padding: 32px 28px;
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    background: linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    min-height: 60vh;
}

/* টাইপোগ্রাফি */
h1 { font-size: 1.75rem; font-weight: 700; color: var(--neutral-900); margin: 0 0 6px 0; letter-spacing: -0.02em; }
h2 { font-size: 1.125rem; font-weight: 600; color: var(--neutral-900); margin: 0 0 12px 0; }
.page-subtitle { color: var(--neutral-500); font-size: 0.9375rem; margin: 0 0 24px 0; }
.dashboard-section { margin-bottom: 32px; }
.section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--neutral-300);
}

/* সারসংক্ষেপ কার্ড */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}
.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-300);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.summary-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.summary-label { font-size: 0.875rem; color: var(--neutral-500); line-height: 1.4; }
.summary-badge {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    width: fit-content;
}
.badge-yellow { background: var(--warn-bg); color: var(--warn); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--error-bg); color: var(--error); }

.consign-cat-card { cursor: pointer; user-select: none; }
.summary-card-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 52, 96, 0.25);
}

/* Dashboard courier snapshot */
.subsection-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin: 24px 0 12px 0;
}
.dash-official-grid .summary-cards {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}
.dash-official-cell .summary-badge { font-size: 1.25rem; }
.dash-mini-cards { margin-top: 8px; }
.dash-table-wrap { margin-top: 8px; }
.dash-table-wrap .card { padding: 0; overflow: hidden; }
.dash-police-line {
    font-size: 0.9375rem;
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.5;
}
.dash-police-line a { color: var(--info); font-weight: 600; }
.dash-lookup-card { margin-top: 8px; }
.dash-lookup-result { margin-top: 16px; }
.dash-lookup-result .card { margin: 0; }
.empty-hint { color: var(--neutral-500); font-size: 0.875rem; margin: 0; }
.loading-text { color: var(--neutral-500); font-size: 0.875rem; margin: 0; }

.consignments-filters { margin-bottom: 1rem; }
.consignments-pager {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.consign-page-info { font-size: 0.875rem; color: var(--neutral-500); }

/* ডাটা কার্ড */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.data-card {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-300);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.data-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.data-card-label { font-size: 0.875rem; color: var(--neutral-500); }
.data-card-value { font-size: 1.375rem; font-weight: 700; color: var(--neutral-900); min-height: 1.4em; }

/* কুইক অ্যাকশন */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-300);
    text-decoration: none;
    color: var(--neutral-900);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.quick-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.quick-card-icon {
    font-size: 1.75rem;
    color: var(--neutral-700);
}

/* ব্যালেন্স কার্ড */
.balance-card {
    background: var(--primary);
    color: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: none;
}
.balance-card .label { font-size: 0.875rem; opacity: 0.9; }
.balance-card .amount { font-size: 2.25rem; font-weight: 700; margin: 6px 0 0 0; letter-spacing: -0.02em; }

/* কার্ড ও ফর্ম */
.card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-300);
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 1.0625rem; margin-bottom: 14px; }
.card.empty-state {
    text-align: center;
    padding: 48px 32px;
}
.empty-state-icon {
    font-size: 3rem;
    color: var(--neutral-300);
    margin-bottom: 16px;
    display: block;
}
.empty-state-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--neutral-500);
}
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--neutral-700); font-size: 0.9375rem; }
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.2s ease;
}
button:hover { background: var(--primary-dark); }
button:disabled { opacity: 0.65; cursor: not-allowed; }
button.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
button.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    top: 50%; left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--neutral-300);
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover { background: var(--neutral-50); border-color: var(--primary); }

/* Facebook Ad Campaigns page */
.fb-ads-page { max-width: 960px; }
.fb-ads-header { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--neutral-300); }
.fb-ads-header-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: linear-gradient(135deg, var(--primary) 0%, var(--neutral-700) 100%); color: #fff; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.fb-ads-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px; color: var(--neutral-900); letter-spacing: -0.02em; }
.fb-ads-subtitle { margin: 0; font-size: 0.9375rem; color: var(--neutral-500); max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.section-title-icon { margin-right: 8px; opacity: 0.8; color: var(--primary); }
.fb-ads-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .fb-ads-form-grid { grid-template-columns: 1fr; } }
.fb-ads-field label { display: flex; align-items: center; gap: 8px; }
.label-icon { color: var(--neutral-500); font-size: 0.875rem; }
.fb-ads-submit { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.fb-ads-guide-wrap { margin: 16px 0 0; }
.fb-ads-guide-card { padding: 24px 28px; }
.fb-ads-guide-step { display: flex; gap: 20px; margin-bottom: 24px; }
.fb-ads-guide-step:last-of-type { margin-bottom: 0; }
.fb-ads-guide-num { width: 32px; height: 32px; flex-shrink: 0; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9375rem; }
.fb-ads-guide-step-title { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--neutral-900); }
.fb-ads-guide-list { margin: 0; padding-left: 20px; font-size: 0.9375rem; line-height: 1.6; color: var(--neutral-700); }
.fb-ads-guide-list li { margin-bottom: 6px; }
.fb-ads-guide-list a { color: var(--primary); font-weight: 500; }
.fb-ads-guide-list code { background: var(--neutral-100); padding: 2px 6px; border-radius: 4px; font-size: 0.875rem; }
.fb-ads-guide-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--neutral-300); font-size: 0.9rem; color: var(--neutral-500); }
.loading-text { margin: 12px 0 0; font-size: 0.9375rem; color: var(--neutral-500); }
.fb-ads-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fb-ads-summary-item { background: #fff; border: 1px solid var(--neutral-300); border-radius: var(--radius); padding: 14px 20px; min-width: 120px; box-shadow: var(--shadow-sm); }
.fb-ads-summary-item .num { font-size: 1.5rem; font-weight: 700; color: var(--neutral-900); display: block; }
.fb-ads-summary-item .lbl { font-size: 0.8125rem; color: var(--neutral-500); text-transform: uppercase; letter-spacing: 0.04em; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.status-badge.status-active { background: var(--success-bg); color: var(--success); }
.status-badge.status-paused { background: var(--warn-bg); color: var(--warn); }
.status-badge.status-other { background: var(--neutral-100); color: var(--neutral-600); }
.fb-ads-table .campaign-name { font-weight: 600; color: var(--neutral-900); }

/* মেসেজ */
.msg {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9375rem;
}
.msg.success { background: var(--success-bg); color: var(--success); }
.msg.error { background: var(--error-bg); color: var(--error); }
.msg.info { background: var(--info-bg); color: var(--info); }

/* লোডিং */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-300);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 24px auto;
}
.loading-wrap {
    text-align: center;
    padding: 32px;
    display: none;
}
.loading-wrap[style*="block"], .loading-wrap.loading-wrap-visible {
    display: block;
}
.loading-wrap p { margin: 16px 0 0 0; font-size: 0.9375rem; color: var(--neutral-500); font-weight: 500; }
.keys-check-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--neutral-500);
}
.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* টেবিল */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin-top: 14px;
}
.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-300);
}
.data-table th { background: var(--neutral-50); font-weight: 600; color: var(--neutral-900); }
.data-table tr:hover { background: var(--neutral-50); }
@media (max-width: 600px) {
    .data-table th, .data-table td { padding: 10px 12px; font-size: 0.875rem; }
}

/* রো */
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row input, .row select { flex: 1; min-width: 140px; }
.row button { width: auto; }

/* Raw JSON */
.pre-wrap {
    background: var(--neutral-50);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.8125rem;
    margin-top: 14px;
    border: 1px solid var(--neutral-300);
}
.toggle-raw { margin-top: 12px; font-size: 0.875rem; color: var(--primary); cursor: pointer; font-weight: 500; }
.toggle-raw:hover { text-decoration: underline; }

/* নেভ (লেগাসি) */
.nav-wrap { background: var(--primary); padding: 0; margin-bottom: 24px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 18px; }
.nav-wrap nav { flex: 1; }
nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: var(--radius); font-size: 0.9375rem; transition: background 0.2s; }
nav a:hover { background: rgba(255,255,255,0.1); }
nav a.active { background: var(--primary-light); font-weight: 600; }
.nav-toggle { display: none; background: transparent; border: none; color: #fff; padding: 8px 12px; cursor: pointer; font-size: 1.25rem; margin-left: auto; }
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    nav a, nav .nav-user { display: none; }
    nav.open a, nav.open .nav-user { display: block; width: 100%; margin: 0; }
    nav.open .nav-logout { margin-left: 0; }
    nav.open .nav-toggle { margin-left: 0; }
}

/* Mobile – sidebar overlay */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: var(--sidebar-w);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .content-area { padding: 20px 16px; }
}

.container { max-width: 920px; margin: 0 auto; padding: 24px; }

/* স্ট্যান্ডঅ্যালোন পেজ (পূর্বে assets/style.css) */
body.standalone-page {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f0f4f8;
    color: #1a1a2e;
}
body.standalone-page .container { max-width: 700px; margin: 0 auto; }
body.standalone-page h1 { color: #16213e; margin-top: 0; }
body.standalone-page h2 { color: #0f3460; font-size: 1.2rem; }
body.standalone-page input,
body.standalone-page textarea,
body.standalone-page button,
body.standalone-page select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
body.standalone-page button {
    background: #0f3460;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
body.standalone-page button:hover { background: #16213e; }
body.standalone-page label { display: block; margin-bottom: 4px; font-weight: 500; }
body.standalone-page .card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
body.standalone-page .nav-wrap,
body.standalone-page .nav-wrap nav {
    background: #16213e;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}
body.standalone-page nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 16px;
}
body.standalone-page nav a:hover { text-decoration: underline; }
body.standalone-page nav span { color: #a0a0a0; margin-right: 16px; }
body.standalone-page .msg {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}
body.standalone-page .msg.success { background: #d4edda; color: #155724; }
body.standalone-page .msg.error { background: #f8d7da; color: #721c24; }
body.standalone-page .msg.info { background: #d1ecf1; color: #0c5460; }
body.standalone-page pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
}
body.standalone-page .row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
body.standalone-page .row input,
body.standalone-page .row select { flex: 1; min-width: 120px; }
body.standalone-page .row button { width: auto; }
