/* ─── Variables ─────────────────────────────────────────────────── */
:root {
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --bg3: #14141f;
    --card: #16162a;
    --border: rgba(120, 120, 200, 0.15);
    --border-hover: rgba(120, 120, 255, 0.35);
    --primary: #6c47ff;
    --primary-hover: #7c5aff;
    --accent: #00d4ff;
    --success: #00e5a0;
    --warning: #ffb300;
    --danger: #ff4757;
    --text: #e8e8f0;
    --text2: #9898b8;
    --text3: #5a5a7a;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glow: 0 0 40px rgba(108, 71, 255, 0.3);
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

input,
select,
button {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

/* ─── Gradients & Backgrounds ────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--accent);
}

/* ─── Navbar ─────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    font-size: 1.4rem;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text2);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-auth,
.nav-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-username {
    font-size: 0.85rem;
    color: var(--text2);
    padding: 0 0.5rem;
}


        /* ── Language Switcher ── */
        .lang-switcher {
            position: relative;
            display: flex;
            align-items: center;
            z-index: 200;
        }
        .lang-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            color: #e8e8f0;
            font-size: 0.82rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            white-space: nowrap;
            font-family: inherit;
        }
        .lang-btn:hover {
            background: rgba(108,71,255,0.15);
            border-color: rgba(108,71,255,0.4);
        }
        .lang-flag { font-size: 1rem; line-height: 1; }
        .lang-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: #16162a;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 10px;
            overflow: hidden;
            min-width: 140px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            z-index: 9999;
        }
        .lang-switcher.open .lang-dropdown { display: block; }
        .lang-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            cursor: pointer;
            color: #e8e8f0;
            font-size: 0.875rem;
            font-family: inherit;
            transition: background 0.15s;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }
        .lang-option:hover { background: rgba(108,71,255,0.15); }
        .lang-option.active { color: #6c47ff; background: rgba(108,71,255,0.1); }
        .lang-option-name { font-weight: 500; }
        /* Google Translate hidden */
        #google_translate_element { display: none !important; }
        .skiptranslate { display: none !important; }
        body { top: 0 !important; }
        .goog-te-banner-frame { display: none !important; }

        /* ─── Hamburger Button ───────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Drawer ──────────────────────────────────────────────── */
.nav-drawer {
    display: flex;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-drawer.open {
    transform: translateY(0) !important;
    transform: translateX(0);
}

.nav-drawer .drawer-link {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    border-radius: 8px;
}

.nav-drawer .drawer-link:hover {
    color: var(--accent);
    background: rgba(108, 71, 255, 0.08);
}

.nav-drawer .drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.nav-drawer .drawer-section {
    font-size: 0.72rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0.75rem 0.25rem;
}

.nav-drawer .drawer-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem;
    font-size: 1rem;
    justify-content: center;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 71, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 71, 255, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(108, 71, 255, 0.1);
    border-color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem;
    font-size: 1rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00b37a);
    color: #000;
    font-weight: 600;
}

.btn-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 71, 87, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 4rem 4rem;
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(108, 71, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 30%, rgba(0, 212, 255, 0.07) 0%, transparent 60%);
}

.hero-content {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(0, 212, 255, 0.25);
    }

    50% {
        border-color: rgba(0, 212, 255, 0.6);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-div {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* 3D GPU Card */
.hero-visual {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpu-card-3d {
    width: 240px;
    height: 300px;
    perspective: 800px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-8deg);
    }

    50% {
        transform: translateY(-16px) rotateY(8deg);
    }
}

.gpu-card-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a35, #0f0f28);
    border: 1px solid rgba(108, 71, 255, 0.4);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(108, 71, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.gpu-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(108, 71, 255, 0.08) 60deg, transparent 120deg);
    animation: rotate-grad 8s linear infinite;
}

@keyframes rotate-grad {
    to {
        transform: rotate(360deg);
    }
}

.gpu-chip {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #2a2a50, #1a1a40);
    border: 2px solid rgba(108, 71, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(108, 71, 255, 0.4);
    position: relative;
    z-index: 1;
}

.gpu-chip::after {
    content: 'GPU';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.gpu-label {
    font-size: 1rem;
    font-weight: 700;
    z-index: 1;
}

.gpu-vram {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    z-index: 1;
}

.gpu-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    z-index: 1;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ─── Section ────────────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text2);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(108, 71, 255, 0.15);
    border-color: var(--primary);
    color: var(--text);
}

/* ─── GPU Cards ──────────────────────────────────────────────────── */
.gpu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gpu-skeleton {
    height: 280px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--card) 25%, #1e1e35 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

.gpu-node-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gpu-node-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow), var(--glow);
}

.gpu-node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.gpu-node-card:hover::before {
    opacity: 1;
}

.gpu-node-card.status-rented {
    opacity: 0.6;
}

.gpu-node-card.status-rented:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.card-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.card-location {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 2px;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-available {
    background: rgba(0, 229, 160, 0.15);
    color: var(--success);
}

.status-rented {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

.status-maintenance {
    background: rgba(255, 179, 0, 0.15);
    color: var(--warning);
}

.status-offline {
    background: rgba(120, 120, 150, 0.15);
    color: var(--text3);
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.spec {
    display: block;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.spec-val {
    font-size: 0.9rem;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

/* Usage bars */
.card-usage {
    margin-bottom: 1.25rem;
}

.usage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.usage-label {
    font-size: 0.75rem;
    color: var(--text3);
    width: 50px;
}

.usage-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}

.fill-gpu {
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
}

.fill-vram {
    background: linear-gradient(90deg, var(--accent), #0099cc);
}

.fill-temp {
    background: linear-gradient(90deg, var(--success), var(--warning));
}

.usage-val {
    font-size: 0.75rem;
    color: var(--text2);
    width: 36px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.card-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text3);
}

/* ─── How It Works ───────────────────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    transition: border-color 0.3s;
}

.step:hover {
    border-color: var(--primary);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text3);
    flex-shrink: 0;
}

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow);
    position: relative;
    animation: slide-up 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-sm {
    max-width: 400px;
}

/* ─── Calendar Modal ─────────────────────────────────────────────── */
.modal-cal {
    max-width: 780px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cal-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(108, 71, 255, 0.1), rgba(0, 212, 255, 0.05));
    border-bottom: 1px solid var(--border);
}

.cal-gpu-icon {
    font-size: 1.75rem;
}

.cal-gpu-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.cal-gpu-meta {
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: 2px;
}

.cal-gpu-price {
    margin-left: auto;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.cal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    flex: 1;
    overflow-y: auto;
}

.cal-col {
    display: flex;
    flex-direction: column;
}

.cal-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

.cal-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text3);
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cal-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text2);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(108, 71, 255, 0.15);
    color: var(--text);
    border-color: var(--primary);
}

.cal-month-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.75rem;
}

.cal-day-hdr {
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text3);
    padding: 3px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.cal-day:not(.cal-day-other):not(.cal-day-past):hover {
    background: rgba(108, 71, 255, 0.15);
    border-color: rgba(108, 71, 255, 0.3);
    color: var(--text);
}

.cal-day.cal-day-selected {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(108, 71, 255, 0.4);
}

.cal-day.cal-day-today {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--accent);
    font-weight: 600;
}

.cal-day.cal-day-other {
    color: rgba(255, 255, 255, 0.15);
    cursor: default;
}

.cal-day.cal-day-past {
    color: var(--text3);
    cursor: not-allowed;
    opacity: 0.35;
}

.cal-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cal-select:focus {
    outline: none;
    border-color: var(--primary);
}

.cal-time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 2px;
}

.cal-time-slot {
    padding: 6px 2px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text2);
    transition: all 0.15s;
}

.cal-time-slot:hover {
    background: rgba(108, 71, 255, 0.15);
    border-color: rgba(108, 71, 255, 0.4);
    color: var(--text);
}

.cal-time-slot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 71, 255, 0.35);
}

.cal-time-slot.past {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.cal-duration-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.cal-dur-btn {
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'JetBrains Mono', monospace;
}

.cal-dur-btn:hover {
    background: rgba(108, 71, 255, 0.12);
    border-color: rgba(108, 71, 255, 0.4);
    color: var(--text);
}

.cal-dur-btn.active {
    background: rgba(108, 71, 255, 0.2);
    border-color: var(--primary);
    color: #a78bfa;
    font-weight: 700;
}

.cal-custom-dur {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text3);
}

.cal-dur-input {
    width: 58px;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.cal-dur-input:focus {
    outline: none;
    border-color: var(--primary);
}

.cal-summary {
    margin: 0 1.75rem 1rem;
    background: rgba(108, 71, 255, 0.06);
    border: 1px solid rgba(108, 71, 255, 0.15);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
}

.cal-summary-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
}

.cal-sum-label {
    font-size: 0.72rem;
    color: var(--text3);
    white-space: nowrap;
}

.cal-sum-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.cal-sum-total {
    flex: 0 0 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
    margin-top: 0.125rem;
}

.cal-sum-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
}

.modal-cal .btn-full,
.modal-cal .form-error {
    margin: 0 1.75rem;
}

.modal-cal .btn-full {
    width: calc(100% - 3.5rem);
    margin-bottom: 1.5rem;
}

.modal-cal .form-error {
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .cal-body {
        grid-template-columns: 1fr;
    }

    .cal-time-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-gpu-info {
    background: rgba(108, 71, 255, 0.08);
    border: 1px solid rgba(108, 71, 255, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text2);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.15);
}

.form-group select option {
    background: var(--bg2);
}

.form-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.price-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text2);
}

.price-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--success);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ─── Side Panel ─────────────────────────────────────────────────── */
.side-panel {
    position: fixed;
    right: 0;
    top: 64px;
    bottom: 0;
    z-index: 150;
    width: 400px;
    background: var(--bg3);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg3);
    z-index: 1;
}

.side-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.reservations-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reservation-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.875rem;
}

.res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.res-gpu {
    font-weight: 600;
}

.res-time {
    color: var(--text2);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.res-actions {
    display: flex;
    gap: 0.5rem;
}

/* ─── Site Footer (shared across portal/provider/admin/workspace) ─── */
.site-footer {
    padding: 3rem 2rem 1.5rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: auto;
}

.sf-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .sf-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.sf-logo {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.sf-desc {
    font-size: 0.78rem;
    color: var(--text3);
    line-height: 1.7;
}

.sf-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sf-col a {
    display: block;
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: .4rem;
    transition: color .2s;
    text-decoration: none;
}

.sf-col a:hover {
    color: var(--text);
}

.sf-bottom {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    font-size: 0.73rem;
    color: var(--text3);
    flex-wrap: wrap;
    gap: .5rem;
}

/* ─── Toast ──────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 380px;
    animation: toast-in 0.3s ease;
    border: 1px solid transparent;
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: rgba(0, 229, 160, 0.15);
    border-color: rgba(0, 229, 160, 0.3);
    color: var(--success);
}

.toast-error {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

.toast-info {
    background: rgba(108, 71, 255, 0.15);
    border-color: rgba(108, 71, 255, 0.3);
    color: #a78bfa;
}

/* ─── BTN PROVIDE ────────────────────────────────────────────────── */
.btn-secondary {
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.15), rgba(0, 212, 255, 0.1));
    color: var(--success);
    border: 1px solid rgba(0, 229, 160, 0.3);
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.25), rgba(0, 212, 255, 0.15));
    border-color: var(--success);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 229, 160, 0.2);
}

.btn-provide {
    display: none;
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.12), rgba(0, 212, 255, 0.08));
    color: var(--success);
    border: 1px solid rgba(0, 229, 160, 0.25);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
}

.btn-provide:hover {
    border-color: var(--success);
    background: rgba(0, 229, 160, 0.2);
    transform: translateY(-1px);
}

/* ─── GUIDE PANEL ────────────────────────────────────────────────── */
.guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.guide-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 301;
    width: min(540px, 95vw);
    background: #0e0e20;
    border-left: 1px solid rgba(108, 71, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header */
.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 71, 255, 0.08), rgba(0, 212, 255, 0.04));
    border-bottom: 1px solid rgba(108, 71, 255, 0.15);
    flex-shrink: 0;
}

.guide-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.guide-sub {
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: 2px;
}

.guide-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.guide-close:hover {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border-color: rgba(255, 71, 87, 0.3);
}

/* Step Navigator */
.guide-steps-nav {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    overflow-x: auto;
}

.gsn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.gsn-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text3);
    transition: all 0.3s;
}

.gsn-label {
    font-size: 0.65rem;
    color: var(--text3);
    white-space: nowrap;
}

.gsn-item.active .gsn-num,
.gsn-item.done .gsn-num {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-color: var(--primary);
    color: #fff;
}

.gsn-item.active .gsn-label,
.gsn-item.done .gsn-label {
    color: var(--text2);
}

.gsn-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 20px;
}

/* Content */
.guide-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.guide-step {
    display: none;
    animation: fadeIn 0.25s ease;
}

.guide-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gs-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gs-desc {
    font-size: 0.875rem;
    color: var(--text2);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.gs-note {
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: 0.75rem;
}

/* Checklist */
.gs-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.gs-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.gs-check-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.gs-check-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.gs-check-desc {
    font-size: 0.8rem;
    color: var(--text3);
    line-height: 1.5;
}

.gs-check-desc code {
    background: rgba(108, 71, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
}

.gs-check-desc a {
    color: var(--accent);
    text-decoration: underline;
}

.gs-check-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px dashed rgba(0, 229, 160, 0.4);
    background: rgba(0, 229, 160, 0.06);
    color: var(--success);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.gs-check-btn:hover {
    background: rgba(0, 229, 160, 0.12);
    border-style: solid;
}

.gs-detect-result {
    padding: 0.875rem;
    border-radius: 10px;
    font-size: 0.82rem;
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid rgba(0, 229, 160, 0.2);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Action card (Step 2) */
.gs-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(108, 71, 255, 0.06);
    border: 1px solid rgba(108, 71, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.gs-ac-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.gs-ac-body {
    flex: 1;
}

.gs-ac-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gs-ac-desc {
    font-size: 0.78rem;
    color: var(--text3);
}

/* Info list */
.gs-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gs-info-item {
    font-size: 0.82rem;
    color: var(--text2);
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

/* Terminal blocks */
.gs-terminal {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(108, 71, 255, 0.2);
    margin-bottom: 1rem;
}

.gs-terminal-bar {
    background: rgba(108, 71, 255, 0.12);
    padding: 6px 12px;
    font-size: 0.72rem;
    color: var(--text3);
    font-family: 'JetBrains Mono', monospace;
}

.gs-terminal-body {
    background: #080812;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gt-line {
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text2);
    white-space: pre-wrap;
    word-break: break-all;
}

.gt-comment {
    color: var(--text3);
}

.gt-cmd {
    color: var(--accent);
}

.gt-key {
    color: var(--primary);
    display: inline-block;
    min-width: 80px;
}

/* Mini steps (Step 4) */
.gs-steps-mini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gs-mini-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.gs-mini-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(108, 71, 255, 0.2);
    border: 1px solid rgba(108, 71, 255, 0.4);
    color: #a78bfa;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gs-mini-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Warning */
.gs-warn {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.25);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.82rem;
    color: #ffcc44;
    line-height: 1.6;
}

/* Earnings (Step 5) */
.gs-earn-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.gs-earn-box {
    flex: 1;
    min-width: 90px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem 0.5rem;
}

.gs-earn-box.gs-earn-highlight {
    border-color: rgba(0, 229, 160, 0.3);
    background: rgba(0, 229, 160, 0.06);
}

.gs-earn-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.gs-earn-label {
    font-size: 0.72rem;
    color: var(--text3);
    margin-bottom: 4px;
}

.gs-earn-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
}

.gs-earn-arrow {
    color: var(--text3);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gs-earn-calc {
    background: rgba(108, 71, 255, 0.06);
    border: 1px solid rgba(108, 71, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.gs-ec-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.gs-ec-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.78rem;
    color: var(--text2);
}

.gs-ec-row input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
}

.gs-ec-row span:last-child {
    min-width: 70px;
    text-align: right;
    color: var(--text);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.gs-ec-result {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text2);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
}

.gs-ec-result span {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
    margin-left: 0.5rem;
}

/* Nav buttons */
.guide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.guide-nav-dots {
    display: flex;
    gap: 6px;
}

.guide-nav-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.guide-nav-dots span.active {
    background: var(--primary);
}

/* --- Calendar Availability --- */

.cal-day.cal-day-full {
    background: rgba(255, 71, 87, 0.08);
    color: rgba(255, 71, 87, 0.5) !important;
    cursor: not-allowed !important;
    border-color: rgba(255, 71, 87, 0.15) !important;
}

.cal-day.cal-day-full:hover {
    background: rgba(255, 71, 87, 0.08) !important;
}

.cal-day {
    flex-direction: column;
    gap: 2px;
}

.cal-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin: 0 auto;
    flex-shrink: 0;
}

.cal-time-slot.free {
    background: rgba(0, 229, 160, 0.06);
    border-color: rgba(0, 229, 160, 0.2);
    color: var(--success);
}

.cal-time-slot.free:hover {
    background: rgba(0, 229, 160, 0.15);
    border-color: var(--success);
    color: #fff;
}

.cal-time-slot.booked {
    background: rgba(255, 71, 87, 0.08);
    border-color: rgba(255, 71, 87, 0.25);
    color: rgba(255, 71, 87, 0.6);
    cursor: not-allowed;
    pointer-events: none;
    font-size: 0.65rem;
    line-height: 1.3;
}

.slot-tag {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 71, 87, 0.7);
}

.cal-time-slot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cal-time-legend {
    grid-column: 1/-1;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: var(--text3);
}

.ctl-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctl-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.ctl-dot.free {
    background: rgba(0, 229, 160, 0.5);
    border: 1px solid rgba(0, 229, 160, 0.6);
}

.ctl-dot.booked {
    background: rgba(255, 71, 87, 0.5);
    border: 1px solid rgba(255, 71, 87, 0.6);
}

.ctl-dot.past {
    background: rgba(120, 120, 150, 0.3);
    border: 1px solid rgba(120, 120, 150, 0.4);
}

/* ─── Withdraw Modal ──────────────────────────────────────── */
.withdraw-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    width: min(560px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    background: #12122a;
    border: 1px solid rgba(108, 71, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.withdraw-modal.hidden {
    display: none
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 0;
    margin-bottom: 4px
}

.withdraw-title {
    font-size: 1.2rem;
    font-weight: 800
}

.withdraw-sub {
    font-size: 0.82rem;
    color: var(--text3);
    margin-top: 4px
}

.withdraw-tabs {
    display: flex;
    gap: 4px;
    padding: 0 28px 0;
    margin-top: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06)
}

.wd-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text3);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap
}

.wd-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary)
}

.wd-pane {
    padding: 24px 28px 28px
}

.wd-pane.hidden {
    display: none
}

.wd-empty {
    text-align: center;
    color: var(--text3);
    font-size: 0.85rem;
    padding: 2rem 0
}

/* Bank account list */
.bank-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bank-account-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.bank-account-card.is-default {
    border-color: rgba(108, 71, 255, 0.4);
    background: rgba(108, 71, 255, 0.06)
}

.bac-main {
    flex: 1
}

.bac-bank {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px
}

.bac-detail {
    font-size: 0.78rem;
    color: var(--text3);
    line-height: 1.5
}

.bac-holder {
    font-size: 0.85rem;
    color: var(--text2);
    margin-top: 4px
}

.bac-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0
}

.badge-default {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(108, 71, 255, 0.2);
    color: var(--primary);
    border-radius: 99px;
    border: 1px solid rgba(108, 71, 255, 0.3);
    margin-left: 6px
}

/* Bank form */
.bank-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06)
}

.bank-form-title {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem
}

.bank-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.bank-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px
}

.bank-form-group label {
    font-size: 0.78rem;
    color: var(--text3);
    font-weight: 600
}

.bank-form-group input,
.bank-form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.88rem;
    outline: none
}

.bank-form-group input:focus,
.bank-form-group select:focus {
    border-color: var(--primary)
}

.bank-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text2)
}

.req {
    color: var(--danger)
}

.field-hint {
    font-size: 0.72rem;
    color: var(--text3);
    margin-top: 2px
}

/* Payout */
.payout-balance-card {
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.1), rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: 14px;
    padding: 20px;
    text-align: center
}

.pbc-label {
    font-size: 0.78rem;
    color: var(--text3);
    margin-bottom: 4px
}

.pbc-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--success)
}

.payout-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 10px
}

.payout-success-detail {
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.82rem;
    color: var(--text2);
    text-align: left;
    line-height: 1.7
}

/* History list */
.payout-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem
}

.payout-history-row:last-child {
    border-bottom: none
}

.phr-bank {
    color: var(--text3);
    font-size: 0.75rem
}

/* ─── Uptime Section (GPU Cards) ────────────────────────────────── */
.uptime-section {
    padding: 0 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uptime-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
}

.uptime-label-text {
    color: var(--text3);
}

.uptime-value {
    font-weight: 700;
    font-size: 0.82rem;
}

.uptime-sessions {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--text3);
}

.uptime-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.uptime-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.uptime-warn {
    font-size: 0.68rem;
    color: #fbbf24;
    margin-top: 2px;
}

/* ===== MOBILE RESPONSIVE (portal) ===== */
@media (max-width: 768px) {

    /* Hamburger visible, nav links/auth hidden */
    .nav-hamburger {
        display: flex;
    }

    .nav-links,
    .nav-auth,
    .nav-user,
    .btn-provide {
        display: none !important;
    }

    .nav-drawer {
        display: flex;
    }

    .nav {
        padding: 0 1rem;
    }

    html,
    body {
        overflow: auto;
        height: auto;
    }

    body {
        flex-direction: column;
    }

    /* Sidebar → Top bar */
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.5rem;
        overflow-x: auto;
        flex-shrink: 0;
    }

    .sidebar-brand {
        padding: 0 0.75rem 0 0.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 4px;
        overflow-x: auto;
        padding: 0;
        flex: 1;
    }

    .sidebar-nav-item {
        padding: 6px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: 6px;
    }

    .sidebar-footer {
        display: none;
    }

    /* Main */
    .main-content {
        padding: 1rem;
        overflow-y: auto;
    }

    .page-title {
        font-size: 1.2rem;
    }

    /* GPU Grid */
    .gpu-grid {
        grid-template-columns: 1fr;
    }

    .gpu-card {
        min-width: 0;
    }

    /* Reservation form */
    .reservation-modal .modal-box {
        width: calc(100vw - 2rem);
        max-height: 90vh;
        overflow-y: auto;
    }

    .cal-body {
        grid-template-columns: 1fr;
    }

    .cal-time-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Tables - scroll */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Stats cards */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Hero section mobile ── */
    .hero {
        flex-direction: column;
        padding: 80px 1.25rem 2rem;
        gap: 2rem;
        min-height: auto;
        align-items: flex-start;
        overflow-x: hidden;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-sub {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-badge {
        font-size: 0.72rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Fix navbar overflow on mobile */
    .nav-brand .nav-title {
        font-size: 0.95rem;
    }

    /* Ticket button shrink */
    .btn-ticket {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    /* hero buttons full width */
    #heroReserve, #heroProvide {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* ── Nav ticket/pt button: hide on mobile (shown in drawer) ── */
    #navTicketBtn {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
        margin-right: 4px !important;
    }

    #navPointBalance {
        font-size: 0.7rem !important;
        margin-right: 4px !important;
    }

    /* ── Prevent horizontal overflow ── */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    section {
        overflow-x: hidden;
    }

    /* ── lang-switcher compact on mobile ── */
    .lang-btn {
        font-size: 0.72rem;
        padding: 4px 6px;
    }

    /* ── Stats on mobile ── */
    .hero-stats .stat-val {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar-nav-item .nav-label {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gpu-grid {
        grid-template-columns: 1fr;
    }
}
/* ── Borrower-first enhancements ── */
.hero-benefit-bar {
    display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
    background: rgba(0,212,255,0.05); border: 1px solid rgba(0,212,255,0.15);
    border-radius: 14px; padding: 1rem 1.5rem; margin-top: 1.5rem;
    font-size: 0.8rem; color: #9898b8;
}
.hero-benefit-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-benefit-item strong { color: #e8e8f0; }
.section-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: #6c47ff;
    margin-bottom: 0.5rem;
}
.price-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.25);
    border-radius: 100px; padding: 2px 10px; font-size: 0.72rem;
    font-weight: 700; color: #00e5a0; margin-left: 0.5rem;
}
/* ─── GPU SF Widget Animations ─────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
@keyframes sfWidgetIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#sfWidget { animation: sfWidgetIn 0.4s ease; }

/* ─── Ticket Purchase Modal ─────────────────────────────────────── */
#ticketModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 1rem;
    box-sizing: border-box;
}
#ticketModal.hidden { display: none !important; }

.ticket-modal-box {
    background: #13132b;
    border: 1px solid rgba(108, 71, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    width: min(680px, 96vw);
    max-height: min(85vh, 700px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.ticket-modal-box .modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.ticket-modal-box .modal-header h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
}
.ticket-modal-box .modal-header .modal-subtitle {
    font-size: 0.75rem;
    color: var(--accent, #00d4ff);
    white-space: nowrap;
}
.ticket-modal-box .modal-close {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
}
.ticket-modal-box .modal-close:hover { background: rgba(255,255,255,0.08); }

/* Scrollable body */
.ticket-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 0.75rem;
    overscroll-behavior: contain;
}

/* Info note */
.ticket-plans-note {
    font-size: 0.72rem;
    color: var(--text3);
    padding: 0.5rem 0.25rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Plans grid: 2 columns on desktop */
.ticket-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 1rem 0.75rem;
}

/* Individual plan card */
.ticket-plan {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ticket-plan:hover {
    border-color: rgba(108,71,255,0.5);
    background: rgba(108,71,255,0.07);
}
.ticket-plan.plan-featured {
    border-color: rgba(108,71,255,0.4);
    background: rgba(108,71,255,0.08);
}

/* Badges */
.plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg,#6c47ff,#9333ea);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.plan-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.35);
    color: #f87171;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
}

/* Plan text */
.plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 6px;
}
.plan-hours {
    font-size: 0.7rem;
    color: var(--text3);
}
.plan-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
}
.plan-points {
    font-size: 0.72rem;
    color: var(--accent, #00d4ff);
    font-family: 'JetBrains Mono', monospace;
}
.plan-original {
    font-size: 0.65rem;
    color: var(--text3);
    text-decoration: line-through;
}

/* Purchase button — compact */
.ticket-plan .btn-full {
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Footer strip */
.ticket-footer {
    padding: 0.6rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    font-size: 0.68rem;
    color: var(--text3);
    text-align: center;
}
.ticket-footer a { color: var(--text3); text-decoration: none; }
.ticket-footer a:hover { color: var(--text2); }

/* Mobile: single column */
@media (max-width: 520px) {
    .ticket-modal-box {
        max-height: 90vh;
        border-radius: 14px;
    }
    .ticket-plans-grid {
        grid-template-columns: 1fr;
        padding: 0 0.75rem 0.75rem;
    }
    .ticket-modal-box .modal-header {
        padding: 0.875rem 0.875rem 0.6rem;
    }
}
