/* CSS Design System for RocketPump Mini App */
:root {
    --bg-primary: #080b11;
    --bg-secondary: #0f1420;
    --bg-tertiary: #171f32;
    --text-primary: #ffffff;
    --text-muted: #7e8b9b;
    
    /* Default Cyan Theme Variables (Will be updated dynamically by JS) */
    --neon-main: #00f2fe;
    --neon-main-glow: rgba(0, 242, 254, 0.35);
    --neon-accent: #4facfe;
    --neon-accent-glow: rgba(79, 172, 254, 0.25);
    
    /* Global Semantic Colors */
    --success: #00e676;
    --error: #ff1744;
    --warning: #ffb300;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --font-main: 'Tajawal', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    
    --transition-speed: 0.3s;
}

body.light-mode {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.12);
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
}

/* Light mode contrast overrides */
body.light-mode .app-header {
    background-color: rgba(240, 244, 248, 0.92);
}
body.light-mode .user-name,
body.light-mode .card-title,
body.light-mode .setting-name,
body.light-mode .item-name,
body.light-mode .form-card h4 {
    color: #1e293b;
}
body.light-mode .countdown-text {
    color: #1e293b;
    text-shadow: none;
}
body.light-mode .balance-amount {
    color: #1e293b;
}
body.light-mode .w-btn {
    color: #1e293b;
    background-color: var(--bg-tertiary);
}
body.light-mode .btn-secondary {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .theme-select-btn {
    color: #1e293b;
}
body.light-mode .input-group input,
body.light-mode .input-row-action input {
    color: #1e293b;
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.18);
}
body.light-mode .custom-select {
    color: #1e293b;
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.18);
}
body.light-mode .readonly-input {
    color: #1e293b !important;
    background-color: #f1f5f9;
}
body.light-mode .registration-card input,
body.light-mode .registration-card select {
    color: #1e293b;
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.18);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* App Layout Container */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 75px;
}

.font-orbitron {
    font-family: var(--font-tech);
}

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

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-main), var(--neon-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-tech);
    color: #000;
    box-shadow: 0 0 10px var(--neon-main-glow);
    transition: all var(--transition-speed);
}

.user-avatar.large-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

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

.user-name {
    font-weight: 700;
    font-size: 13px;
}

.user-rank {
    font-size: 10px;
    color: var(--text-muted);
}

.app-logo {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    font-family: var(--font-tech);
}

/* Neon Text Helpers linked to dynamic variables */
.neon-text-main {
    color: var(--neon-main);
    text-shadow: 0 0 8px var(--neon-main-glow);
}

.neon-text-accent {
    color: var(--neon-accent);
    text-shadow: 0 0 8px var(--neon-accent-glow);
}

/* App Main Content Area */
.app-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tab Panes switching */
.tab-pane {
    display: none;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* Glow Cards & Containers */
.glow-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.border-glow-theme {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 20px var(--neon-main-glow);
    border-left: 2px solid var(--neon-main);
}

.card-glow-theme {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

/* Countdown Timer Styling */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.countdown-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bar {
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-tech);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Progress bar inside home */
.progress-target-container {
    margin-top: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-bar-wrapper {
    height: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-main), var(--neon-accent));
    box-shadow: 0 0 8px var(--neon-main-glow);
    border-radius: 5px;
    transition: width 0.5s ease-out;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-speed);
}

.mini-card-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mini-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-main);
    text-shadow: 0 0 4px var(--neon-main-glow);
}

/* Button system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease-in-out;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-main), var(--neon-accent));
    color: #000000;
    font-weight: 900;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--neon-main);
    box-shadow: 0 0 6px var(--neon-main-glow);
}

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

.btn-success {
    background-color: var(--success);
    color: #000;
}

.btn-danger {
    background-color: var(--error);
    color: #fff;
}

.btn-danger.btn-outline {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
}

.btn-full-width {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 12px var(--neon-main-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 18px var(--neon-main);
}

.action-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.action-btn-container .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Wallet styling */
.balance-card {
    background: radial-gradient(circle at top right, var(--bg-tertiary), var(--bg-secondary));
    text-align: center;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-amount {
    font-size: 32px;
    font-weight: 900;
    margin: 10px 0 20px 0;
    color: #fff;
}

.currency-symbol {
    font-size: 16px;
    color: var(--neon-main);
    font-weight: 700;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.w-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: bold;
    transition: all 0.2s;
}

.w-btn:active {
    transform: scale(0.95);
}

.w-btn-deposit {
    border-color: rgba(0, 230, 118, 0.25);
}

.w-btn-deposit:hover {
    background-color: rgba(0, 230, 118, 0.05);
}

.w-btn-withdraw {
    border-color: rgba(255, 23, 68, 0.25);
}

.w-btn-withdraw:hover {
    background-color: rgba(255, 23, 68, 0.05);
}

.sub-price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 15px 0;
    justify-content: center;
}

.price-val {
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-main);
}

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

/* Modals & Forms styles */
.wallet-form-container {
    animation: slideUp 0.3s ease-out;
}

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

.form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 11px;
    color: var(--text-muted);
}

.input-group input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    outline: none;
    font-family: var(--font-main);
    font-size: 13px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--neon-main);
}

.form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* Leaderboard view */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.leaderboard-item.loading {
    justify-content: center;
    color: var(--text-muted);
}

.leaderboard-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 11px;
    color: var(--text-muted);
    box-sizing: border-box;
    white-space: nowrap;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
    color: #000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8c5d2e);
    color: #000;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 700;
    font-size: 13px;
}

.item-username {
    font-size: 10px;
    color: var(--text-muted);
}

.leaderboard-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.invested-val {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 13px;
    color: var(--neon-main);
}

.invested-lbl {
    font-size: 9px;
    color: var(--text-muted);
}

/* Settings & Developer tab */
.profile-settings-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.profile-header-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-header-inline h4 {
    font-size: 16px;
    font-weight: 700;
}

.user-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-tech);
}

/* Theme customizer styling */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-select-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 4px;
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
}

.theme-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.cyan-dot { background-color: #00f2fe; box-shadow: 0 0 6px rgba(0, 242, 254, 0.5); }
.pink-dot { background-color: #ff2a5f; box-shadow: 0 0 6px rgba(255, 42, 95, 0.5); }
.gold-dot { background-color: #ffb300; box-shadow: 0 0 6px rgba(255, 179, 0, 0.5); }

.theme-select-btn.active {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--neon-main);
    color: var(--neon-main);
    box-shadow: 0 0 10px var(--neon-main-glow);
}

/* Network selection styling */
.network-select-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

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

.custom-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.custom-select:focus {
    border-color: var(--neon-main);
}

.input-row-action {
    display: flex;
    gap: 8px;
}

.input-row-action input {
    flex: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    outline: none;
    font-family: var(--font-tech);
    font-size: 11px;
    transition: border-color 0.2s;
}

.input-row-action input:focus {
    border-color: var(--neon-main);
}

/* Toggle settings switcher */
.toggle-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-name {
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.setting-desc {
    font-size: 10px;
    color: var(--text-muted);
    max-width: 250px;
}

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

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

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-toggle {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--neon-main);
}

.switch-toggle input:checked + .slider-toggle:before {
    transform: translateX(20px);
    background-color: var(--neon-main);
    box-shadow: 0 0 6px var(--neon-main-glow);
}

/* Referral box styles & lists */
.ref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ref-badge-tier {
    font-size: 10px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--neon-main);
    font-weight: bold;
    text-shadow: 0 0 4px var(--neon-main-glow);
}

/* Referral tiers visual indicator steps */
.ref-tiers-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
    background-color: var(--bg-tertiary);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ref-tier-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.35;
    transition: opacity var(--transition-speed);
}

.ref-tier-step.active {
    opacity: 1;
}

.tier-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.tier-lbl {
    font-size: 9px;
    font-weight: 500;
}

.referral-box {
    margin-bottom: 15px;
}

.ref-link-wrapper {
    display: flex;
    gap: 8px;
}

.ref-link-wrapper input {
    flex: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-muted);
    outline: none;
    font-size: 11px;
}

.ref-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 20px;
}

.ref-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ref-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ref-stat-val {
    font-size: 14px;
    font-weight: 700;
}

/* Active referral list sub section styling */
.active-referrals-section {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.sub-section-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.referrals-table-wrapper {
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.referrals-list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 10px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.referrals-list-items {
    max-height: 150px;
    overflow-y: auto;
}

.referral-row-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.empty-ref-item {
    padding: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

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

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

.ref-comm-val {
    color: var(--success);
    font-family: var(--font-tech);
    font-weight: bold;
}

.ref-inv-val {
    font-family: var(--font-tech);
}

/* Security log container styling */
.security-log-container {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.security-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.security-log-item:last-child {
    border-bottom: none;
}

.security-log-item.loading {
    justify-content: center;
    color: var(--text-muted);
    padding: 16px;
}

.log-action-text {
    flex: 1;
    color: var(--text-primary);
}

.log-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.log-time {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--text-muted);
}

.log-ip {
    font-family: var(--font-tech);
    font-size: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Navigation bottom bar */
.app-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: rgba(15, 20, 32, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    outline: none;
}

.nav-item svg {
    transition: transform 0.2s;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--neon-main);
    text-shadow: 0 0 6px var(--neon-main-glow);
}

.nav-item.active svg {
    transform: translateY(-2px);
    stroke: var(--neon-main);
    filter: drop-shadow(0 0 4px var(--neon-main-glow));
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* Toast alert notification styling */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(15, 20, 32, 0.9);
    border: 1px solid var(--neon-main);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 10px var(--neon-main-glow);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

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

.toast.toast-error {
    border-color: var(--error);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 10px rgba(255, 23, 68, 0.3);
}

.toast.toast-success {
    border-color: var(--success);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 10px rgba(0, 230, 118, 0.3);
}

/* Custom Scrollbars for lists */
.referrals-list-items::-webkit-scrollbar,
.security-log-container::-webkit-scrollbar,
.transactions-history-list::-webkit-scrollbar {
    width: 4px;
}

.referrals-list-items::-webkit-scrollbar-track,
.security-log-container::-webkit-scrollbar-track,
.transactions-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.referrals-list-items::-webkit-scrollbar-thumb,
.security-log-container::-webkit-scrollbar-thumb,
.transactions-history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.referrals-list-items::-webkit-scrollbar-thumb:hover,
.security-log-container::-webkit-scrollbar-thumb:hover,
.transactions-history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Transactions History List Styles */
.transactions-history-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.transaction-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.transaction-history-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.tx-info-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-type-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.tx-timestamp {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--text-muted);
}

.tx-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tx-amount {
    font-size: 13px;
    font-weight: 700;
}

.amount-deposit {
    color: var(--success);
}

.amount-withdraw {
    color: var(--error);
}

.amount-invest {
    color: var(--neon-main);
    text-shadow: 0 0 4px var(--neon-main-glow);
}

.tx-status-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.status-completed {
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.status-pending {
    background-color: rgba(255, 179, 0, 0.08);
    color: var(--warning);
    border: 1px solid rgba(255, 179, 0, 0.15);
}

.status-failed {
    background-color: rgba(244, 67, 54, 0.08);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.15);
}

/* Registration Overlay Screen */
.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-y: auto;
}

.registration-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 20, 32, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--card-shadow), 0 0 25px rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.registration-card h2 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2px;
}

.registration-card p.subtitle {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.4;
}

.registration-card .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.registration-card label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.registration-card input, .registration-card select {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.registration-card input:focus, .registration-card select:focus {
    border-color: var(--neon-main);
    box-shadow: 0 0 8px var(--neon-main-glow);
}

/* Read-Only inputs styling */
.readonly-input {
    background-color: rgba(23, 31, 50, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

select.readonly-input {
    pointer-events: none;
}

/* Bell Notification Button */
.notif-bell-btn {
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.notif-bell-btn:hover {
    background: rgba(var(--neon-main-rgb, 0, 242, 254), 0.12);
    border-color: var(--neon-main);
    color: var(--neon-main);
    box-shadow: 0 0 10px var(--neon-main-glow);
}
.notif-bell-btn.has-unread {
    color: var(--neon-main);
    border-color: var(--neon-main);
    animation: bell-pulse 2s ease-in-out infinite;
}
@keyframes bell-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--neon-main-glow); }
    50% { box-shadow: 0 0 16px var(--neon-main-glow), 0 0 30px var(--neon-main-glow); }
}

/* Notification Badge */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    border: 2px solid var(--bg-primary);
    animation: badge-pop 0.3s ease;
}
@keyframes badge-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Notification Modal Items */
.notif-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
    cursor: default;
}
.notif-item.unread {
    border-color: rgba(var(--neon-main-rgb, 0,242,254), 0.3);
    background: rgba(var(--neon-main-rgb, 0,242,254), 0.04);
}
.notif-item-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--neon-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-item-msg {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.5;
}
.notif-item-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.notif-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-main);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--neon-main-glow);
}

/* User Selector Row */
.user-selector-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.user-selector-row:hover, .user-selector-row.selected {
    border-color: var(--neon-main);
    background: rgba(var(--neon-main-rgb, 0,242,254), 0.06);
}
.user-selector-row .user-sel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-main), var(--neon-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: #000;
    flex-shrink: 0;
}
.user-selector-row .user-sel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.user-selector-row .user-sel-name {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
}
.user-selector-row .user-sel-id {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-tech);
}
.user-selector-row .user-sel-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
}
.user-selector-row.selected .user-sel-check {
    background: var(--neon-main);
    border-color: var(--neon-main);
}

/* Modal overlay close on backdrop */
.modal-overlay {
    cursor: default;
}


