/* ============================================
   Apple Liquid Glass (iOS 26) — True Edition
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Liquid Glass — extra transparent, airy */
    --lg-fill: rgba(255, 255, 255, 0.06);
    --lg-fill-strong: rgba(255, 255, 255, 0.13);
    --lg-border: rgba(255, 255, 255, 0.22);
    --lg-border-strong: rgba(255, 255, 255, 0.38);

    /* Edge lighting — bright top highlight + subtle bottom */
    --lg-top-hl: inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
    --lg-bot-sh: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    --lg-edges: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.18);

    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.18);
    --shadow-big: 0 20px 60px rgba(0, 0, 0, 0.4);

    --gold: #ffd700;
    --spring: cubic-bezier(0.32, 1.5, 0.5, 1);
    --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { overscroll-behavior: none; height: 100%; }

body {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 100px;
    position: relative;
    letter-spacing: -0.01em;
    /* Deep cosmic blue base */
    background: #06081c;
}

/* ============================================
   New gradient — cosmic aurora
   Teal + lavender + indigo + rose
   ============================================ */
body::before {
    content: '';
    position: fixed;
    inset: -30%;
    background:
        radial-gradient(closest-side at 18% 15%, #2ec4b6 0%, transparent 45%),
        radial-gradient(closest-side at 78% 25%, #a777e3 0%, transparent 50%),
        radial-gradient(closest-side at 50% 55%, #6a5dd7 0%, transparent 55%),
        radial-gradient(closest-side at 85% 82%, #ff6ac1 0%, transparent 50%),
        radial-gradient(closest-side at 10% 85%, #3d5afe 0%, transparent 45%);
    filter: blur(80px) saturate(160%);
    pointer-events: none;
    z-index: 0;
    animation: bgFlow 22s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes bgFlow {
    0%, 100% { transform: scale(1) rotate(0deg) translate(0, 0); }
    33% { transform: scale(1.15) rotate(6deg) translate(-3%, 4%); }
    66% { transform: scale(1.08) rotate(-4deg) translate(4%, -3%); }
}

/* Subtle noise / grain texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    padding: 14px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Header + Logo
   ============================================ */
.header {
    text-align: center;
    padding: 14px 0 18px;
}

.text-logo {
    margin-bottom: 16px;
    line-height: 1.05;
    animation: hero 1s var(--spring) both;
}

@keyframes hero {
    0% { opacity: 0; transform: translateY(-14px) scale(0.94); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.logo-top {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 24px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 24px rgba(255, 255, 255, 0.4); }
    50% { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 40px rgba(255, 255, 255, 0.7); }
}

.logo-bottom {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LIQUID GLASS PRIMITIVE
   Rule of thumb for iOS 26:
   - Heavy blur (40px+) with saturation boost
   - Low opacity white fill (8-18%)
   - Bright top edge highlight
   - Subtle dark bottom edge
   - Rounded corners
   ============================================ */

.balance-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    box-shadow: var(--shadow-glass), var(--lg-edges);
    animation: glassIn 0.8s var(--spring) both 0.1s;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.balance-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    border-radius: 999px 999px 0 0;
}

@keyframes glassIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.balance-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 8px rgba(255, 200, 0, 0.5));
    animation: coinBob 3s ease-in-out infinite;
}

@keyframes coinBob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-3px) rotate(4deg); }
}

.balance-amount {
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.balance-amount.pulse { animation: pulseScale 0.5s var(--spring); }
@keyframes pulseScale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.balance-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Roulette — glass container around wheel
   ============================================ */
.roulette-section {
    text-align: center;
    margin: 20px 0;
    animation: glassIn 0.9s var(--spring) both 0.2s;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 50%;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    box-shadow: var(--shadow-big), var(--lg-edges);
    animation: wheelBreathe 4s ease-in-out infinite;
}

@keyframes wheelBreathe {
    0%, 100% { box-shadow: var(--shadow-big), var(--lg-edges), 0 0 40px rgba(255, 215, 0, 0.12); }
    50% { box-shadow: var(--shadow-big), var(--lg-edges), 0 0 80px rgba(255, 215, 0, 0.3); }
}

.wheel-container::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 12%;
    right: 12%;
    height: 35%;
    border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    filter: blur(4px);
    z-index: 3;
}

.wheel {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    display: block;
    position: relative;
    z-index: 1;
}

.wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 26px solid rgba(255, 255, 255, 0.95);
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
    transform: translateX(-50%);
    animation: pointerBreathe 2.4s ease-in-out infinite;
}

@keyframes pointerBreathe {
    0%, 100% { transform: translate(-50%, 0) scale(1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4)); }
    50% { transform: translate(-50%, 2px) scale(1.08); filter: drop-shadow(0 0 22px rgba(255, 255, 255, 1)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4)); }
}

.result-display {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 500;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 22px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    box-shadow: var(--lg-edges);
    color: rgba(255, 255, 255, 0.85);
}

.result-text { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

.result-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.5);
    animation: resultPop 0.6s var(--spring);
}

@keyframes resultPop {
    0% { transform: scale(0) rotateY(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotateY(-30deg); }
    100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.result-number.red { background: linear-gradient(135deg, #ff6b5e, #c0392b); }
.result-number.black { background: linear-gradient(135deg, #3a3a3a, #0a0a0a); }
.result-number.green { background: linear-gradient(135deg, #2ecc71, #0a5028); }

.result-win { color: #5fffab; font-weight: 700; text-shadow: 0 0 14px rgba(95, 255, 171, 0.5); }
.result-lose { color: #ff8a7e; font-weight: 700; }

/* ============================================
   Bet Input — glass pill
   ============================================ */
.bet-section {
    margin: 18px 0;
    animation: glassIn 0.9s var(--spring) both 0.3s;
}

.bet-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    box-shadow: var(--shadow-glass), var(--lg-edges);
    margin-bottom: 10px;
    transition: all 0.3s var(--spring-soft);
    position: relative;
    overflow: hidden;
}

.bet-input-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
    border-radius: 999px 999px 0 0;
}

.bet-input-row:focus-within {
    border-color: var(--lg-border-strong);
    background: var(--lg-fill-strong);
}

.bet-input-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
}

.bet-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 4px;
    font-size: 22px;
    font-weight: 700;
    outline: none;
    text-align: center;
    -moz-appearance: textfield;
    font-family: inherit;
    z-index: 1;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.bet-input::-webkit-outer-spin-button,
.bet-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bet-input::placeholder { color: rgba(255, 255, 255, 0.35); font-weight: 500; }

.bet-max-btn {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.55), rgba(10, 10, 20, 0.7));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: var(--lg-edges);
    transition: all 0.2s var(--spring);
    z-index: 1;
}

.bet-max-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.25);
}

.current-bet {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--lg-edges);
}

.current-bet span {
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

/* ============================================
   Board Buttons — colored glass
   ============================================ */
.board-section {
    margin: 16px 0;
    animation: glassIn 0.9s var(--spring) both 0.4s;
}

.bet-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Color tinted glass — background color shines through */
.bet-btn {
    flex: 1;
    padding: 20px 10px;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 0.5px solid var(--lg-border);
    transition: transform 0.25s var(--spring), border-color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow: var(--shadow-glass), var(--lg-edges);
    color: #fff;
}

.bet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
    border-radius: 26px 26px 0 0;
}

.bet-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0;
    border-radius: 26px;
    pointer-events: none;
    transition: opacity 0.4s var(--smooth);
}

.bet-btn:active {
    transform: scale(0.93);
}

.bet-btn:active::after {
    opacity: 1;
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    from { opacity: 0.7; transform: scale(0.9); }
    to { opacity: 0; transform: scale(1.1); }
}

.bet-btn.selected {
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.4),
        0 12px 36px rgba(255, 255, 255, 0.2),
        var(--lg-edges);
    transform: scale(1.02) translateY(-1px);
}

.bet-name {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.red-btn {
    background: linear-gradient(135deg, rgba(180, 30, 40, 0.55), rgba(100, 10, 15, 0.65));
}

.black-btn {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.65), rgba(0, 0, 5, 0.75));
}

.green-btn {
    background: linear-gradient(135deg, rgba(20, 140, 70, 0.55), rgba(8, 60, 30, 0.7));
    max-width: 100px;
}

/* ============================================
   Active Bets
   ============================================ */
.active-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    min-height: 28px;
    justify-content: center;
}

.active-bet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lg-fill-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--lg-border-strong);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--lg-edges);
    animation: chipIn 0.5s var(--spring);
}

@keyframes chipIn {
    0% { opacity: 0; transform: scale(0.4) translateY(10px); }
    70% { transform: scale(1.1) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   Spin Button — premium liquid glass hero
   ============================================ */
.spin-btn {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.55), rgba(10, 10, 20, 0.7));
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 5px;
    transition: transform 0.3s var(--spring), box-shadow 0.3s;
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.3),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    margin: 14px 0;
    position: relative;
    overflow: hidden;
    animation: glassIn 0.9s var(--spring) both 0.5s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}

.spin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -150%; }
    60%, 100% { left: 150%; }
}

.spin-btn:active { transform: scale(0.96); }

.spin-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    text-shadow: none;
}

.spin-btn:disabled::after { display: none; }

.spin-btn.win-pulse { animation: winPulse 0.5s ease 3; }

@keyframes winPulse {
    0%, 100% { box-shadow: 0 16px 50px rgba(95, 255, 171, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 20px 70px rgba(95, 255, 171, 0.8), inset 0 1.5px 0 rgba(255, 255, 255, 0.6); }
}

/* ============================================
   History — glass panel
   ============================================ */
.history-section {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 24px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    box-shadow: var(--lg-edges);
    animation: glassIn 0.9s var(--spring) both 0.6s;
}

.history-title {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.history-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}

.history-num {
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: historyPop 0.5s var(--spring);
    color: #fff;
}

@keyframes historyPop {
    from { opacity: 0; transform: scale(0) rotate(-120deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.history-num.red { background: linear-gradient(135deg, #ff6b5e, #922b21); }
.history-num.black { background: linear-gradient(135deg, #3a3a3a, #0a0a0a); }
.history-num.green { background: linear-gradient(135deg, #2ecc71, #0a5028); }

/* ============================================
   Admin
   ============================================ */
.admin-toggle {
    width: 100%;
    padding: 15px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: 1px;
    transition: all 0.3s var(--spring);
    box-shadow: var(--lg-edges);
}

.admin-toggle:active { transform: scale(0.97); background: var(--lg-fill-strong); }

.admin-panel { margin-top: 14px; animation: glassIn 0.6s var(--spring); }

.admin-section {
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-glass), var(--lg-edges);
}

.admin-title {
    color: #fff;
    font-size: 17px;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.admin-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 15px;
    outline: none;
    margin-bottom: 10px;
    font-family: inherit;
    transition: all 0.25s var(--spring-soft);
}

.admin-input:focus {
    border-color: var(--lg-border-strong);
    background: rgba(0, 0, 0, 0.35);
}

.admin-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.admin-btns { display: flex; gap: 10px; }

.btn-admin {
    flex: 1;
    padding: 13px;
    border: 0.5px solid var(--lg-border);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--spring);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--lg-edges);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    color: #fff;
}

.btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.btn-admin:active { transform: scale(0.95); }

.btn-admin.green { background: linear-gradient(135deg, rgba(20, 140, 70, 0.55), rgba(8, 60, 30, 0.7)); }
.btn-admin.red { background: linear-gradient(135deg, rgba(180, 30, 40, 0.55), rgba(100, 10, 15, 0.7)); }
.btn-admin.gold { background: linear-gradient(135deg, rgba(190, 150, 30, 0.55), rgba(100, 75, 10, 0.7)); color: #fff; }

.admin-msg {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    font-weight: 600;
}

.admin-msg.ok { color: #5fffab; }
.admin-msg.err { color: #ff8a7e; }

.user-card {
    background: var(--lg-fill);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--lg-border);
    border-radius: 18px;
    padding: 13px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s var(--spring-soft);
    box-shadow: var(--lg-edges);
}

.user-card:active {
    background: var(--lg-fill-strong);
    transform: scale(0.98);
}

.user-card .name { font-weight: 700; font-size: 14px; }
.user-card .uid { color: rgba(255, 255, 255, 0.5); font-size: 12px; margin-top: 2px; }

.user-card .ubal {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(44px) saturate(200%);
    -webkit-backdrop-filter: blur(44px) saturate(200%);
    border: 0.5px solid var(--lg-border-strong);
    color: #fff;
    padding: 14px 26px;
    border-radius: 999px;
    z-index: 1000;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    max-width: 90%;
    box-shadow: var(--shadow-big), var(--lg-edges);
    animation: toastIn 0.5s var(--spring);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-28px) scale(0.85); filter: blur(6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
}

::-webkit-scrollbar { height: 4px; width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }

/* ============================================
   WIN OVERLAY — premium celebration
   ============================================ */
.win-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(60, 40, 10, 0.7), rgba(5, 3, 15, 0.9));
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: winFadeIn 0.4s var(--smooth);
    overflow: hidden;
    cursor: pointer;
    contain: strict;
    will-change: opacity;
}

.win-overlay.win-closing {
    animation: winFadeOut 0.3s var(--smooth) forwards;
}

@keyframes winFadeIn { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; } }
@keyframes winFadeOut { to { opacity: 0; transform: scale(1.1); } }

/* Lightweight rotating glow rays — GPU-accelerated */
.win-rays {
    position: absolute;
    width: 180vmax;
    height: 180vmax;
    top: 50%;
    left: 50%;
    margin-left: -90vmax;
    margin-top: -90vmax;
    background:
        radial-gradient(ellipse 45% 6% at 50% 50%, rgba(255, 215, 0, 0.22), transparent 70%),
        radial-gradient(ellipse 6% 45% at 50% 50%, rgba(255, 215, 0, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 5% at 50% 50%, rgba(255, 200, 50, 0.18), transparent 70%);
    background-size: 100% 100%;
    animation: raysRotate 14s linear infinite;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.win-rays::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 35% 4% at 50% 50%, rgba(255, 180, 0, 0.16), transparent 70%),
        radial-gradient(ellipse 4% 35% at 50% 50%, rgba(255, 180, 0, 0.16), transparent 70%);
    animation: raysRotate 18s linear infinite reverse;
    will-change: transform;
}

@keyframes raysRotate {
    from { transform: translateZ(0) rotate(0deg); }
    to { transform: translateZ(0) rotate(360deg); }
}

/* Particles falling */
.win-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.win-particle {
    position: absolute;
    top: -40px;
    font-size: 22px;
    animation: particleFall linear forwards;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
    --rot: 0deg;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes particleFall {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(0, calc(100vh + 80px), 0) rotate(var(--rot)); opacity: 0; }
}

/* Center content */
.win-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 40px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(255, 100, 50, 0.04));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 32px;
    box-shadow:
        0 0 120px rgba(255, 215, 0, 0.4),
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
    animation: winCenterIn 0.8s var(--spring);
}

@keyframes winCenterIn {
    0% { opacity: 0; transform: scale(0.4) translateY(20px); filter: blur(10px); }
    60% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.win-label {
    font-size: 18px;
    color: #ffe98a;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: labelBounce 0.6s var(--spring);
    margin-bottom: 2px;
}

@keyframes labelBounce {
    0% { opacity: 0; transform: translateY(-16px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.win-amount-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: amountPop 0.9s var(--spring);
}

@keyframes amountPop {
    0% { opacity: 0; transform: scale(0.2) rotate(-15deg); filter: blur(12px); }
    60% { transform: scale(1.2) rotate(3deg); filter: blur(0); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.win-amount {
    font-size: 76px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff8c9 0%, #ffd700 40%, #ffaa00 75%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
        drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.win-coin {
    font-size: 54px;
    filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.8));
    animation: coinSpin 1.5s var(--spring) infinite;
}

@keyframes coinSpin {
    0%, 100% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(360deg) scale(1.15); }
}

.win-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: labelBounce 0.8s var(--spring);
}

.win-tap {
    position: absolute;
    bottom: 50px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    animation: tapPulse 2s ease-in-out infinite;
}

@keyframes tapPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #0a0614;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(closest-side at 25% 25%, #ffb700, transparent 45%),
        radial-gradient(closest-side at 75% 75%, #ff3b5c, transparent 45%);
    filter: blur(60px);
    animation: bgFlow 4s ease-in-out infinite;
}

.loading-screen img {
    width: 200px;
    animation: pulse 1.5s ease infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.loading-text {
    color: #fff;
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 1;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

/* ============================================
   Top Actions (Profile / Admin icons)
   ============================================ */
.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 0;
    animation: glassIn 0.8s var(--spring) both;
}

.top-actions .admin-icon {
    margin-left: auto;
    animation: adminIconEntry 0.6s var(--spring);
}

@keyframes adminIconEntry {
    from { opacity: 0; transform: scale(0.4) rotate(-90deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.admin-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), transparent);
    z-index: -1;
    opacity: 0;
    animation: adminPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes adminPulse {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glass), var(--lg-edges);
    transition: transform 0.2s var(--spring), background 0.2s;
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.icon-btn:active {
    transform: scale(0.9);
    background: var(--lg-fill-strong);
}

.icon-btn-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lg-fill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s var(--spring);
}

.icon-btn-small:active { transform: scale(0.9) rotate(180deg); }

/* ============================================
   Modals
   ============================================ */
.admin-modal, .user-modal, .profile-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s var(--smooth);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, rgba(40, 30, 50, 0.75), rgba(15, 10, 25, 0.85));
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    border-top: 0.5px solid var(--lg-border-strong);
    padding: 20px 16px 40px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.4s var(--spring);
}

@keyframes modalSlide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 4px;
}

.modal-head::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lg-fill);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--spring);
}

.modal-close:active { transform: scale(0.85) rotate(90deg); background: var(--lg-fill-strong); }

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--lg-fill);
    border: 0.5px solid var(--lg-border);
    border-radius: 999px;
    margin-bottom: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: tabActive 0.35s var(--spring);
}

@keyframes tabActive {
    from { transform: scale(0.92); }
    to { transform: scale(1); }
}

.tab:active { transform: scale(0.96); }

.tab-content {
    animation: tabIn 0.4s var(--spring);
}

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

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-input {
    flex: 1;
    background: var(--lg-fill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.25s var(--spring-soft);
}

.search-input:focus {
    border-color: var(--lg-border-strong);
    background: var(--lg-fill-strong);
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* ============================================
   User cards (admin list)
   ============================================ */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 2px;
}

.user-card {
    background: var(--lg-fill);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--lg-border);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s var(--spring-soft);
    box-shadow: var(--lg-edges);
}

.users-list .user-card:first-child { animation: cardIn 0.4s var(--spring); }

.user-card.user-banned {
    border-color: rgba(255, 80, 90, 0.4);
    background: linear-gradient(135deg, rgba(180, 30, 40, 0.15), rgba(255, 255, 255, 0.04));
}

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

.user-card:active {
    background: var(--lg-fill-strong);
    transform: scale(0.98);
}

.uc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.uc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 100, 200, 0.6), rgba(60, 30, 100, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--lg-edges);
    overflow: hidden;
}

.uc-avatar, .profile-avatar {
    position: relative;
}

.av-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.uc-avatar img, .profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    opacity: 0;
    transition: opacity 0.4s var(--smooth);
    z-index: 2;
}

.uc-avatar img.loaded, .profile-avatar img.loaded {
    opacity: 1;
}

.uc-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.uc-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.uc-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.uc-name .admin-tag,
.uc-name .banned-tag {
    flex-shrink: 0;
}

.uc-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-bal {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.banned-tag {
    background: rgba(255, 80, 90, 0.25);
    border: 0.5px solid rgba(255, 80, 90, 0.5);
    color: #ff8a7e;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-tag {
    background: rgba(100, 180, 255, 0.2);
    border: 0.5px solid rgba(100, 180, 255, 0.5);
    color: #8ac7ff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-tag.super {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 100, 0, 0.25));
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd97a;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
    animation: superGlow 2.5s ease-in-out infinite;
}

@keyframes superGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.6); }
}

.user-card.user-admin {
    border-color: rgba(100, 180, 255, 0.35);
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.super-section {
    border-color: rgba(255, 215, 0, 0.35) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.03)) !important;
}

/* ============================================
   Profile / User-detail card
   ============================================ */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    border-radius: 22px;
    box-shadow: var(--lg-edges);
    margin-bottom: 12px;
    animation: cardIn 0.4s var(--spring);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 150, 100, 0.75), rgba(200, 50, 120, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: avatarEntry 0.7s var(--spring), avatarFloat 6s ease-in-out infinite 0.7s;
}

@keyframes avatarEntry {
    from { opacity: 0; transform: scale(0.6) rotate(-20deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.profile-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.profile-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    font-family: -apple-system, monospace;
}

.profile-balance {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 100, 50, 0.08));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: var(--lg-edges);
    animation: cardIn 0.45s var(--spring);
}

.pb-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pb-amount {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    font-variant-numeric: tabular-nums;
}

.profile-meta {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 12px;
}

/* ============================================
   Stat Grid
   ============================================ */
.stat-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stats-grid { grid-template-columns: repeat(2, 1fr); }

.stat-tile {
    background: var(--lg-fill);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--lg-border);
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: var(--lg-edges);
    animation: cardIn 0.4s var(--spring) both;
}

.stat-tile.big-tile {
    grid-column: span 2;
    padding: 16px;
}

.stat-tile.win-tile {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(255, 255, 255, 0.03));
    border-color: rgba(46, 204, 113, 0.35);
}

.stat-tile.lose-tile {
    background: linear-gradient(135deg, rgba(255, 80, 90, 0.15), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 80, 90, 0.35);
}

.stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.big-tile .stat-value { font-size: 22px; }

/* ============================================
   Action sections in user modal
   ============================================ */
.action-section {
    background: var(--lg-fill);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 0.5px solid var(--lg-border);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--lg-edges);
    animation: cardIn 0.5s var(--spring);
}

.section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.balance-actions .admin-input {
    margin-bottom: 8px;
}

.btn-admin.yellow {
    background: linear-gradient(135deg, rgba(190, 150, 30, 0.55), rgba(100, 75, 10, 0.7));
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-admin.danger {
    background: linear-gradient(135deg, rgba(130, 15, 25, 0.75), rgba(70, 5, 15, 0.85));
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Mini history in user detail
   ============================================ */
.mini-hist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.mini-hist-row:last-child { border-bottom: none; }

.mhr-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.mhr-amt.win { color: #5fffab; font-weight: 700; }
.mhr-amt.lose { color: #ff8a7e; font-weight: 700; }

/* ============================================
   Transactions tab
   ============================================ */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 60vh;
    overflow-y: auto;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: var(--lg-fill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--lg-border);
    border-radius: 14px;
    padding: 11px 14px;
    box-shadow: var(--lg-edges);
}

.tx-info { flex: 1; min-width: 0; }

.tx-user {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tx-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.tx-amt {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tx-amt.win { color: #5fffab; text-shadow: 0 0 10px rgba(95, 255, 171, 0.4); }
.tx-amt.lose { color: #ff8a7e; }

.tx-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tx-del {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 80, 90, 0.2);
    border: 0.5px solid rgba(255, 80, 90, 0.4);
    color: #ff8a7e;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--spring);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.tx-del:active {
    transform: scale(0.85);
    background: rgba(255, 80, 90, 0.4);
}

.tx-toolbar {
    margin-bottom: 10px;
}

.tx-clear-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 80, 90, 0.25), rgba(180, 30, 40, 0.35));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 80, 90, 0.45);
    color: #ffbab3;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.2s var(--spring);
    box-shadow: var(--lg-edges);
}

.tx-clear-btn:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, rgba(255, 80, 90, 0.4), rgba(180, 30, 40, 0.5));
}

/* ============================================
   Misc helpers
   ============================================ */
.empty-msg, .loading-small, .error-small {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 30px 16px;
    font-size: 14px;
}

.error-small { color: #ff8a7e; }

/* ============================================
   Face ID / Biometric Overlay
   ============================================ */
.bio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 15, 0.6);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s var(--smooth);
}

.bio-card {
    max-width: 340px;
    width: 100%;
    padding: 28px 22px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(40, 30, 50, 0.75), rgba(15, 10, 25, 0.85));
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    border: 0.5px solid var(--lg-border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--lg-edges);
    text-align: center;
    animation: bioPop 0.5s var(--spring);
}

@keyframes bioPop {
    from { opacity: 0; transform: scale(0.85) translateY(20px); filter: blur(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.bio-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bioFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes bioFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

.bio-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.bio-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.bio-actions {
    display: flex;
    gap: 10px;
}

.bio-btn {
    flex: 1;
    padding: 14px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s var(--spring);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    letter-spacing: 0.3px;
    border: 0.5px solid var(--lg-border);
    position: relative;
    overflow: hidden;
}

.bio-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.bio-btn:active { transform: scale(0.94); }

.bio-skip {
    background: var(--lg-fill);
    color: rgba(255, 255, 255, 0.75);
}

.bio-ok {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.75), rgba(10, 80, 40, 0.85));
    color: #fff;
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 8px 22px rgba(46, 204, 113, 0.3), var(--lg-edges);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Павел Услуги — специфичные стили
   ============================================ */

.big-balance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    border-radius: 28px;
    padding: 28px 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--shadow-big), var(--lg-edges);
    animation: glassIn 0.8s var(--spring) both 0.15s;
    position: relative;
    overflow: hidden;
}

.big-balance-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

.big-balance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    animation: glassShine 6s ease-in-out infinite;
    pointer-events: none;
}

.bb-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bb-amount {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.bb-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Access denied */
.access-denied {
    background: var(--lg-fill);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    border-radius: 26px;
    padding: 32px 22px;
    margin: 18px 0;
    text-align: center;
    box-shadow: var(--shadow-glass), var(--lg-edges);
    animation: glassIn 0.6s var(--spring);
}

.ad-icon {
    font-size: 52px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.3));
}

.ad-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.ad-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ad-id {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

.ad-id b {
    color: #fff;
    font-family: -apple-system, monospace;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.5), rgba(50, 100, 200, 0.55));
    border: 0.5px solid rgba(100, 180, 255, 0.45);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--lg-edges);
    transition: all 0.2s var(--spring);
    letter-spacing: 0.3px;
}

.copy-btn:active { transform: scale(0.95); }

/* Transfer */
.transfer-section {
    animation: glassIn 0.7s var(--spring) both 0.3s;
}

.section-head {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin: 20px 4px 10px;
}

.transfer-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--lg-border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-glass), var(--lg-edges);
    position: relative;
    overflow: hidden;
}

.transfer-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.transfer-balances,
.tr-input,
.tr-btns,
.tr-confirm-btn,
.tr-history {
    position: relative;
    z-index: 1;
}

.tr-from {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.swap-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 0.5px solid var(--lg-border-strong);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--lg-edges);
}

.swap-btn:active {
    transform: scale(0.9) rotate(180deg);
    background: var(--lg-border-strong);
}

.transfer-balances {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 18px;
    border: 0.5px solid var(--lg-border);
}

.tb-item {
    flex: 1;
    text-align: center;
}

.tb-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tb-val {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.tb-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 4px;
    transition: transform 0.4s var(--spring);
}

.tr-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid var(--lg-border);
    color: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    margin-bottom: 10px;
    text-align: center;
    font-family: inherit;
    -moz-appearance: textfield;
    transition: all 0.25s var(--spring-soft);
}

.tr-input:focus {
    border-color: var(--lg-border-strong);
    background: rgba(0, 0, 0, 0.35);
}

.tr-input::-webkit-outer-spin-button,
.tr-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tr-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.tr-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.qa-btn {
    background: var(--lg-fill);
    border: 0.5px solid var(--lg-border);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 4px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s var(--spring);
}

.qa-btn:active {
    transform: scale(0.92);
    background: var(--lg-fill-strong);
}

.tr-confirm-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.5), rgba(50, 100, 200, 0.6));
    border: 0.5px solid rgba(100, 180, 255, 0.5);
    color: #fff;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: var(--lg-edges), 0 8px 24px rgba(100, 180, 255, 0.2);
    transition: all 0.3s var(--spring);
    font-family: inherit;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.tr-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    border-radius: 18px 18px 0 0;
}

.tr-confirm-btn:active {
    transform: scale(0.97);
}

/* History */
.tr-history {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-hist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 0.5px solid var(--lg-border);
    border-radius: 12px;
    font-size: 13px;
}

.trh-dir { color: rgba(255, 255, 255, 0.8); }
.trh-amt {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.trh-amt.to-casino { color: #ff8a7e; }
.trh-amt.to-uslugi { color: #5fffab; }

/* Hint messages */
.hint-msg {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    padding: 10px;
    line-height: 1.5;
}

/* ============================================
   Заявки (Pending)
   ============================================ */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b5e, #c0392b);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(255, 80, 90, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 80, 90, 0.4); }
    50% { box-shadow: 0 0 22px rgba(255, 80, 90, 0.9); }
}

.pending-card {
    background: linear-gradient(135deg, rgba(255, 180, 50, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid rgba(255, 180, 50, 0.3);
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: var(--lg-edges);
}

.pending-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.pend-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0.5px solid var(--lg-border);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--spring);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--lg-edges);
    font-family: inherit;
}

.pend-btn:active { transform: scale(0.88); }

.pend-btn.approve {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85), rgba(10, 80, 40, 0.7));
    color: #fff;
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.25), var(--lg-edges);
}

.pend-btn.reject {
    background: linear-gradient(135deg, rgba(255, 107, 94, 0.85), rgba(120, 30, 20, 0.7));
    color: #fff;
    border-color: rgba(255, 107, 94, 0.5);
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.25), var(--lg-edges);
}

/* Copy button animation */
.copy-btn {
    transition: background 0.3s var(--spring), transform 0.2s var(--spring), box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:active { transform: scale(0.95); }

.copy-btn.copied {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(10, 80, 40, 0.85)) !important;
    border-color: rgba(46, 204, 113, 0.6) !important;
    box-shadow: 0 0 24px rgba(46, 204, 113, 0.5), var(--lg-edges) !important;
    animation: copiedPulse 0.5s var(--spring);
}

@keyframes copiedPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.copy-check {
    display: inline-block;
    animation: checkPop 0.5s var(--spring);
    font-weight: 900;
}

@keyframes checkPop {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.bio-ok.copied {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(10, 80, 40, 0.85)) !important;
    border-color: rgba(46, 204, 113, 0.6) !important;
    animation: copiedPulse 0.5s var(--spring);
}

/* Pending indicator — animated dot */
.pending-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 200, 50, 0.9), rgba(255, 120, 50, 0.7));
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(255, 180, 50, 0.5);
    position: relative;
    animation: pendingDot 2s ease-in-out infinite;
}

.pending-dot::before,
.pending-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 180, 50, 0.6);
    animation: pendingRipple 2s ease-out infinite;
}

.pending-dot::after {
    animation-delay: 1s;
}

@keyframes pendingDot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 180, 50, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(255, 180, 50, 0.8); }
}

@keyframes pendingRipple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Salary info panel */
.salary-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.14), rgba(46, 204, 113, 0.04));
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid rgba(46, 204, 113, 0.35);
    border-radius: 20px;
    box-shadow: var(--shadow-glass), var(--lg-edges);
    animation: glassIn 0.8s var(--spring) both 0.2s;
    position: relative;
    overflow: hidden;
}

.salary-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.salary-icon {
    font-size: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(46, 204, 113, 0.5));
    animation: salaryBob 3s ease-in-out infinite;
}

@keyframes salaryBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
}

.salary-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.salary-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.salary-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 500;
}

.salary-countdown {
    color: #5fffab;
    font-weight: 800;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(95, 255, 171, 0.5);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.15);
    border: 0.5px solid rgba(46, 204, 113, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* ============================================
   Массовая зарплата
   ============================================ */
.bulk-salary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(201, 168, 76, 0.3));
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 0.5px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2), var(--lg-edges);
    transition: transform 0.2s var(--spring);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.bulk-salary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.bulk-salary-btn:active { transform: scale(0.97); }

.bulk-salary-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s var(--smooth);
}

.bulk-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.chip-link {
    background: var(--lg-fill);
    border: 0.5px solid var(--lg-border);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s var(--spring);
    letter-spacing: 0.3px;
}

.chip-link:active { transform: scale(0.92); background: var(--lg-fill-strong); }

.bulk-counter {
    margin-left: auto;
    color: #5fffab;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(95, 255, 171, 0.3);
}

.bulk-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 2px;
}

.bulk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--lg-fill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--lg-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s var(--spring-soft);
    box-shadow: var(--lg-edges);
}

.bulk-row.checked {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.22), rgba(46, 204, 113, 0.08));
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2), var(--lg-edges);
}

.bulk-row:active { transform: scale(0.98); }

.bulk-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s var(--spring);
}

.bulk-row.checked .bulk-check {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95), rgba(10, 80, 40, 0.85));
    border-color: rgba(46, 204, 113, 0.6);
    color: #fff;
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.5);
}

.bulk-row .uc-info { flex: 1; min-width: 0; }
.bulk-row .uc-name { font-size: 13px; }
.bulk-row .uc-bal { font-size: 13px; color: #fff; white-space: nowrap; flex-shrink: 0; }
