/* ==========================================================================
   CSS VARIABLES & GLOBAL RESETS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark-base: #030712;      /* Slate 950 */
    --bg-card: #0f172a;           /* Slate 900 */
    --bg-card-light: #1e293b;     /* Slate 800 */
    --bg-input: #020617;          /* Slate 950 Gelap */
    
    --primary: #6366f1;           /* Indigo 500 */
    --primary-hover: #4f46e5;     /* Indigo 600 */
    --primary-light: rgba(99, 102, 241, 0.1);
    
    --success: #10b981;           /* Emerald 500 */
    --success-light: rgba(16, 185, 129, 0.12);
    --success-bg-card: rgba(16, 185, 129, 0.04);
    
    --danger: #f43f5e;            /* Rose 500 */
    --danger-light: rgba(244, 63, 94, 0.12);
    --danger-bg-card: rgba(244, 63, 94, 0.04);
    
    --warning: #f59e0b;           /* Amber 500 */
    --warning-light: rgba(245, 158, 11, 0.12);

    --text-main: #f8fafc;         /* Slate 50 */
    --text-muted: #94a3b8;        /* Slate 400 */
    --text-dark: #64748b;         /* Slate 500 */
    
    --border-color: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark-base);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   APP FRAME EMULATOR (iPhone-like Viewport)
   ========================================================================== */
.app-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #090d16;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

/* Aturan untuk skrin monitor Desktop */
@media (min-width: 640px) {
    .app-frame {
        width: 420px;
        height: 860px;
        border-radius: 48px;
        border: 8px solid #1e293b; /* Tebal bingkai emulator */
    }
}

/* Simulator Bar Status iOS */
.status-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px 8px 32px;
    background-color: #03060a;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
    z-index: 50;
    position: relative;
}

@media (min-width: 640px) {
    .status-bar {
        display: flex;
    }
}

.dynamic-island {
    width: 96px;
    height: 16px;
    background-color: #000;
    border-radius: 99px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-svg {
    width: 14px;
    height: 14px;
}

.badge-network {
    font-size: 9px;
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 800;
}

/* ==========================================================================
   TOAST SYSTEM
   ========================================================================== */
.toast {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    background-color: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    transform: translateY(-120px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 100;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Toast Color States */
.toast.toast-error {
    background-color: rgba(244, 63, 94, 0.95);
}

.toast.toast-info {
    background-color: rgba(99, 102, 241, 0.95);
}

.toast-icon {
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg-toast {
    width: 16px;
    height: 16px;
}

.toast-text {
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   VIEW CONTROLLER DEFINITIONS
   ========================================================================== */
.view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.view.active {
    display: flex;
}

.sub-view {
    display: none;
    animation: fadeIn 0.25s ease-out forwards;
}

.sub-view.active {
    display: block;
}

/* Scrollable Container */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none; /* Firefox */
}

.scroll-content::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   1. LOGIN PAGE STYLING
   ========================================================================== */
.view-login {
    background: linear-gradient(180deg, #090d16 0%, #03050a 100%);
    padding: 24px;
    justify-content: space-between;
    overflow-y: auto;
}

.brand-header {
    text-align: center;
    padding-top: 32px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    margin-bottom: 16px;
}

.brand-icon-svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-container {
    margin: auto 0;
    padding: 24px 0;
}

.login-card {
    background-color: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-headline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 16px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.forgot-link {
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-relative {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.field-icon {
    width: 20px;
    height: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-eye {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-eye:hover {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--bg-card-light);
}

.btn-full {
    width: 100%;
}

.btn-arrow-icon {
    width: 16px;
    height: 16px;
}

.demo-hints {
    text-align: center;
    margin-top: 20px;
}

.demo-title {
    font-size: 11px;
    color: var(--text-dark);
}

.demo-values {
    font-size: 11px;
    color: var(--primary);
    margin-top: 4px;
}

.brand-footer {
    text-align: center;
    padding-bottom: 8px;
    font-size: 10px;
    color: var(--text-dark);
}

/* ==========================================================================
   2. MAIN APP SHELL STYLING
   ========================================================================== */
.app-shell {
    background-color: var(--bg-dark-base);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 40;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.company-details {
    display: flex;
    flex-direction: column;
}

.company-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.company-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.company-id {
    font-size: 10px;
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-action-round {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.btn-action-round:hover {
    background-color: var(--bg-card-light);
    color: var(--text-main);
}

.action-icon {
    width: 18px;
    height: 18px;
}

.bell-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    background-color: var(--danger);
    border-radius: 99px;
    border: 1.5px solid #0f172a;
}

.logout-color:hover {
    background-color: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--danger);
}

/* ==========================================================================
   3.1 DASHBOARD VIEW
   ========================================================================== */
.dashboard-greeting-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.welcome-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-date {
    font-size: 11px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    color: #a5b4fc;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* KPI CARDS GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-card {
    background-color: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.card-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-color: rgba(16, 185, 129, 0.1);
}

.card-red {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.04) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-color: rgba(244, 63, 94, 0.1);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-indigo { color: var(--primary); }

.bg-green-light { background-color: var(--success-light); }
.bg-red-light { background-color: var(--danger-light); }
.bg-indigo-light { background-color: var(--primary-light); }

.icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap-icon {
    width: 16px;
    height: 16px;
}

.summary-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.summary-footer {
    font-size: 9px;
    color: var(--text-dark);
    margin-top: 6px;
}

/* Profit Banner Card */
.profit-kpi-card {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 24px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profit-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profit-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profit-value {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.profit-desc {
    font-size: 10px;
    color: #818cf8;
}

.profit-badge-icon {
    padding: 10px;
    background-color: var(--primary-light);
    border-radius: 16px;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.profit-svg {
    width: 22px;
    height: 22px;
}

/* Quick Actions Tile Layout */
.action-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 2px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.action-tile {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-tile:hover {
    background-color: var(--bg-card-light);
    border-color: var(--border-highlight);
}

.action-tile:active {
    transform: scale(0.96);
}

.tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tile-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

/* Recent Transactions Section */
.recent-trans-section {
    margin-bottom: 20px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

.transactions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TRANSACTION ROW DESIGN */
.trans-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 18px;
    transition: var(--transition-fast);
}

.trans-row:hover {
    background-color: var(--bg-card-light);
}

.trans-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trans-category-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.trans-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trans-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.trans-subtitle {
    font-size: 10px;
    color: var(--text-dark);
}

.trans-right {
    text-align: right;
}

.trans-amount {
    font-size: 13px;
    font-weight: 700;
}

.trans-date {
    font-size: 9px;
    color: var(--text-dark);
    margin-top: 2px;
}

/* ==========================================================================
   3.2 TRANSACTIONS PAGE (LIST VIEW)
   ========================================================================== */
.view-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add-primary {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-add-primary:hover {
    background-color: var(--primary-hover);
}

.btn-add-icon {
    width: 20px;
    height: 20px;
}

/* Filters Controllers */
.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-span {
    position: absolute;
    left: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 12px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.pill.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.pill:hover:not(.active) {
    color: #fff;
}

/* ==========================================================================
   3.3 REPORTS PAGE STYLING
   ========================================================================== */
.analytics-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(3, 5, 10, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 20px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.analytics-header {
    display: flex;
    justify-between: space-between;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analytics-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.analytics-badge {
    font-size: 9px;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.bars-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.bar-title {
    color: var(--text-muted);
}

.bar-percentage {
    font-weight: 700;
}

.bar-track {
    width: 100%;
    height: 10px;
    background-color: #03060a;
    border-radius: 99px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-green {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.fill-red {
    background: linear-gradient(90deg, #f43f5e 0%, #e11d48 100%);
}

.analytics-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.stats-section {
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px;
}

.stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    display: block;
}

.stat-number {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
    display: block;
}

.stat-trend {
    font-size: 9px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* ==========================================================================
   3.4 MORE PAGE (SETTINGS)
   ========================================================================== */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.user-role {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.user-subid {
    font-size: 9px;
    color: var(--text-dark);
}

.settings-group {
    margin-bottom: 24px;
}

.settings-category-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-left: 6px;
}

.settings-list-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background-color: var(--bg-card-light);
}

.setting-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-icon {
    width: 18px;
    height: 18px;
}

.text-violet { color: #a78bfa; }
.text-teal { color: #2dd4bf; }
.text-orange { color: #fb923c; }

.setting-text {
    font-size: 12px;
    font-weight: 650;
    color: #cbd5e1;
}

.chevron-right {
    width: 14px;
    height: 14px;
    color: var(--text-dark);
}

.btn-logout-secondary {
    width: 100%;
    padding: 12px;
    background-color: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-logout-secondary:hover {
    background-color: rgba(244, 63, 94, 0.15);
}

/* ==========================================================================
   4. BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #0d1321;
    border-top: 1px solid var(--border-color);
    padding: 6px 12px 18px 12px;
    z-index: 40;
}

@media (min-width: 640px) {
    .bottom-nav {
        padding-bottom: 12px;
    }
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 60px;
    padding: 6px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-indicator {
    position: absolute;
    top: -8px;
    width: 18px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 99px;
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .tab-indicator {
    transform: scaleX(1);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.tab-label {
    font-size: 9px;
    font-weight: 700;
}

.virtual-home-indicator {
    height: 4px;
    width: 110px;
    background-color: #334155;
    border-radius: 99px;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ==========================================================================
   5. MODAL SYSTEM STYLING
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.modal-title-text {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

.btn-close:hover {
    color: var(--text-muted);
}

.close-icon {
    width: 18px;
    height: 18px;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.modal-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.modal-input, .modal-select {
    width: 100%;
    padding: 11px 14px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 13px;
}

.modal-input:focus, .modal-select:focus {
    outline: none;
    border-color: var(--primary);
}

.text-bold {
    font-weight: 700;
    font-size: 16px;
}

.modal-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 750;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-cancel {
    background-color: var(--bg-card-light);
    color: var(--text-muted);
}

.btn-save {
    background-color: var(--primary);
    color: #fff;
}

.btn-save:hover {
    background-color: var(--primary-hover);
}