/* ============================================================
   GILGAMEZ ADMIN DASHBOARD — Reworked Executive Layout
   Enforces Rule #1, Rule #3, Rule #4, Rule #6 (5-Tier Responsive)
   ============================================================ */

/* ---- Welcome banner ---- */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dash-welcome-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.dash-welcome-text p {
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    margin: 0;
}

.dash-welcome-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ---- Stat cards row ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--theme-bg-card, var(--bg-surface, rgba(22, 24, 34, 0.85)));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.06)));
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.stat-card:hover {
    border-color: var(--primary-light, rgba(99, 102, 241, 0.3));
    transform: translateY(-2px);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary, rgba(99,102,241,0.5)), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.stat-card:hover::after { opacity: 1; }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-primary-light { background: var(--primary-glow, rgba(99,102,241,0.15)); color: var(--primary-light, #818cf8); }
.bg-success-light { background: rgba(16,185,129,0.15); color: #34d399; }
.bg-warning-light { background: rgba(245,158,11,0.15); color: #fbbf24; }
.bg-info-light    { background: rgba(14,165,233,0.15);  color: #38bdf8; }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted, var(--text-muted, #94a3b8));
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-text-primary, var(--text-primary, #ffffff));
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--theme-text-muted, var(--text-muted, #94a3b8));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-meta.up   { color: #34d399; }
.stat-meta.down { color: #f87171; }

/* ---- Telemetry & Middle Grid (2 Columns) ---- */
.dashboard-telemetry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.dash-telemetry-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ---- Shared Card Styles ---- */
.dash-card {
    background: var(--theme-bg-card, var(--bg-surface, rgba(22, 24, 34, 0.85)));
    border: 1px solid var(--theme-border, var(--border, rgba(255, 255, 255, 0.06)));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-card:hover {
    border-color: var(--border, rgba(255, 255, 255, 0.1));
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--theme-border-subtle, var(--border, rgba(255, 255, 255, 0.05)));
    gap: 12px;
    flex-wrap: wrap;
}

.dash-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-text-primary, var(--text-primary, #ffffff));
    margin: 0;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dash-card-body {
    padding: 18px 20px;
    flex: 1;
    min-width: 0;
}

/* ---- Requirements & Health Card ---- */
.req-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.req-health-badge.all-pass {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.req-health-badge.has-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.req-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.req-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #34d399 100%);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.req-specs-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.req-spec-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.req-spec-label {
    font-size: 10.5px;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.req-spec-value {
    font-size: 12px;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fluid Auto-Fitting Checklist Grid with zero overflow */
.req-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.req-item-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-width: 0;
    box-sizing: border-box;
}

.req-item-pill:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.req-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.req-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.req-dot.pass {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.req-dot.fail {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
}

.req-item-name {
    color: var(--text-primary, #ffffff);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.req-badge {
    font-size: 11px !important;
    padding: 3px 8px !important;
    font-weight: 600 !important;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 6px !important;
}

.balance-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.balance-card:hover {
    border-color: rgba(99, 102, 241, 0.55);
}

.balance-card.gateway-style {
    background: linear-gradient(135deg, rgba(12, 30, 56, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.35);
}

.balance-card.gateway-style:hover {
    border-color: rgba(56, 189, 248, 0.55);
}

.balance-card.gateway-style .balance-card-ambient {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}

.balance-card.gateway-style .balance-provider-link {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.25);
}

.balance-card.gateway-style .balance-provider-link:hover {
    background: rgba(14, 165, 233, 0.22);
    color: #bae6fd;
}

.balance-card.gateway-style .balance-action-link {
    color: #38bdf8;
}

.balance-card.wallet-style {
    background: linear-gradient(135deg, rgba(6, 44, 34, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(52, 211, 153, 0.35);
}

.balance-card.wallet-style:hover {
    border-color: rgba(52, 211, 153, 0.55);
}

.balance-card.wallet-style .balance-card-ambient {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
}

.balance-card.wallet-style .balance-provider-link {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.balance-card.wallet-style .balance-provider-link:hover {
    background: rgba(16, 185, 129, 0.22);
    color: #a7f3d0;
}

.balance-card.wallet-style .balance-action-link {
    color: #34d399;
}

.dash-balances-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.balance-card-ambient {
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.balance-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    display: inline-block;
}

.balance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.balance-provider-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #818cf8;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.balance-provider-link:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
}

.balance-amount-display {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    text-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.balance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.balance-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.balance-action-link {
    font-size: 11.5px;
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.balance-action-link:hover {
    color: #e9d5ff;
}

/* Status Ratio Bar */
.status-ratio-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 0 12px;
}

.status-ratio-segment {
    height: 100%;
    transition: width 0.5s ease;
}

/* Quick stats list */
.quick-stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.quick-stat-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.quick-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-secondary, #cbd5e1);
}

.quick-stat-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.quick-stat-val {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

/* ---- Quick Actions Grid ---- */
.dash-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dash-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 0;
}

.dash-action-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #818cf8;
    transform: translateY(-2px);
}

.dash-action-icon {
    font-size: 18px;
    line-height: 1;
}

/* ---- Full-Width Recent Transactions Card ---- */
.dash-transactions-card {
    width: 100%;
    margin-bottom: 24px;
}

.dash-transactions-card .dash-card-body {
    padding: 0;
}

/* Fluid, Zero-Horizontal-Scroll Table */
.dash-fluid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.dash-fluid-table th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dash-fluid-table td {
    padding: 12px 20px;
    color: var(--text-secondary, #cbd5e1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.dash-fluid-table tbody tr:last-child td { border-bottom: none; }

.dash-fluid-table tbody tr {
    transition: background 0.15s ease;
}

.dash-fluid-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-primary, #ffffff);
}

.dash-fluid-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Mobile Transaction Stream Cards (Active on mobile <= 640px) */
.tx-mobile-stream {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
}

.tx-stream-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-stream-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tx-stream-product {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
}

.tx-stream-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.tx-stream-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

/* ---- Module Status Item (Case A) ---- */
.module-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.module-status-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---- Empty / loading states ---- */
.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #94a3b8);
    font-size: 13.5px;
}

.dash-empty svg {
    display: block;
    margin: 0 auto 12px;
    opacity: 0.35;
}

/* ---- Skeleton loader ---- */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    background: rgba(22,24,34,0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    min-height: 100px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- btn-sm ---- */
.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 8px;
    font-weight: 500;
}

/* ============================================================
   5-Tier Responsive Architecture (Rule #6)
   ============================================================ */

/* 1. Desktop 4K / Ultra-wide (1920px+) */
@media (min-width: 1920px) {
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .dashboard-telemetry-grid { grid-template-columns: 1.35fr 1fr; gap: 24px; }
    .stat-card { padding: 22px 24px; }
    .stat-value { font-size: 28px; }
    .req-checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* 2. Desktop / Laptop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .dashboard-telemetry-grid { grid-template-columns: 1.3fr 1fr; gap: 20px; }
    .req-checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* 3. Medium Desktop & Laptop (1100px - 1439px) — Prevent telemetry pill squish */
@media (min-width: 1100px) and (max-width: 1439px) {
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .dashboard-telemetry-grid { grid-template-columns: 1.25fr 1fr; gap: 18px; }
    .req-checklist-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* 4. Tablet (769px - 1099px) — Clean stacked grid */
@media (min-width: 769px) and (max-width: 1099px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .dashboard-telemetry-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .req-checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dash-quick-actions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

/* 5. Mobile Landscape & Small Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .dash-welcome { flex-direction: column; align-items: stretch; gap: 12px; }
    .dash-welcome-actions { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dash-welcome-actions .btn { justify-content: center; width: 100%; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stat-card { padding: 14px 16px; }
    .stat-value { font-size: 20px; }
    .dashboard-telemetry-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .req-specs-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .req-checklist-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .dash-quick-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* 6. Mobile Small Breakpoint for Table -> Stream Switch (<= 640px) */
@media (max-width: 640px) {
    .tx-desktop-table { display: none !important; }
    .tx-mobile-stream { display: flex !important; }
}

/* 7. Mobile Portrait (320px - 480px) — Ultra Compact, Fluid Layout */
@media (max-width: 480px) {
    .dash-welcome { padding: 4px 0 12px; gap: 10px; }
    .dash-welcome h1 { font-size: 1.2rem; }
    .dash-welcome-actions { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dash-welcome-actions .btn { justify-content: center; width: 100%; font-size: 12px; padding: 7px 10px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stat-card { padding: 10px 12px; gap: 10px; border-radius: 12px; }
    .stat-icon { width: 34px; height: 34px; border-radius: 8px; }
    .stat-icon svg { width: 18px; height: 18px; }
    .stat-label { font-size: 10px; margin-bottom: 3px; }
    .stat-value { font-size: 16px; }
    .stat-meta { display: none; }
    .dashboard-telemetry-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .dash-card-header { padding: 12px 14px; }
    .dash-card-title { font-size: 13px; }
    .req-health-badge { font-size: 10.5px; padding: 3px 8px; }
    .dash-card-body { padding: 12px 14px; }
    .req-specs-summary { grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; }
    .req-checklist-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .req-item-pill { padding: 6px 10px; font-size: 11px; }
    .req-item-name { font-size: 11.5px; }
    .req-badge { font-size: 10px !important; padding: 2px 6px !important; }
    .balance-card { padding: 14px 16px; }
    .balance-amount-display { font-size: 19px; }
    .dash-quick-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dash-action-btn { padding: 8px 6px; font-size: 11px; }
}

/* 8. Live Sync Action Animation & Ref Links */
@keyframes dashSpinSyncAnimation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning-sync-icon {
    animation: dashSpinSyncAnimation 0.85s linear infinite !important;
}

.tx-ref-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    cursor: pointer;
}

.tx-ref-link:hover {
    opacity: 0.8;
    transform: translateX(1px);
}

.tx-ref-link code {
    color: var(--primary-light, #818cf8);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.15s, border-color 0.15s;
}

.tx-ref-link:hover code {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.45);
}

