/* COINBRIDGE MAIN DESIGN */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f7fc;
    color: #1e293b;
}

/* HEADER */

header {
    background: white;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #0756b5;
}

.logo span {
    color: #1689e8;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
}

nav a:hover {
    color: #0875d1;
}

nav button,
#logoutBtn {
    background: #0875d1;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    cursor: pointer;
}

/* DASHBOARD */

.dashboard-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.dashboard-container h1 {
    color: #123b70;
    margin-bottom: 8px;
}

.dashboard-container > p {
    color: #64748b;
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, #0756b5, #1689e8);
    color: white;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,70,150,0.15);
}

.balance-card h3 {
    margin-top: 0;
}

.balance-card h2 {
    font-size: 34px;
    margin: 15px 0;
}

.balance-card small {
    opacity: 0.9;
}

/* DASHBOARD CARDS */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}

.dashboard-card {
    background: white;
    padding: 24px;
    border-radius: 15px;
    border: 1px solid #e5edf5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    min-width: 0;
}

.dashboard-card h3 {
    color: #123b70;
    border-bottom: 1px solid #e5edf5;
    padding-bottom: 12px;
}

.dashboard-card p {
    color: #64748b;
    line-height: 1.6;
}

/* PLANS AND HISTORY */

.plan-item,
.history-item {
    background: #f5f9ff;
    border: 1px solid #e1ebf7;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.plan-item h4,
.history-item h4 {
    color: #0756b5;
    margin-top: 0;
}

.plan-item p,
.history-item p {
    font-size: 14px;
    margin: 8px 0;
}

/* MOBILE DESIGN */

@media (max-width: 600px) {
    header {
        padding: 15px 4%;
    }

    nav {
        gap: 12px;
    }

    .dashboard-container {
        width: 92%;
        margin: 25px auto;
    }

    .balance-card {
        padding: 22px;
    }

    .balance-card h2 {
        font-size: 26px;
        overflow-wrap: anywhere;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 18px;
    }
}
.withdrawal-tile {
    width: 100%;
    min-height: 150px;
    background: #FFD54F;
    border: none;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #263238;
}

.withdrawal-icon {
    font-size: 38px;
}

.withdrawal-title {
    font-size: 20px;
    font-weight: bold;
}

.withdrawal-subtitle {
    font-size: 13px;
}
/* COINBRIDGE DASHBOARD TILES */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.dashboard-grid .dashboard-card {
    width: 100%;
    min-height: 130px;
    padding: 20px;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TILE BUTTONS */
.dashboard-grid .dashboard-card button {
    width: 100%;
    min-height: 85px;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    background: #e8f1ff;
    color: #123b70;
}

/* DIFFERENT TILE COLORS */
#openPlans {
    background: #dceaff;
    color: #124b91;
}

#openReferral {
    background: #e8e0ff;
    color: #5735a5;
}

#openDeposit {
    background: #d9f5e7;
    color: #147044;
}

#openWithdrawal {
    background: #ffdf70;
    color: #654500;
}

#openProfile {
    background: #e5e7eb;
    color: #303846;
}

/* MOBILE */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard-grid .dashboard-card {
        padding: 10px;
        min-height: 115px;
    }

    .dashboard-grid .dashboard-card button {
        min-height: 90px;
        font-size: 14px;
    }
}
/* COINBRIDGE DARK DASHBOARD BACKGROUND */

body.dashboard-page {
    background-color: #080b12 !important;
    background-image:
        radial-gradient(
            circle at top right,
            rgba(0, 100, 255, 0.16),
            transparent 45%
        ) !important;
    color: #ffffff;
}

.dashboard-container {
    background: transparent !important;
}

.dashboard-container {
    background: transparent !important;
}
/* COINBRIDGE HEADER LOGO */

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7138B8, #A77BE0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(112, 64, 181, 0.2);
}

.logo-area .logo {
    font-size: 25px;
    font-weight: bold;
    color: #54249B;
}
/* COINBRIDGE MOBILE IMPROVEMENTS */

@media (max-width: 600px) {

    header {
        padding: 15px 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo-area {
        gap: 9px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .logo-area .logo {
        font-size: 22px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    nav a {
        font-size: 13px;
    }

    nav button,
    #logoutBtn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .dashboard-container {
        width: 94%;
        margin: 22px auto;
    }

    .dashboard-container h1 {
        font-size: 23px;
    }

    .balance-card {
        padding: 20px;
        border-radius: 15px;
    }

    .balance-card h2 {
        font-size: 25px;
        overflow-wrap: anywhere;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard-grid .dashboard-card {
        padding: 10px;
        min-height: 110px;
    }

    .dashboard-grid .dashboard-card button {
        min-height: 85px;
        padding: 10px 5px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .dashboard-card {
        padding: 16px;
    }

    .dashboard-card input,
    .dashboard-card select,
    .dashboard-card textarea {
        width: 100%;
        max-width: 100%;
        min-height: 42px;
        font-size: 14px;
    }

    .dashboard-card button {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-wrap: wrap;
    }
}
#balanceAction {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    color: #17477b;
    border: 1px solid #17477b;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#balanceAction option {
    background-color: #ffffff;
    color: #17477b;
}
/* WITHDRAWAL STATUS COLORS */
.withdrawal-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.status-pending {
    background-color: #fff3cd !important;
    color: #856404 !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
}
.status-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background: #f8d7da;
    color: #842029;
}

.status-completed {
    background: #cfe2ff;
    color: #084298;
}

/* WITHDRAWAL ACTION BUTTONS */
.withdrawal-approve {
    background: #198754;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.withdrawal-reject {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.withdrawal-approve:hover,
.withdrawal-reject:hover {
    opacity: 0.85;
}
/* PREMIUM ACCOUNT BALANCE */
.dashboard-page .balance-card {
    background: linear-gradient(135deg, #082b5c, #064b91) !important;
    border: 1px solid #1674cf;
    border-radius: 18px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 80, 180, 0.25);
}

.dashboard-page .balance-card h3 {
    color: #c9e3ff;
}

.dashboard-page .balance-card h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}

.dashboard-page .balance-card p {
    color: #b8d9ff;
}
/* PREMIUM INVESTMENT CARD */
.dashboard-page .dashboard-grid > .dashboard-card:first-child {
    background: linear-gradient(145deg, #151c29, #202b3b) !important;
    border: 1px solid #34445c;
    border-radius: 18px;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dashboard-page .dashboard-grid > .dashboard-card:first-child h3 {
    color: #d7e8ff;
}

.dashboard-page #openInvest {
    background: #174b83 !important;
    color: #ffffff !important;
    border: 1px solid #327bc0;
}
/* LIVE CRYPTO MARKET */
.dashboard-page .live-crypto-section {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(145deg, #151a23, #202733);
    border: 1px solid #354153;
    border-radius: 18px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.crypto-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.crypto-heading h2 {
    color: #ffffff;
    margin: 0 0 8px;
}

.crypto-heading p {
    color: #aeb9c9;
    margin: 0;
}

.live-indicator {
    color: #39d98a;
    background: rgba(57,217,138,0.12);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.crypto-currency-info {
    display: flex;
    justify-content: space-between;
    color: #aeb9c9;
    border-bottom: 1px solid #354153;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

#cryptoMarketList {
    color: #dce5f1;
}

#cryptoLastUpdated {
    color: #8996a8;
    font-size: 12px;
    margin-top: 18px;
}
/* LIVE CRYPTO MARKET ROWS */

.dashboard-page .crypto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 14px;
    margin-bottom: 12px;
    background: #111923;
    border: 1px solid #303d4e;
    border-radius: 12px;
}

.crypto-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.crypto-prices {
    text-align: right;
}

.crypto-prices p {
    color: #dce5f1;
    margin: 5px 0;
    font-size: 13px;
}

.crypto-up {
    color: #32d583;
    font-size: 13px;
    font-weight: 700;
}

.crypto-down {
    color: #ff5c68;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .dashboard-page .crypto-row {
        padding: 14px 10px;
        gap: 8px;
    }

    .crypto-name {
        font-size: 13px;
    }

    .crypto-prices p {
        font-size: 12px;
    }
}
/* LIVE CRYPTO MARKET - DEEP BLUE THEME */

.dashboard-page .live-crypto-section {
    background: linear-gradient(145deg, #08264b, #103d70) !important;
    border: 1px solid #245b91;
    box-shadow: 0 8px 25px rgba(0, 65, 140, 0.25);
}

.dashboard-page .crypto-row {
    background: linear-gradient(145deg, #12365e, #174878);
    border: 1px solid #2b6194;
}

.dashboard-page .crypto-name {
    color: #ffffff;
}

.dashboard-page .crypto-prices p {
    color: #e0edff;
}

.dashboard-page .crypto-heading h2 {
    color: #ffffff;
}

.dashboard-page .crypto-heading p,
.dashboard-page .crypto-currency-info {
    color: #c2dcfa;
}

.dashboard-page #cryptoLastUpdated {
    color: #b2cceb;
}