/* ==========================================================================
   Bookmap Savings - Withdrawal Simulation CSS
   Theme: Premium Dark Slate with Gold (#d4af37) & Tether Green (#10b981) Accents
   ========================================================================== */

/* Global Custom Variables & Variables System */
:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f1624;
    --bg-tertiary: #172237;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-color-hover: rgba(212, 175, 55, 0.35);
    --border-color-green: rgba(16, 185, 129, 0.2);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-gold: #d4af37;
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    --accent-gold-gradient: linear-gradient(135deg, #f3d06c 0%, #d4af37 100%);
    
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-green-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    
    --accent-red: #ef4444;
    --accent-red-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(15, 22, 36, 0.7);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-logo .logo-icon {
    font-size: 24px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px var(--accent-gold-glow));
}

.sidebar-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: capitalize;
}

.sidebar-logo .logo-text span {
    color: var(--accent-gold);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
}

.menu-item i {
    font-size: 18px;
    transition: transform var(--transition-speed) ease;
}

.menu-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.menu-item:hover i {
    transform: translateX(3px);
}

.menu-item.active {
    color: var(--bg-primary);
    background: var(--accent-gold-gradient);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.menu-item.active i {
    color: var(--bg-primary);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-primary);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
}

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

.main-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* User Profile Widget */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.notifications:hover {
    color: var(--accent-gold);
}

.notifications .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-secondary);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.user-status {
    font-size: 10px;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-col-full {
    grid-column: 1 / -1;
}

.grid-col-2-3 {
    grid-column: span 2;
}

.withdraw-interface {
    grid-column: span 2;
}


/* Card Styling (Premium Glassmorphic Glass) */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    border-color: var(--border-color-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-header i {
    font-size: 18px;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.text-gold {
    color: var(--accent-gold);
}

.text-green {
    color: var(--accent-green);
}

.description {
    color: var(--text-secondary);
    font-size: 12.5px;
    margin-bottom: 24px;
}

/* Section: Real-time Balances Grid */
.section-balances {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.balance-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.balance-card.main-idr {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.25);
}

.balance-card.main-idr .card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-gold);
    opacity: 0.08;
    filter: blur(50px);
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.balance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-meta .label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.balance-meta .icon {
    font-size: 20px;
    color: var(--accent-gold);
}

.balance-card .value {
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 15px 0;
}

.balance-card.main-idr .value {
    font-size: 36px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.balance-card.asset-usdt .value {
    font-size: 26px;
    color: var(--accent-green);
}

.balance-card.asset-gold .value {
    font-size: 26px;
    color: var(--accent-gold);
}

.asset-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.asset-logo.usdt {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--border-color-green);
}

.asset-logo.gold {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
}

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

.footer-meta .sub-label {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-meta .trend {
    font-size: 12px;
    font-weight: 700;
}

.footer-meta .trend.up {
    color: var(--accent-green);
}

.footer-meta .value-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Widgets Layout (Sliders and Inputs) */
.control-group {
    margin-bottom: 25px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.control-label span {
    color: var(--text-secondary);
    font-weight: 500;
}

.control-label strong {
    font-family: var(--font-heading);
    font-size: 16px;
}

#label-usd-idr {
    color: var(--accent-green);
}

#label-gold-usd {
    color: var(--accent-gold);
}

/* Range Slider Styling */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    transition: background 0.3s;
}

.slider-usd::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent-green) 0%, var(--accent-green) 50%, var(--bg-tertiary) 50%, var(--bg-tertiary) 100%);
    height: 6px;
    border-radius: 3px;
}

.slider-gold::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent-gold) 0%, var(--accent-gold) 50%, var(--bg-tertiary) 50%, var(--bg-tertiary) 100%);
    height: 6px;
    border-radius: 3px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: -6px;
    transition: transform 0.1s, background-color 0.2s;
}

.slider-usd::-webkit-slider-thumb {
    border: 3px solid var(--accent-green);
}

.slider-gold::-webkit-slider-thumb {
    border: 3px solid var(--accent-gold);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

/* Toggle Correlation Switch */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.switch-label {
    cursor: pointer;
}

.switch-text {
    display: flex;
    flex-direction: column;
}

.switch-text span {
    font-weight: 600;
    color: var(--text-primary);
}

.switch-text small {
    color: var(--text-muted);
    font-size: 11px;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--accent-gold);
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* Explanation Box */
.explanation-box {
    display: flex;
    gap: 15px;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.explanation-box .box-icon {
    font-size: 18px;
    color: var(--accent-gold);
}

.explanation-box .box-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.explanation-box .box-text p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Forms: Withdrawal Interface */
.exness-lock-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.exness-lock-banner i {
    font-size: 16px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 5px var(--accent-gold-glow));
    animation: lock-pulse 2.5s infinite;
}

@keyframes lock-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.01) !important;
    color: var(--text-muted) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none !important;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12.5px;
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.max-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.max-badge:hover {
    text-decoration: underline;
}

/* Asset Selector Grid */
.asset-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.asset-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.asset-option:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.01);
}

.asset-option.active {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.03);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
}

.asset-option.active .option-icon {
    transform: scale(1.1);
}

.asset-option .option-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: justify;
    justify-content: center;
    transition: transform 0.2s;
}

.asset-option .option-details {
    display: flex;
    flex-direction: column;
}

.asset-option .option-details .name {
    font-weight: 600;
    font-size: 13px;
}

.asset-option .option-details .sub {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Select Wrapper Custom Dropdowns */
.select-wrapper {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.05);
}

.select-wrapper select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Input Addon Wrapper */
.input-addon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-addon-wrapper input {
    padding-right: 70px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.addon-text {
    position: absolute;
    right: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Percentage Shortcuts */
.percent-shortcuts {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-shortcut {
    flex: 1;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-shortcut:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-shortcut.active {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    font-weight: 700;
}

/* Preview Box conversion info */
.conversion-preview-box {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.preview-row:last-child {
    margin-bottom: 0;
}

.preview-row strong {
    color: var(--text-primary);
}

.preview-row.total-highlight {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-primary);
}

.preview-row.total-highlight strong {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.04);
    border-color: var(--accent-gold);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

/* Relationship Chart */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* Educational Guide */
.edu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-step {
    display: flex;
    gap: 15px;
}

.step-num {
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.step-body h4 {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 4px;
}

.step-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Data Table (History) */
.header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text-primary);
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.badge-status {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.badge-status.pending {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.code-font {
    font-family: monospace;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}

/* Modals System styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.modal-header.header-no-border {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.text-center {
    text-align: center;
}

/* PIN CARD Specifics */
.pin-icon {
    font-size: 32px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.pin-display .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.pin-display .dot.filled {
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.pin-btn {
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 15px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.pin-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

.pin-btn:active {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

.pin-btn.text-red {
    color: var(--accent-red);
}

.pin-btn.text-green {
    color: var(--accent-green);
}

/* Spinner Loader */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.py-5 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mt-4 {
    margin-top: 20px;
}

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

/* Success Card details */
.success-icon {
    font-size: 64px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.receipt-summary-box {
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px;
    margin: 25px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.summary-item:last-child {
    margin-bottom: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    margin-top: 12px;
}

.summary-item span {
    color: var(--text-secondary);
}

.summary-item strong {
    color: var(--text-primary);
}

.receipt-summary-box code {
    background-color: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Printable Official Receipt / Invoice styles */
.receipt-card {
    max-width: 600px;
}

#receipt-print-area {
    background-color: #ffffff;
    color: #1a202c;
    border-radius: 12px;
    padding: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.receipt-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
}

.receipt-logo i {
    color: #d4af37;
}

.receipt-logo span span {
    color: #d4af37;
}

.receipt-title {
    text-align: right;
}

.receipt-title h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 0.5px;
}

.receipt-title .invoice-number {
    font-family: monospace;
    font-size: 11px;
    color: #718096;
}

.receipt-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 20px 0;
}

.receipt-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 12px;
}

.receipt-lbl {
    display: block;
    color: #718096;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.receipt-val {
    color: #1a202c;
    font-weight: 700;
}

.receipt-val.text-green {
    color: #38a169;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
}

.receipt-table th {
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 0;
    color: #718096;
    font-weight: 700;
    text-align: left;
}

.receipt-table td {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.receipt-sub-desc {
    font-size: 10px;
    color: #718096;
}

.receipt-table tr.grand-total-row td {
    font-weight: 800;
    font-size: 14px;
    color: #1a202c;
    border-top: 2px solid #e2e8f0;
    border-bottom: double 3px #1a202c;
}

.receipt-table tr.grand-total-row td:last-child {
    color: #38a169;
}

.receipt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.authorized-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #718096;
}

.sig-stamp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: 2px solid #d4af37;
}

.receipt-notice {
    margin-top: 25px;
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 12px;
    font-size: 9.5px;
    color: #718096;
    text-align: center;
    line-height: 1.4;
    border: 1px solid #edf2f7;
}

.text-right {
    text-align: right !important;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-balances {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .balance-card.main-idr {
        grid-column: span 2;
    }
    .withdraw-interface {
        grid-column: span 1;
    }
    .grid-col-2-3 {
        grid-column: span 2;
    }
    .educational-guide {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
        align-items: center;
    }
    .sidebar-logo .logo-text, .menu-item span, .network-badge span:not(.status-dot) {
        display: none;
    }
    .sidebar-logo {
        margin-bottom: 30px;
        justify-content: center;
    }
    .menu-item {
        justify-content: center;
        padding: 12px;
        width: 44px;
        height: 44px;
    }
    .main-content {
        margin-left: 80px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-balances {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .balance-card.main-idr {
        grid-column: span 1;
    }
    .withdraw-interface, .grid-col-2-3, .relationship-chart-card, .educational-guide {
        grid-column: span 1 !important;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .main-header h1 {
        font-size: 26px;
    }
    .user-profile {
        width: 100%;
        justify-content: space-between;
    }
    .balance-card.main-idr .value {
        font-size: 30px;
    }
    .percent-shortcuts {
        flex-wrap: wrap;
    }
    .btn-shortcut {
        flex: 1 1 40%;
    }
}

@media (max-width: 576px) {
    /* Bottom Navigation Bar Experience for Mobile Devices */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: 65px;
        flex-direction: row;
        padding: 0 10px;
        border-right: none;
        border-top: 1px solid var(--border-color);
        justify-content: center;
        background-color: var(--bg-secondary);
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
    }
    
    .sidebar-logo, .sidebar-footer {
        display: none !important;
    }
    
    .sidebar-menu {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 10px;
        align-items: center;
    }
    
    .menu-item {
        height: 100%;
        width: auto;
        padding: 6px 12px;
        flex-direction: column;
        gap: 4px;
        border-radius: 8px;
        background: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
        justify-content: center;
    }
    
    .menu-item span {
        display: block !important;
        font-size: 10px;
        font-weight: 600;
    }
    
    .menu-item i {
        font-size: 16px;
    }
    
    .menu-item.active {
        color: var(--accent-gold) !important;
        font-weight: 700;
    }
    
    .menu-item.active i {
        color: var(--accent-gold) !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 75px; /* Offset for floating bottom navbar */
        padding: 16px;
    }
    
    .main-header {
        margin-bottom: 20px;
    }
    
    .card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .asset-selector-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .percent-shortcuts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .btn-shortcut {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .pin-pad {
        gap: 8px;
    }
    
    .pin-btn {
        padding: 10px 0;
        font-size: 18px;
    }
    
    .modal-card {
        width: 95%;
        border-radius: 16px;
    }
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    #receipt-print-area, #receipt-print-area * {
        visibility: visible;
    }
    #receipt-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }
    .modal-overlay {
        background: none;
    }
    .modal-card {
        border: none;
        box-shadow: none;
    }
    .modal-header, .modal-footer {
        display: none !important;
    }
}

/* Navigation glowing trigger effect */
.glowing-effect {
    animation: gold-glow-pulse 2s ease-in-out;
}

@keyframes gold-glow-pulse {
    0% {
        box-shadow: var(--card-shadow);
        border-color: var(--border-color);
    }
    30% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        border-color: var(--accent-gold);
    }
    100% {
        box-shadow: var(--card-shadow);
        border-color: var(--border-color);
    }
}
