/* =======================================================
   DriftMuvi - Estilos Principais Mobile PWA (Android & iOS)
   Tema: Electric Drift Racing (Dark Neon Obsidian)
   ======================================================= */

:root {
    --bg-dark: #0b0e17;
    --bg-card: #151a28;
    --bg-card-hover: #1e2538;
    --bg-surface: #101420;
    
    --primary: #00f2fe;
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-red: #ff3366;
    --accent-amber: #f59e0b;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 242, 254, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.35);
    --shadow-alarm: 0 0 30px rgba(255, 51, 102, 0.6);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

input, textarea, select {
    user-select: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--safe-top);
    padding-bottom: calc(75px + var(--safe-bottom));
}

/* App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(11, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-amber);
    display: block;
    margin-top: -2px;
}

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

.btn-icon-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-icon-header:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Tab Views */
.tab-view {
    display: none;
    padding: 16px;
    animation: fadeIn 0.25s ease-out;
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top Quick Stats Grid (Tela Inicial) */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.stat-card:active, .stat-card.selected {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.stat-card .stat-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.stat-card.stat-ocupados .stat-value {
    color: var(--accent-red);
}

.stat-card.stat-livres .stat-value {
    color: var(--accent-green);
}

.stat-card .stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Cart Cards List */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.cart-card:active {
    transform: scale(0.985);
}

.cart-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: #000;
    overflow: hidden;
}

.cart-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.cart-card:hover .cart-thumb {
    transform: scale(1.04);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.badge-free {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.badge-busy {
    background: rgba(0, 242, 254, 0.9);
    color: #0b0e17;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.badge-paused {
    background: rgba(245, 158, 11, 0.9);
    color: #0b0e17;
}

.badge-alarm {
    background: rgba(255, 51, 102, 0.95);
    color: #fff;
    animation: badgePulse 0.8s infinite alternate;
}

@keyframes badgePulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); box-shadow: 0 0 18px rgba(255, 51, 102, 1); }
}

.cart-card-body {
    padding: 14px 16px;
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Timer Bar on Rented Card */
.rental-timer-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.timer-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.timer-digits {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.rental-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 4px;
}

.meta-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-green);
}

.rental-card-hint {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    border-top: 1px dashed var(--border);
    padding-top: 6px;
}

/* EFEITO PISCA-PISCA DO TEMPO ESGOTADO */
@keyframes cardFlashingAlarm {
    0% {
        border-color: #ff0055;
        background: #151a28;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
    }
    50% {
        border-color: #ff3366;
        background: #350815;
        box-shadow: 0 0 35px rgba(255, 0, 85, 0.9);
    }
    100% {
        border-color: #ff0055;
        background: #151a28;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
    }
}

.card-alarm-flashing {
    animation: cardFlashingAlarm 0.7s infinite !important;
}

.time-up-text {
    color: #ff3366 !important;
    text-shadow: 0 0 12px rgba(255, 51, 102, 0.8) !important;
    animation: textBlink 0.5s infinite alternate;
}

@keyframes textBlink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.card-paused {
    border-color: var(--accent-amber);
    opacity: 0.92;
}

/* Card Livre */
.free-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.free-pill {
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.btn-start-mini {
    background: var(--primary-gradient);
    border: none;
    color: #0b0e17;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Floating Action Button (+) */
.fab-btn {
    position: fixed;
    bottom: calc(85px + var(--safe-bottom));
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    border: none;
    color: #0b0e17;
    font-size: 32px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
    cursor: pointer;
    z-index: 90;
    transition: all 0.25s ease;
}

.fab-btn:active {
    transform: scale(0.92);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(65px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(15, 20, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item .nav-icon {
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

/* Period Filter Pill Bar (Despesas e Relatórios) */
.period-bar {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.period-pill {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.period-pill.active {
    background: var(--primary-gradient);
    color: #0b0e17;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.custom-date-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.custom-date-row input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 0.85rem;
}

/* Balance Hero Card (Despesas) */
.balance-hero-card {
    background: linear-gradient(135deg, #182238 0%, #101626 100%);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}

.balance-hero-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-hero-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 6px 0 14px 0;
}

.balance-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.balance-sub-item .sub-lbl {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.balance-sub-item .sub-val {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 2px;
}

.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }
.text-neon-cyan { color: var(--primary) !important; }

/* Despesas Formulário */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.btn-primary-block {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: #0b0e17;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
    transition: all 0.2s;
}

.btn-primary-block:active {
    transform: scale(0.98);
}

/* Despesas Rows */
.despesa-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.despesa-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.despesa-tipo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.badge-ent { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.badge-sai { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }

.despesa-cat {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.despesa-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.despesa-val {
    font-size: 1rem;
    font-weight: 800;
}

.btn-del-mini {
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
}

.btn-del-mini:hover {
    opacity: 1;
}

/* Relatórios Grid */
.reports-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.kpi-card.kpi-full {
    grid-column: span 2;
    background: linear-gradient(135deg, #131c30 0%, #162444 100%);
    border-color: var(--border-active);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
}

/* Receita por Carrinho Action Banner */
.banner-receita-carrinho {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 1px solid rgba(255, 0, 128, 0.4);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.2);
    transition: transform 0.2s;
}

.banner-receita-carrinho:active {
    transform: scale(0.98);
}

.banner-content h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.banner-content p {
    font-size: 0.76rem;
    color: #f472b6;
    margin-top: 3px;
}

.banner-arrow {
    font-size: 1.4rem;
    color: #f472b6;
}

/* Payment Breakdown Bar */
.payment-method-row {
    margin-bottom: 10px;
}

.pm-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.pm-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.pm-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* ROI Receita por Carrinho Modal */
.roi-cart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.roi-cart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.roi-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.roi-cart-title {
    font-size: 0.98rem;
    font-weight: 700;
}

.roi-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 2px;
}

.badge-paid {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.badge-unpaid {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber);
}

.roi-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-surface);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.roi-stats-grid .lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
}

.roi-stats-grid .val {
    font-size: 0.85rem;
    font-weight: 700;
}

.roi-progress-box {
    margin-top: 6px;
}

.roi-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.roi-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.roi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #00f2fe 100%);
    border-radius: var(--radius-full);
}

.roi-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Modals (Slide-up Glassmorphism) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

.modal-sheet {
    background: #121724;
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 20px calc(24px + var(--safe-bottom)) 20px;
    animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin: -8px auto 16px auto;
}

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

.sheet-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-close-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Big Timer in Modal Detalhes Locação */
.big-timer-container {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.big-timer-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    line-height: 1;
    margin: 8px 0;
}

.modal-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-modal-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-modal-action:active {
    transform: scale(0.97);
}

.btn-pause { border-color: var(--accent-amber); color: var(--accent-amber); }
.btn-resume { border-color: var(--accent-green); color: var(--accent-green); }

.btn-danger-block {
    width: 100%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Nova Locação Duration Pills */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.duration-pill-option input {
    display: none;
}

.duration-pill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
}

.duration-pill-option input:checked + .duration-pill-card {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: #0b0e17;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

/* Cart Select Radio Options */
.cart-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.cart-select-option input {
    display: none;
}

.cart-select-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-select-option input:checked + .cart-select-card {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.cart-select-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-select-name {
    font-size: 0.78rem;
    font-weight: 700;
}

/* Payment Method Radio Options */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.payment-option input {
    display: none;
}

.payment-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.payment-option input:checked + .payment-card {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

/* Toast */
.toast-msg {
    position: fixed;
    top: calc(75px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    transition: all 0.3s ease;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
}

.empty-subtitle {
    font-size: 0.82rem;
    margin-top: 4px;
}

/* Settings Items */
.settings-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
}

.cart-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-setting-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-setting-info {
    flex: 1;
    margin: 0 12px;
}

.cart-setting-info strong {
    display: block;
    font-size: 0.88rem;
}

.cart-setting-info span {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.btn-action-sm {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}
