:root {
    --bg: #0f172d;
    --panel: #151f3c;
    --panel-soft: #1a2546;
    --border: #25345f;
    --primary: #7b93ff;
    --primary-soft: rgba(123, 147, 255, 0.18);
    --text: #edf2ff;
    --muted: #9eadd8;
    --success: #3dd7ad;
    --warning: #f6c85a;
    --danger: #ff7d94;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --chart-surface: #101a34;
    --chart-grid: #2a3a67;
    --chart-axis: #9eadd8;
    --sidebar-link: #aab8e8;
    --surface-strong: #0f1a35;
    --success-text: #52dfb9;
    --warning-text: #ffd36e;
    --danger-text: #ff97aa;
    --info-text: #9eb2ff;
    --code-bg: #0c1327;
    --code-text: #dbe5ff;
    --shell-bg:
        radial-gradient(circle at top right, rgba(123, 147, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #0c1327 0%, #131d38 100%);
}

:root[data-theme="light"] {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --border: #e2e8f0;
    --primary: #3b82f6;
    --primary-soft: rgba(59, 130, 246, 0.1);
    --text: #0f172a;
    --muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --chart-surface: #ffffff;
    --chart-grid: #e2e8f0;
    --chart-axis: #64748b;
    --sidebar-link: #475569;
    --surface-strong: #f1f5f9;
    --success-text: #059669;
    --warning-text: #d97706;
    --danger-text: #dc2626;
    --info-text: #2563eb;
    --code-bg: #f8fafc;
    --code-text: #0f172a;
    --shell-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

:root[data-theme="dark"] {
    --bg: #0f172d;
    --panel: #151f3c;
    --panel-soft: #1a2546;
    --border: #25345f;
    --primary: #7b93ff;
    --primary-soft: rgba(123, 147, 255, 0.18);
    --text: #edf2ff;
    --muted: #9eadd8;
    --success: #3dd7ad;
    --warning: #f6c85a;
    --danger: #ff7d94;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --chart-surface: #101a34;
    --chart-grid: #2a3a67;
    --chart-axis: #9eadd8;
    --sidebar-link: #aab8e8;
    --surface-strong: #0f1a35;
    --success-text: #52dfb9;
    --warning-text: #ffd36e;
    --danger-text: #ff97aa;
    --info-text: #9eb2ff;
    --code-bg: #0c1327;
    --code-text: #dbe5ff;
    --shell-bg:
        radial-gradient(circle at top right, rgba(123, 147, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #0c1327 0%, #131d38 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Poppins, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--shell-bg);
}

.app-body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.guest-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.guest-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(74, 108, 247, 0.08);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(74, 108, 247, 0.12);
    backdrop-filter: blur(24px);
}

.guest-brand {
    padding: 56px;
    background:
        linear-gradient(145deg, rgba(67, 97, 238, 0.94), rgba(61, 132, 255, 0.86)),
        linear-gradient(180deg, #3651d8, #5f7bff);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.guest-logo,
.sidebar__logo {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 18px;
}

.guest-card {
    padding: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 32px 32px 0;
}

.guest-body.guest-dark .guest-shell {
    background: rgba(15, 23, 45, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
}

.guest-body.guest-dark .guest-brand {
    background:
        linear-gradient(145deg, rgba(30, 64, 175, 0.96), rgba(59, 130, 246, 0.88)),
        linear-gradient(180deg, #172554, #2563eb);
}

.guest-body.guest-dark .guest-card {
    background: rgba(15, 23, 42, 0.95);
}

.guest-body.guest-dark .brand-subtitle,
.guest-body.guest-dark .guest-card__intro p,
.guest-body.guest-dark .guest-card__intro h2 {
    color: #e2e8f0;
}

.guest-body.guest-dark .guest-links a {
    color: #93c5fd;
}

.guest-body.guest-dark .guest-logo {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
}

.guest-body.guest-dark .guest-card input,
.guest-body.guest-dark .guest-card select,
.guest-body.guest-dark .guest-card textarea {
    background: rgba(255, 255, 255, 0.05);
    color: #edf2ff;
    border-color: rgba(255, 255, 255, 0.14);
}

.brand-copy {
    min-width: 0;
    flex: 1;
}

.brand-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.brand-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.35;
}

.guest-card__intro h2,
.topbar h2,
.panel h3 {
    margin: 0;
}

.guest-card__intro p,
.topbar p,
.form-grid p,
.muted {
    margin: 8px 0 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #121b33;
    font: inherit;
    color: rgba(255, 255, 255, 0.92);
    outline: none;
    caret-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus,
.field select:-webkit-autofill,
.field select:-webkit-autofill:hover,
.field select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    -webkit-box-shadow: 0 0 0px 1000px var(--surface-strong) inset;
    box-shadow: 0 0 0px 1000px var(--surface-strong) inset;
    transition: background-color 9999s ease-in-out 0s;
    border: 1px solid var(--border);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.btn,
button.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 16px;
    font: inherit;
    font-weight: 600;
    background: linear-gradient(135deg, #6f7bff, #3e56f5);
    color: #fff;
    box-shadow: 0 12px 28px rgba(42, 77, 255, 0.28);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(42, 77, 255, 0.3);
}

.btn--light {
    background: var(--panel-soft);
    color: var(--text);
    box-shadow: none;
}

.alert {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.alert--success {
    background: rgba(21, 195, 154, 0.12);
    color: #0e876d;
}

.alert--error {
    background: rgba(255, 95, 123, 0.12);
    color: #b72d48;
}

.alert--info {
    background: rgba(67, 97, 238, 0.12);
    color: #2846d6;
}

.guest-links {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #111a33 0%, #141f3f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.35);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px 8px;
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__brand .brand-title {
    font-size: 16px;
    white-space: nowrap;
    line-height: 1.15;
    color: #ffffff;
}

.sidebar__brand .brand-subtitle {
    font-size: 10px;
    margin-top: 2px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar__logo {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(123, 147, 255, 0.18);
    border: 1px solid rgba(123, 147, 255, 0.22);
    color: #ffffff;
    font-weight: 800;
}

.sidebar__section-title {
    padding: 2px 12px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar__nav-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 0 16px 16px 0;
    color: rgba(255, 255, 255, 0.75);
    transition: 0.2s ease;
    font-weight: 500;
    min-height: 44px;
    margin-left: -14px;
    padding-left: 28px;
    width: calc(100% + 14px);
}

.sidebar__link span:first-child {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 16px;
}

.sidebar__link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar__link-icon svg,
.topbar__theme-toggle svg,
.stat-card__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sidebar__link:hover,
.sidebar__link.is-active {
    background: rgba(123, 147, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 3px 0 0 rgba(123, 147, 255, 0.95), 0 6px 24px rgba(0, 0, 0, 0.24);
    transform: translateX(2px);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #77a0ff);
    color: #fff;
    font-weight: 700;
}

.main-content {
    padding: 0 0 20px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #10162f 0%, #141d3c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 72px;
    padding: 10px 16px 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.topbar__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.topbar h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: #ffffff;
}

.topbar p {
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.68);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__icon,
.topbar__user,
.topbar__clock,
.topbar__theme-toggle {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 9px 13px;
    color: var(--text);
}

.topbar__dropdown {
    position: relative;
}

.topbar__user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font: inherit;
    color: #ffffff;
}

.topbar__user-btn--icon {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
}

.topbar__user-glyph {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b93ff, #5f78ff);
    color: #fff;
}

.topbar__user-glyph svg {
    width: 16px;
    height: 16px;
    display: block;
}

.topbar__caret {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease;
}

.topbar__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #151f3f;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    display: none;
    z-index: 20;
}

.topbar__dropdown.is-open .topbar__menu {
    display: grid;
    gap: 4px;
}

.topbar__dropdown.is-open .topbar__caret {
    transform: rotate(180deg);
}

.topbar__menu-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.2s ease;
}

.topbar__menu-item--static {
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    cursor: default;
}

.topbar__menu-item--static strong {
    font-size: 13px;
    color: #7b93ff;
}

.topbar__menu-item:hover {
    background: rgba(123, 147, 255, 0.12);
    color: #ffffff;
    transform: translateX(2px);
}

.topbar__menu-item--static:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.topbar__menu-item.is-danger:hover {
    background: rgba(255, 95, 123, 0.14);
    color: var(--danger-text);
}

.topbar__clock {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 124px;
}

.topbar__clock span {
    font-size: 11px;
    color: var(--muted);
    line-height: 1;
}

.topbar__clock strong {
    font-size: 14px;
    line-height: 1.2;
}

.topbar__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text);
}

.topbar__theme-toggle:hover {
    background: var(--panel-soft);
    border-color: var(--primary);
}

.topbar__theme-toggle span {
    font-size: 14px;
    font-weight: 700;
}

.page-grid {
    margin-top: 14px;
    display: grid;
    gap: 18px;
    padding: 0 16px;
}

.page-grid--dashboard {
    margin-top: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stats-grid {
    gap: 16px;
}

.dashboard-stats-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.panel {
    background: linear-gradient(135deg, #151e3e 0%, #131a35 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.stat-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-card--dashboard {
    min-height: 84px;
}

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.bg-warning { background: rgba(242, 182, 61, 0.15); color: var(--warning-text); }
.bg-success { background: rgba(21, 195, 154, 0.15); color: var(--success-text); }
.bg-danger { background: rgba(255, 95, 123, 0.15); color: var(--danger-text); }
.bg-primary { background: rgba(67, 97, 238, 0.15); color: var(--info-text); }

.stat-card h3 {
    font-size: 34px;
    line-height: 1;
    margin: 0 0 8px;
}

.stat-card--dashboard h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.panel {
    padding: 18px;
}

.dashboard-chart-panel {
    padding: 18px 18px 10px;
}

.dashboard-chart-header {
    margin-bottom: 16px;
}

.dashboard-chart-header h3 {
    font-size: 16px;
}

.txn-stat-card h3 {
    font-size: 18px;
}

.txn-icon--violet {
    background: rgba(126, 87, 255, 0.14);
    color: #7c4dff;
}

.dashboard-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 190px;
}

.dashboard-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dashboard-card__head h3 {
    margin: 0;
    font-size: 17px;
}

.dashboard-card__head .muted {
    margin-top: 6px;
    line-height: 1.45;
}

.dashboard-card__value {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: var(--text);
}

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.table-wrap {
    overflow: auto;
}

.txn-filter-panel,
.txn-table-panel {
    border-radius: 22px;
}

.txn-filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.txn-filter-search input {
    padding-left: 14px;
}

.txn-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.txn-table {
    min-width: 980px;
}

.txn-table thead th {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.txn-table tbody td {
    vertical-align: middle;
}

.txn-id-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.08);
    color: var(--info-text);
    font-size: 12px;
    font-weight: 700;
}

.txn-member {
    display: grid;
    gap: 4px;
}

.txn-member strong {
    font-size: 14px;
}

.txn-member span {
    color: var(--muted);
    font-size: 12px;
}

.txn-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.txn-type-badge--credit {
    background: rgba(21, 195, 154, 0.12);
    color: var(--success-text);
}

.txn-type-badge--debit {
    background: rgba(255, 95, 123, 0.12);
    color: var(--danger-text);
}

.txn-amount {
    font-weight: 700;
}

.txn-amount--credit {
    color: var(--success-text);
}

.txn-amount--debit {
    color: var(--danger-text);
}

.txn-balance {
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.txn-empty {
    text-align: center;
    padding: 28px 16px !important;
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    color: var(--muted);
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-success { background: rgba(21, 195, 154, 0.14); color: var(--success-text); }
.status-pending { background: rgba(242, 182, 61, 0.14); color: var(--warning-text); }
.status-failed { background: rgba(255, 95, 123, 0.14); color: var(--danger-text); }

.footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin: 18px 16px 0;
}

.inline-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-link-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.95) 100%);
    border: 1px solid rgba(74, 108, 247, 0.08);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.08);
    transition: all 0.2s ease;
}

.quick-link-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 108, 247, 0.15);
    color: var(--primary);
    box-shadow: 0 12px 32px rgba(74, 108, 247, 0.12);
}

.metric-list {
    display: grid;
    gap: 14px;
}

.metric-item {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.copy-field {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.copy-field__value {
    flex: 1;
    display: block;
    padding: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    word-break: break-all;
    white-space: normal;
}

.copy-btn {
    min-width: 88px;
    white-space: nowrap;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(74, 108, 247, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.95) 100%);
    color: var(--primary);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.04);
}

.action-icon-btn:hover {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.08) 0%, rgba(74, 108, 247, 0.12) 100%);
    border-color: rgba(74, 108, 247, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.08);
}

.action-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.chart-shell {
    width: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.02) 0%, rgba(74, 108, 247, 0.04) 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(74, 108, 247, 0.06);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.04);
}

.chart-shell--dashboard {
    background: var(--chart-surface);
    border-color: var(--border);
    padding: 2px 2px 0;
}

.chart-shell svg {
    width: 100%;
    height: auto;
    display: block;
}

code.block {
    display: block;
    padding: 14px;
    background: var(--code-bg);
    color: var(--code-text);
    border-radius: 16px;
    white-space: pre-wrap;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stats-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }

    .topbar,
    .panel__header,
    .guest-links,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-2,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid--three {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .txn-filter-grid {
        grid-template-columns: 1fr;
    }

    .txn-filter-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .copy-field {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar__brand .brand-title {
        white-space: normal;
    }

    .sidebar__nav-shell {
        flex: initial;
    }

    .main-content {
        padding: 0 0 20px;
    }

    .page-grid {
        padding: 0 12px;
    }

    .footer {
        margin: 18px 12px 0;
    }
}

/* OTP Input Styling */
input[type="text"][maxlength="6"] {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    transition: border-color 0.2s ease;
}

input[type="text"][maxlength="6"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

input[type="text"][maxlength="6"]::placeholder {
    color: var(--muted);
    letter-spacing: normal;
    font-size: 16px;
}
