/* ============================================
   TradePilot AI — Pages Shared Styles
   Spot, Market, Login, Signup
   ============================================ */

/* ---------- PAGE TRANSITION ---------- */
body {
    animation: pageFadeIn 0.35s ease-out forwards;
}

body.page-exit {
    animation: pageFadeOut 0.25s ease-in forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ---------- PAGE LAYOUT ---------- */
.page-main {
    padding-top: calc(var(--nav-height) + 30px);
    min-height: 100vh;
    padding-bottom: 60px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 8px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
}

.nav-link.active {
    color: var(--accent-cyan);
}

/* ---------- PAIR SELECTOR DROPDOWN ---------- */
.pair-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.pair-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
    user-select: none;
    border: 1px solid transparent;
}

.pair-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.pair-dropdown-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
}

.pair-dropdown-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pair-dropdown-text .pair-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.pair-dropdown-text .pair-price-tag {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-alt);
    margin-top: 2px;
}

.pair-dropdown-chevron {
    color: var(--text-secondary);
    transition: transform var(--transition);
    margin-left: 4px;
}

.pair-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 320px;
    max-height: 400px;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 200, 0.2) transparent;
}

.pair-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.pair-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.pair-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 200, 0.2);
    border-radius: 6px;
}

.pair-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pair-dropdown-trigger.open .pair-dropdown-chevron {
    transform: rotate(180deg);
}

.pair-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pair-dropdown-item:last-child {
    border-bottom: none;
}

.pair-dropdown-item:hover {
    background: rgba(0, 255, 200, 0.08);
}

.pair-dropdown-item.active {
    background: rgba(0, 255, 200, 0.12);
    position: relative;
}

.pair-dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-cyan);
}

.pair-item-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.pair-item-info {
    display: flex;
    flex-direction: column;
}

.pair-item-symbol {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.pair-item-name {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.crypto-table tr {
    cursor: pointer;
}

/* ---------- TRADING HEADER (Spot) ---------- */
.trading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .trading-header { padding: 10px 0; margin-bottom: 12px; }
    .pair-info { width: 100%; justify-content: space-between; gap: 8px; }
    .pair-stats { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        width: 100%; 
        gap: 12px; 
    }
    .stat-item { padding: 10px; background: rgba(255,255,255,0.03); border-radius: 10px; }
    .pair-name { font-size: 1.25rem; }
    .page-main { padding-top: 80px; }
    .container { padding: 0 15px; }
}

.pair-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pair-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.pair-price {
    font-family: var(--font-alt);
    font-size: 1.4rem;
    font-weight: 600;
}

.pair-price.price-up {
    color: var(--accent-cyan);
}

.pair-price.price-down {
    color: var(--accent-magenta);
}

.pair-change {
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.pair-change.positive {
    color: var(--accent-cyan);
    background: rgba(0, 255, 200, 0.1);
}

.pair-change.negative {
    color: var(--accent-magenta);
    background: rgba(244, 63, 122, 0.1);
}

.pair-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- TRADING GRID ---------- */
.trading-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 60px;
}

.chart-area {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    min-height: 400px;
}

@media (max-width: 992px) {
    .trading-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }
    .chart-area, .order-book, .ai-arbitrage-sidebar {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
    }
    .order-book { order: 3; max-height: 400px; }
    .ai-arbitrage-sidebar { order: 2; }
    .chart-area { order: 1; height: 350px !important; }
}

.chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-timeframes,
.chart-type-btns {
    display: flex;
    gap: 4px;
}

.tf-btn {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.tf-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.tf-btn.active {
    background: rgba(0, 255, 200, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.spot-chart-canvas {
    width: 100%;
    height: 450px;
    display: block;
}

/* ---------- ORDER BOOK ---------- */
.order-book {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    max-height: 450px;
}

.ai-arbitrage-sidebar {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: stretch;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0 20px 20px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.ob-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ob-header span:last-child {
    text-align: right;
}

.ob-header span:nth-child(2) {
    text-align: center;
}

.ob-asks,
.ob-bids {
    flex: 1;
    overflow-y: auto;
}

.ob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-family: var(--font-alt);
    font-size: 0.8rem;
    padding: 3px 0;
    position: relative;
    transition: background 0.3s ease;
}

.ob-row .ob-bg {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.08;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.ob-row span:last-child {
    text-align: right;
}

.ob-row span:nth-child(2) {
    text-align: center;
}

.ob-asks .ob-row span:first-child {
    color: var(--accent-magenta);
}

.ob-bids .ob-row span:first-child {
    color: var(--accent-cyan);
}

.ob-asks .ob-bg {
    background: var(--accent-magenta);
}

.ob-bids .ob-bg {
    background: var(--accent-cyan);
}

.ob-spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.spread-price {
    font-family: var(--font-alt);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.spread-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- CRYPTO TABLE ---------- */
.crypto-table-section {
    margin-top: 40px;
}

.table-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-btns {
    display: flex;
    gap: 8px;
}

.filter-btn {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(0, 255, 200, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-alt);
}

.crypto-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.crypto-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.crypto-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.crypto-table .coin-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 255, 200, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.coin-name {
    font-weight: 600;
}

.coin-symbol {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.coin-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.positive {
    color: var(--accent-cyan);
}

.negative {
    color: var(--accent-magenta);
}

/* Live price flash animations */
.price-flash-up {
    animation: flashUp 0.6s ease-out;
}

.price-flash-down {
    animation: flashDown 0.6s ease-out;
}

@keyframes flashUp {
    0% {
        background: rgba(0, 255, 200, 0.25);
        color: #00ffc8;
    }

    100% {
        background: transparent;
    }
}

@keyframes flashDown {
    0% {
        background: rgba(244, 63, 122, 0.25);
        color: #f43f7a;
    }

    100% {
        background: transparent;
    }
}

.crypto-table td {
    transition: background 0.3s ease, color 0.3s ease;
}

.mini-chart {
    width: 100px;
    height: 32px;
}

.trade-btn {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all var(--transition);
}

.trade-btn:hover {
    background: rgba(0, 255, 200, 0.1);
    box-shadow: var(--glow-cyan);
}

/* ---------- MARKET STATS BAR ---------- */
.market-hero {
    padding: 20px 0 10px;
}

.market-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.market-stat {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ms-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.ms-change {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- TOP MOVERS ---------- */
.top-movers {
    margin-bottom: 50px;
}

.movers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.mover-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
}

.mover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-mixed);
    border-color: rgba(0, 255, 200, 0.15);
}

.mover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mover-coin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mover-price {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mover-change {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
}

.mover-chart {
    width: 100%;
    height: 40px;
    margin-top: 8px;
}

/* ---------- AUTH PAGES ---------- */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.auth-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 24px;
}

.auth-box {
    background: rgba(12, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    transition: all var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
}

.input-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 13px 0;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
}

.toggle-pw:hover {
    color: var(--text-primary);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-cyan);
    width: 16px;
    height: 16px;
}

.checkbox-label a {
    color: var(--accent-cyan);
}

.forgot-link {
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    box-shadow: var(--glow-cyan), var(--glow-purple);
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.social-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.auth-footer-text a {
    color: var(--accent-cyan);
    font-weight: 500;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pw-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.pw-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.pw-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 50px;
}

/* ---------- INFO / WHITEPAPER CARDS ---------- */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
}

.info-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .trading-grid {
        grid-template-columns: 1fr;
    }

    .market-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .pair-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .market-stats-bar {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-btns {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 30px 24px;
    }

    .pair-info {
        flex-wrap: wrap;
    }
}

/* ============================================
   USER DASHBOARD (Reference UI Match)
   ============================================ */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dash-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.dash-tab.active {
    background: rgba(0, 255, 200, 0.1);
    /* Reference Yellow tint */
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.dash-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dash-card {
    background: #101213;
    /* Reference very dark grey */
    border: 1px solid #252627;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* Profile left card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-meta {
    flex: 1;
}

.profile-meta h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.crypto-address {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-connect {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-connect:hover {
    background: rgba(0, 255, 200, 0.1);
    box-shadow: var(--glow-cyan);
}

/* Withdraw form items */
.flex-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.available-bal {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dash-input {
    width: 100%;
    background: #000;
    border: 1px solid #252627;
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-alt);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.dash-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix .dash-input {
    padding-right: 100px;
}

.suffix-actions {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-max {
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-max:hover {
    background: var(--accent-cyan);
    color: #000;
}

.currency-tag {
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-withdraw {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-family: var(--font-alt);
    font-weight: 700;
    border: none;
    padding: 14px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-withdraw:hover {
    filter: brightness(1.15);
    box-shadow: var(--glow-cyan);
}

/* Campaign Card */
.campaign-card {
    height: 100%;
}

.campaign-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text-right {
    text-align: right;
}

.stat-val.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.campaign-status.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--accent-cyan);
    background: rgba(0, 255, 200, 0.05);
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px dashed rgba(0, 255, 200, 0.2);
}

.campaign-rewards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    border-top: 1px solid #252627;
    padding-top: 20px;
}

.reward-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-col span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.reward-col strong {
    font-family: var(--font-alt);
    font-size: 0.95rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: rgba(12, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.15);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.deposit-header {
    text-align: center;
    margin-bottom: 20px;
}

.deposit-header img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.warning-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

.qr-placeholder {
    text-align: center;
    margin-bottom: 24px;
}

.qr-placeholder img {
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.address-box {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.address-box input {
    flex: 1;
    background: #000;
    border: 1px solid #252627;
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-done {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-weight: 700;
    font-family: var(--font-alt);
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
}

.btn-done:hover {
    filter: brightness(1.15);
    box-shadow: var(--glow-cyan);
}

/* ---------- SCANNING ANIMATION ---------- */
.dot-spin {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--accent-cyan);
  color: var(--accent-cyan);
  animation: dot-spin 1.5s infinite linear;
  margin: 0 auto;
}

.dot-spin::before, .dot-spin::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.dot-spin::before {
  left: -15px;
  animation: dot-spin 1.5s infinite linear;
  animation-delay: -0.3s;
}

.dot-spin::after {
  left: 15px;
  animation: dot-spin 1.5s infinite linear;
  animation-delay: 0.3s;
}

@keyframes dot-spin {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

/* User Profile Dropdown Styles */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: rgba(12, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 200, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-balance {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: rgba(0, 255, 200, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 200, 0.1);
    margin-bottom: 8px;
}

.dropdown-balance span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dropdown-balance strong {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-alt);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.dropdown-menu hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(0, 255, 200, 0.1);
    color: var(--accent-cyan);
    padding-left: 20px;
}

.dropdown-item.text-danger {
    color: #ff4d4f;
    margin-top: 8px;
    background: rgba(255, 77, 79, 0.05);
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 77, 79, 0.15);
    color: #ff4d4f;
}

/* ============================================
   AI ARBITRAGE SIDEBAR
   ============================================ */
.ai-arbitrage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mode Tabs: Crypto / TradFi */
.mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mode-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0 10px;
    font-family: var(--font-alt);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    position: relative;
}

.mode-tab:hover {
    color: var(--text-secondary);
}

.mode-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-cyan);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 200, 0.2);
}

.ai-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-alt);
    padding: 10px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition);
}

.ai-tab:hover {
    color: var(--text-primary);
}

.ai-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 500;
}

.ai-tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ai-tab-content.active {
    display: flex;
}

/* QT Bot Details */
.qt-bot-details {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
}

.qt-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.qt-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.qt-detail-row span:last-child {
    color: var(--text-primary);
    font-family: var(--font-alt);
    font-weight: 500;
}

.qt-highlight {
    color: var(--text-primary) !important;
}

.qt-upgrade-link {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: right;
    transition: color var(--transition);
}

.qt-upgrade-link:hover {
    color: var(--text-primary);
}

/* Profitable Trades */
.trades-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trades-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.profitable-trades-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 4px;
}

.profitable-trades-list::-webkit-scrollbar {
    width: 4px;
}

.profitable-trades-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.trade-card {
    background: rgba(12, 15, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.trade-card:hover {
    border-color: rgba(0, 255, 200, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.04);
}

.trade-exchange-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: center;
}

.trade-exchange-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-exchange-side.end {
    text-align: right;
    align-items: flex-end;
}

.exchange-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.exchange-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trade-input-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.trade-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-field.end {
    text-align: right;
}

.field-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.execute-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-family: var(--font-alt);
    font-size: 1rem;
    width: 100px;
    padding: 2px 0;
    outline: none;
    transition: border-color var(--transition);
}

.execute-input:focus {
    border-color: var(--accent-cyan);
}

.price-val {
    font-family: var(--font-alt);
    font-size: 0.95rem;
    font-weight: 500;
}

.profit-val {
    font-family: var(--font-alt);
    color: #00ff00;
    font-size: 0.95rem;
    font-weight: 600;
}

.trade-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition);
}

.trade-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

.trade-btn:not(:disabled):hover {
    background: #fff;
}

/* ============================================
   AI ANALYSIS TAB — PREMIUM STYLES
   ============================================ */

/* Signal Header */
.ai-signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 15, 26, 0.4);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 200, 0.1);
}

.ai-signal-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ai-signal-badge.bullish {
    background: linear-gradient(90deg, rgba(0, 255, 160, 0.2), rgba(0, 255, 160, 0.05));
    border: 1px solid rgba(0, 255, 160, 0.4);
    color: #00ffa0;
    text-shadow: 0 0 5px rgba(0, 255, 160, 0.5);
}

.ai-signal-badge.bearish {
    background: linear-gradient(90deg, rgba(255, 70, 100, 0.2), rgba(255, 70, 100, 0.05));
    border: 1px solid rgba(255, 70, 100, 0.4);
    color: #ff4664;
    text-shadow: 0 0 5px rgba(255, 70, 100, 0.5);
}

.ai-signal-badge.neutral {
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.05));
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: #ffb800;
    text-shadow: 0 0 5px rgba(255, 184, 0, 0.5);
}

.signal-icon { font-size: 0.8rem; }

.ai-confidence {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-alt);
    font-weight: 500;
}

/* AI Cards */
.ai-card {
    background: rgba(12, 15, 26, 0.4);
    border: 1px solid rgba(0, 255, 200, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 0 20px rgba(0, 255, 200, 0.02);
}

.ai-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* Sentiment Bar */
.sentiment-bar-container { margin-bottom: 8px; }

.sentiment-bar {
    height: 8px;
    border-radius: 100px;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    position: relative;
    overflow: hidden;
}

.sentiment-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-right: 3px solid #fff;
    background: transparent;
    transition: width 0.8s ease;
    box-shadow: 2px 0 8px rgba(255,255,255,0.5);
}

.sentiment-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.sentiment-labels .fear { color: #ff4444; }
.sentiment-labels .greed { color: #00ff88; }

.sentiment-value {
    text-align: center;
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-top: 4px;
}

/* Technical Indicators */
.indicator-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.indicator-row:last-child { border-bottom: none; }

.ind-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
}

.ind-val {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
}

.ind-signal {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ind-signal.buy {
    background: rgba(0, 255, 160, 0.1);
    color: #00ffa0;
    border: 1px solid rgba(0, 255, 160, 0.2);
}

.ind-signal.sell {
    background: rgba(255, 70, 100, 0.1);
    color: #ff4664;
    border: 1px solid rgba(255, 70, 100, 0.2);
}

.ind-signal.neutral {
    background: rgba(255, 184, 0, 0.08);
    color: #ffb800;
    border: 1px solid rgba(255, 184, 0, 0.2);
}

/* Support / Resistance Levels */
.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.level-item.resistance {
    background: rgba(255, 70, 100, 0.06);
    border-left: 3px solid #ff4664;
}

.level-item.support {
    background: rgba(0, 255, 160, 0.06);
    border-left: 3px solid #00ffa0;
}

.level-item.current {
    background: rgba(0, 200, 255, 0.08);
    border-left: 3px solid var(--accent-cyan);
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.level-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.level-price {
    font-family: var(--font-alt);
    font-weight: 600;
    color: var(--text-primary);
}

.level-item.resistance .level-price { color: #ff4664; }
.level-item.support .level-price { color: #00ffa0; }
.level-item.current .level-price { color: var(--accent-cyan); font-weight: 700; }

/* Volume Bars */
.volume-bars {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 60px;
    margin-bottom: 10px;
}

.vol-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 4px;
}

.vol-bar-wrap span {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.vol-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s ease;
}

.vol-bar.green {
    background: linear-gradient(180deg, rgba(0, 255, 160, 0.6), rgba(0, 255, 160, 0.15));
}

.vol-bar.red {
    background: linear-gradient(180deg, rgba(255, 70, 100, 0.6), rgba(255, 70, 100, 0.15));
}

.volume-summary {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.volume-summary strong { color: var(--text-primary); }
.text-green { color: #00ffa0 !important; }
.text-red { color: #ff4664 !important; }

/* AI Recommendation Card */
.ai-recommendation {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rec-icon { font-size: 1.1rem; }

.rec-title {
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.rec-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.rec-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.rec-algo {
    color: rgba(139, 92, 246, 0.7);
}

/* ============================================/* ============================================
   USER DASHBOARD V3 — PREMIUM PROFESSIONAL
   ============================================ */
.v3-layout {
    background: #020205 !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.v3-topbar {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 2, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.v3-breadcrumb {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.system-status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.1);
    border-radius: 100px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pulse-dot.green {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

.status-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.user-profile-v3 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    padding-right: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
}

.v3-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-cyan);
}

.v3-user-meta {
    display: flex;
    flex-direction: column;
}

.v3-username {
    font-size: 0.85rem;
    font-weight: 700;
}

.v3-user-id {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.v3-chevron {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Metrics Grid */
.v3-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.metric-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.metric-value small { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.metric-trend {
    font-size: 0.75rem;
    font-weight: 700;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.25rem;
}

.cyan-glow { color: var(--accent-cyan); border: 1px solid rgba(0, 255, 200, 0.2); box-shadow: 0 0 20px rgba(0, 255, 200, 0.1); }
.purple-glow { color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.2); box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
.gold-glow { color: var(--accent-gold); border: 1px solid rgba(255, 184, 0, 0.2); box-shadow: 0 0 20px rgba(255, 184, 0, 0.1); }
.magenta-glow { color: var(--accent-magenta); border: 1px solid rgba(244, 63, 122, 0.2); box-shadow: 0 0 20px rgba(244, 63, 122, 0.1); }

.v3-card-btn {
    padding: 10px 20px;
    background: var(--accent-cyan);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.v3-card-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: translateY(-2px);
}

.v3-card-btn.abs {
    position: absolute;
    bottom: 24px;
    right: 24px;
}

/* Health Card Specific */
.v3-health-meter {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-purple));
    box-shadow: 0 0 8px var(--accent-magenta);
}

.health-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-magenta);
}

/* Container & Centering */
.v3-container {
    max-width: 1450px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 768px) {
    .v3-container { padding: 0 20px; }
}

/* Grid Systems */
.v3-main-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.v3-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.v3-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 30px;
}

.input-v3 { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.input-v3.full { grid-column: span 2; }
.input-v3 label { font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; }

.input-v3 input, .input-v3 select {
    background: rgba(2, 2, 5, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-family: var(--font-alt);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-v3 input:focus, .input-v3 select:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 200, 0.03) !important;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.1), inset 0 2px 4px rgba(0,0,0,0.2);
}

.label-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.v2-avail { font-size: 0.7rem; color: var(--accent-cyan); font-weight: 700; }

.glass-card-v3 {
    background: rgba(12, 15, 26, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.card-header-v3 {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.staking-body-v3 { padding: 30px; }
.v3-withdraw-form { padding: 0 30px 30px; }
.v3-engine-stats { padding: 0 30px 30px; }

.v3-tag {
    padding: 5px 12px;
    background: rgba(244, 63, 122, 0.15);
    color: var(--accent-magenta);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.card-header-v3 h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; }

.apy-pill {
    padding: 8px 16px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* Staking Body V3 */
.staking-body-v3 { padding: 24px; }

.staking-stats-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.s-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.s-val { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.s-val small { font-size: 0.9rem; color: var(--text-muted); }

.staking-progress-v3 { margin-bottom: 30px; }

.v3-bar-header { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }

.v3-progress-bar { height: 10px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.03); }
.v3-fill { height: 100%; background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan)); box-shadow: 0 0 15px rgba(244, 63, 122, 0.3); }

.rewards-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reward-box {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
}

.r-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 800; display: block; margin-bottom: 6px; }
.r-val { font-family: var(--font-alt); font-size: 1.1rem; font-weight: 700; }

/* Terminal V3 */
.terminal-v3 { display: flex; flex-direction: column; background: #05070a !important; }

.terminal-header-v3 {
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-title { font-size: 0.7rem; font-weight: 800; color: var(--accent-cyan); display: flex; align-items: center; gap: 8px; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); }
.t-dot.pulse { animation: pulse 1.5s infinite; }

.terminal-body-v3 {
    flex: 1;
    padding: 20px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    color: rgba(255,255,255,0.7);
}

.t-line { margin-bottom: 8px; border-left: 2px solid transparent; padding-left: 10px; }
.t-line:hover { border-color: var(--accent-cyan); color: #fff; background: rgba(0, 255, 200, 0.03); }

.v3-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.7;
}

@media (max-width: 1400px) {
    .v3-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .v3-main-grid, .v3-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .v3-topbar { padding: 0 20px; }
    .dash-scroll-container { padding: 20px 0; }
    .v3-container { padding: 0 15px; }
    .v3-metrics-grid { grid-template-columns: 1fr !important; }
    .staking-stats-v3, .rewards-grid-v3, .v3-form-grid { grid-template-columns: 1fr; }
}

.input-with-action { position: relative; display: flex; align-items: center; width: 100%; }
.input-with-action input { width: 100%; padding-right: 80px !important; }
.input-with-action button { 
    position: absolute; 
    right: 8px; 
    background: var(--accent-cyan); 
    border: none; 
    color: #000; 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s;
}
.input-with-action button:hover { background: #fff; transform: scale(1.05); }

.v3-btn-primary {
    margin: 0 24px 24px;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

/* Status Widget */
.status-v3 { padding: 24px; }
.status-list-v3 { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.status-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: 600; }
.val-tag { padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 800; background: rgba(255,255,255,0.05); }
.val-tag.green { color: var(--accent-cyan); background: rgba(0, 255, 200, 0.1); }

.v3-mini-chart-placeholder {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: auto;
}

.v3-mini-chart-placeholder .bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-purple), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.v3-mini-chart-placeholder .bar:hover { opacity: 1; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 1400px) {
    .v3-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .v3-main-grid, .v3-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .v3-layout { height: auto; overflow: visible; }
    .v3-topbar { padding: 0 15px; height: 60px; }
    .page-title { font-size: 0.9rem; letter-spacing: 1px; }
    .topbar-actions { gap: 12px; }
    .system-status-chip { display: none; }
    .v3-username { font-size: 0.75rem; }
    .dash-scroll-container { padding: 15px 0; }
    .v3-metrics-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .metric-card { padding: 16px; min-height: 120px; }
    .v3-btn-primary { margin: 0 16px 16px; padding: 14px; }
}

/* ============================================
   NEW DASHBOARD SIDEBAR V3
   ============================================ */
.dash-body {
    display: flex;
    min-height: 100vh;
    background: #020205 !important;
    overflow-x: hidden;
    margin: 0;
}

.dash-sidebar {
    width: 80px;
    height: 100vh;
    background: rgba(12, 15, 26, 0.8);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
}

.sidebar-logo {
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sidebar-link svg {
    width: 22px;
    height: 22px;
}

.sidebar-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 255, 200, 0.05);
    transform: translateY(-2px);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 8px 15px rgba(0, 255, 200, 0.2);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px 0;
}

.dash-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .dash-body { flex-direction: column; height: auto !important; overflow: visible !important; }
    .dash-sidebar { 
        width: 100%; 
        height: 70px; 
        padding: 0; 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        top: auto;
        border-right: none; 
        border-top: 1px solid rgba(255,255,255,0.1); 
        background: rgba(2, 2, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: row;
        z-index: 2000;
    }
    .sidebar-logo { display: none; }
    .sidebar-nav { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; padding: 0 10px; align-items: center; }
    .sidebar-link { width: 50px; height: 50px; }
    .sidebar-bottom { display: none; }
    
    .dash-content-area { 
        padding-bottom: 80px; 
        width: 100%; 
        min-height: 100vh;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .v3-layout { height: auto; overflow-y: visible; }
    .v3-metrics-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .v3-main-grid, .v3-footer-grid { grid-template-columns: 1fr; }
    .v3-form-grid { grid-template-columns: 1fr; padding: 20px; }
}

@media (max-width: 480px) {
    .dash-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        padding: 10px;
        background: rgba(2, 2, 5, 0.95);
        border-bottom: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-logo { display: none; }
    
    .sidebar-nav {
        justify-content: space-around;
        width: 100%;
    }
    
    .dash-content-area {
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .v3-topbar { padding: 0 15px; height: 60px; }
    .page-title { font-size: 0.85rem; letter-spacing: 0.5px; }
    .topbar-actions { gap: 8px; }
    .user-profile-v3 { padding: 4px; padding-right: 10px; }
    .v3-avatar { width: 28px; height: 28px; }
    .v3-username { font-size: 0.7rem; }
}

/* ============================================
   PREMIUM DEPOSIT MODAL
   ============================================ */
.dep-modal {
    background: rgba(10, 12, 20, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 200, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 32px 28px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 60px rgba(0, 255, 200, 0.08), 0 0 120px rgba(139, 92, 246, 0.06);
    max-height: 90vh;
    overflow-y: auto;
}
.dep-modal::-webkit-scrollbar { width: 4px; }
.dep-modal::-webkit-scrollbar-thumb { background: rgba(0,255,200,0.2); border-radius: 4px; }

.modal-overlay.active .dep-modal {
    transform: translateY(0);
}

.dep-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.dep-close:hover { background: rgba(244, 63, 122, 0.1); color: #f43f7a; border-color: rgba(244, 63, 122, 0.3); }

/* Header */
.dep-header { text-align: center; margin-bottom: 20px; }
.dep-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(0, 255, 200, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.dep-header h3 { color: #fff; font-family: var(--font-heading); font-size: 1.25rem; margin: 0 0 6px; }
.dep-header p { color: var(--text-muted); font-size: 0.82rem; margin: 0; }

/* Network Selector */
.dep-network-row {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}
.dep-net-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}
.dep-net-btn:hover { color: #fff; }
.dep-net-btn.active {
    background: rgba(0, 255, 200, 0.1);
    border-color: rgba(0, 255, 200, 0.25);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.1);
}

/* QR Section */
.dep-qr-section { text-align: center; margin-bottom: 20px; }

.dep-qr-frame {
    position: relative;
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.15);
}
.dep-qr-frame img { display: block; border-radius: 8px; width: 160px; height: 160px; }

.dep-qr-corners { position: absolute; inset: 0; pointer-events: none; }
.dep-qr-corners .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-cyan);
    border-style: solid;
    border-width: 0;
}
.dep-qr-corners .corner.tl { top: -3px; left: -3px; border-top-width: 3px; border-left-width: 3px; border-radius: 6px 0 0 0; }
.dep-qr-corners .corner.tr { top: -3px; right: -3px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 6px 0 0; }
.dep-qr-corners .corner.bl { bottom: -3px; left: -3px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 6px; }
.dep-qr-corners .corner.br { bottom: -3px; right: -3px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 6px 0; }

/* Address Box */
.dep-address-box {
    display: flex;
    gap: 8px;
    max-width: 360px;
    margin: 0 auto 12px;
}
.dep-address-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--font-alt);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    text-overflow: ellipsis;
}
.dep-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.2);
    color: var(--accent-cyan);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.dep-copy-btn:hover { background: rgba(0, 255, 200, 0.15); }

/* Warning */
.dep-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 165, 0, 0.06);
    border: 1px solid rgba(255, 165, 0, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto;
}
.dep-warning strong { color: #ffa500; }
.dep-warning svg { flex-shrink: 0; }

/* Divider */
.dep-divider {
    text-align: center;
    margin: 20px 0 16px;
    position: relative;
}
.dep-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.dep-divider span {
    position: relative;
    background: rgba(10, 12, 20, 0.96);
    padding: 0 14px;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Method Cards */
.dep-methods { display: flex; flex-direction: column; gap: 10px; }
.dep-method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.2s;
}
.dep-method-card:hover { border-color: rgba(0, 255, 200, 0.12); }
.dep-method-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}
.dep-method-icon { font-size: 1.1rem; }
.dep-method-form { display: flex; gap: 8px; }

.dep-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.dep-input:focus { outline: none; border-color: rgba(0, 255, 200, 0.3); }
.dep-input.full { width: 100%; margin-bottom: 10px; }

.dep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.dep-btn.metamask {
    background: linear-gradient(135deg, #f6851b, #e2761b);
    color: #fff;
    min-width: 100px;
}
.dep-btn.metamask:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(246, 133, 27, 0.3); }
.dep-btn.verify {
    background: linear-gradient(135deg, #00ffc8, #00d2ff);
    color: #000;
    width: 100%;
}
.dep-btn.verify:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 255, 200, 0.25); }

/* Scanner */
.dep-scanner { text-align: center; padding: 30px 0; }
.dep-scanner-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 200, 0.15);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: depSpin 1s linear infinite;
}
@keyframes depSpin { to { transform: rotate(360deg); } }
.dep-scanner p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 14px; }

.dep-progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    max-width: 260px;
    margin: 0 auto;
}
.dep-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Success */
.dep-success { text-align: center; padding: 30px 0 10px; }
.dep-success-icon { font-size: 3rem; margin-bottom: 12px; }
.dep-success h4 { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.dep-success p { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 20px; }

/* Responsive */
@media (max-width: 500px) {
    .dep-modal { padding: 22px 18px; margin: 10px; border-radius: 16px; }
    .dep-qr-frame img { width: 130px; height: 130px; }
    .dep-address-box { flex-direction: column; }
    .dep-copy-btn { justify-content: center; }
    .dep-method-form { flex-direction: column; }
    .dep-btn.metamask { width: 100%; }
}

/* ============================================
   WALLET CONNECT — DASHBOARD CARD
   ============================================ */
.wc-section { margin-top: 16px; }
.wc-card { padding: 20px 24px !important; }
.wc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.wc-card-header h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}
.wc-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 255, 200, 0.06);
    border: 1px solid rgba(0, 255, 200, 0.18);
    color: var(--accent-cyan);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
}
.wc-add-btn:hover { background: rgba(0, 255, 200, 0.12); transform: translateY(-1px); }

.wc-list { min-height: 50px; }

.wc-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Linked wallet items */
.wc-linked-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 255, 200, 0.03);
    border: 1px solid rgba(0, 255, 200, 0.08);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.wc-linked-item:hover { border-color: rgba(0, 255, 200, 0.18); }
.wc-linked-item img { width: 28px; height: 28px; border-radius: 6px; }
.wc-linked-item .wc-item-info { flex: 1; }
.wc-linked-item .wc-item-name { font-size: 0.85rem; color: #fff; font-weight: 600; }
.wc-linked-item .wc-item-addr {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-family: var(--font-alt);
    letter-spacing: 0.3px;
}
.wc-linked-item .wc-disconnect-btn {
    background: rgba(244, 63, 122, 0.08);
    border: 1px solid rgba(244, 63, 122, 0.15);
    color: #f43f7a;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.wc-linked-item .wc-disconnect-btn:hover { background: rgba(244, 63, 122, 0.15); }

/* ============================================
   WALLET CONNECT — MODAL
   ============================================ */
.wc-modal {
    background: rgba(10, 12, 20, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.08), 0 0 120px rgba(0, 255, 200, 0.04);
}
.modal-overlay.active .wc-modal { transform: translateY(0); }

.wc-providers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.wc-provider-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.wc-provider-btn:hover {
    background: rgba(0, 255, 200, 0.04);
    border-color: rgba(0, 255, 200, 0.15);
    transform: translateX(4px);
}
.wc-provider-btn img { flex-shrink: 0; }
.wc-prov-info { flex: 1; }
.wc-prov-info strong { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 2px; }
.wc-prov-info span { font-size: 0.72rem; color: var(--text-muted); }
.wc-prov-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}
.wc-provider-btn:hover .wc-prov-arrow { color: var(--accent-cyan); transform: translateX(3px); }

/* Connecting State */
.wc-connecting {
    text-align: center;
    padding: 30px 0 10px;
}
.wc-connecting p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0; }

/* Connected State */
.wc-connected {
    text-align: center;
    padding: 20px 0 10px;
}
.wc-connected h4 { color: #fff; font-size: 1.05rem; margin: 8px 0 4px; }
.wc-linked-addr {
    font-family: var(--font-alt);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    margin-bottom: 18px !important;
    background: rgba(0, 255, 200, 0.05);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 200, 0.12);
}

@media (max-width: 500px) {
    .wc-modal { padding: 22px 18px; margin: 10px; }
    .wc-card-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .wc-provider-btn { padding: 10px 12px; gap: 10px; }
}
