/* Base background similar to React index.html */
body {
    margin: 0;
    font-family: 'Inter', 'Open Sans', sans-serif;
    background-color: #050505;
    background-image:
        radial-gradient(at 50% 0%, rgba(255, 215, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 100, 0, 0.1) 0px, transparent 50%);
    color: #fff;
    overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #555; }

/* === MAIN LAYOUT (React-style) === */

.dcplus-main {
    max-width: 950px;
    margin: 40px auto 80px;
    padding: 0 16px;
    position: relative;
}

.dcplus-bg-orb {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
    animation: pulseOrb 6s ease-in-out infinite;
}

@keyframes pulseOrb {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: flex-start;
}

/* === CARD / PANEL BASE === */

.dcplus-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);

    /* 👇 keep same height across Deposit / Withdraw / Swap */
    min-height: 600px;        /* same as Tailwind min-h-[600px] */
    display: flex;
    flex-direction: column;
}

/* let the tab content fill the card vertically */
.wallet-tabs-content {
    flex: 1;
}


.dcplus-card-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

.dcplus-card-glow::before {
    content: "";
    position: absolute;
    right: -96px;
    top: -96px;
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25), transparent);
    filter: blur(30px);
    pointer-events: none;
}

.dcplus-card .tabs-shell {
    padding: 6px;
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px 16px 0 0;
}

/* === TABS (top buttons) === */

.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.tab {
    position: relative;
    background: transparent;
    border-radius: 10px;
    border: none;
    padding: 10px 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.tab.active {
    color: #050505;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.55);
    background: linear-gradient(90deg, #ffd700, #ffb700);
}

/* content wrapper */
.wallet-tabs-content {
    padding: 24px 28px 26px;
}

/* Tab panels + animation */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(6px);
}

/* when active (including first load) */
.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* when JS adds .tab-enter, animate like Framer Motion */
.tab-panel.tab-enter {
    animation: tabEnter 0.50s ease-out forwards;
}

@keyframes tabEnter {
    0%   { opacity: 0;   transform: translateY(16px); }
    100% { opacity: 1;   transform: translateY(0); }
}


/* === DEPOSIT (React-style layout) === */

.deposit-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Make QR card shrink-wrap its content */
.deposit-qr-card {
    display: inline-block;
    width: auto;
    padding: 20px;
    margin: 0 auto 10px;
    background: black;
    border-radius: 15px;
    border: solid;
    border-width: thin;
    border-color: #2d2d2d;
}

/* Inner box just centers the QR, no stretching */
.deposit-qr-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* QR container is tight */
.qr-code {
    display: inline-block;
}

/* Fix QR size explicitly */
.qr-code img {
    width: 180px;   /* QR size */
    height: 180px;  /* keep it square */
    object-fit: contain;
}


.deposit-qr-highlight {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.deposit-qr-card:hover .deposit-qr-highlight {
    opacity: 1;
}

/* Address block */
.deposit-address-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.deposit-address-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fbbf24;
    font-weight: 700;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 480px;
    width: 100%;
}

.wallet-address input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 13px;
    border-radius: 9px;
    color: #e5e7eb;
    font-size: 12px;
    font-family: "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    text-align: left;
}

.wallet-address-clickable {
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wallet-address-clickable:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
    background: rgba(0, 0, 0, 0.9);
}

.wallet-address .copy-btn {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    color: #facc15;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wallet-address .copy-btn:hover {
    background: #ffd700;
    color: #050505;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}

.copy-icon {
    font-size: 13px;
}

/* Steps grid */
.deposit-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}

.deposit-step-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    color: #9ca3af;
}

.step-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

/* === WITHDRAW (React-style but wired to your logic) === */

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 4px;
}

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

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    font-weight: 700;
    margin-left: 4px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: none;
    box-shadow: none;
    background: none;
}

/* Amount + MAX */
.withdraw-amount-row {
    position: relative;
    display: flex;
    align-items: center;
}

.withdraw-amount-row input {
    flex: 1;
    padding-right: 72px;
    font-size: 18px;
    font-weight: 500;
}

.withdraw-max-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: #facc15;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.withdraw-max-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cards below amount */
.withdraw-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.withdraw-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.withdraw-info-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.16em;
}

.withdraw-info-value {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3b82f6;
}

/* Button */
.withdraw-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 12px;
    border: none;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    color: #050505;
    background: linear-gradient(90deg, #ffd700, #ffb700);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.22);
    transition: transform 0.16s ease, box-shadow 0.22s ease, opacity 0.16s ease;
    position: relative;
    overflow: hidden;
}

.withdraw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.37);
}

.withdraw-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* spinner (we toggle via JS if you want later) */
.withdraw-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #050505;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === SWAP (Tailwind-style layout) === */

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Swap cards (From / To) */
.swap-group {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 15px;
}

/* top label + balance row */
.swap-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    color: #9ca3af;
}

.swap-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.swap-balance {
    font-size: 11px;
    color: #6b7280;
}

/* input + token pill */
.swap-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
}

.swap-input-row input {
    width: 100%;
    border: none;
    background: none;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    border-radius: 0px;
}

/* token pill + dot */

.swap-token-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
}

.swap-token-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
}

/* ETH style */
.swap-pill-eth {
    background: rgba(59, 130, 246, 0.20);
    border-color: rgba(59, 130, 246, 0.60);
    color: #93c5fd;
}

.swap-token-dot-eth {
    background: radial-gradient(circle at 30% 30%, #eff6ff, #1d4ed8);
}

/* DCPLUS style */
.swap-pill-dc {
    background: rgba(250, 204, 21, 0.20);
    border-color: rgba(250, 204, 21, 0.60);
    color: #facc15;
}

.swap-token-dot-dc {
    background: radial-gradient(circle at 30% 30%, #fef9c3, #ca8a04);
}

.swap-token-symbol {
    font-size: 13px;
    letter-spacing: 0.06em;
}

/* little hint under FROM */
.token-label-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #9ca3af;
}

/* center arrow that overlaps both cards */
.swap-arrow-shell {
    position: relative;
    height: 0;
}

.swap-arrow {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: #facc15;
    font-weight: bold;
    border-radius: 14px;
    border: 1px solid rgba(12, 12, 12, 0.9);
    background: radial-gradient(circle at 30% 30%, #111827, #020617);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.swap-arrow:hover {
    transform: translateX(-50%) rotate(180deg);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.6);
    background: radial-gradient(circle at 30% 30%, #111827, #000);
}

/* Rate + warning + slippage wrapper */
.swap-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 4px;
}

/* top row: Rate label + value + small loader */
.swap-rate {
    font-size: 12px;
    color: #9ca3af;
}

.swap-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.swap-rate-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.swap-rate-value {
    font-family: "Fira Code", monospace;
    font-size: 12px;
    color: #e5e7eb;
    white-space: nowrap;
}

.swap-rate-value .swap-rate-one {
    color: #facc15;
    font-weight: 700;
    margin-right: 4px;
}

.swap-rate-value .swap-rate-price {
    color: #e5e7eb;
    font-weight: 500;
}

.swap-loading {
    display: none;
    font-size: 11px;
    opacity: 0.7;
}

/* yellow warning box */
.swap-tax-box {
    margin-top: 2px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #facc15;
}

.swap-tax-icon {
    font-size: 15px;
    line-height: 1;
    margin-top: 1px;
}

.swap-tax-text {
    margin: 0;
}

/* Slippage row */
.swap-slippage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.swap-slippage-row label {
    text-transform: none;
    letter-spacing: 0;
}

.swap-slippage-row input {
    width: 110px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.7);
    color: #e5e7eb;
    font-size: 12px;
}

/* Swap button */
.swap-btn {
    margin-top: 6px;
    background: linear-gradient(90deg, #ffd700, #ffb700);
    border-radius: 14px;
    border: none;
    padding: 14px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    color: #050505;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.28);
}

.swap-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.45);
}


/* === RIGHT COLUMN: Assets & Help === */

.wallet-right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Assets card */
.wallet-balances {
    padding: 18px 18px 14px;
}

.assets-title {
    margin-bottom: 14px;
    color: #facc15;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.19em;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.balance-row:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.25);
}

.token-icon-box {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.token-icon-pill-dc {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.token-icon-pill-eth {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.token-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.token-name {
    font-weight: 700;
    font-size: 14px;
    color: #f9fafb;
}

.token-network {
    font-size: 11px;
    color: #6b7280;
}

.token-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
}

.token-value {
    font-size: 13px;
    font-family: "Fira Code", monospace;
    font-weight: 500;
    color: #e5e7eb;
}

.token-usd {
    font-size: 11px;
    color: #6b7280;
}

.wallet-desc {
    margin-top: 8px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
}

/* Help card */
.wallet-help-card {
    padding: 16px 18px 18px;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.32), transparent) 
                rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(250, 204, 21, 0.28);
}

.wallet-help-card h4 {
    font-size: 13px;
    color: #facc15;
    margin-bottom: 6px;
}

.wallet-help-card p {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.wallet-help-btn {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #e5e7eb;
    padding: 7px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.wallet-help-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

/* === POPUP (unchanged, just ensuring it fits theme) === */

.popup-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(16, 16, 16, 0.98);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.popup-box.success {
    border-color: rgba(0, 255, 120, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 120, 0.4);
}

.popup-box.error {
    border-color: rgba(255, 80, 80, 0.7);
    box-shadow: 0 0 15px rgba(255, 80, 80, 0.4);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-icon { font-size: 20px; }

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

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .wallet-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .wallet-tabs-content {
        padding: 18px 16px 22px;
    }

    .deposit-steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-address {
        flex-direction: row;
    }

    .wallet-right-column {
        gap: 14px;
    }
}

.swap-balance-note {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.burn-footer-help {
    color: #facc15;
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.burn-footer-help:hover {
    opacity: 0.8;
}
