*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #05090e;
    color: #e8f3ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Lock body scrolling completely */
    -webkit-font-smoothing: antialiased;
}

.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 20%, rgba(147, 51, 234, 0.12) 0%, rgba(9, 5, 14, 0) 65%);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 100dvh;
    margin: 0 auto;
    padding: 4px 8px;
    position: relative;
    overflow: hidden;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(57, 137, 255, 0.15);
    margin-bottom: 4px;
}

.app-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b4d7fe;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    background: rgba(57, 137, 255, 0.08);
    padding: 4px 8px;
    border: 1px solid rgba(57, 137, 255, 0.25);
    border-radius: 6px;
}

.app-branding {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-branding h1 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #84bcfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #3989ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #3989ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(57, 137, 255, 0.2);
    color: #d5e9ff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-drawer {
    position: absolute;
    top: 48px;
    left: 8px;
    right: 8px;
    max-height: calc(100% - 56px);
    background: rgba(18, 10, 28, 0.99);
    border: 1px solid rgba(57, 137, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    border-radius: 10px;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-header h3 {
    margin: 0;
    font-size: 12px;
    color: #84bcfc;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: #8fc5ff;
    font-size: 18px;
    cursor: pointer;
}

.settings-scroll-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.method-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
    border: 1px solid rgba(57, 137, 255, 0.2);
    border-radius: 6px;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    color: #8fc5ff;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 4px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.sub-tab-btn.active {
    background: #247cff;
    color: #fff;
    font-weight: 700;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-label {
    font-size: 8px;
    font-weight: 700;
    color: #8fc5ff;
    letter-spacing: 0.8px;
}

.custom-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(57, 137, 255, 0.25);
    border-radius: 6px;
    padding: 6px 8px;
    color: #fff;
    font-size: 11px;
    font-family: monospace;
    outline: none;
    width: 100%;
}

.danger-zone-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-nav-container {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.app-nav-tabs {
    display: flex;
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 137, 255, 0.15);
    border-radius: 8px;
    padding: 2px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #8fc5ff;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 4px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-btn.active {
    background: #247cff;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.trip-switch-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 137, 255, 0.3);
    border-radius: 8px;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trip-badge-oneway {
    font-size: 10px;
    font-weight: 700;
    color: #84bcfc;
}

.trip-badge-twoway {
    font-size: 10px;
    font-weight: 700;
    color: #38bdf8;
}

.app-workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    min-height: 0;
    overflow: hidden;
}

.view-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.gps-status-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #b4d7fe;
    font-family: monospace;
    background: rgba(57, 137, 255, 0.04);
    padding: 5px 8px;
    border: 1px solid rgba(57, 137, 255, 0.15);
    border-radius: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #2160a8;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.active { 
    background: #3989ff; 
    box-shadow: 0 0 8px #3989ff; 
    animation: blink 1.2s infinite; 
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Cyberpunk Equalizer Fare Card --- */
.dashboard-meter-card {
    position: relative;
    background: rgba(24, 14, 38, 0.85);
    border: 1px solid rgba(57, 137, 255, 0.35);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
}

.wave-equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wave-equalizer svg {
    width: 100%;
    height: 100%;
}

.wave-layer {
    fill: none;
    stroke-linecap: round;
    transition: opacity 0.4s ease;
}

.wave-bg { stroke-width: 1.5; opacity: 0.3; }
.wave-mid { stroke-width: 2; opacity: 0.5; }
.wave-fg { stroke-width: 2.8; opacity: 0.9; }

.wave-equalizer.active .wave-bg { animation: multiWaveBg 3.2s ease-in-out infinite alternate; }
.wave-equalizer.active .wave-mid { animation: multiWaveMid 2.1s ease-in-out infinite alternate-reverse; }
.wave-equalizer.active .wave-fg { animation: multiWaveFg 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate; }

.wave-equalizer.paused .wave-layer {
    animation-play-state: paused !important;
    opacity: 0.25;
}

@keyframes multiWaveBg {
    0%   { d: path("M 0 12 Q 25 2, 50 12 T 100 12"); }
    50%  { d: path("M 0 12 Q 25 22, 50 12 T 100 12"); }
    100% { d: path("M 0 12 Q 25 6, 50 18 T 100 12"); }
}

@keyframes multiWaveMid {
    0%   { d: path("M 0 12 Q 20 20, 40 10 T 80 14 T 100 12"); }
    50%  { d: path("M 0 12 Q 30 4, 60 18 T 90 8 T 100 12"); }
    100% { d: path("M 0 12 Q 15 16, 45 6 T 75 20 T 100 12"); }
}

@keyframes multiWaveFg {
    0%   { d: path("M 0 12 Q 12 3, 25 12 T 50 12 T 75 3 T 100 12"); }
    33%  { d: path("M 0 12 Q 15 21, 35 6 T 65 18 T 85 2 T 100 12"); }
    66%  { d: path("M 0 12 Q 10 18, 30 3 T 55 21 T 80 12 T 100 12"); }
    100% { d: path("M 0 12 Q 20 1, 40 22 T 70 4 T 90 20 T 100 12"); }
}

.fare-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fare-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.metric-category {
    font-size: 8px;
    font-weight: 700;
    color: #8fc5ff;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(57, 137, 255, 0.5);
}

.huge-fare-display {
    font-size: 26px;
    font-family: monospace;
    font-weight: 800;
    color: #d5e9ff;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

.currency-tag {
    font-size: 10px;
    color: #00f0ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.sub-metrics-wrapper {
    position: relative;
    width: 100%;
}

.sub-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.mini-metric-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 137, 255, 0.15);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-label {
    font-size: 8px;
    font-weight: 700;
    color: #8fc5ff;
}

.mini-value {
    font-size: 15px;
    font-family: monospace;
    color: #e8f3ff;
}

.mini-value .unit {
    font-size: 8px;
    color: #8fc5ff;
}

.speed-overlay-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 96px;
    padding: 4px 14px;
    background: rgba(18, 10, 28, 0.95);
    clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
    filter: drop-shadow(0 0 6px rgba(57, 137, 255, 0.5));
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.speed-overlay-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(57, 137, 255, 0.8), rgba(0, 240, 255, 0.8));
    clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
    z-index: -2;
}

.speed-overlay-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: rgba(18, 10, 28, 0.96);
    clip-path: polygon(9.5px 0%, calc(100% - 9.5px) 0%, 100% 50%, calc(100% - 9.5px) 100%, 9.5px 100%, 0% 50%);
    z-index: -1;
}

.speed-overlay-card.speed-alert {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.95));
    animation: speedPulse 0.8s infinite alternate;
}

.speed-overlay-card.speed-alert::before { background: #ef4444; }
.speed-overlay-card.speed-alert::after { background: rgba(220, 38, 38, 0.95); }

.speed-overlay-card.speed-alert .mini-label,
.speed-overlay-card.speed-alert .mini-value,
.speed-overlay-card.speed-alert .mini-value .unit {
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

@keyframes speedPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.06); }
}

.action-dock {
    height: 38px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.action-btn {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #3989ff, #2272ce);
    color: #fff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35);
}

/* Green WhatsApp Button Style */
.whatsapp-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5);
}

.dual-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}

.warning-btn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.danger-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.manual-form-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(57, 137, 255, 0.15);
    border-radius: 8px;
    padding: 8px;
}

.result-box {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(57, 137, 255, 0.35);
    padding: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.highlight-fare {
    font-size: 14px;
    font-family: monospace;
    color: #d5e9ff;
}

.history-card-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: rgba(18, 10, 28, 0.6);
    border: 1px solid rgba(57, 137, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
    overflow: hidden;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.history-header h3 {
    margin: 0;
    font-size: 10px;
    color: #84bcfc;
}

.history-badge {
    font-size: 7.5px;
    background: rgba(57, 137, 255, 0.15);
    color: #b4d7fe;
    padding: 2px 5px;
    border-radius: 4px;
}

.scrollable-table-box {
    flex: 1;
    overflow-y: auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 137, 255, 0.1);
    min-height: 40px;
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    text-align: left;
    font-family: monospace;
}

.storage-table th {
    background: rgba(18, 10, 28, 0.95);
    color: #8fc5ff;
    font-size: 8px;
    font-weight: 700;
    padding: 5px 6px;
    border-bottom: 1px solid rgba(57, 137, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 2;
}

.storage-table td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #b8d9ff;
}

.storage-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(57, 137, 255, 0.15);
    border-left: 3px solid #3989ff;
}

.storage-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.storage-table tbody tr:nth-child(odd) { background: rgba(0, 0, 0, 0.25); }

.storage-table tbody tr:hover {
    background: rgba(57, 137, 255, 0.25) !important;
    box-shadow: inset 0 0 10px rgba(57, 137, 255, 0.2);
}

.storage-table tbody tr.two-way-row {
    border-left: 3px solid #38bdf8;
}

.storage-table tbody tr.two-way-row td {
    color: #a3eeff !important;
}

.empty-state {
    padding: 12px;
    text-align: center;
    color: #8fc5ff;
    font-size: 10px;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    border-top: 1px solid rgba(57, 137, 255, 0.15);
    font-size: 8px;
    color: #71717a;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    gap: 1px;
}

.footer-brand-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-icon-logo {
    width: 11px;
    height: 11px;
    object-fit: contain;
    opacity: 0.85;
}

.footer-brand-name {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b4d7fe;
}

.footer-tagline {
    color: #a1a1aa;
    font-size: 7.5px;
}

.footer-copyright {
    color: #71717a;
    font-size: 7px;
    width: 100%;
    text-align: center;
}

/* --- Modal Backdrop & Interactive Popups --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background: rgba(18, 10, 28, 0.98);
    border: 1px solid rgba(57, 137, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
}

.modal-body-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* --- Redesigned Detailed Journey Info Popup Styles --- */
.detail-modal-card {
    background: linear-gradient(165deg, rgba(24, 14, 38, 0.98) 0%, rgba(10, 5, 18, 0.99) 100%);
    border: 1px solid rgba(57, 137, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(147, 51, 234, 0.15);
}

.modal-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(57, 137, 255, 0.2);
}

.header-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title-box h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #e8f3ff;
}

.header-icon-pill {
    width: 24px;
    height: 24px;
    background: rgba(57, 137, 255, 0.15);
    border: 1px solid rgba(57, 137, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #84bcfc;
}

.trip-type-selector-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(57, 137, 255, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selector-hint {
    font-size: 8px;
    color: #247cff;
    font-family: monospace;
}

.trip-toggle-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: rgba(15, 8, 25, 0.8);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(57, 137, 255, 0.15);
}

.toggle-opt-btn {
    background: transparent;
    border: none;
    color: #8fc5ff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-opt-btn.active.oneway {
    background: linear-gradient(135deg, #247cff, #2272ce);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
}

.toggle-opt-btn.active.twoway {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.details-grid-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.detail-metric-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(57, 137, 255, 0.12);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-metric-box.full-width {
    grid-column: span 2;
}

.m-val-text {
    font-size: 12px;
    font-family: monospace;
    font-weight: 700;
    color: #e8f3ff;
}

.m-val-text.highlight {
    color: #38bdf8;
}

.fare-summary-banner {
    background: rgba(147, 51, 234, 0.08);
    border: 1px solid rgba(57, 137, 255, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fare-banner-label {
    display: flex;
    flex-direction: column;
}

.fare-banner-label span {
    font-size: 8px;
    font-weight: 700;
    color: #8fc5ff;
    letter-spacing: 0.8px;
}

.fare-banner-label small {
    font-size: 8px;
    color: #71717a;
    font-family: monospace;
}

.fare-banner-value {
    font-size: 17px;
    font-family: monospace;
    font-weight: 800;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* --- Bill Editor Popup Control Custom Styles --- */
.bill-control-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(57, 137, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.bill-toggle-btn {
    height: 30px;
    border: 1px solid rgba(57, 137, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: #8fc5ff;
}

.bill-toggle-btn.active {
    background: linear-gradient(135deg, #247cff, #2272ce);
    color: #ffffff;
    border-color: rgba(57, 137, 255, 0.5);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

/* Non-scrolling Preview Container */
.bill-iframe-container {
    border: 1px solid rgba(57, 137, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
    background: #000;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.bill-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

.screen-wake-state{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 12px;font:12px/1.5 system-ui;color:#9fbdd7;flex-wrap:wrap}.screen-wake-state button{border:1px solid #375f85;border-radius:6px;background:#163550;color:#d4eaff;padding:7px 10px;font:inherit;cursor:pointer}#gpsQualityNote{font:12px/1.5 system-ui;color:#e9c690;margin:8px 0}
