:root {
    --sf-primary: #2563eb;
    --sf-primary-dark: #1d4ed8;
    --sf-sidebar: #0f172a;
    --sf-sidebar-soft: #1e293b;
    --sf-text: #0f172a;
    --sf-muted: #64748b;
    --sf-bg: #f4f6fb;
    --sf-border: #e5e9f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    padding: 20px 14px;
    background: var(--sf-sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .2s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 4px 8px 22px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 13px;
}

.brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.brand small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 2px;
}

.sidebar .nav-link {
    color: #94a3b8;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    transition: all .15s ease;
}

.sidebar .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(148, 163, 184, .12);
}

.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, .9), rgba(99, 102, 241, .75));
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.sidebar .nav-link.disabled {
    opacity: .45;
}

.sidebar-section {
    color: #64748b;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 18px 12px 6px;
}

.sidebar-foot {
    margin-top: auto;
    padding: 14px 10px 4px;
    border-top: 1px solid rgba(148, 163, 184, .15);
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

/* ---------- Main ---------- */
.main {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 66px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title {
    font-weight: 700;
    font-size: 16px;
}

.content {
    padding: 24px;
    flex: 1;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -.3px;
}

.page-head p {
    color: var(--sf-muted);
    margin: 0;
    font-size: 13px;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--sf-border);
    border-radius: 14px 14px 0 0 !important;
    padding: 14px 18px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card .stat-label {
    color: var(--sf-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.stat-card .stat-foot {
    color: var(--sf-muted);
    font-size: 11.5px;
    margin-top: 8px;
}

.stat-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #eff6ff;
    color: var(--sf-primary);
}

.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.red   { background: #fef2f2; color: #dc2626; }
.stat-icon.violet{ background: #f5f3ff; color: #7c3aed; }

/* ---------- Trend ---------- */
.trend {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 170px;
    padding: 10px 4px 0;
}

.trend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.trend-bar {
    width: 100%;
    max-width: 42px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    min-height: 4px;
    transition: height .4s ease;
}

.trend-item:hover .trend-bar {
    background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.trend-label {
    color: var(--sf-muted);
    font-size: 11px;
    white-space: nowrap;
}

/* ---------- Tables ---------- */
.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    vertical-align: middle;
}

.table thead th {
    color: var(--sf-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #f8fafc;
    border-bottom: 1px solid var(--sf-border);
    white-space: nowrap;
}

.table tbody td {
    border-color: #eef1f7;
    font-size: 13px;
}

.table-hover tbody tr:hover {
    background: #f8faff;
}

.mono {
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 12px;
}

.amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.badge {
    font-weight: 600;
    padding: .38em .62em;
    border-radius: 6px;
}

/* ---------- Forms ---------- */
.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border-radius: 9px;
    border-color: #dbe2ee;
    padding: .55rem .75rem;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sf-primary);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.btn {
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    padding: .5rem .9rem;
}

.btn-primary {
    background: var(--sf-primary);
    border-color: var(--sf-primary);
}

.btn-primary:hover {
    background: var(--sf-primary-dark);
    border-color: var(--sf-primary-dark);
}

.btn-sm {
    padding: .35rem .65rem;
    font-size: 12px;
}

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(37, 99, 235, .18), transparent 60%),
        radial-gradient(800px 500px at 100% 100%, rgba(139, 92, 246, .14), transparent 55%),
        #f4f6fb;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.login-brand .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 15px;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
}

.login-card .sub {
    color: var(--sf-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.demo-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #475569;
    line-height: 1.7;
}

.demo-box code {
    color: #1d4ed8;
    background: #eff6ff;
    padding: 1px 5px;
    border-radius: 4px;
}

/* ---------- Landing ---------- */
.landing-nav {
    padding: 18px 0;
}

.landing-nav .brand {
    color: var(--sf-text);
    padding: 0;
}

.landing-nav .brand small {
    color: var(--sf-muted);
}

.landing-hero {
    padding: 64px 0 40px;
}

.landing-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.landing-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 18px 0 14px;
    line-height: 1.15;
}

.landing-hero h1 span {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero p.lead {
    color: var(--sf-muted);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.8;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    padding: 20px;
    height: 100%;
}

.feature-card i {
    font-size: 22px;
    color: var(--sf-primary);
}

.feature-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 12px 0 6px;
}

.feature-card p {
    color: var(--sf-muted);
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0;
}

.code-panel {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 14px;
    padding: 18px 20px;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    line-height: 1.9;
    overflow-x: auto;
}

.code-panel .c-key { color: #93c5fd; }
.code-panel .c-str { color: #86efac; }
.code-panel .c-com { color: #64748b; }

/* ---------- Cashier ---------- */
.cashier-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(37, 99, 235, .12), transparent 60%),
        #f4f6fb;
}

.cashier-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--sf-border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
    padding: 28px;
    text-align: center;
}

.cashier-amount {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 10px 0 2px;
}

.qr-box {
    width: 220px;
    height: 220px;
    margin: 22px auto;
    border-radius: 16px;
    border: 1px solid var(--sf-border);
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
}

.qr-box i {
    font-size: 74px;
    color: #0f172a;
}

.paid-mark {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: grid;
    place-items: center;
    margin: 18px auto;
    font-size: 34px;
}

/* ---------- Misc ---------- */
.detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 14px;
    font-size: 13px;
}

.detail-list dt {
    color: var(--sf-muted);
    font-weight: 500;
}

.detail-list dd {
    margin: 0;
    word-break: break-all;
}

.json-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.6;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--sf-muted);
}

.empty-state i {
    font-size: 36px;
    opacity: .4;
    display: block;
    margin-bottom: 10px;
}

.timeline {
    position: relative;
    padding-left: 22px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
}

.timeline-item.done::before {
    background: #22c55e;
}

.timeline-item.current::before {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.timeline-time {
    color: var(--sf-muted);
    font-size: 11px;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(15, 23, 42, .25);
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 18px;
    }

    .topbar {
        padding: 0 16px;
    }
}

@media (max-width: 575.98px) {
    .page-head {
        flex-direction: column;
    }

    .stat-card .stat-value {
        font-size: 21px;
    }

    .cashier-card {
        padding: 22px;
    }
}

/* =========================================================
   Ops console refresh (reference-inspired)
   ========================================================= */
:root {
    --sf-primary: #1677ff;
    --sf-primary-dark: #0958d9;
    --sf-sidebar: #001529;
    --sf-bg: #f0f2f5;
    --sf-border: #e8ebf0;
}

.sidebar {
    width: 208px;
    padding: 0;
    background: #001529;
    color: rgba(255, 255, 255, .65);
}

.sidebar .brand {
    padding: 15px 18px;
    margin: 0;
    background: #002140;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sidebar .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1677ff;
    font-size: 11px;
}

.sidebar .brand strong {
    font-size: 14px;
    color: #fff;
}

.sidebar .brand small {
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.sidebar-section {
    padding: 16px 18px 5px;
    color: rgba(255, 255, 255, .3);
    font-size: 10px;
    letter-spacing: 1px;
}

.sidebar .nav {
    gap: 0 !important;
}

.sidebar .nav-link {
    padding: 10px 18px;
    margin: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link i {
    width: 17px;
    font-size: 15px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.sidebar .nav-link.active {
    color: #fff;
    background: #1677ff;
    box-shadow: none;
}

.sidebar-foot {
    padding: 14px 18px;
    border-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .3);
    font-size: 10px;
}

.main {
    margin-left: 208px;
    background: #f0f2f5;
}

.topbar {
    height: 56px;
    padding: 0 20px;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid #e8ebf0;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8c8c8c;
    font-size: 13px;
}

.topbar-breadcrumb a {
    color: #8c8c8c;
}

.topbar-breadcrumb .current {
    color: #262626;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-icon {
    color: #595959;
    font-size: 16px;
    line-height: 1;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #262626;
    font-size: 13px;
}

.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
    display: grid;
    place-items: center;
    font-size: 13px;
}

.page-tabs {
    height: 40px;
    background: #fff;
    border-bottom: 1px solid #e8ebf0;
    display: flex;
    align-items: stretch;
    padding: 0 16px;
}

.page-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    color: #1677ff;
    background: #fff;
    border-bottom: 2px solid #1677ff;
    font-size: 12.5px;
}

.page-tab .close {
    color: #bfbfbf;
    font-size: 11px;
}

.content {
    padding: 16px 20px 24px;
}

.page-head {
    margin-bottom: 14px;
}

.page-head h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.page-head p {
    font-size: 12px;
}

.card {
    border-radius: 8px;
    border-color: #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    border-color: #f0f0f0;
    padding: 12px 16px;
}

.card-title {
    font-weight: 600;
}

/* Dashboard */
.dash-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px;
    height: 100%;
}

.dash-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.dash-segment {
    display: inline-flex;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.dash-segment a {
    padding: 4px 12px;
    font-size: 12px;
    color: #595959;
    background: #fff;
}

.dash-segment a.active {
    color: #1677ff;
    border: 1px solid #1677ff;
    margin: -1px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.metric-gradient {
    position: relative;
    border-radius: 8px;
    padding: 16px 18px;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #2f80ed, #56ccf2);
}

.metric-gradient.green {
    background: linear-gradient(135deg, #27ae60, #6fcf97);
}

.metric-gradient.purple {
    background: linear-gradient(135deg, #5b6ee1, #8e9cf5);
}

.metric-gradient .metric-label {
    font-size: 12px;
    opacity: .86;
    margin-bottom: 8px;
}

.metric-gradient .metric-value {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.metric-gradient .metric-pill {
    position: absolute;
    right: 14px;
    top: 14px;
    background: rgba(255, 255, 255, .22);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10.5px;
}

.metric-gradient .metric-spark {
    margin-top: 8px;
    height: 46px;
    opacity: .9;
}

.metric-gradient .metric-spark svg {
    width: 100%;
    height: 100%;
}

.dash-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    height: 100%;
}

.dash-tile .tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 17px;
    background: #e6f4ff;
    color: #1677ff;
    flex: 0 0 auto;
}

.dash-tile .tile-icon.green { background: #f6ffed; color: #52c41a; }
.dash-tile .tile-icon.cyan  { background: #e6fffb; color: #13c2c2; }
.dash-tile .tile-icon.amber { background: #fffbe6; color: #faad14; }
.dash-tile .tile-icon.red   { background: #fff1f0; color: #ff4d4f; }
.dash-tile .tile-icon.purple{ background: #f9f0ff; color: #722ed1; }

.dash-tile .tile-label {
    color: #8c8c8c;
    font-size: 12px;
}

.dash-tile .tile-value {
    color: #262626;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 190px;
    padding: 8px 8px 0;
    border-left: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.dash-chart .bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.dash-chart .bar {
    width: 22px;
    min-height: 4px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #4096ff, #1677ff);
    position: relative;
}

.dash-chart .bar:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    padding: 3px 6px;
    border-radius: 3px;
}

.dash-chart .bar-label {
    color: #8c8c8c;
    font-size: 10.5px;
}

.channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f5f5f5;
}

.channel-row:last-child { border-bottom: 0; }

.channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1677ff;
    flex: 0 0 auto;
}

.channel-progress {
    height: 6px;
    background: #f5f5f5;
    border-radius: 999px;
    overflow: hidden;
}

.channel-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #1677ff;
}

/* Login refresh */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 64px;
    background: #f7f9fc;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(236,242,250,.55));
    transform: rotate(-18deg);
    pointer-events: none;
}

.login-page::before {
    width: 56vw;
    height: 120vh;
    left: -18vw;
    top: -30vh;
}

.login-page::after {
    width: 48vw;
    height: 110vh;
    right: -20vw;
    top: -18vh;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h1 {
    color: #1f1f1f;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 8px;
}

.login-title p {
    color: #8c8c8c;
    font-size: 12.5px;
    margin: 0;
}

.login-card .form-control {
    height: 44px;
    border-color: #d9d9d9;
    font-size: 13px;
    box-shadow: none;
}

.login-card .form-control:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, .08);
}

.login-card .input-group-text {
    background: #fff;
    border-color: #d9d9d9;
    color: #8c8c8c;
    width: 42px;
    justify-content: center;
}

.login-card .btn-primary {
    height: 44px;
    background: #1677ff;
    border-color: #1677ff;
    font-size: 14px;
    border-radius: 4px;
}

.login-card .btn-primary:hover {
    background: #0958d9;
    border-color: #0958d9;
}

.login-bottom {
    text-align: center;
    color: #bfbfbf;
    font-size: 11px;
    margin-top: 28px;
}

.login-demo {
    text-align: center;
    color: #8c8c8c;
    font-size: 11px;
    margin-top: 14px;
    line-height: 1.7;
}

.login-demo code {
    color: #595959;
    background: #f0f2f5;
    padding: 1px 5px;
    border-radius: 3px;
}

@media (max-width: 991.98px) {
    .sidebar { width: 208px; }
    .main { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .content { padding: 12px; }
    .login-title h1 { font-size: 22px; }
}
/* Merchant test pay modal */
.test-pay-code {
    background: #111 !important;
    color: #e5e7eb !important;
    border-color: #111 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.55;
    resize: vertical;
}

.test-pay-code:focus {
    background: #111 !important;
    color: #fff !important;
    box-shadow: none;
}