/* ============================================
   VPS DASHBOARD - Premium Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables / Design Tokens */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-inner: rgba(0, 210, 211, 0.12);
    --bg-glass: rgba(26, 32, 53, 0.7);
    --border-card: rgba(0, 210, 211, 0.25);
    --border-glass: rgba(255, 255, 255, 0.08);

    --accent-cyan: #00d2d3;
    --accent-cyan-glow: rgba(0, 210, 211, 0.3);
    --accent-teal: #0abde3;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-orange: #f97316;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #00d2d3;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 210, 211, 0.15);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.05);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 210, 211, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HEADER
   ============================================ */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-cyan-glow);
    }

    50% {
        box-shadow: 0 0 35px var(--accent-cyan-glow), 0 0 60px rgba(0, 210, 211, 0.1);
    }
}

.header-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: statusBlink 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--accent-red);
    animation: none;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.last-update {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px 40px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-inner);
}

.stat-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.cyan {
    background: rgba(0, 210, 211, 0.15);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.15);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.15);
}

.stat-icon.amber {
    background: rgba(245, 158, 11, 0.15);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 8px 40px 40px;
}

/* ============================================
   VPS SECTION
   ============================================ */
.vps-section {
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.vps-section:nth-child(1) {
    animation-delay: 0.1s;
}

.vps-section:nth-child(2) {
    animation-delay: 0.2s;
}

.vps-section:nth-child(3) {
    animation-delay: 0.3s;
}

.vps-section:nth-child(4) {
    animation-delay: 0.4s;
}

.vps-section:nth-child(5) {
    animation-delay: 0.5s;
}

.vps-section:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vps-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vps-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 210, 211, 0.15), rgba(10, 189, 227, 0.1));
    border: 1px solid rgba(0, 210, 211, 0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.vps-label-icon {
    font-size: 1.1rem;
}

.vps-status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vps-status-badge.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vps-status-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.vps-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-card), transparent);
}

/* ============================================
   ACCOUNT CARDS (VS Layout)
   ============================================ */
.vps-cards-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
}

.vps-cards-wrapper:hover {
    border-color: var(--border-card);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.acc-slot {
    flex: 1;      /* Memaksa slot untuk melebar mengisi ruang */
    min-width: 0;
    display: flex;
}

.account-card {
    flex: 1;      /* Memaksa kartu untuk melebar mengisi slot */
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 210, 211, 0.08), rgba(0, 210, 211, 0.02));
    transition: all var(--transition-medium);
    position: relative;
    width: 100%;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.account-card:hover::before {
    opacity: 1;
}

.account-card:hover {
    background: linear-gradient(135deg, rgba(0, 210, 211, 0.12), rgba(0, 210, 211, 0.04));
}

.account-card.left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.vs-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Account Card Content */
.account-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.account-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.account-status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: statusBlink 2s ease-in-out infinite;
}

.account-status-dot.offline {
    background: var(--accent-red);
}

.account-status-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.account-status-text.online {
    color: var(--accent-green);
}

.account-status-text.offline {
    color: var(--accent-red);
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.account-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-value.name {
    color: var(--accent-cyan);
    font-size: 1rem;
}

.info-value.equity {
    color: var(--accent-green);
    font-size: 1.05rem;
}

.info-value.equity.negative {
    color: var(--accent-red);
}

.info-value.trades {
    color: var(--accent-amber);
}

/* Empty Account Card */
.account-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.5;
}

/* ============================================
   MARGIN CALL ALERT BANNER
   ============================================ */
.mc-alert-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-alert-container.visible {
    transform: translateY(0);
}

.mc-alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #991b1b, #dc2626, #b91c1c);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    animation: mcBannerPulse 2s ease-in-out infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.mc-alert-banner:hover {
    background: linear-gradient(135deg, #b91c1c, #ef4444, #dc2626);
}

.mc-alert-icon {
    font-size: 1.4rem;
    animation: mcIconShake 0.5s ease-in-out infinite;
}

@keyframes mcIconShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

@keyframes mcBannerPulse {

    0%,
    100% {
        box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.15), 0 0 20px rgba(239, 68, 68, 0.3);
    }
}

.mc-alert-text {
    flex: 1;
}

.mc-alert-text strong {
    color: #fecaca;
}

.mc-alert-detail {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 2px;
}

.mc-alert-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mc-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Margin Call Count Badge in Header */
.mc-count-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    animation: mcBadgePulse 1.5s ease-in-out infinite;
}

.mc-count-badge.active {
    display: flex;
}

@keyframes mcBadgePulse {

    0%,
    100% {
        border-color: rgba(239, 68, 68, 0.4);
    }

    50% {
        border-color: rgba(239, 68, 68, 0.8);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
    }
}

/* ============================================
   MARGIN LEVEL INDICATOR IN CARDS
   ============================================ */
.margin-level-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.margin-level-bar-wrapper {
    width: 100%;
    margin-top: 4px;
}

.margin-level-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.margin-level-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease, background 0.5s ease;
    min-width: 2px;
}

.margin-level-fill.safe {
    background: linear-gradient(90deg, var(--accent-green), #34d399);
}

.margin-level-fill.warning {
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
}

.margin-level-fill.danger {
    background: linear-gradient(90deg, var(--accent-red), #f87171);
    animation: dangerFillPulse 1s ease-in-out infinite;
}

@keyframes dangerFillPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.margin-level-value {
    font-size: 0.85rem;
    font-weight: 800;
}

.margin-level-value.safe {
    color: var(--accent-green);
}

.margin-level-value.warning {
    color: var(--accent-amber);
}

.margin-level-value.danger {
    color: var(--accent-red);
}

/* ============================================
   ACCOUNT CARD — DANGER STATE (Margin Call)
   ============================================ */
.account-card.margin-call {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04)) !important;
    animation: cardDangerPulse 2s ease-in-out infinite;
}

.account-card.margin-call::before {
    background: linear-gradient(90deg, var(--accent-red), #f87171) !important;
    opacity: 1 !important;
    height: 3px;
}

@keyframes cardDangerPulse {

    0%,
    100% {
        box-shadow: inset 0 0 0 rgba(239, 68, 68, 0);
    }

    50% {
        box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.06);
    }
}

.vps-cards-wrapper.has-margin-call {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: var(--shadow-card), 0 0 25px rgba(239, 68, 68, 0.15) !important;
}

/* MC Badge on Card */
.mc-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: mcBadgePulse 1.5s ease-in-out infinite;
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9500;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.toast.danger {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.15);
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ============================================
   MUTE BUTTON
   ============================================ */
.mute-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.mute-btn.muted {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

/* ============================================
   FOOTER
   ============================================ */
.dashboard-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 24px 40px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.dashboard-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 210, 211, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 211, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 211, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN (FOR MOBILE SIDE-BY-SIDE)
   ============================================ */
@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
        text-align: center;
    }

    .header-status {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-bar {
        padding: 0 16px;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 12px;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    /* Force Side-by-Side on Mobile */
    .vps-cards-wrapper {
        flex-direction: row !important;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .account-card {
        padding: 12px 10px;
        flex: 1;
        min-width: 0;
    }

    .account-card.left {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
    }

    /* Sembunyikan label di mobile agar hemat tempat */
    .account-card .info-label {
        display: none;
    }

    /* Info value dibuat lebih kecil di mobile */
    .account-card .info-value {
        font-size: 0.72rem;
        text-align: center;
        width: 100%;
        display: block;
    }

    .account-card .info-value.name {
        font-size: 0.8rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .account-card .info-value.equity {
        font-size: 0.85rem;
    }

    /* Sembunyikan baris EA & Leverage di mobile */
    .account-card .ea-row,
    .account-card .lev-row {
        display: none !important;
    }

    .account-status-text {
        font-size: 0.55rem;
    }

    .last-seen {
        display: none;
    }

    /* VS Badge diperkecil */
    .vs-divider {
        padding: 0;
        width: 20px;
    }

    .vs-badge {
        width: 22px;
        height: 22px;
        font-size: 7px;
        box-shadow: 0 0 10px var(--accent-cyan-glow);
    }

    /* Margin bar lebih ramping */
    .margin-level-row {
        padding: 6px 0 2px;
    }

    .margin-level-value {
        font-size: 0.65rem;
        width: 100%;
        text-align: center;
    }
    
    .margin-level-bar {
        height: 3px;
        margin-top: 2px;
    }

    .dashboard-footer {
        padding: 20px 16px;
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .account-card {
        padding: 10px 6px;
    }
    
    .info-value {
        font-size: 0.68rem;
    }

    .account-status {
        justify-content: center;
    }
}