:root {
    --brand: #24249b;
    --brand-dark: #17176f;
    --red: #ef233c;
    --green: #13a538;
    --yellow: #f7c600;
    --blue: #1f7ae0;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--slate-900);
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.12), transparent 30rem),
        linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

nav {
    z-index: 20;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.app-nav {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-brand img {
    width: 9.5rem;
    height: auto;
}

.app-brand span {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.app-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.app-nav-links a {
    padding: 0.5rem 0.72rem;
    font-size: 0.86rem;
}

.app-user {
    margin-left: 0.35rem;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.78rem;
    font-weight: 800;
}

nav > div,
main {
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
}

nav > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

main {
    padding-block: 2rem;
}

nav a,
nav button {
    border-radius: 999px;
    font-weight: 700;
}

nav a {
    padding: 0.55rem 0.75rem;
    color: var(--slate-700);
}

nav a:hover {
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
}

form {
    margin: 0;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(36, 36, 155, 0.14);
}

button,
.btn {
    cursor: pointer;
    border: 0;
    border-radius: 0.45rem;
    padding: 0.65rem 1rem;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: var(--brand);
}

button:hover,
.btn:hover {
    background: var(--brand-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.page-subtitle {
    margin: 0.35rem 0 0;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.panel {
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.panel-title {
    font-weight: 800;
    color: var(--slate-900);
}

.panel-body {
    padding: 1.25rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    gap: 0.85rem;
}

.form-grid label {
    display: block;
}

.form-grid label span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--slate-600);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.data-table th,
.data-table td {
    white-space: nowrap;
    vertical-align: middle;
}

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

.data-table input,
.data-table select {
    min-width: 8rem;
    min-height: 2.2rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.45rem 0.6rem;
    font-size: 0.84rem;
}

.data-table .check-row {
    min-height: 2.2rem;
}

.route-table th,
.route-table td,
.staff-bank-table th,
.staff-bank-table td {
    white-space: normal;
}

.route-table th:first-child,
.route-table td:first-child {
    width: 5rem;
}

.route-table th:nth-child(3),
.route-table td:nth-child(3) {
    width: 5.5rem;
}

.route-table th:nth-child(4),
.route-table td:nth-child(4) {
    width: 5rem;
    text-align: center;
}

.route-table th:nth-child(5),
.route-table td:nth-child(5) {
    width: 5rem;
    text-align: right;
}

.route-table td:nth-child(2),
.staff-bank-table td:nth-child(2) {
    min-width: 10rem;
    max-width: 16rem;
    line-height: 1.35;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.action-danger {
    background: rgba(239, 35, 60, 0.09);
    color: var(--red);
}

.danger-link {
    background: rgba(239, 35, 60, 0.09);
    color: var(--red);
}

.action-success {
    background: rgba(19, 165, 56, 0.10);
    color: var(--green);
}

.money {
    font-weight: 800;
    color: var(--slate-900);
}

.muted {
    color: var(--slate-500);
}

.stack-sm > * + * {
    margin-top: 0.75rem;
}

.section-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .section-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

th {
    background: var(--slate-50);
    color: var(--slate-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-top: 1px solid var(--slate-100);
}

h1,
h2 {
    margin: 0;
    color: #020617;
}

p {
    color: var(--slate-500);
}

.shadow-soft,
.bg-white {
    background: #fff;
}

.shadow-soft {
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.rounded-lg,
.rounded {
    border-radius: 0.5rem;
}

.border {
    border: 1px solid var(--slate-200);
}

.text-brand {
    color: var(--brand);
}

.bg-brand {
    background: var(--brand);
}

.bg-accentRed {
    background: var(--red);
}

.bg-accentBlue {
    background: var(--blue);
}

.bg-accentGreen {
    background: var(--green);
}

.bg-accentYellow {
    background: var(--yellow);
}

.text-accentRed {
    color: var(--red);
}

.text-accentGreen {
    color: var(--green);
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-inline: auto; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 600; }
.font-semibold { font-weight: 700; }
.font-bold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

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

.break-all {
    word-break: break-all;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    nav > div {
        align-items: flex-start;
        flex-direction: column;
    }

    nav > div > div {
        flex-wrap: wrap;
    }
}

.auth-shell {
    width: min(100%, 70rem);
    min-height: calc(100vh - 4rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(28, 35, 90, 0.16);
}

.auth-shell-compact {
    width: min(100%, 31rem);
    min-height: auto;
    grid-template-columns: 1fr;
}

.auth-panel {
    padding: clamp(2rem, 4vw, 4rem);
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(36, 36, 155, 0.96), rgba(23, 23, 111, 0.96)),
        radial-gradient(circle at 15% 15%, rgba(247, 198, 0, 0.3), transparent 18rem);
}

.auth-logo {
    width: 13rem;
    padding: 0.8rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.auth-logo-small {
    width: 12rem;
    margin-bottom: 2rem;
}

.auth-kicker,
.auth-badge {
    display: inline-flex;
    margin-top: 2rem;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.auth-badge {
    margin-top: 0;
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
}

.auth-brand-panel h1,
.auth-form-header h2 {
    margin-top: 1.2rem;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.auth-brand-panel h1 {
    max-width: 34rem;
    color: #fff;
    font-size: clamp(2.2rem, 4.3vw, 4.25rem);
}

.auth-brand-panel p {
    max-width: 31rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.02rem;
    line-height: 1.75;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.auth-form-header p {
    margin-top: 0.8rem;
    line-height: 1.65;
}

.auth-form {
    margin-top: 2rem;
    display: grid;
    gap: 1.1rem;
}

.auth-form label span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--slate-700);
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-form input {
    min-height: 3.2rem;
    border-radius: 0.75rem;
    border-color: #d8e1ee;
    background: #fbfdff;
    font-weight: 600;
}

.auth-form button {
    min-height: 3.2rem;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(36, 36, 155, 0.22);
}

.auth-alert {
    margin-top: 1.25rem;
    border: 1px solid rgba(239, 35, 60, 0.16);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(239, 35, 60, 0.06);
    color: #b51228;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 3rem;
}

.auth-metrics div {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.auth-metrics strong,
.auth-metrics small {
    display: block;
}

.auth-metrics strong {
    margin-top: 0.65rem;
    color: #fff;
}

.auth-metrics small {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.68);
}

.auth-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.auth-dot-blue { background: var(--blue); }
.auth-dot-green { background: var(--green); }
.auth-dot-yellow { background: var(--yellow); }
.auth-dot-red { background: var(--red); }

.auth-footnote {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.4rem;
    color: var(--slate-500);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-otp-input {
    text-align: center;
    font-size: 1.4rem !important;
    letter-spacing: 0.35em;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-brand {
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
}

.badge-green {
    background: rgba(19, 165, 56, 0.10);
    color: var(--green);
}

.badge-red {
    background: rgba(239, 35, 60, 0.10);
    color: var(--red);
}

.action-link {
    display: inline-flex;
    border-radius: 0.45rem;
    padding: 0.45rem 0.7rem;
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--brand);
    border: 1px solid rgba(36, 36, 155, 0.25);
}

.btn-secondary:hover {
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
}

.btn-small {
    margin-top: 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
}

.secret-cell {
    max-width: 14rem;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    color: var(--slate-700);
}

.detail-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 0.65rem;
}

.detail-list dt {
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
    word-break: break-word;
}

.demo-shell {
    width: min(100%, 72rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 1.25rem;
}

.demo-hero,
.demo-checkout-card {
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(28, 35, 90, 0.16);
}

.demo-hero {
    min-height: 36rem;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 4vw, 4rem);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(36, 36, 155, 0.96), rgba(23, 23, 111, 0.98)),
        radial-gradient(circle at 10% 10%, rgba(247, 198, 0, 0.35), transparent 20rem);
}

.demo-hero h1 {
    max-width: 38rem;
    margin-top: 1.25rem;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    line-height: 1.05;
}

.demo-hero p {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.demo-checkout-card {
    background: #fff;
}

.demo-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.85rem;
    padding: 1rem;
    background: #f8fbff;
}

.demo-product strong,
.demo-product span {
    display: block;
}

.demo-product span {
    margin-top: 0.25rem;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.hidden {
    display: none !important;
}

.demo-processing {
    width: min(100%, 46rem);
    margin: 2rem auto;
}

.demo-processing-panel {
    overflow: hidden;
}

.demo-live-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.demo-live-strip span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(31, 122, 224, 0.45);
    animation: pulse-dot 1.5s infinite;
}

.demo-live-strip.complete {
    background: rgba(19, 165, 56, 0.1);
    color: var(--green);
}

.demo-live-strip.complete span {
    background: var(--green);
    animation: none;
}

.demo-live-strip.failed {
    background: rgba(239, 35, 60, 0.1);
    color: var(--red);
}

.demo-live-strip.failed span {
    background: var(--red);
    animation: none;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(31, 122, 224, 0.45); }
    70% { box-shadow: 0 0 0 0.5rem rgba(31, 122, 224, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 122, 224, 0); }
}

.demo-status-card {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.demo-status-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8fbff;
}

.demo-status-card span {
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .demo-shell {
        grid-template-columns: 1fr;
    }

    .demo-hero {
        min-height: auto;
    }
}

.pay-compact {
    width: min(100%, 58rem);
    margin: 0 auto;
}

.pay-topbar,
.pay-card {
    border: 1px solid var(--slate-200);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 16px 38px rgba(28, 35, 90, 0.10);
}

.pay-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
}

.pay-topbar img {
    width: 8.5rem;
}

.pay-topbar strong,
.pay-topbar span {
    display: block;
}

.pay-topbar span {
    color: var(--slate-500);
    font-size: 0.82rem;
}

.pay-amount {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: var(--brand);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}

.pay-grid,
.pay-unified {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.75fr);
    margin-top: 1rem;
}

.pay-unified {
    gap: 0;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.12);
    align-items: start;
}

.pay-card {
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pay-details-card {
    border-right: 1px solid var(--slate-100);
}

.pay-submit-card {
    background: #fbfdff;
    display: flex;
    flex-direction: column;
}

.pay-card-head h1,
.pay-submit-card h2 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.pay-card-head p,
.pay-submit-card p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.pay-method-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.pay-customer-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 0.85rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fbff;
}

.pay-customer-summary div {
    flex: 1 1 12rem;
    min-width: 0;
    border: 0;
    border-right: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    border-radius: 0;
    padding: 0.6rem 0.7rem;
    background: transparent;
}

.pay-customer-summary span {
    display: block;
    color: var(--slate-500);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pay-customer-summary strong {
    display: block;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--slate-900);
    font-size: 0.86rem;
}

.pay-method-tab {
    border: 1px solid var(--slate-200);
    background: #fff;
    color: var(--slate-700);
    box-shadow: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
}

.pay-method-tab.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.pay-method-panel {
    display: none;
    margin-top: 0.85rem;
}

.pay-method-panel.active {
    display: block;
}

.pay-upi-box {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.85rem;
    padding: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pay-upi-box img {
    width: 8.15rem;
    height: 8.15rem;
    border-radius: 0.55rem;
    background: #fff;
}

.pay-upi-box a {
    display: inline-flex;
    justify-content: center;
    width: min(100%, 13rem);
    margin-bottom: 0;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: #fff;
    border: 1px solid rgba(36, 36, 155, 0.18);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 900;
}

.pay-upi-box span,
.pay-bank-details dt,
.pay-form span {
    display: block;
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pay-upi-box strong {
    font-size: 1rem;
    word-break: break-word;
}

.pay-upi-box > div {
    width: 100%;
    text-align: center;
}

.pay-bank-details {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.pay-bank-details div {
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #f8fbff;
}

.pay-bank-details dd {
    margin: 0.2rem 0 0;
    color: var(--slate-900);
    font-size: 1rem;
    font-weight: 900;
}

.pay-form {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.pay-form input {
    min-height: 2.9rem;
    border-radius: 0.7rem;
}

.pay-form button {
    min-height: 2.9rem;
    border-radius: 0.7rem;
}

.pay-submit-card {
    align-self: start;
}

.pay-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.65rem;
    padding: 0.65rem;
    background: #fff;
}

.pay-terms input {
    width: auto;
    min-height: auto;
    margin-top: 0.2rem;
}

.pay-terms span {
    color: var(--slate-700);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

@media (max-width: 860px) {
    .pay-grid,
    .pay-unified {
        grid-template-columns: 1fr;
    }

    .pay-details-card {
        border-right: 0;
        border-bottom: 1px solid var(--slate-100);
    }
}

@media (max-width: 560px) {
    .pay-topbar {
        grid-template-columns: 1fr;
    }

    .pay-amount {
        justify-self: start;
    }

    .pay-upi-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pay-upi-box img {
        margin: 0 auto;
    }

    .pay-customer-summary div {
        flex-basis: 100%;
        border-right: 0;
    }
}

.docs-shell {
    width: min(100%, 76rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 1.25rem;
}

.docs-sidebar,
.docs-card {
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.docs-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
    padding: 1.25rem;
}

.docs-sidebar img {
    width: 11rem;
}

.docs-sidebar h1 {
    margin-top: 1.25rem;
    font-size: 1.35rem;
}

.docs-sidebar nav {
    position: static;
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    border: 0;
    box-shadow: none;
}

.docs-sidebar nav a {
    border-radius: 0.55rem;
    padding: 0.55rem 0.7rem;
    background: #f8fbff;
}

.docs-content {
    display: grid;
    gap: 1rem;
    padding: 0;
}

.docs-card {
    padding: 1.25rem;
}

.docs-card h2 {
    font-size: 1.25rem;
}

.docs-card pre {
    overflow-x: auto;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #0f172a;
    color: #e5edf7;
    font-size: 0.86rem;
    line-height: 1.6;
}

.docs-card h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--slate-900);
}

.docs-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-steps,
.docs-list {
    margin: 1rem 0;
    padding-left: 1.25rem;
    color: var(--slate-700);
    line-height: 1.7;
}

.docs-steps li + li,
.docs-list li + li {
    margin-top: 0.35rem;
}

@media (max-width: 900px) {
    .docs-shell {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }
}

/* Production UI corrections */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    padding: 0;
}

.user-menu,
.nav-menu {
    position: relative;
}

.user-menu summary,
.nav-menu summary {
    cursor: pointer;
    list-style: none;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.78rem;
    font-weight: 900;
}

.user-menu summary::-webkit-details-marker,
.nav-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu[open] summary,
.nav-menu[open] summary {
    background: rgba(36, 36, 155, 0.09);
    color: var(--brand);
}

.user-menu > div,
.nav-menu > div {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 40;
    min-width: 12rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.16);
}

.nav-menu > div {
    display: grid;
    gap: 0.2rem;
    min-width: 14rem;
}

.nav-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    color: var(--slate-700);
    font-weight: 800;
}

.nav-menu a:hover {
    background: rgba(36, 36, 155, 0.08);
    color: var(--brand);
}

.user-menu span {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.user-menu button {
    width: 100%;
}

.review-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.log-json {
    max-width: 26rem;
    max-height: 8rem;
    overflow: auto;
    border: 1px solid var(--slate-200);
    border-radius: 0.55rem;
    background: var(--slate-50);
    padding: 0.6rem;
    color: var(--slate-700);
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.payout-settlement-picker {
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #f8fbff;
    padding: 1rem;
}

.payout-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.payout-picker-head strong,
.payout-picker-head span {
    display: block;
}

.payout-picker-head span {
    margin-top: 0.15rem;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.payout-settlement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.payout-settlement-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    min-height: 4.6rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.65rem;
    background: #ffffff;
    padding: 0.8rem;
}

.payout-settlement-option strong,
.payout-settlement-option small {
    display: block;
}

.payout-settlement-option small {
    margin-top: 0.2rem;
    color: var(--slate-500);
    font-size: 0.75rem;
    line-height: 1.4;
}

.payout-total-line {
    margin-top: 0.8rem;
    color: var(--slate-600);
    font-size: 0.85rem;
    font-weight: 800;
}

.payout-total-pill {
    border-radius: 999px;
    background: rgba(36, 36, 155, 0.09);
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0.65rem 0.95rem;
    white-space: nowrap;
}

.payout-form {
    display: grid;
    gap: 1.1rem;
}

.payout-field-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
}

.payout-field-grid label {
    min-width: 0;
}

.payout-field-grid .span-2 {
    grid-column: span 2;
}

.payout-settlement-panel {
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #f8fbff;
    overflow: hidden;
}

.payout-settlement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--slate-200);
    background: #ffffff;
}

.payout-settlement-head h3 {
    margin: 0;
    font-size: 1rem;
}

.payout-settlement-head p {
    margin: 0.18rem 0 0;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 750;
}

.payout-settlement-table {
    padding: 0.75rem;
}

.payout-settlement-row {
    display: none;
    grid-template-columns: minmax(12rem, 1.4fr) minmax(10rem, 1fr) 8rem 10rem;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid var(--slate-200);
    border-radius: 0.65rem;
    background: #ffffff;
    padding: 0.75rem 0.85rem;
}

.payout-settlement-row + .payout-settlement-row {
    margin-top: 0.55rem;
}

.payout-settlement-header {
    display: grid;
    border: 0;
    background: transparent;
    color: var(--slate-500);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.payout-empty-state {
    border: 1px dashed var(--slate-300);
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--slate-500);
    font-weight: 850;
    padding: 1rem;
}

.payout-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--slate-100);
    padding-top: 0.3rem;
}

.payout-action-bar span {
    color: var(--slate-500);
    font-size: 0.84rem;
    font-weight: 800;
}

.payout-action-bar button {
    min-width: 11rem;
}

#payoutAmount[readonly] {
    background: var(--slate-50);
    color: var(--slate-700);
    font-weight: 900;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.utr-state {
    display: block;
    margin-top: 0.45rem;
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
}

.utr-state.checking {
    color: var(--brand);
}

.utr-state.ok {
    color: #137c31;
}

.utr-state.error {
    color: #b42318;
}

.review-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.detail-grid div {
    min-width: 0;
    border: 1px solid var(--slate-200);
    border-radius: 0.7rem;
    padding: 0.75rem;
    background: #f8fbff;
}

.detail-grid dt {
    color: var(--slate-500);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 0.2rem 0 0;
    color: var(--slate-900);
    font-weight: 800;
    word-break: break-word;
}

.copy-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
}

.copy-box input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
}

.payment-link-panel .panel-body {
    display: grid;
    gap: 0.8rem;
}

.payment-link-panel {
    margin-bottom: 1rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.15rem;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.9rem;
    background:
        linear-gradient(135deg, rgba(36, 36, 155, 0.08), rgba(19, 165, 56, 0.06)),
        #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.dashboard-hero h1 {
    margin: 0.25rem 0 0;
    color: var(--slate-950);
    font-size: 1.85rem;
    line-height: 1.15;
}

.dashboard-hero p {
    margin: 0.45rem 0 0;
    max-width: 44rem;
    color: var(--slate-600);
}

.dashboard-kicker {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-scope {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    min-width: min(32rem, 100%);
}

.dashboard-scope select {
    min-height: 2.55rem;
    background: #fff;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0.2rem 0 -0.25rem;
}

.dashboard-section-heading span {
    color: var(--slate-950);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-section-heading small {
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 8.2rem;
    padding: 1.05rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 35, 90, 0.10);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--brand);
}

.metric-card span,
.metric-card small,
.daily-bar small {
    color: var(--slate-600);
    font-size: 0.78rem;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 0.9rem;
    color: var(--slate-950);
    font-size: 1.45rem;
    line-height: 1.15;
}

.metric-card small {
    display: block;
    margin-top: 0.55rem;
    font-weight: 700;
}

.metric-blue::before {
    background: var(--blue);
}

.metric-green::before {
    background: var(--green);
}

.metric-red::before {
    background: var(--red);
}

.metric-yellow::before {
    background: var(--yellow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.status-list {
    display: grid;
    gap: 0.8rem;
}

.status-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(7rem, 2fr) 3rem;
    gap: 0.75rem;
    align-items: center;
}

.status-row small {
    display: block;
    margin-top: 0.25rem;
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 700;
}

.status-meter {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf7;
}

.status-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--blue));
}

.status-row strong {
    color: var(--slate-700);
    font-size: 0.82rem;
    text-align: right;
}

.method-mix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.method-mix div {
    min-height: 5.25rem;
    padding: 0.9rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.7rem;
    background: #f8fbff;
}

.method-mix span,
.method-mix small {
    display: block;
    color: var(--slate-600);
    font-size: 0.76rem;
    font-weight: 800;
}

.method-mix strong {
    display: block;
    margin: 0.55rem 0 0.2rem;
    color: var(--slate-950);
}

.daily-bars {
    display: flex;
    min-height: 12rem;
    gap: 0.75rem;
    align-items: end;
}

.daily-bar {
    display: grid;
    flex: 1;
    min-width: 4.4rem;
    gap: 0.35rem;
    text-align: center;
}

.daily-bar > div {
    display: flex;
    align-items: end;
    height: 7.4rem;
    padding: 0 0.3rem;
    border-radius: 0.7rem;
    background: #f1f5fb;
}

.daily-bar > div span {
    display: block;
    width: 100%;
    min-height: 0.35rem;
    border-radius: 0.6rem 0.6rem 0 0;
    background: linear-gradient(180deg, var(--green), var(--brand));
}

.daily-bar strong {
    color: var(--slate-700);
    font-size: 0.78rem;
}

.compact-table {
    border-radius: 0 0 0.8rem 0.8rem;
    box-shadow: none;
}

.share-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.share-link-box input {
    min-height: 2.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}

.share-link-box button {
    min-height: 2.55rem;
    white-space: nowrap;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-actions form {
    margin: 0;
}

.share-actions .action-link {
    min-height: 2.15rem;
    align-items: center;
    border: 0;
    cursor: pointer;
}

.check-row {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    color: var(--slate-700);
    font-size: 0.86rem;
    font-weight: 800;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.permission-grid label {
    display: flex;
    gap: 0.65rem;
    min-height: 4.2rem;
    padding: 0.8rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.65rem;
    background: #f8fbff;
}

.permission-grid strong,
.permission-grid small {
    display: block;
}

.permission-grid strong {
    color: var(--slate-900);
    font-size: 0.86rem;
}

.permission-grid small {
    margin-top: 0.15rem;
    color: var(--slate-500);
    font-size: 0.75rem;
}

.whatsapp-link {
    background: rgba(19, 165, 56, 0.1);
    color: #137c31;
}

@media (max-width: 640px) {
    .copy-box,
    .share-link-box {
        grid-template-columns: 1fr;
    }

    .share-link-box button,
    .share-actions .action-link {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .review-layout,
    .detail-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-scope,
    .dashboard-metrics {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .dashboard-metrics {
        display: grid;
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }

    .payout-picker-head {
        align-items: stretch;
        flex-direction: column;
    }

    .payout-settlement-grid {
        grid-template-columns: 1fr;
    }

    .payout-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payout-field-grid .span-2 {
        grid-column: span 2;
    }

    .payout-settlement-head,
    .payout-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .payout-settlement-row,
    .payout-settlement-header {
        grid-template-columns: 1fr;
    }

    .payout-settlement-header {
        display: none;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    main {
        padding-block: 1rem;
    }

    .auth-shell {
        width: 100%;
        border-radius: 0.85rem;
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .auth-metrics {
        grid-template-columns: 1fr;
    }

    .payout-field-grid {
        grid-template-columns: 1fr;
    }

    .payout-field-grid .span-2 {
        grid-column: auto;
    }
}
