:root {
    --primary: #b125c9;
    --primary-hover: #8e0aa5;
    --accent: #ffeafe;

    --lightbackgroundone: #2a0d2b;
    --lightbackgroundtwo: #4d154f;
    --background: #000;
    --surface: #000;
    --goldtext:#ffb542;

    --text: #fff;
    --text-muted: #8e0aa5;
    /*--text-muted: #fff;*/

    --border: #3f3641;

    --success: #15966b;
    --danger: #d94b4b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;

    --shadow-sm: 0px 4px 20px 0px rgba(118, 33, 122, 0.9);

    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 20px;
    --font-size-xl: 32px;

    --font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* Reset */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text);
    background: #000;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--primary);
    color: #fff;

    font-size: 17px;
    font-weight: 700;
}


/* Auth Layout */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
}


/* Left Panel */

.auth-brand-panel {
    background: var(--primary);
    color: #fff;

    padding: 48px;

    display: flex;
    flex-direction: column;
}

.auth-brand-panel .brand {
    color: #fff;
}

.auth-brand-panel .brand-mark {
    background: rgba(255, 255, 255, 0.18);
}

.brand-message {
    max-width: 460px;
    margin: auto 0;
    padding-bottom: 8vh;
}

.brand-message h1 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.brand-message p {
    max-width: 380px;

    font-size: 17px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.78);
}


/* Right Panel */

.auth-form-panel {
    background: var(--surface);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 430px;
}


/* Mobile Brand */

.mobile-brand {
    display: none;
    margin-bottom: 42px;
}


/* Heading */

.auth-heading {
    margin-bottom: 32px;
}

.auth-heading h2 {
    font-size: var(--font-size-xl);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 9px;
}

.auth-heading p {
    color: var(--text-muted);
    line-height: 1.5;
}


/* Form */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 50px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    padding: 0 15px;

    color: var(--text);
    background: #000;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group input::placeholder {
    color: #9aa4b2;
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px var(--accent);
}


/* Password */

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    width: 36px;
    height: 36px;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);
}

.password-toggle svg {
    width: 19px;
    height: 19px;

    stroke: currentColor;
    stroke-width: 1.7;
}


/* Options */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: -3px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text-muted);
    font-size: var(--font-size-sm);

    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;

    accent-color: var(--primary);
}


/* Links */

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}


/* Buttons */

.btn {
    height: 50px;

    border: 0;
    border-radius: var(--radius-md);

    padding: 0 20px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn:active {
    transform: translateY(1px);
}

.btn-full {
    width: 100%;
}


/* Footer */

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-top: 28px;

    color: var(--text-muted);
    font-size: var(--font-size-sm);
}


.signup-terms {
    align-items: flex-start;
    line-height: 1.5;
}

.signup-terms input {
    margin-top: 3px;
    flex-shrink: 0;
}

.signup-terms .text-link {
    font-weight: 600;
}




/* =========================================
   APP SHELL
========================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--background);
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    width: 245px;
    flex-shrink: 0;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: var(--surface);
    border-right: 1px solid var(--border);

    padding: 26px 14px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 12px;

    color: var(--text);
    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.app-brand .brand-mark {
    color: #fff;
    background: var(--primary);
}

.sidebar-nav,
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav {
    margin-top: 42px;
}

.nav-item {
    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 13px;

    border-radius: var(--radius-md);

    color: var(--text-muted);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.nav-item svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-item.active {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.logout-item {
    color: var(--danger);
}


/* =========================================
   MAIN AREA
========================================= */

.main-area {
    min-width: 0;
    flex: 1;
}


/* =========================================
   HEADER
========================================= */

.top-header {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 34px;

    /*background: var(--surface);*/
    background: var(--background);
    /*border-bottom: 1px solid var(--border);*/
      position: sticky;
    top: 0;
    z-index: 100;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-button {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--text-muted);

    cursor: pointer;
}

.icon-button:hover {
    background: var(--accent);
    color: var(--primary);
}

.icon-button svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.notification-dot {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 9px;

    border: 0;
    background: transparent;

    color: var(--text);

    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.chevron {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    color: var(--text-muted);
}

.mobile-page-title {
    display: none;
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard-content {
    width: 100%;
    max-width: 1380px;

    margin: 0 auto;

    padding: 36px 34px 50px;
}

.welcome-section {
    margin-bottom: 26px;
}

.welcome-section h1 {
    font-size: 26px;
    line-height: 1.25;

    letter-spacing: -0.7px;

    margin-bottom: 6px;
}

.welcome-section p {
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================================
   PORTFOLIO SUMMARY
========================================= */
.portfolio-summary {
    min-height: 175px;

    display: grid;
    grid-template-columns: 3fr 1fr;

  

    border-radius: var(--radius-lg);

    /*background: #182230;*/
    color: #fff;

    margin-bottom: 30px;
}


/* 75% LEFT */

.portfolio-current {
    padding: 28px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-label {
    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;
}

.portfolio-value {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.portfolio-profit {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 11px;

    font-size: 13px;
}

.portfolio-profit > span:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.portfolio-profit strong {
    font-size: 14px;
}

.profit-percentage {
    padding: 4px 8px;

    border-radius: 6px;

    background: rgba(21, 150, 107, 0.16);

    color: #59c99f;

    font-size: 11px;
    font-weight: 600;
}


/* 25% RIGHT */

.portfolio-grow {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 24px;

    border: 0; border-radius: 15px; 
    /*border-left: 1px solid rgba(255, 255, 255, 0.08);*/

    background: var(--lightbackgroundone);

    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition: background 0.15s ease;
}

.portfolio-grow:hover {
    background: var(--lightbackgroundtwo); 
}

.grow-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 11px;

    background: var(--lightbackgroundtwo); 
    color: var(--primary);
}

.grow-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.grow-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grow-content strong {
    font-size: 14px;
}

.grow-content small {
    max-width: 120px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.4;
}

.grow-arrow {
    position: absolute;

    right: 18px;
    bottom: 18px;

    width: 17px;
    height: 17px;

    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8;
}


/* =========================================
   SECTIONS
========================================= */

.dashboard-section {
    margin-bottom: 30px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    font-size: 17px;
    letter-spacing: -0.2px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-link {
    color: var(--primary);
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}


/* =========================================
   QUICK ACTIONS
========================================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.quick-action:hover {
    border-color: #c9d6eb;
    transform: translateY(-1px);
}

.quick-action > span:nth-child(2) {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quick-action strong {
    font-size: 13px;
}

.quick-action small {
    /*color: var(--text-muted);*/
    font-size: 11px;
}

.quick-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--accent);
    color: var(--primary);
}

.quick-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.action-arrow {
    width: 16px;
    height: 16px;

    margin-left: auto;

    flex-shrink: 0;

    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
}


/* =========================================
   DASHBOARD GRID
========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
}


/* =========================================
   INVESTMENTS
========================================= */

.investment-list,
.market-list,
.activity-list {
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.investment-item {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 19px;

    border-bottom: 1px solid var(--border);
}

.investment-item:last-child,
.market-item:last-child,
.activity-item:last-child {
    border-bottom: 0;
}

.asset-info {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 11px;
}

.asset-info > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.asset-info strong {
    font-size: 13px;
}

.asset-info span {
    color: var(--text-muted);
    font-size: 11px;
}

.asset-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
    font-weight: 700;
}

.bitcoin {
    background: #fff3e5;
    color: #d98518;
}

.ethereum {
    background: #edf0ff;
    color: #6874c9;
}

.usdt {
    background: #e8f7f1;
    color: #15966b;
}

.investment-values {
    display: flex;
    align-items: center;
    gap: 30px;
}

.investment-values > div {
    min-width: 65px;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.investment-values span {
    color: var(--text-muted);
    font-size: 10px;
}

.investment-values strong {
    font-size: 12px;
}

.positive {
    color: var(--success);
}


/* =========================================
   MARKET PRICES
========================================= */

.live-label {
    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--success);

    font-size: 11px;
    font-weight: 600;
}

.live-label i {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: currentColor;
}

.market-item {
    min-height: 71px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 17px;

    border-bottom: 1px solid var(--border);
}

.market-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.market-value strong {
    font-size: 12px;
}

.market-value span {
    font-size: 11px;
    font-weight: 600;
}


/* =========================================
   RECENT ACTIVITY
========================================= */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    min-height: 72px;

    display: flex;
    align-items: center;

    padding: 12px 18px;

    border-bottom: 1px solid var(--border);
}

.activity-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin-right: 12px;
}

.activity-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.activity-icon.investment {
    background: var(--accent);
    color: var(--primary);
}

.activity-icon.withdrawal {
    background: #fdf0f0;
    color: var(--danger);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-info strong {
    font-size: 13px;
}

.activity-info span {
    color: var(--text-muted);
    font-size: 11px;
}

.activity-amount {
    margin-left: auto;
    font-size: 13px;
}


/* =========================================
   MOBILE NAV
========================================= */

.mobile-navigation {
    display: none;
}






/* =========================================
   REFERRAL
========================================= */

.referral-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 25px 28px;

   

    border: 1px solid rgba(0, 0, 0, 0.05);
}


.referral-main {
    display: flex;
    align-items: flex-start;
    gap: 17px;

    min-width: 0;
}


.referral-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #eaf4ff;
    color: var(--primary);
}


.referral-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.referral-copy {
    display: flex;
    flex-direction: column;
}


.referral-badge {
    width: fit-content;

    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 600;

    color: var(--primary);
}


.referral-copy h2 {
    margin: 0;

    font-size: 17px;
    line-height: 1.3;
}


.referral-copy p {
    margin: 5px 0 7px;

    max-width: 520px;

    /*color: var(--text-muted);*/

    font-size: 12px;
    line-height: 1.5;
}


.referral-cheer {
    color: var(--goldtext);

    font-size: 11px;
    font-weight: 500;
}


.referral-action {
    width: 310px;

    flex-shrink: 0;
}


.referral-link-label {
    display: block;

    margin-bottom: 6px;

    color: var(--text-muted);

    font-size: 10px;
}


.referral-link-box {
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 8px 0 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background:  ;
}


.referral-link-box > span {
    flex: 1;

    overflow: hidden;

    color: var(--text);

    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.referral-copy-btn {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 6px;

    background: #f1f5fa;
    color: var(--primary);

    cursor: pointer;
}


.referral-copy-btn svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.referral-share-btn {
    width: 100%;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 8px;

    border: 0;
    border-radius: 8px;

    background: var(--primary);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


.referral-share-btn svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   PROFILE
========================================= */

.profile-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.profile-account-info {
    display: flex;
    align-items: center;
    gap: 15px;
}


.profile-initial {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);
    color: var(--primary);

    font-size: 19px;
    font-weight: 700;
}


.profile-account h1 {
    margin: 0 0 3px;
    font-size: 18px;
}


.profile-account p {
    margin: 0 0 5px;

    /*color: var(--text-muted);*/
    font-size: 12px;
}


.profile-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
}


.profile-edit-btn,
.profile-referral-btn {
    height: 36px;

    padding: 0 15px;

    border: none;
    border-radius: 8px;

    background: var(--lightbackgroundone);
    color: var(--primary);

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}


/* Verification */

.verification-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: #fffaf0;
    border: 1px solid #f1e4c7;
}


.verification-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #fff1ce;
    color: #a87820;
}


.verification-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.verification-content {
    flex: 1;
}


.verification-label {
    font-size: 10px;
    color: var(--text-muted);
}


.verification-content h2 {
    margin: 2px 0 3px;
    font-size: 14px; color: #000;
}


.verification-content p {
    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}


.pending-badge {
    padding: 5px 9px;

    border-radius: 6px;

    background: #fff0cf;
    color: #9b711e;

    font-size: 10px;
    font-weight: 600;
}


/* Options */

.profile-options {
    display: flex;
    flex-direction: column;
}


.profile-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 14px 5px;

    border: 0;
    /*border-bottom: 1px solid #edf1f5;*/

    background: transparent;

    text-align: left;

    cursor: pointer;
}


.profile-option:last-child {
    border-bottom: 0;
}


.profile-option-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f1f6fc;
    color: var(--primary);
}


.profile-option-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.profile-option > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;

    flex: 1;
}


.profile-option strong { color: var(--text);
    font-size: 12px;
}


.profile-option small {
    color: var(--text-muted);
    font-size: 10px;
}


.profile-option-arrow {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Referral */

.profile-referral {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #f7fbff;
}


.profile-referral h2 {
    margin: 0 0 4px;
    font-size: 15px;
}


.profile-referral p {
    margin: 0;

    color: var(--text-muted);
    font-size: 11px;
}


/* Logout */

.profile-logout {
    padding: 5px 0 30px;
    text-align: left;
}


.logout-profile-btn {
    border: 0;
    background: transparent;

    color: #c55b5b;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}


@media (max-width: 600px) {

    .profile-account {
        align-items: flex-start;
    }

    .profile-edit-btn {
        padding: 0 11px;
    }

    .verification-card {
        align-items: flex-start;
    }

    .pending-badge {
        margin-left: auto;
    }

    .profile-referral {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-referral-btn {
        width: 100%;
    }

}


/* Referred Earnings */

.referred-earnings-card {
    padding: 20px; border-radius: 15px; border: 1px solid var(--lightbackgroundone);
}


.referred-earnings-top {
    display: flex;
    align-items: center;
    gap: 14px;
}


.referred-earnings-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eaf4ff;
    color: var(--primary);
}


.referred-earnings-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.referred-earnings-top h2 {
    margin: 2px 0 2px;
    font-size: 22px;
}


.referred-earnings-top p {
    margin: 0;

    /*color: var(--text-muted);*/
    font-size: 10px;
}


.referred-earnings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 20px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.referred-earnings-stats > div {
    padding: 13px 10px;

    border-right: 1px solid var(--border);
}


.referred-earnings-stats > div:last-child {
    border-right: 0;
}


.referred-earnings-stats span {
    display: block;

    margin-bottom: 4px;

    /*color: var(--text-muted);*/
    font-size: 10px;
}


.referred-earnings-stats strong {
    font-size: 14px;
}


.referred-earnings-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 15px;
}


.referred-earnings-bottom > span {
    color: var(--primary);

    font-size: 10px;
    font-weight: 500;
}


@media (max-width: 600px) {

    .referred-earnings-stats > div {
        padding: 11px 7px;
    }

    .referred-earnings-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .referred-earnings-bottom .profile-referral-btn {
        width: 100%;
    }

}




/* Today's Investment */

.today-investment-card {
    position: relative; padding: 20px;   border-radius: 15px; border: 1px solid var(--border);
    overflow: hidden;
}


.today-investment-header {
    display: flex;
    align-items: center;
    gap: 13px;
}


.today-investment-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--lightbackgroundtwo);
    color: var(--primary);
}


.today-investment-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.today-investment-label {
    display: block;

    /*color: var(--text-muted);*/
    font-size: 10px;
}


.today-investment-header h2 {
    display: inline-block;

    margin: 2px 8px 0 0;

    font-size: 22px;
}


.today-investment-growth {
    font-size: 10px;
    font-weight: 600;

    color: #45a86b;
}


.today-investment-chart {
    height: 62px;

    margin: 16px 0 10px;

    overflow: hidden;
}


.today-investment-chart svg {
    width: 100%;
    height: 100%;
}


.chart-fill {
    fill: #eaf8ef;
}


.chart-line {
    fill: none;
    stroke: #45a86b;
    stroke-width: 2;
}


.today-investment-details {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;

    border-top: 1px solid var(--border);

    padding-top: 12px;
}


.today-investment-details > div {
    padding-right: 10px;
}


.today-investment-details span {
    display: block;

    margin-bottom: 4px;

    /*color: var(--text-muted);*/
    font-size: 9px;
}


.today-investment-details strong {
    font-size: 12px;
}


.today-investment-note {
    margin-top: 13px;

    color: #45a86b;

    font-size: 10px;
    font-weight: 500;
}


@media (max-width: 600px) {

    .today-investment-details {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

}


.today-investment-chart {
    position: relative;
}

.today-investment-chart::after {
    content: "";
    position: absolute;

    width: 7px;
    height: 7px;

    right: 0;
    top: 12px;

    border-radius: 50%;

    background: #45a86b;
    box-shadow: 0 0 0 3px rgba(69, 168, 107, 0.15);

    animation: investment-active-dot 1.4s ease-in-out infinite;
}

@keyframes investment-active-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(69, 168, 107, 0.15);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.75);
        box-shadow: 0 0 0 6px rgba(69, 168, 107, 0.05);
    }
}


/* =========================================
   SIGNUP ADDITIONS
========================================= */

.phone-input {
    display: flex;
    width: 100%;
}

.phone-input select {
    width: 105px;
    flex-shrink: 0;

    border: 1px solid #dce3eb;
    border-right: 0;
    border-radius: 8px 0 0 8px;

    background: #f8fafc;
    color: #26384d;

    padding: 0 8px;
    font-size: 12px;

    outline: none;
}

.phone-input input {
    min-width: 0;
    flex: 1;

    border-radius: 0 8px 8px 0 !important;
}


.verification-input {
    display: flex;
    align-items: stretch;
    gap: 8px;
}


.verification-input input {
    min-width: 0;
    flex: 1;
}


.verification-code-display {
    min-width: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid #dce3eb;
    border-radius: 8px;

    background: #f5f8fb;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;

    user-select: none;
}


.verification-refresh {
    width: 38px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce3eb;
    border-radius: 8px;

    background: #fff;
    color: var(--primary);

    cursor: pointer;
}


.verification-refresh svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.form-hint,
.password-hint {
    display: block;

    margin-top: 5px;

    color: #8a98a8;
    font-size: 9px;
}


.form-error {
    display: block;

    min-height: 0;

    margin-top: 4px;

    color: #d65c5c;
    font-size: 9px;
}


.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc7777;
}


.form-group.has-success input,
.form-group.has-success select {
    border-color: #72b58a;
}


.signup-loader {
    display: none;

    width: 15px;
    height: 15px;

    margin: 0 auto;

    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;

    border-radius: 50%;

    animation: signup-spin .7s linear infinite;
}


#signup-submit.is-loading {
    pointer-events: none;
    opacity: .8;
}


#signup-submit.is-loading .signup-submit-text {
    display: none;
}


#signup-submit.is-loading .signup-loader {
    display: block;
}


@keyframes signup-spin {
    to {
        transform: rotate(360deg);
    }
}


#signup-invitation {
    background: #272029;
    cursor: not-allowed;
}


@media (max-width: 500px) {

    .phone-input select {
        width: 92px;
        font-size: 11px;
    }

    .verification-code-display {
        min-width: 64px;
        font-size: 12px;
    }

    .verification-refresh {
        width: 35px;
    }

}


/* ============================================
   ONBOARD PAGE
============================================ */

.onboard-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    text-align: center;
    padding: 30px 20px;
}

.onboard-success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.10);
}

.onboard-success-icon svg {
    width: 30px;
    height: 30px;
    stroke: #22c55e;
    stroke-width: 2;
}

.onboard-logo {
    margin-bottom: 18px;
}

.onboard-logo .brand-mark {
    margin: auto;
}

.onboard-badge {
    display: inline-block;
    font-size: 13px;
    margin-bottom: 12px;
}

.onboard-heading h1 {
    margin-bottom: 10px;
}

.onboard-heading p {
    line-height: 1.6;
    margin-bottom: 24px;
}

.app-download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 15px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.app-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.app-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.app-download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-download-info small {
    opacity: 0.65;
}

.onboard-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.onboard-download-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
}

.onboard-note {
    margin-top: 16px;
    font-size: 12px;
    opacity: 0.65;
}



.auth-error {
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.login-spinner {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}




/* ============================================================
   DEPOSIT
   ============================================================ */

.deposit-page,
.deposit-proof-page {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* Intro */

.deposit-intro,
.deposit-proof-intro {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}


.deposit-intro-icon,
.deposit-proof-success-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf8f2;
    color: var(--primary);

    border-radius: 12px;
}


.deposit-intro-icon svg,
.deposit-proof-success-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.deposit-label {
    display: inline-block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


.deposit-intro h1,
.deposit-proof-intro h1 {
    margin: 0;

    font-size: 24px;
    line-height: 1.25;
}


.deposit-intro p,
.deposit-proof-intro p {
    margin: 5px 0 0;

    /*color: var(--text-muted);*/

    font-size: 13px;
    line-height: 1.5;
}


/* Section note */

.deposit-section-note {
    margin: 4px 0 0;

    /*color: var(--text-muted);*/

    font-size: 12px;
    font-weight: 400;
}


/* Amount buttons */

.deposit-amount-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 18px;
}


.deposit-amount-btn {
    height: 36px;

    padding: 0 8px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);
    color: var(--text);

    font-family: var(--font-family);
    font-size: 11px;
    /*font-weight: 600;*/

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}


.deposit-amount-btn:hover {
    border-color: var(--primary);
}


.deposit-amount-btn.active {
    border-color: var(--primary);

    background: var(--primary);
    color: var(---text);
}


/* Selected amount */

.deposit-selected-card {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 18px;

    margin-top: 18px;

    padding: 15px 18px;

    /*border: 1px solid #dcefe7;*/
    border-radius: var(--radius-md);

    background: var(--primary);
}


.deposit-selected-card > div:not(
    .deposit-selected-divider
) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.deposit-selected-card span {
    /*color: var(--text-muted);*/

    font-size: 11px;
}


.deposit-selected-card strong {
    color: var(--text);

    font-size: 14px;
}


.deposit-selected-card > div:last-child strong {
   color: var(--text);
}


.deposit-selected-divider {
    width: 1px;
    height: 34px;

    background: var(--border);
}


/* Payment method */

.deposit-method-tabs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 18px;
}


.deposit-method-btn {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding: 9px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);
    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}


.deposit-method-btn:hover {
    border-color: var(--primary);
}


.deposit-method-btn.active {
    border-color: var(--primary);
 color: #000;
    background: #f3fbf7;
}


.deposit-method-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #eaf8f2;
    color: var(--primary);
}


.deposit-method-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.deposit-method-btn > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.deposit-method-btn strong {
    font-size: 12px;
}


.deposit-method-btn small {
    color: var(--text-muted);

    font-size: 10px;
}


/* Payment block */

.deposit-payment-block {
    margin-top: 18px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--background);
}


.deposit-payment-info {
    text-align: center;
}


.deposit-payment-label {
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
}


.deposit-payment-info h3 {
    margin: 5px 0 3px;

    font-size: 19px;
}


.deposit-payment-info p {
    margin: 0;

    /*color: var(--text-muted);*/

    font-size: 12px;
}


.deposit-qr-card {
    width: 190px;
    height: 190px;

    margin: 18px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    overflow: hidden;
}


.deposit-qr-card img {
    width: 170px;
    height: 170px;

    object-fit: contain;
}


/* Payment note */

.deposit-payment-note,
.deposit-proof-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    /*color: var(--text-muted);*/

    font-size: 11px;

    text-align: center;
}


.deposit-payment-note svg,
.deposit-proof-note svg {
    width: 15px;
    height: 15px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Wallet */

.deposit-wallet {
    margin-top: 16px;
}


.deposit-wallet > span {
    display: block;

    margin-bottom: 6px;

    color: var(--text-muted);

    font-size: 11px;
}


.deposit-wallet-row {
    display: flex;

    align-items: center;

    gap: 8px;
}


.deposit-wallet-row code {
    flex: 1;

    min-width: 0;

    padding: 9px 10px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--surface);

    color: var(--text);

    font-family: monospace;
    font-size: 10px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.deposit-copy-btn {
    height: 36px;

    display: flex;
    align-items: center;

    gap: 5px;

    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--surface);
    color: var(--text);

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
}


.deposit-copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


.deposit-copy-btn svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Actions */

.deposit-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;
}


.deposit-continue-btn {
    min-width: 150px;
}


.deposit-cancel-btn {
    height: 40px;

    padding: 0 16px;

    border: 0;

    background: transparent;
    color: var(--text-muted);

    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


.deposit-cancel-btn:hover {
    color: var(--text);
}


/* Ready message */

.deposit-ready-message {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: 4px 0 20px;

    color: var(--text-muted);

    font-size: 11px;

    text-align: center;
}


.deposit-ready-icon {
    color: var(--primary);
}


.deposit-ready-icon svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   DEPOSIT PROOF
   ============================================================ */

.deposit-proof-summary {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    padding: 0;

    overflow: hidden;
}


.deposit-proof-summary > div {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 16px 18px;

    background: var(--surface);
}


.deposit-proof-summary span {
    color: var(--text-muted);

    font-size: 11px;
}


.deposit-proof-summary strong {
    font-size: 18px;
}


.deposit-proof-summary > div:last-child strong {
    color: var(--primary);
}


/* Upload */

.deposit-upload-box {
    min-height: 210px;

    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed #b9c6d5;
    border-radius: var(--radius-md);

    background: #000;

    cursor: pointer;

    overflow: hidden;
}


.deposit-upload-box:hover {
    border-color: var(--primary);
    background: #f7fcfa;
}


.deposit-upload-placeholder {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    text-align: center;
}


.deposit-upload-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 3px;

    border-radius: 10px;

    background: #eaf8f2;
    color: var(--primary);
}


.deposit-upload-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.deposit-upload-placeholder strong {
    font-size: 13px;
}


.deposit-upload-placeholder small {
    color: var(--text-muted);

    font-size: 10px;
}


/* Preview */

.deposit-preview {
    width: 90%;
    height: 280px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}


.deposit-preview img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.deposit-preview span {
    position: absolute;

    right: 10px;
    bottom: 10px;

    padding: 5px 8px;

    border-radius: 6px;

    background: rgba(0, 0, 0, 0.3);
    color: #fff;

    font-size: 10px;
}


/* Transaction ID */

.deposit-input-wrap {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 18px;

    padding: 0 12px;

    height: 44px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);
}


.deposit-input-wrap:focus-within {
    border-color: var(--primary);
}


.deposit-input-wrap svg {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.deposit-input-wrap input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-family: var(--font-family);
    font-size: 13px;
}


.deposit-input-wrap input::placeholder {
    color: #9aa4b2;
}


/* Proof message */

.deposit-proof-message {
    margin-top: 14px;

    padding: 10px 12px;

    border-radius: 7px;

    background: #fff4f4;
    color: var(--danger);

    font-size: 11px;
}


.deposit-proof-message[data-type="success"] {
    background: #eaf8f2;
    color: var(--success);
}


/* Proof actions */

.deposit-proof-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;
}


/* Proof note */

.deposit-proof-note {
    margin: 18px 0 20px;
}


/* Header back button */

.deposit-close-btn svg,
.deposit-proof-btn svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .deposit-intro,
    .deposit-proof-intro {
        align-items: flex-start;
    }


    .deposit-intro h1,
    .deposit-proof-intro h1 {
        font-size: 20px;
    }


    .deposit-amount-grid {
        grid-template-columns:
            repeat(2, minmax(2, 1fr));

        gap: 8px;
    }


    .deposit-amount-btn {
        height: 36px;
    }


    .deposit-selected-card {
        gap: 10px;

        padding: 13px;
    }


    .deposit-selected-card strong {
        font-size: 14px;
    }


    .deposit-method-tabs {
        grid-template-columns:
           repeat(2, minmax(0, 1fr));
    }


    .deposit-payment-block {
        padding: 15px;
    }


    .deposit-wallet-row {
        align-items: stretch;

        flex-direction: column;
    }


    .deposit-copy-btn {
        justify-content: center;
    }


    .deposit-actions,
    .deposit-proof-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .deposit-continue-btn,
    .deposit-proof-actions .btn {
        width: 100%;
    }


    .deposit-proof-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .deposit-preview {
        height: 220px;
    }

}



/* ============================================================
   DAILY INVESTMENT PAGE
   ============================================================ */

.invest-page {
    max-width: 900px;
}


/* ============================================================
   INTRO
   ============================================================ */

.icon-global {
      background: var(--lightbackgroundone) !important;
      color: var(--primary) !important;
}

.invest-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}


.invest-intro-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  
    border-radius: 14px;
}

.invest-intro-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-intro h1 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
}

.invest-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}


/* ============================================================
   BALANCE
   ============================================================ */

.invest-balance-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.invest-balance-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f2;
    color: var(--primary);
    border-radius: 12px;
}

.invest-balance-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-balance-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invest-balance-content span {
    color: var(--text-muted);
    font-size: 12px;
}

.invest-balance-content strong {
    font-size: 22px;
    line-height: 1.2;
}

.invest-balance-content small {
    color: var(--text-muted);
    font-size: 12px;
}


/* ============================================================
   PERCENTAGE BUTTONS
   ============================================================ */

.invest-percentage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.invest-percentage-btn {
    min-height: 118px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.invest-percentage-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.invest-percentage-btn.active {
    background: var(--lightbackgroundone);
    border-color: var(--primary);
}

.invest-percent-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.invest-percent-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-percentage-btn strong {
    font-size: 17px;
}

.invest-percentage-btn small {
    /*color: var(--text-muted);*/
    font-size: 11px;
}


/* ============================================================
   SELECTED INVESTMENT
   ============================================================ */

.invest-selected-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.invest-selected-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invest-selected-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f2;
    color: var(--primary);
    border-radius: 11px;
}

.invest-selected-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-selected-header div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.invest-selected-header span {
    /*color: var(--text-muted);*/
    font-size: 12px;
}

.invest-selected-header strong {
    font-size: 14px;
}


/* ============================================================
   AMOUNTS
   ============================================================ */

.invest-amount-values {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.invest-amount-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.invest-amount-item:last-child {
    padding-left: 24px;
}

.invest-amount-item span {
    /*color: var(--text-muted);*/
    font-size: 12px;
}

.invest-amount-item strong {
    font-size: 21px;
}

.invest-amount-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
}


/* ============================================================
   PROFIT
   ============================================================ */

.invest-profit-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 14px;
    background: #f7f9fc;
    border-radius: 10px;
}

.invest-profit-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf8f2;
    color: var(--primary);
    border-radius: 9px;
}

.invest-profit-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-profit-preview > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invest-profit-preview span {
    color: var(--text-muted);
    font-size: 11px;
}

.invest-profit-preview strong {
    font-size: 14px;
}

.invest-profit-preview > small {
    margin-left: auto;
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
}


/* ============================================================
   NOTICE
   ============================================================ */

.invest-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px; 
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.invest-notice-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.invest-notice-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invest-notice strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.invest-notice p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.invest-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invest-continue-btn {
    min-height: 46px;
}

.invest-cancel-btn {
    min-height: 42px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.invest-cancel-btn:hover {
    background: var(--background);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .invest-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .invest-intro {
        margin-bottom: 22px;
    }

    .invest-intro h1 {
        font-size: 20px;
    }

    .invest-intro p {
        font-size: 12px;
    }

    .invest-percentage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .invest-percentage-btn {
        min-height: 105px;
    }

    .invest-selected-card {
        padding: 17px;
    }

    .invest-amount-item:last-child {
        padding-left: 16px;
    }

    .invest-amount-item strong {
        font-size: 17px;
    }

    .invest-profit-preview {
        align-items: flex-start;
    }

    .invest-profit-preview > small {
        text-align: right;
    }

}

/* ============================================================
   INVEST SUCCESS POPUP
   ============================================================ */

.invest-success-popup {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);

    z-index: 99999;
}


.invest-success-box {
    width: min(
        380px,
        calc(100% - 40px)
    );

    background: #000;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow:
        0 12px 40px
        rgba(20, 35, 60, 0.12);

    padding: 32px 24px;

    text-align: center;
}


.invest-success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eafaf3;

    color: var(--primary);
}


.invest-success-title {
    font-size: 20px;
    font-weight: 700;

    color: var(--text);

    margin-bottom: 8px;
}


.invest-success-text {
    font-size: 14px;
    line-height: 1.5;

    /*color: var(--text-muted);*/
}



/* ============================================================
   WITHDRAW BALANCE PAGE
============================================================ */

.withdraw-page {
    padding-bottom: 32px;
}


/* ============================================================
   INTRO
============================================================ */

.withdraw-intro {
    display: flex;
    align-items: center;
    gap: 16px;
}

.withdraw-intro-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: #eafaf3;
    color: var(--primary);
}

.withdraw-intro-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-label {
    display: block;
    margin-bottom: 3px;

    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.withdraw-intro h1 {
    margin: 0 0 5px;
    font-size: 23px;
    line-height: 1.25;
}

.withdraw-intro p {
    margin: 0;
    /*color: var(--text-muted);*/
    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   AVAILABLE BALANCE
============================================================ */

.withdraw-available-card {
    padding: 20px;
}

.withdraw-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.withdraw-section-label {
    display: block;
    margin-bottom: 5px;

    font-size: 13px;
    color: var(--text-muted);
}

.withdraw-balance-header h2 {
    margin: 0;

    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
}

.withdraw-usdt-equivalent {
    display: block;
    margin-top: 6px;

    font-size: 13px;
    color: var(--text-muted);
}

.withdraw-balance-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eaf2ff;
    color: var(--primary);
}

.withdraw-balance-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   LOCK STATUS
============================================================ */

.withdraw-lock-status {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 18px;
    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fafbfd;
}

.withdraw-lock-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #fff5df;
    color: #b27a18;
}

.withdraw-lock-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-lock-content {
    min-width: 0;
    flex: 1;
}

.withdraw-lock-content strong {
    display: block;

    font-size: 13px;
    color: var(--text);
}

.withdraw-lock-content span {
    display: block;
    margin-top: 2px;

    font-size: 12px;
    line-height: 1.4;
    /*color: var(--text-muted);*/
}

.withdraw-lock-badge {
    flex: 0 0 auto;

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;

    color: #9b6b12;
    background: #fff1cf;
}


/* ============================================================
   SECTION NOTE
============================================================ */

.withdraw-section-note {
    margin: 4px 0 0;

    font-size: 13px;
    /*color: var(--text-muted);*/
}


/* ============================================================
   AMOUNT INPUT
============================================================ */

.withdraw-amount-box {
    margin-top: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.withdraw-amount-box:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 201, 143, 0.10);
}

.withdraw-input-row {
    min-height: 62px;

    display: flex;
    align-items: center;

    padding: 0 12px;
}

.withdraw-currency {
    margin-right: 8px;

    font-size: 25px;
    font-weight: 600;
    color: var(--text-muted);
}

.withdraw-amount-input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;
    background: transparent;

    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.withdraw-amount-input::placeholder {
    color: #b9c1cd;
}

.withdraw-amount-input::-webkit-outer-spin-button,
.withdraw-amount-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.withdraw-amount-input[type="number"] {
    appearance: textfield;
}

.withdraw-max-btn {
    flex: 0 0 auto;

    padding: 6px 10px;

    border: 1px solid #cfeee2;
    border-radius: 6px;

    background: #f1fbf7;
    color: var(--primary);

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.withdraw-max-btn:hover {
    background: #e6f8f1;
}


/* ============================================================
   INR / USDT CONVERSION
============================================================ */

.withdraw-conversion-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;

    margin-top: 12px;
    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    /*background: #fafbfd;*/
}

.withdraw-conversion-card span {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    color: var(--text-muted);
}

.withdraw-conversion-card strong {
    display: block;

    font-size: 15px;
    color: var(--text);
}

.withdraw-conversion-divider {
    width: 1px;
    height: 32px;

    background: var(--border);
}


/* ============================================================
   WITHDRAWAL METHOD
============================================================ */

.withdraw-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 16px;
}

.withdraw-method-btn {
    min-height: 74px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
    color: var(--text);

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.withdraw-method-btn:hover {
    border-color: #b9e8d7;
}

.withdraw-method-btn.active {
    border-color: var(--primary);
    background: var(--lightbackgroundtwo);
}

.withdraw-method-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #eafaf3;
    color: var(--primary);
}

.withdraw-method-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-method-btn strong {
    display: block;

    font-size: 13px;
    font-weight: 650;
}

.withdraw-method-btn small {
    display: block;
    margin-top: 3px;

    font-size: 11px;
    line-height: 1.3;
    /*color: var(--text-muted);*/
}


/* ============================================================
   METHOD CONTENT
============================================================ */

.withdraw-method-block {
    margin-top: 14px;
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    /*background: #fafbfd;*/
}

.withdraw-method-info {
    margin-bottom: 14px;
}

.withdraw-payment-label {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.withdraw-method-info h3 {
    margin: 0 0 5px;

    font-size: 16px;
    color: var(--text);
}

.withdraw-method-info p {
    margin: 0;

    font-size: 13px;
    line-height: 1.45;
    /*color: var(--text-muted);*/
}


/* ============================================================
   BANK / WALLET PLACEHOLDER
============================================================ */

.withdraw-bank-placeholder,
.withdraw-wallet-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.withdraw-placeholder-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #eaf2ff;
    color: var(--primary);
}

.withdraw-placeholder-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-bank-placeholder strong,
.withdraw-wallet-placeholder strong {
    display: block;

    font-size: 13px;
    color: var(--text);
}

.withdraw-bank-placeholder span,
.withdraw-wallet-placeholder span {
    display: block;
    margin-top: 3px;

    font-size: 11px;
    line-height: 1.4;
    /*color: var(--text-muted);*/
}


/* ============================================================
   USDT NETWORK NOTE
============================================================ */

.withdraw-network-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 12px;

    font-size: 12px;
    line-height: 1.45;
    /*color: var(--text-muted);*/
}

.withdraw-network-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    margin-top: 1px;

    fill: none;
    stroke: var(--primary);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   ERROR
============================================================ */

.withdraw-error-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 14px;
    padding: 11px 12px;

    border: 1px solid #f2caca;
    border-radius: var(--radius-md);

    background: #fff6f6;
    color: var(--danger);

    font-size: 12px;
    line-height: 1.45;
}

.withdraw-error-message svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    margin-top: 1px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   ACTIONS
============================================================ */

.withdraw-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 20px;
}

.withdraw-submit-btn {
    width: 100%;
    min-height: 46px;
}

.withdraw-cancel-btn {
    width: 100%;
    padding: 10px;

    border: 0;
    background: transparent;

    color: var(--text-muted);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.withdraw-cancel-btn:hover {
    color: var(--text);
}


/* ============================================================
   SECURITY / READY MESSAGE
============================================================ */

.withdraw-ready-message {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 4px;
    padding: 12px 4px;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.45;
}

.withdraw-ready-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eafaf3;
    color: var(--primary);
}

.withdraw-ready-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   CONFIRM POPUP
============================================================ */

.withdraw-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(255, 255, 255, 0.88);
}

.withdraw-confirm-box {
    width: min(390px, 100%);

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow:
        0 14px 45px rgba(20, 35, 60, 0.14);

    text-align: center;
}

.withdraw-confirm-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: #eafaf3;
    color: var(--primary);
}

.withdraw-confirm-icon svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-confirm-box h2 {
    margin: 0 0 7px;

    font-size: 20px;
}

.withdraw-confirm-box > p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.withdraw-confirm-amount {
    margin-top: 18px;
    padding: 15px;

    border-radius: var(--radius-md);
    background: #f7f9fc;
}

.withdraw-confirm-amount strong {
    display: block;

    font-size: 24px;
    color: var(--text);
}

.withdraw-confirm-amount span {
    display: block;

    margin-top: 4px;

    font-size: 12px;
    color: var(--text-muted);
}

.withdraw-confirm-method {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;
    padding: 11px 2px;

    border-bottom: 1px solid var(--border);

    text-align: left;
    font-size: 12px;
}

.withdraw-confirm-method span {
    color: var(--text-muted);
}

.withdraw-confirm-method strong {
    color: var(--text);
}

.withdraw-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9px;

    margin-top: 18px;
}

.withdraw-confirm-cancel {
    min-height: 44px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
    color: var(--text-muted);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.withdraw-confirm-btn {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ============================================================
   WITHDRAW SPINNER
============================================================ */

.withdraw-spinner {
    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: withdrawSpin 0.7s linear infinite;
}

@keyframes withdrawSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .withdraw-intro {
        align-items: flex-start;
    }

    .withdraw-intro h1 {
        font-size: 20px;
    }

    .withdraw-method-tabs {
        grid-template-columns: 1fr;
    }

    .withdraw-conversion-card {
        gap: 10px;
    }

    .withdraw-confirm-box {
        padding: 20px;
    }
}


/* ============================================================
   WITHDRAW DEPOSIT SELECTION
   ============================================================ */

.withdraw-deposit-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.withdraw-deposit-tab {
    position: relative;
    text-align: left;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    transition: 0.18s ease;
}

.withdraw-deposit-tab:hover {
    border-color: var(--primary);
}

.withdraw-deposit-tab.active {
    border-color: var(--primary);
    background:  var(--lightbackgroundtwo);
    color: var(--text);
}

.withdraw-deposit-tab.locked {
    opacity: 0.62;
    cursor: not-allowed;
    background: #f7f8fa;
}

.withdraw-deposit-tab-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-deposit-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eafaf3;
    color: var(--primary);
}

.withdraw-deposit-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-deposit-number {
    font-size: 12px;
    font-weight: 700;
    /*color: var(--text-muted);*/
}

.withdraw-selected-check {
    display: none;
    margin-left: auto;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
}

.withdraw-deposit-tab.active .withdraw-selected-check {
    display: flex;
}

.withdraw-selected-check svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-deposit-amount {
    margin-top: 14px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
}

.withdraw-deposit-usdt {
    margin-top: 3px;
    font-size: 12px;
    /*color: var(--text-muted);*/
}

.withdraw-deposit-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    padding: 5px 8px;
    border-radius: 20px;
    background: #eafaf3;
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.withdraw-deposit-status.locked {
    background: #f0f1f3;
    color: var(--text-muted);
}

.withdraw-deposit-status svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   SELECTED DEPOSIT
   ============================================================ */

.withdraw-selected-deposit {
    margin-top: 16px;
}

.withdraw-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.withdraw-selected-header h2 {
    margin: 5px 0 2px;
    font-size: 27px;
}

.withdraw-selected-header > div:first-child > span:last-child {
    font-size: 13px;
    /*color: var(--text-muted);*/
}

.withdraw-selected-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eafaf3;
    color: var(--primary);
}

.withdraw-selected-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-selected-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.withdraw-selected-details div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.withdraw-selected-details span {
    font-size: 11px;
    /*color: var(--text-muted);*/
}

.withdraw-selected-details strong {
    font-size: 14px;
    color: var(--text);
}

.withdraw-selected-details strong.positive {
    color: var(--success);
}

.withdraw-lock-status.available {
    background: var(--primary);
}

.withdraw-lock-badge.available {
    background: #dff7ec;
    color: var(--success);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .withdraw-deposit-tabs {
        grid-template-columns: 1fr;
    }

    .withdraw-deposit-tab {
        padding: 14px;
    }

    .withdraw-deposit-amount {
        margin-top: 10px;
    }

    .withdraw-selected-details {
        grid-template-columns: 1fr 1fr;
    }

    .withdraw-selected-details div:last-child {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   PENDING WITHDRAWAL
   ============================================================ */

.withdraw-pending-section {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 20px;

    padding: 13px 15px;

    
    border: 1px solid #856c12;

    border-radius: var(--radius-md);
}

.withdraw-pending-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #856c12;
}

.withdraw-pending-icon svg {
    width: 21px;
    height: 21px;
}

.withdraw-pending-content {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.withdraw-pending-content strong {
    font-size: 13px;
    font-weight: 600;

    color: #856c12;
}

.withdraw-pending-content span {
    font-size: 12px;
    color: #856c12;
}

.withdraw-pending-content small {
    margin-top: 2px;

    font-size: 11px;
    color: #9aa5b4;
}



/* =========================================
   PREFERENCES
========================================= */

.preferences-page {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.preferences-card {
    padding: 0;
}

.preferences-section-description {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.preferences-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.preferences-field label {
    font-size: 11px;
    font-weight: 600;
}

.preferences-input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
    color: var(--text);

    outline: none;

    font-size: 13px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.preferences-input::placeholder {
    color: #8a98a8;
}

.preferences-input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px var(--accent);
}

.preferences-input option {
    background: var(--surface);
    color: var(--text);
}

.preferences-submit-btn {
    width: 100%;
    height: 42px;

    margin-top: 4px;

    border: 0;
    border-radius: var(--radius-md);

    background: var(--primary);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.preferences-submit-btn:hover {
    background: var(--primary-hover);
}

.preferences-submit-btn:active {
    transform: translateY(1px);
}

.preferences-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.preferences-message {
    padding: 9px 11px;

    border-radius: 7px;

    font-size: 11px;
    line-height: 1.4;
}

.preferences-message.success {
    background: rgba(21, 150, 107, 0.08);
    color: var(--success);
}

.preferences-message.error {
    background: rgba(217, 75, 75, 0.08);
    color: var(--danger);
}

.preferences-security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 10px;
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.preferences-security-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--accent);
    color: var(--primary);
}

.preferences-security-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.preferences-security-note strong {
    display: block;

    margin-bottom: 3px;

    font-size: 11px;
}

.preferences-security-note p {
    margin: 0;

    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================
   PREFERENCES MOBILE
========================================= */

@media (max-width: 600px) {

    .preferences-page {
        padding-top: 20px;
    }

    .preferences-form {
        padding: 16px;
        gap: 14px;
    }

    .preferences-security-note {
        padding: 13px;
    }

}