/* --- GLOBAL RESET & CORE THEME --- */
:root {
    --navy-dark: #0f172a;
    --navy-brand: #1e293b;
    --bg-body: #f8f9fa;
    --white: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --neon-green: #10b981;
    --gold-vip: #f59e0b;
    --purple-cdm: #8b5cf6;
    --accent-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    min-height: 100vh;
    padding-bottom: 120px;
    /* Increased to prevent nav overlap */
    font-size: 13px;
}

/* --- HEADER --- */
.app-header {
    background: #141e30;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 32px;
    width: auto;
}

.site-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

/* --- TOP DECORATION --- */
/* Extended to top:0 to cover any white gaps behind header */
.top-decoration {
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-brand) 100%);
    height: 220px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

/* --- CONTENT WRAPPER --- */
.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
    margin-top: 10px;
    /* Adjusted since decoration starts at 0 */
}

/* --- GENERIC CARD --- */
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

/* --- WELCOME BAR --- */
.welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-top: 5px;
    margin-bottom: 15px;
}

.wb-text h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.wb-text p {
    font-size: 10px;
    opacity: 0.8;
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
}

.wb-icon {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 50%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* --- PREMIUM BALANCE CARD --- */
.balance-card {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    border-radius: 18px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 32, 39, 0.4);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-chip {
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, #e3c485, #fbf5b7, #bf953f);
    border-radius: 5px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.card-brand {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.balance-label {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0 0 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    margin-top: 15px;
}

.card-info h4 {
    margin: 0;
    font-size: 9px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-info p {
    margin: 2px 0 0 0;
    font-size: 13px;
    font-family: monospace;
    font-weight: 500;
}

/* --- ACTION GRID --- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    background: var(--white);
    padding: 12px 5px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-btn:active {
    transform: scale(0.97);
    background: #f8fafc;
}

.ab-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Icons */
.ic-dep {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.ic-wth {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
}

.ic-sup {
    background: linear-gradient(135deg, #00B4DB, #0083B0);
}

.ab-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

/* --- LIVE RATES WIDGET --- */
.rates-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.rate-hero {
    background: #1e293b;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
    border-left: 4px solid var(--neon-green);
}

.rh-label {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-val {
    color: white;
    font-size: 18px;
    font-weight: 800;
    font-family: monospace;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s infinite;
}

.sub-rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rate-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rc-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.rc-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-brand);
    font-family: monospace;
}

.rc-sub {
    font-size: 9px;
    color: var(--text-light);
}

.rc-vip .rc-title {
    color: var(--gold-vip);
}

.rc-vip {
    border-bottom: 3px solid var(--gold-vip);
}

.rc-cdm .rc-title {
    color: var(--purple-cdm);
}

.rc-cdm {
    border-bottom: 3px solid var(--purple-cdm);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* --- MARKET TICKER --- */
.market-strip {
    background: white;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.ms-badge {
    background: #e2e8f0;
    color: #1e293b;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-right: 10px;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: scroll 25s linear infinite;
}

.t-item {
    font-size: 10px;
    font-weight: 600;
    margin-right: 20px;
    color: #334155;
}

.t-green {
    color: #10b981;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- GUIDE CARD --- */
.guide-card {
    background: var(--white);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.guide-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-brand);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline {
    position: relative;
    padding-left: 15px;
    border-left: 2px dashed #cbd5e1;
    margin-left: 5px;
}

.t-item-guide {
    position: relative;
    margin-bottom: 15px;
}

.t-item-guide:last-child {
    margin-bottom: 0;
}

.t-dot {
    position: absolute;
    left: -21px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--navy-brand);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.t-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.t-desc {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- REFERRAL CARD --- */
.ref-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.ref-top {
    background: var(--navy-brand);
    padding: 15px;
    text-align: center;
    color: white;
}

.rt-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rt-sub {
    font-size: 10px;
    opacity: 0.8;
}

.ref-body {
    padding: 15px;
}

.tier-row {
    margin-bottom: 12px;
}

.tier-row:last-child {
    margin-bottom: 0;
}

.tr-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.tr-bar-bg {
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.tr-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.fill-1 {
    width: 100%;
    background: #38ef7d;
}

.fill-2 {
    width: 60%;
    background: #3b82f6;
}

.fill-3 {
    width: 30%;
    background: var(--navy-brand);
}

.get-link-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: var(--navy-brand);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

/* --- SLIDER --- */
.slider-box {
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    background: #000;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-img.active {
    opacity: 1;
}

/* --- BOTTOM NAV (DARK THEME) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #141e30;
    /* Dark Navy */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 1000;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 5px 20px;
    transition: 0.2s;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: #38ef7d;
}

.nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(56, 239, 125, 0.4);
}

/* --- BUTTONS & FORMS (General) --- */
.btn-primary {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    padding-left: 40px;
}

.form-control:focus {
    border-color: #141e30;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #aaa;
}

/* --- AUTH PAGE --- */
.auth-container {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.auth-header {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.auth-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- WITHDRAWAL ACCOUNT CARDS --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card-wrapper {
    position: relative;
    width: 100%;
}

.account-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: block;
}

.account-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked+.account-card {
    border-color: var(--navy-brand);
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
}

.check-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    transition: all 0.2s;
}

.radio-group input[type="radio"]:checked+.account-card .check-icon {
    background: var(--navy-brand);
    border-color: var(--navy-brand);
}

.acc-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-row {
    font-size: 13px;
    color: var(--navy-brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-label {
    font-weight: 600;
    min-width: 80px;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.withdraw-btn:active {
    transform: scale(0.98);
}

/* --- REFERRAL UI --- */
.ref-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 10px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ref-code {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-brand);
    letter-spacing: 1px;
}

.ref-btn {
    background: var(--navy-brand);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 11px;
}

.tier-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
}

.tier-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-main);
}

.tier-pct {
    font-weight: 800;
    color: var(--accent-blue);
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
}

/* --- PROFILE PAGE STYLES --- */
.profile-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 25px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.pc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-info {
    flex: 1;
}

.pc-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pc-id {
    font-size: 11px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.pc-stats-row {
    display: flex;
    gap: 20px;
}

.pc-stat {
    display: flex;
    flex-direction: column;
}

.pc-stat span {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.6;
}

.pc-stat strong {
    font-size: 14px;
    color: var(--neon-green);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.menu-item:active {
    transform: scale(0.97);
    background: #f8fafc;
}

.mi-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Menu Item Colors */
.ic-bank {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.ic-dep {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ic-wth {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ic-inv {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ic-ref {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.ic-sup {
    background: linear-gradient(135deg, #64748b, #475569);
}

.mi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.logout-btn {
    background: #fff1f2;
    color: #e11d48;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ffe4e6;
    margin-bottom: 30px;
}

/* Modal Tab Styles for Profile */
.tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.tab.active {
    background: white;
    color: var(--navy-brand);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- MODAL TAB CONTENT --- */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SUPPORT CARD (Used in Saved Accounts & Help) --- */
.support-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, background 0.2s;
}

.support-card:active {
    transform: scale(0.98);
    background: #f8fafc;
}

.sc-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.sc-tg {
    background: linear-gradient(135deg, #0088cc, #00aaff);
}

.sc-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.sc-info h4 {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

.sc-info p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: var(--text-light);
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modern-input:focus {
    border-color: var(--navy-brand);
}

.save-btn {
    width: 100%;
    padding: 14px;
    background: var(--navy-brand);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

/* --- PROFILE PAGE STYLES --- */
.profile-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 25px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.pc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-info {
    flex: 1;
}

.pc-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pc-id {
    font-size: 11px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.pc-stats-row {
    display: flex;
    gap: 20px;
}

.pc-stat {
    display: flex;
    flex-direction: column;
}

.pc-stat span {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.6;
}

.pc-stat strong {
    font-size: 14px;
    color: var(--neon-green);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.menu-item:active {
    transform: scale(0.97);
    background: #f8fafc;
}

.mi-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Menu Item Colors */
.ic-bank {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.ic-dep {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ic-wth {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ic-inv {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ic-ref {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.ic-sup {
    background: linear-gradient(135deg, #64748b, #475569);
}

.mi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.logout-btn {
    background: #fff1f2;
    color: #e11d48;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ffe4e6;
    margin-bottom: 30px;
}

/* Modal Tab Styles for Profile */
.tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.tab.active {
    background: white;
    color: var(--navy-brand);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modern-input:focus {
    border-color: var(--navy-brand);
}

.save-btn {
    width: 100%;
    padding: 14px;
    background: var(--navy-brand);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}



.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 18px;
}

/* --- MODALS (Smooth & Fast) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 2000;
    backdrop-filter: none;
}

.modal-content {
    background: #f8fafc;
    width: 100%;
    max-width: 500px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@media(min-width: 550px) {
    .modal-content {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 20px;
    }
}

.modal-header {
    padding: 18px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

/* --- WALLET & PAYMENT ELEMENTS --- */
.qr-container {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.timer-box {
    text-align: center;
    background: #fff8e1;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.timer {
    font-size: 28px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
}

.wallet-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.wallet-label {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-address {
    font-family: monospace;
    font-size: 13px;
    color: #141e30;
    display: block;
    background: #fff;
    padding: 10px;
    border: 1px dashed #bbb;
    border-radius: 6px;
    word-break: break-all;
    font-weight: 600;
}

.copy-btn {
    margin-top: 10px;
    background: #141e30;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.copy-btn:active {
    transform: scale(0.95);
}

.calc-box {
    background: #dcfce7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border: 1px solid #bbf7d0;
    display: none;
    color: #166534;
}

.warning-box {
    background: #ffebee;
    color: #c62828;
    font-size: 12px;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid #ffcdd2;
    line-height: 1.4;
}

/* --- RADIO GROUP --- */
.radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    color: #555;
    transition: all 0.2s;
    background: #f9f9f9;
}

.radio-option input[type="radio"]:checked+label {
    background: #e3f2fd;
    border-color: #2196F3;
    color: #0d47a1;
    box-shadow: 0 0 0 1px #2196F3 inset;
}

.radio-subtext {
    font-size: 10px;
    display: block;
    text-align: center;
    color: #888;
    margin-top: 4px;
    line-height: 1.2;
}

/* --- ORDER CARD --- */
.order-card {
    background: white;
    padding: 0;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    overflow: hidden;
}

.oc-header {
    padding: 12px 15px;
    background: #fcfcfc;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oc-id {
    font-size: 12px;
    color: #141e30;
    font-weight: bold;
}

.oc-date {
    font-size: 11px;
    color: #888;
}

.oc-body {
    padding: 15px;
}

.oc-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.oc-amt {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.oc-status {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.st-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.st-confirming {
    background: #fff3e0;
    color: #ef6c00;
}

/* --- ASSETS & VAULT (Withdrawal) --- */
.assets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.asset-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 15px;
    color: var(--navy-brand);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.asset-card.dark-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.ac-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.ac-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.ac-val {
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
}

.ac-sub {
    font-size: 9px;
    opacity: 0.6;
    margin-top: 2px;
}

.vault-card {
    background: var(--white);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.vault-header {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-brand);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.s-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.s-tab.active {
    background: var(--white);
    color: var(--navy-brand);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.s-tab input {
    display: none;
}

.amount-wrapper {
    position: relative;
    margin-bottom: 5px;
}

.curr-sign {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-brand);
}

.hero-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-brand);
    padding: 8px 10px 8px 20px;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
}

.hero-input:focus {
    border-bottom-color: var(--accent-blue);
}

.hero-input::placeholder {
    color: #cbd5e1;
}

.min-hint {
    font-size: 10px;
    color: var(--text-light);
}

.restriction-alert {
    font-size: 11px;
    color: #b91c1c;
    background: #fef2f2;
    padding: 8px;
    border-radius: 6px;
    border: 1px dashed #f87171;
    margin-top: 5px;
    display: none;
}

/* --- RECEIPTS --- */
.receipt-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    position: relative;
}

.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}

.rc-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-brand);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.rc-date {
    font-size: 10px;
    color: var(--text-light);
}

.rc-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rc-amt {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.rc-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
}

.st-approved,
.st-cdm_bank {
    background: #ecfdf5;
    color: #059669;
}

.st-pending {
    background: #fffbeb;
    color: #d97706;
}

.st-rejected {
    background: #fef2f2;
    color: #dc2626;
}

.rc-details {
    display: grid;
    gap: 4px;
    font-size: 11px;
}

.rc-row {
    display: flex;
    justify-content: space-between;
}

.rc-lbl {
    color: var(--text-light);
}

.rc-val {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.reject-reason {
    margin-top: 10px;
    background: #fef2f2;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #b91c1c;
    border-left: 3px solid #dc2626;
    line-height: 1.4;
}

.cancel-btn {
    width: 100%;
    margin-top: 12px;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* --- WITHDRAWAL ACCOUNT CARDS --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card-wrapper {
    position: relative;
    width: 100%;
}

.account-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: block;
}

.account-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked+.account-card {
    border-color: var(--navy-brand);
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
}

.check-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    transition: all 0.2s;
}

.radio-group input[type="radio"]:checked+.account-card .check-icon {
    background: var(--navy-brand);
    border-color: var(--navy-brand);
}

.acc-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-row {
    font-size: 13px;
    color: var(--navy-brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-label {
    font-weight: 600;
    min-width: 80px;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.withdraw-btn:active {
    transform: scale(0.98);
}