:root {
    /* Color System */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(17, 24, 39, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #00d4ff;
    --accent-blue-glow: rgba(0, 212, 255, 0.3);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-orange: #f59e0b;
    --accent-orange-glow: rgba(245, 158, 11, 0.3);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    
    --gradient-blue: linear-gradient(135deg, #00d4ff, #0066ff);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    --gradient-orange: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.05));
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 212, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.15);
    
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --tab-height: 70px;
    --header-height: 60px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background animated gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: var(--bg-primary);
    padding: 20px;
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow-blue);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    outline: none;
}

.login-form input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    display: none;
}

.login-error.show {
    display: block;
    animation: shakeX 0.5s ease;
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.btn:active::after {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
}

.btn-success {
    background: var(--gradient-green);
    color: white;
    box-shadow: var(--shadow-glow-green);
}

.btn-danger {
    background: var(--gradient-red);
    color: white;
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-active);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== APP SHELL ==================== */
.app-container {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

.app-container.active {
    display: flex;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    padding: 0 20px;
    padding-top: var(--safe-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* Main Content */
.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 20px);
    overflow-y: auto;
}

/* Tab Pages */
.tab-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Bottom Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.tab-item .tab-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.tab-item.active {
    color: var(--accent-blue);
}

.tab-item.active .tab-icon {
    transform: scale(1.15);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 0 0 4px 4px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-gradient {
    background: var(--gradient-card);
    border-color: rgba(0, 212, 255, 0.12);
}

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

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.badge-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.blue::before { background: var(--gradient-blue); }
.stat-card.green::before { background: var(--gradient-green); }
.stat-card.orange::before { background: var(--gradient-orange); }
.stat-card.purple::before { background: var(--gradient-purple); }

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==================== BILL RESULT CARD ==================== */
.bill-result {
    display: none;
    animation: slideUp 0.5s ease;
}

.bill-result.show {
    display: block;
}

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

.bill-breakdown {
    margin: 16px 0;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.bill-row:last-child {
    border-bottom: none;
}

.bill-row .label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bill-row .value {
    font-weight: 600;
}

.bill-row.total {
    border-top: 2px solid var(--accent-blue);
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
}

.bill-row.total .label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.bill-row.total .value {
    font-size: 1.3rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bill-row.tier-low .value { color: var(--accent-green); }
.bill-row.tier-high .value { color: var(--accent-orange); }
.bill-row.tax .value { color: var(--accent-purple); }

/* ==================== YEARLY PROGRESS ==================== */
.yearly-progress {
    margin: 16px 0;
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
    background: var(--gradient-green);
}

.progress-bar-fill.warning {
    background: var(--gradient-orange);
}

.progress-bar-fill.danger {
    background: var(--gradient-red);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-message {
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.progress-message.ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.progress-message.warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.progress-message.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* ==================== LISTS ==================== */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.list-item:active {
    transform: scale(0.98);
}

.list-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.list-item .item-icon.blue { background: rgba(0, 212, 255, 0.15); }
.list-item .item-icon.green { background: rgba(16, 185, 129, 0.15); }
.list-item .item-icon.orange { background: rgba(245, 158, 11, 0.15); }
.list-item .item-icon.red { background: rgba(239, 68, 68, 0.15); }
.list-item .item-icon.purple { background: rgba(139, 92, 246, 0.15); }

.list-item .item-info {
    flex: 1;
    min-width: 0;
}

.list-item .item-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .item-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.list-item .item-value {
    text-align: right;
    flex-shrink: 0;
}

.list-item .item-amount {
    font-weight: 700;
    font-size: 1rem;
}

.list-item .item-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
    display: inline-block;
}

.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.status-unpaid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* ==================== CHARTS ==================== */
.chart-container {
    width: 100%;
    height: 220px;
    position: relative;
    margin: 16px 0;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px;
    padding-bottom: calc(24px + var(--safe-bottom));
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-top) + 10px);
    right: 16px;
    left: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    pointer-events: auto;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.warning { border-left: 3px solid var(--accent-orange); }
.toast.info { border-left: 3px solid var(--accent-blue); }

.toast-icon { font-size: 20px; }
.toast-message { font-size: 0.9rem; flex: 1; }

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.empty-state .empty-hint {
    font-size: 0.8rem;
}

/* ==================== APARTMENT TABS ==================== */
.apt-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.apt-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.apt-tab.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
    border-color: rgba(0, 212, 255, 0.3);
}

.apt-tab:hover {
    border-color: var(--border-active);
}

/* ==================== SETTINGS SECTION ==================== */
.settings-section {
    margin-bottom: 24px;
}

.settings-section .section-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-item:hover {
    border-color: var(--border-active);
}

.settings-item .si-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-item .si-icon {
    font-size: 20px;
}

.settings-item .si-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.settings-item .si-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.settings-item .si-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .app-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tab-bar {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ==================== UTILITY ==================== */
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-orange { color: var(--accent-orange); }
.text-red { color: var(--accent-red); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.fs-xs { font-size: 0.75rem; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

/* ==================== FIX: Select Dropdown Dark Mode ==================== */
select.form-control option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px;
}

select.form-control {
    background-color: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

/* ==================== SHARE CARD ==================== */
.share-card {
    background: #111827;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 24px 20px;
    margin: 16px 0;
    text-align: center;
}

.share-card .share-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #00d4ff;
}

.share-card .share-period {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.share-card .share-amount {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.share-card .share-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.6;
}

.share-card .share-detail strong {
    color: #f1f5f9;
}

.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    flex: 1;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

/* ==================== INFO BLOCK ==================== */
.info-block {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.info-block strong {
    color: #00d4ff;
}
