/* ============================
   XCopier - Premium Dark Theme
   Inspired by VT Markets fintech aesthetic
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111215;
    --bg-card-hover: #181a1e;
    --bg-input: #0d0e11;
    --border-color: #1e2028;
    --border-light: #2a2d36;
    --text-primary: #ffffff;
    --text-secondary: #c0c3cc;
    --text-muted: #9599a5;
    --accent-blue: #0693e3;
    --accent-cyan: #00d4aa;
    --accent-green: #00d084;
    --accent-gradient: linear-gradient(135deg, #0693e3 0%, #00d4aa 100%);
    --accent-gradient-hover: linear-gradient(135deg, #0580cc 0%, #00b892 100%);
    --danger: #ff4757;
    --warning: #ffa502;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(6,147,227,0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.05);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-user-email {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

/* ===== BUTTONS ===== */
.btn-gradient {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6,147,227,0.3);
    color: #fff;
}

.btn-gradient-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.btn-outline-glass:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-glass-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-sm-pill {
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-glass {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.card-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.card-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(6,147,227,0.3);
    box-shadow: var(--shadow-glow);
}

.card-feature .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.card-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.card-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* ===== PRICING CARD ===== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(6,147,227,0.4);
    box-shadow: var(--shadow-glow);
}

.pricing-card .pricing-header {
    background: var(--accent-gradient);
    padding: 2rem;
    text-align: center;
}

.pricing-card .pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.pricing-card .pricing-body {
    padding: 2rem;
}

.pricing-check {
    color: var(--accent-cyan);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(6,147,227,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(0,212,170,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 1rem auto;
}

/* ===== FORMS ===== */
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    background: var(--bg-input);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(6,147,227,0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control[readonly] {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== TABLES ===== */
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
}

.table thead th {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.85rem 1rem;
}

.table td {
    border-color: var(--border-color);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    --bs-table-hover-bg: rgba(255,255,255,0.03);
    color: var(--text-primary);
}

/* ===== BADGES ===== */
.badge-active {
    background: rgba(0,208,132,0.15);
    color: var(--accent-green);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}

.badge-inactive {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}

.badge-warning-custom {
    background: rgba(255,165,2,0.15);
    color: var(--warning);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}

.badge-danger-custom {
    background: rgba(255,71,87,0.15);
    color: var(--danger);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}

.badge-info-custom {
    background: rgba(6,147,227,0.15);
    color: var(--accent-blue);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
}

/* ===== CRYPTO BUTTONS ===== */
.crypto-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 1.5rem 1rem;
    transition: var(--transition);
    text-align: center;
}

.crypto-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(6,147,227,0.4);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.crypto-btn .crypto-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* ===== PAYMENT STATUS ===== */
.payment-address {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    word-break: break-all;
    color: var(--accent-cyan);
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0,208,132,0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0,208,132,0.2);
}

.alert-danger {
    background: rgba(255,71,87,0.1);
    color: var(--danger);
    border: 1px solid rgba(255,71,87,0.2);
}

.alert-warning {
    background: rgba(255,165,2,0.1);
    color: var(--warning);
    border: 1px solid rgba(255,165,2,0.2);
}

.alert-info {
    background: rgba(6,147,227,0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(6,147,227,0.2);
}

/* ===== AUTH CARD ===== */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card .auth-header {
    background: var(--accent-gradient);
    padding: 2rem;
    text-align: center;
}

.auth-card .auth-header h3 {
    font-weight: 700;
    margin: 0;
}

.auth-card .auth-body {
    padding: 2rem;
}

/* ===== ROLE SELECTOR ===== */
.role-option {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.role-option:hover {
    border-color: var(--border-light);
}

.role-option.role-active {
    border-color: var(--accent-blue);
    background: rgba(6,147,227,0.08);
}

/* ===== LICENSE KEY ===== */
.license-box {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.license-key-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

/* ===== STEPS ===== */
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.small, small {
    color: var(--text-secondary);
}

/* ===== UTILITIES ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-blue);
}

.text-cyan {
    color: var(--accent-cyan);
}

.bg-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}

.border-accent {
    border-color: rgba(6,147,227,0.3) !important;
}

.glow-effect {
    box-shadow: var(--shadow-glow);
}

pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

pre code {
    color: var(--accent-cyan);
}

/* ===== SPINNER ===== */
.spinner-gradient {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== NODE DIAGRAM (Hero) ===== */
.node-diagram {
    position: relative;
    width: 100%;
    height: 400px;
}

.node-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.node-line {
    stroke-dasharray: 6 4;
    animation: lineDash 20s linear infinite;
}

@keyframes lineDash {
    to { stroke-dashoffset: -200; }
}

.node-master {
    position: absolute;
    left: 22%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.node-master-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.15;
    animation: masterPulse 2.5s ease-in-out infinite;
}

@keyframes masterPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.35); opacity: 0.05; }
}

.node-master-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(6,147,227,0.3);
    position: relative;
}

.node-master-inner i {
    font-size: 1.6rem;
    color: #fff;
}

.node-master-inner span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.node-sub {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.node-sub:hover {
    border-color: rgba(0,212,170,0.4);
    box-shadow: 0 0 25px rgba(0,212,170,0.15);
}

.node-sub i {
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.node-sub span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.node-sub-1 { right: 20%; top: 5%;  transform: translate(50%, 0); }
.node-sub-2 { right: 12%; top: 30%; transform: translate(50%, 0); }
.node-sub-3 { right: 12%; top: 58%; transform: translate(50%, 0); }
.node-sub-4 { right: 20%; top: 83%; transform: translate(50%, 0); }

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(6,147,227,0.4);
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) translateX(30px);
    }
}

/* ===== PRICING SHINE EFFECT ===== */
.pricing-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: pricingShine 4s ease-in-out infinite;
}

@keyframes pricingShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ===== CHECK ITEM ANIMATIONS ===== */
.check-item {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.check-item.check-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.row .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.row .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.row .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.row .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.row .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-sm);
    }
    .navbar-collapse .nav-user-email {
        display: block !important;
        padding: 0.5rem 1rem;
    }
    .navbar-collapse .btn-sm-pill {
        margin: 0.25rem 1rem;
    }
}

@media (max-width: 768px) {
    .node-diagram {
        display: none;
    }
    .hero-section {
        padding: 3rem 0 2rem;
    }
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto;
    }
    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }
    .hero-section .d-flex.gap-4 {
        justify-content: center;
    }
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .pricing-card .pricing-price {
        font-size: 2.5rem;
    }

    /* Stat cards: 2x2 grid on mobile */
    .card-stat {
        padding: 1rem;
    }
    .card-stat .stat-value {
        font-size: 1.5rem;
    }

    /* Tables: make scrollable */
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive-wrapper table {
        min-width: 480px;
    }

    /* License key: break long strings */
    .license-key-text {
        font-size: 0.75rem;
        word-break: break-all;
        overflow-wrap: break-word;
    }

    /* Code blocks */
    pre {
        font-size: 0.75rem;
        overflow-x: auto;
    }

    /* Feature cards */
    .card-feature {
        padding: 1.75rem 1.25rem;
    }

    /* Crypto buttons */
    .crypto-btn {
        padding: 1rem 0.75rem;
    }
    .crypto-btn .crypto-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .crypto-btn .fw-600 {
        font-size: 0.85rem;
    }

    /* Auth card */
    .auth-card {
        margin: 0 0.5rem;
    }

    /* Payment address */
    .payment-address {
        font-size: 0.72rem;
        padding: 0.75rem;
    }

    /* Buttons */
    .btn-gradient-lg {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
    .btn-outline-glass-lg {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }

    /* Steps layout on mobile */
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Dashboard columns: reverse on mobile (guide first) */
    .container .row.g-4 > .col-lg-8 {
        order: -1;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .container.py-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .card-body {
        padding: 1rem;
    }
}

/* ===== METRICS DASHBOARD ===== */
.text-profit {
    color: #00d4aa !important;
}

.text-loss {
    color: #ff4757 !important;
}

/* Card headers in metrics - high contrast */
.metrics-account-section .card-header {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.metrics-account-section .card-header i {
    color: var(--accent-cyan);
}

/* Stat card labels - brighter */
.metrics-account-section .card-stat .stat-label {
    color: #e0e3eb;
}

.metric-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.metric-mini-card:hover {
    border-color: var(--border-light);
}

.metric-mini-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-mini-label {
    color: #c0c3cc;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.15rem;
}

/* Key Statistics table - all text visible */
.metrics-stats-table td {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem;
    border-color: var(--border-color) !important;
    color: #ffffff;
}

.metrics-stats-table td.text-muted {
    color: #c0c3cc !important;
}

.metrics-stats-table tr:last-child td {
    border-bottom: none !important;
}

/* Table headers and cells in metrics */
.metrics-account-section .table thead th {
    color: #c0c3cc;
}

.metrics-account-section .table td {
    color: #ffffff;
}

.metrics-account-section .table td.text-muted,
.metrics-account-section .table td .text-muted {
    color: #b0b3bc !important;
}

.card-stat .stat-value.text-profit {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #00d4aa !important;
    background-clip: unset !important;
}

.card-stat .stat-value.text-loss {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ff4757 !important;
    background-clip: unset !important;
}

/* Account section header */
.metrics-account-section h4 {
    color: #ffffff;
}

.metrics-account-section h4 .text-muted {
    color: #b0b3bc !important;
}

/* Subtitle under page title */
.metrics-account-section .alert {
    color: var(--warning);
}

@media (max-width: 768px) {
    .metric-mini-card {
        padding: 0.75rem 0.5rem;
    }
    .metric-mini-value {
        font-size: 1.1rem;
    }
}

/* ===== PUBLIC PROFILE HERO ===== */
.public-profile-hero {
    background: linear-gradient(180deg, #0a0c10 0%, #000000 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0,212,170,0.2);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.profile-status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4aa;
    border: 3px solid #000;
    box-shadow: 0 0 8px rgba(0,212,170,0.5);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.profile-bio {
    color: #c0c3cc;
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.5;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #c0c3cc;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.profile-badge-live {
    background: rgba(0,212,170,0.1);
    border-color: rgba(0,212,170,0.3);
    color: #00d4aa;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4aa;
    margin-right: 4px;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.profile-hero-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.profile-hero-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.profile-hero-stat-label {
    font-size: 0.7rem;
    color: #9599a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PUBLIC FOOTER ===== */
.public-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.public-footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.public-footer-brand:hover {
    color: #ffffff;
}

.public-footer-tagline {
    color: #9599a5;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

.public-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.public-footer-links a {
    color: #c0c3cc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.public-footer-links a:hover {
    color: var(--accent-cyan);
}

.public-footer-disclaimer {
    color: #6b6f7a;
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.public-footer-copy {
    color: #6b6f7a;
    font-size: 0.75rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .public-profile-hero {
        padding: 1.5rem 0;
    }
    .profile-avatar, .profile-avatar-placeholder {
        width: 72px;
        height: 72px;
    }
    .profile-avatar-placeholder {
        font-size: 1.8rem;
    }
    .profile-name {
        font-size: 1.3rem;
    }
    .profile-hero-stat {
        min-width: 60px;
        padding: 0.4rem 0.6rem;
    }
    .profile-hero-stat-value {
        font-size: 1rem;
    }
}
