/* BetPay — Dark Fintech & Betting UI */

:root {
    --bg-main: #0b0f19;
    --bg-card: #131a2a;
    --bg-elevated: #1b2438;
    --bg-input: #0e1422;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --green: #10b981;
    --green-hover: #059669;
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --red: #ef4444;
    --blue: #3b82f6;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #162038 0%, var(--bg-main) 55%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 5px;
    color: var(--gold);
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(19, 26, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), #0ea5e9);
    color: #04120c;
    font-size: 0.9rem;
    font-weight: 800;
}

.nav-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    color: #04120c;
    background: var(--green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 6px 8px 6px 14px;
    border-radius: 12px;
}

.wallet-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.btn-topup-quick {
    background: var(--gold);
    color: #1a1000;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-topup-quick:hover {
    background: var(--gold-hover);
}

.user-controls, .auth-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    background: var(--bg-elevated);
    padding: 7px 12px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--border);
}

/* Buttons */
.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s, opacity 0.2s;
    color: var(--text);
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary {
    background: var(--green);
    color: #03150e;
    font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-hover);
}

.btn-gold {
    background: var(--gold);
    color: #1a1000;
    font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
    background: var(--gold-hover);
}

.btn-danger {
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: #25314b;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
    padding: 13px 18px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Container & Cards */
.container {
    max-width: 1220px;
    margin: 28px auto;
    padding: 0 20px 48px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-header h2, .card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.16);
    color: var(--gold);
}

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: stretch;
}

.controls-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stage-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.form-group label {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: var(--green);
}

.bet-input-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 6px;
}

.chip-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0 11px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.chip-btn:hover {
    background: #283552;
}

.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.toggle-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.toggle-btn.active {
    background: rgba(16, 185, 129, 0.16);
    border-color: var(--green);
    color: var(--green);
}

.game-stat-box {
    margin-top: auto;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.game-stat-box.win {
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--green);
    background: rgba(16, 185, 129, 0.08);
}

.game-stat-box.loss {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

/* Crash Stage */
.crash-stage {
    padding: 0;
    background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 60%), var(--bg-card);
}

#crashCanvas {
    width: 100%;
    height: 100%;
    max-height: 420px;
    display: block;
}

.crash-overlay {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.crash-multiplier {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.crash-multiplier.crashed {
    color: var(--red);
}

.crash-multiplier.cashed {
    color: var(--green);
}

.crash-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Mines Grid */
.mines-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.metric span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.metric strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    color: var(--gold);
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.mine-tile {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 4px solid rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    cursor: pointer;
    transition: transform 0.12s, background 0.2s;
    user-select: none;
}

.mine-tile:hover:not(.disabled) {
    transform: translateY(-2px);
    background: #24304b;
}

.mine-tile.safe {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--green);
    border-bottom-width: 1px;
    cursor: default;
}

.mine-tile.bomb {
    background: rgba(239, 68, 68, 0.22);
    border-color: var(--red);
    border-bottom-width: 1px;
    cursor: default;
}

.mine-tile.dimmed {
    opacity: 0.45;
    cursor: default;
}

/* Dice Stage */
.dice-stage {
    gap: 28px;
    padding: 32px;
}

.dice-result-display {
    text-align: center;
}

.dice-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.4rem;
    font-weight: 800;
}

.dice-result-label {
    color: var(--text-muted);
    font-weight: 500;
}

.dice-slider-wrap {
    width: 100%;
    max-width: 540px;
    position: relative;
}

.dice-track {
    height: 16px;
    background: var(--red);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    margin-bottom: -16px;
}

.dice-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--green);
}

.dice-marker {
    position: absolute;
    top: -3px;
    width: 6px;
    height: 22px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px #fff;
    transform: translateX(-50%);
}

#diceTargetSlider {
    width: 100%;
    position: relative;
    z-index: 2;
    appearance: none;
    background: transparent;
    height: 16px;
    cursor: pointer;
}

#diceTargetSlider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--bg-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dice-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.dice-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 540px;
}

/* Coin Flip Stage */
.coin-stage {
    gap: 26px;
}

.coin-scene {
    width: 150px;
    height: 150px;
    perspective: 700px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    font-weight: 800;
    backface-visibility: hidden;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.coin-heads {
    background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309);
    color: #291500;
}

.coin-tails {
    background: radial-gradient(circle at 30% 30%, #34d399, #047857);
    color: #022c22;
    transform: rotateY(180deg);
}

.coin-outcome {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Wallet & History */
.wallet-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.wallet-side-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preset-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.preset-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 158, 11, 0.12);
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

th, td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.muted {
    color: var(--text-muted);
    text-align: center;
}

.text-green { color: var(--green); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }
.text-gold { color: var(--gold); font-weight: 600; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.75);
    backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
    z-index: 100;
    padding: 16px;
}

.modal {
    width: 100%;
    max-width: 410px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding-right: 22px;
}

.auth-tab {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 9px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--green);
    color: #03150e;
    border-color: var(--green);
}

.promo-hint {
    font-size: 0.84rem;
    color: var(--green);
    margin: 6px 0 8px;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 340px;
    animation: fadeIn 0.2s ease-out;
}

.toast.error {
    border-left-color: var(--red);
}

@media (max-width: 900px) {
    .game-layout,
    .wallet-grid,
    .history-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 12px 16px;
    }
}

/* SVG Icons & Enhanced Game Strips */
.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.history-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 14px;
    background: rgba(11, 15, 25, 0.55);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
}

.crash-stage .history-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.dice-stage .history-strip,
.coin-stage .history-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.strip-label {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.history-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.history-pill.win {
    background: rgba(16, 185, 129, 0.16);
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.4);
}

.history-pill.gold {
    background: rgba(245, 158, 11, 0.16);
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.4);
}

.history-pill.loss {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.dice-presets {
    display: flex;
    gap: 8px;
}

.dice-presets .chip-btn {
    padding: 7px 14px;
}

.mine-tile svg {
    width: 54%;
    height: 54%;
    animation: popIn 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Home Lobby Frame & Game Switcher */
.lobby-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.08) 50%, rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lobby-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lobby-title-wrap h1 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
}

.lobby-badges {
    display: flex;
    gap: 8px;
}

.lobby-games-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.lobby-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 15, 25, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.lobby-card:hover {
    transform: translateY(-2px);
    background: rgba(27, 36, 56, 0.85);
}

.lobby-card.active {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

.lobby-card strong {
    display: block;
    font-size: 0.95rem;
}

.lobby-card small {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.lobby-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.lobby-card-icon.crash { background: rgba(16, 185, 129, 0.18); color: var(--green); }
.lobby-card-icon.mines { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.lobby-card-icon.dice  { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.lobby-card-icon.coin  { background: rgba(245, 158, 11, 0.18); color: var(--gold); }

@media (max-width: 900px) {
    .lobby-games-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Veltrix Brand Identity & Production Footer */
.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text .brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text);
}

.brand-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--green);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(11, 15, 25, 0.85);
    padding: 22px 28px;
    margin-top: 24px;
}

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.footer-brand strong {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.footer-brand span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.age-badge {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--red);
    color: var(--red);
    font-weight: 800;
    font-size: 0.72rem;
}

/* 6-Game Lobby Strip, Plinko & Wheel Stages */
.lobby-games-strip {
    grid-template-columns: repeat(6, 1fr);
}

.lobby-card-icon.plinko { background: rgba(236, 72, 153, 0.18); color: #f472b6; }
.lobby-card-icon.wheel  { background: rgba(14, 165, 233, 0.18); color: #38bdf8; }

.stage-card {
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.03), transparent 70%), var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.plinko-stage,
.wheel-stage {
    padding-top: 52px;
    gap: 16px;
}

.plinko-stage .history-strip,
.wheel-stage .history-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

#plinkoCanvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.wheel-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid var(--gold);
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.7));
    z-index: 4;
}

#wheelCanvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.55);
    transition: transform 3.2s cubic-bezier(0.12, 0.85, 0.18, 1);
}

@media (max-width: 1080px) {
    .lobby-games-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .lobby-games-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sound Toggle & Zero-Lag Native Mobile App Experience */
button, input, select, .mine-tile, .lobby-card, .nav-tab {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overscroll-behavior-y: contain;
}

.btn-sound {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.btn-sound.muted {
    color: var(--text-muted);
    opacity: 0.7;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 14px;
        gap: 10px;
    }

    .nav-tabs {
        display: none;
    }

    .brand-tag {
        display: none;
    }

    .brand-text .brand-name {
        font-size: 1rem;
    }

    .brand-logo-img {
        width: 32px;
        height: 32px;
    }

    .wallet-pill {
        padding: 4px 6px 4px 10px;
        gap: 6px;
    }

    .wallet-label {
        display: none;
    }

    .wallet-amount {
        font-size: 0.88rem;
    }

    .btn-topup-quick {
        padding: 5px 9px;
        font-size: 0.76rem;
    }

    .container {
        margin: 14px auto;
        padding: 0 12px 96px;
    }

    .lobby-banner {
        padding: 14px;
        border-radius: 14px;
        margin-bottom: 14px;
    }

    .lobby-title-wrap h1 {
        font-size: 1.1rem;
    }

    .lobby-badges {
        display: none;
    }

    .lobby-card {
        padding: 10px;
        gap: 9px;
    }

    .lobby-card-icon {
        width: 32px;
        height: 32px;
    }

    /* Stage first on mobile, controls right below */
    .game-layout {
        gap: 14px;
    }

    .stage-card {
        order: -1;
        min-height: 290px;
        padding: 14px;
    }

    .crash-stage {
        padding: 0;
        min-height: 260px;
    }

    .crash-multiplier {
        font-size: 2.5rem;
    }

    .dice-stage {
        padding: 56px 16px 20px;
        gap: 18px;
    }

    .dice-number {
        font-size: 2.5rem;
    }

    .mines-grid {
        gap: 7px;
        max-width: 340px;
    }

    .wheel-wrap,
    #wheelCanvas {
        width: 240px;
        height: 240px;
    }

    .card {
        padding: 16px;
    }

    /* Prevent iOS Safari zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select {
        font-size: 16px;
        padding: 11px 12px;
    }

    .btn-lg {
        min-height: 48px;
    }

    .site-footer {
        padding: 18px 14px 96px;
    }

    .toast-container {
        bottom: 84px;
        right: 12px;
        left: 12px;
    }

    .toast {
        max-width: 100%;
    }

    /* Native App Bottom Dock */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: rgba(15, 21, 35, 0.96);
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        transform: translateZ(0);
    }

    .mobile-nav-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 2px;
        font-size: 0.68rem;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
    }

    .mobile-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-btn.active {
        color: var(--green);
        background: rgba(16, 185, 129, 0.12);
    }
}

@media (max-width: 400px) {
    .auth-controls .btn {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
    .lobby-games-strip {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .dice-stats-row {
        grid-template-columns: 1fr;
    }
}

/* Desktop: Natural Page Scroll | Mobile: Full-Viewport App Shell */
html, body {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    --text-muted: #a3b3c9;
}

main.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 22px 36px;
}

@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    main.container {
        overflow: visible;
        padding-bottom: 96px;
    }

    .guest-gate {
        min-height: auto;
        padding: 18px 14px 40px;
    }
}

.site-footer {
    margin-top: 0;
    padding: 12px 24px;
    flex-shrink: 0;
}

.footer-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--text);
    text-decoration: underline;
}

.policy-modal {
    max-width: 540px;
}

.policy-modal h2 {
    margin-bottom: 12px;
    padding-right: 26px;
}

.policy-body {
    max-height: 60dvh;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-body strong {
    color: var(--text);
}

@media (max-width: 768px) {
    main.container {
        padding: 12px 12px 92px;
    }

    .site-footer {
        display: none;
    }
}

/* HD Canvas & Smooth Game Polish */
canvas {
    image-rendering: auto;
}

.dice-marker {
    transition: left 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.wheel-wrap {
    margin-top: 8px;
}

/* Hi-Lo Card Stage & 7-Game Strip */
.lobby-card-icon.hilo { background: rgba(244, 63, 94, 0.18); color: #fb7185; }

.hilo-stage {
    gap: 20px;
}

.playing-card {
    width: 148px;
    height: 210px;
    background: linear-gradient(155deg, #ffffff, #e2e8f0);
    border-radius: 16px;
    color: #0f172a;
    position: relative;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease;
    user-select: none;
}

.playing-card.red {
    color: #dc2626;
}

.card-corner {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
}

.card-corner.top { top: 12px; left: 14px; }
.card-corner.bottom { bottom: 12px; right: 14px; transform: rotate(180deg); }

.card-suit-center svg {
    width: 56px;
    height: 56px;
}

.hilo-history-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.mini-card {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mini-card.red {
    color: #dc2626;
}

#hiloGuessGroup small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Goal Pitch, Limbo Display & Admin Badges */
.lobby-card-icon.goal  { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.lobby-card-icon.limbo { background: rgba(250, 204, 21, 0.18); color: #facc15; }

.goal-stage {
    gap: 12px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(11, 15, 25, 0.9) 100%);
}

.goal-net {
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 7px;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--green);
}

.goal-pitch {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.goal-row {
    display: grid;
    gap: 8px;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.goal-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.goal-row.cols-4 { grid-template-columns: repeat(4, 1fr); }

.goal-row.current,
.goal-row.passed {
    opacity: 1;
}

.goal-cell {
    height: 54px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.12s, background 0.2s, border-color 0.2s;
}

.goal-row.current .goal-cell:hover {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.16);
    transform: translateY(-2px);
}

.goal-cell.scored {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--green);
    color: var(--green);
}

.goal-cell.saved {
    background: rgba(239, 68, 68, 0.24);
    border-color: var(--red);
    color: var(--red);
}

.goal-cell svg {
    width: 26px;
    height: 26px;
}

.limbo-stage {
    padding-top: 52px;
}

.limbo-display {
    text-align: center;
}

.limbo-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.limbo-sub {
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 6px;
}

.status-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.status-pill.pending { background: rgba(245, 158, 11, 0.18); color: var(--gold); }
.status-pill.approved,
.status-pill.completed { background: rgba(16, 185, 129, 0.18); color: var(--green); }
.status-pill.rejected,
.status-pill.failed { background: rgba(239, 68, 68, 0.18); color: var(--red); }

@media (max-width: 768px) {
    .limbo-number { font-size: 3rem; }
    .goal-cell { height: 46px; }
}

/* Auto-Bet Controls */
.auto-box {
    background: rgba(11, 15, 25, 0.55);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

.auto-box-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.auto-inline {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
}

/* VIP Cashier Card */
.vip-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(16, 185, 129, 0.08)), var(--bg-card);
    border-color: rgba(245, 158, 11, 0.3);
}

.vip-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vip-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vip-bar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    overflow: hidden;
}

.vip-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--green));
    transition: width 0.35s ease;
}

/* Live Wins Feed Indicator */
.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 6px;
    box-shadow: 0 0 8px var(--green);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

/* Per-Game Live Players (Wins & Losses) Panel */
.game-live-card {
    margin-top: 18px;
}

.game-live-card .card-header {
    margin-bottom: 10px;
}

.game-live-card table {
    font-size: 0.82rem;
}

.game-live-card th,
.game-live-card td {
    padding: 7px 8px;
}

/* WinyBet Visual Identity Override (Royal Violet, Electric Cyan & Gold) */
:root {
    --bg-main: #080714;
    --bg-card: #111026;
    --bg-elevated: #191736;
    --bg-input: #0b0a1a;
    --border: rgba(167, 139, 250, 0.14);
    --green: #10b981;
    --green-hover: #059669;
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --accent: #7c3aed;
    --cyan: #06b6d4;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.22), transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.14), transparent 42%),
        var(--bg-main);
}

.navbar {
    background: rgba(13, 11, 30, 0.92);
    border-bottom: 1px solid rgba(124, 58, 237, 0.25);
}

.brand-logo-img {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

.brand-tag {
    color: var(--cyan);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--accent), #5b21b6);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.lobby-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.12) 55%, rgba(245, 158, 11, 0.14));
    border-color: rgba(124, 58, 237, 0.32);
}

.security-pill {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.14);
    border-color: rgba(6, 182, 212, 0.4);
}

.lobby-card.active {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.28);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #02140d;
}

.mobile-nav-btn.active {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.14);
}

/* Unified Matte Slate Production Theme (Clean & Restrained) */
:root {
    --bg-main: #0f1419;
    --bg-card: #18202c;
    --bg-elevated: #212b3a;
    --bg-input: #121821;
    --border: #283344;
    --text: #eef2f6;
    --text-muted: #93a1b5;
    --green: #00b86b;
    --green-hover: #009e5c;
    --gold: #e5a93c;
    --gold-hover: #cc922b;
    --red: #e05252;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

body {
    background: var(--bg-main) !important;
}

.navbar {
    background: #141b24 !important;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border) !important;
}

.brand-logo-img {
    box-shadow: none !important;
}

.brand-tag {
    color: var(--text-muted) !important;
}

.nav-tab.active {
    background: var(--bg-elevated) !important;
    color: var(--text) !important;
    border: 1px solid #354358;
    box-shadow: none !important;
}

.lobby-banner {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
}

.security-pill {
    color: var(--text-muted) !important;
    background: var(--bg-elevated) !important;
    border-color: var(--border) !important;
}

.lobby-card {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
}

.lobby-card:hover {
    background: var(--bg-elevated) !important;
}

.lobby-card.active {
    border-color: var(--green) !important;
    background: var(--bg-elevated) !important;
    box-shadow: none !important;
}

.lobby-card-icon,
.lobby-card-icon.crash,
.lobby-card-icon.mines,
.lobby-card-icon.dice,
.lobby-card-icon.coin,
.lobby-card-icon.plinko,
.lobby-card-icon.wheel,
.lobby-card-icon.hilo,
.lobby-card-icon.goal,
.lobby-card-icon.limbo {
    background: var(--bg-elevated) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
}

.lobby-card.active .lobby-card-icon {
    color: var(--green) !important;
    border-color: rgba(0, 184, 107, 0.4);
}

.stage-card,
.crash-stage,
.goal-stage,
.vip-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.btn-primary {
    background: var(--green) !important;
    color: #061810 !important;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-hover) !important;
}

.mobile-bottom-nav {
    background: #141b24 !important;
    backdrop-filter: none;
    border-top: 1px solid var(--border) !important;
}

.mobile-nav-btn.active {
    color: var(--green) !important;
    background: var(--bg-elevated) !important;
}

/* Smooth Auth Modal & Form Transitions */
.modal-backdrop {
    animation: backdropFade 0.22s ease-out;
}

.modal-backdrop .modal {
    max-width: 470px;
    animation: modalPopIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

#loginForm:not(.hidden),
#registerForm:not(.hidden) {
    animation: authFormSlide 0.22s ease-out;
}

@keyframes backdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPopIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFormSlide {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Auth Modal & Phone Input CSS Fixes */
input[type="tel"] {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input[type="tel"]:focus {
    border-color: var(--green);
}

.modal-backdrop .modal {
    max-height: 92dvh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.modal .toggle-group {
    gap: 10px;
}

.modal .toggle-group .form-group {
    margin-bottom: 10px;
    min-width: 0;
}

@media (max-width: 768px) {
    input[type="tel"] {
        font-size: 16px;
        padding: 11px 12px;
    }
}

@media (max-width: 480px) {
    .modal .toggle-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Guest Gate & Professional Auth Modal */
.guest-gate {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 40px 18px;
    min-height: calc(100vh - 140px);
}

.guest-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    padding: 36px 28px;
}

.guest-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 16px;
    display: block;
}

.guest-card h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.guest-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.guest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 24px;
}

.auth-modal-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.auth-modal-header h2 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.auth-modal-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-tabs {
    background: var(--bg-input);
    padding: 4px;
    border-radius: 11px;
    border: 1px solid var(--border);
    padding-right: 4px;
}

.auth-tab {
    border: none;
    background: transparent;
}

.auth-tab.active {
    background: var(--bg-elevated);
    color: var(--text);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    padding-right: 42px;
}

.pwd-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
}

.pwd-toggle:hover {
    color: var(--text);
}

/* Upgraded Welcome Showcase & Polished Index Menus */
.guest-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    padding: 28px 18px 40px;
}

.guest-hero {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 32px 26px;
}

.guest-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.highlight-item strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    color: var(--green);
}

.highlight-item span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.guest-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.showcase-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    background: var(--bg-elevated);
}

.showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.showcase-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.showcase-card p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Index Navigation Menu Polish */
.nav-tabs {
    gap: 4px;
}

.nav-tab {
    padding: 7px 11px;
    font-size: 0.86rem;
    border: 1px solid transparent;
}

@media (max-width: 860px) {
    .guest-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .guest-showcase {
        grid-template-columns: 1fr;
    }
    .guest-actions {
        grid-template-columns: 1fr;
    }
}
