/* =========================
   Reset & Base Variables
========================= */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
    --bg-dark: #0b0f17;
    --card-bg: #141b26;
    --card-border: #232d3f;
    --card-blur: 0px;
    --accent-green: #10b981;
    --accent-teal: #06b6d4;
    --accent-blue: #38bdf8;
    --accent-gold: #eab308;
    --text-primary: #ffffff;
    --text-muted: #8c9ba5;
    --raise: 0px;
    --nav-height: 68px;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app-wrapper {
    min-height: 100vh;
    background: #0b0f17;
    padding: 16px 16px calc(var(--nav-height) + 26px) 16px;
    position: relative;
}

/* Telegram-Only Gatekeeper Screen */
html.tg-blocked-env .app-wrapper,
body.tg-blocked .app-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

html.tg-blocked-env #tgOnlyScreen,
body.tg-blocked #tgOnlyScreen {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#tgOnlyScreen {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background: #080d17;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tg-only-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.08) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: tgGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes tgGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.tg-only-card {
    position: relative;
    z-index: 10;
    max-width: 420px;
    width: 100%;
    background: rgba(16, 23, 38, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-radius: 28px;
    padding: 36px 26px 30px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.tg-only-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.tg-only-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.tg-only-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: tgDotBlink 1.5s ease-in-out infinite;
}

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

.tg-only-title {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tg-only-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 0 26px 0;
    padding: 0 6px;
}

.tg-only-desc b {
    color: #f1f5f9;
}

.tg-only-actions {
    width: 100%;
    margin-bottom: 20px;
}

.tg-only-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4), 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tg-only-launch-btn:link,
.tg-only-launch-btn:visited,
.tg-only-launch-btn:hover,
.tg-only-launch-btn:active,
.tg-only-launch-btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

.tg-only-launch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(2, 132, 199, 0.55), 0 0 26px rgba(56, 189, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.08);
}

.tg-only-launch-btn:active {
    transform: scale(0.97);
}

.tg-btn-arrow {
    font-size: 19px;
    line-height: 1;
    margin-left: 2px;
}

.tg-only-footer {
    font-size: 12px;
    color: #64748b;
}

.tg-only-footer code {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11.5px;
}

/* =========================
   Header
========================= */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px 0 7px 0;
    margin-bottom: 7px;
    position: relative;
    z-index: 5;
    min-height: 40px;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0 auto;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.header-brand:active {
    opacity: 0.8;
    transform: scale(0.97);
}

.header-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.header-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.logo {
    height: 32px;
    width: auto;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex-shrink: 0;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.lang-flag { width: 18px; height: 13px; border-radius: 2px; }
.lang-caret { transition: transform 0.2s ease; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 0;
    list-style: none;
    min-width: 140px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.lang-item:hover, .lang-item.active { background: rgba(255, 255, 255, 0.1); }

/* =========================
   Tab Views Switcher
========================= */
.tab-view {
    display: none;
    animation: fadeIn 0.25s ease-out forwards;
}
.tab-view.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Main layout (Signals)
========================= */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}

.main-heading {
    color: #fff;
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-heading h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    color: #ffffff;
}
.main-heading p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 320px;
}

/* Active Tier Banner */
.tier-active-badge {
    display: none;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}
.tier-active-badge.is-basic {
    display: flex;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}
.tier-active-badge.is-plus {
    display: flex;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}
.tier-active-badge.is-diamond {
    display: flex;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #eab308;
}
.tier-active-badge.hidden { display: none !important; }

/* Gate / Onboarding Banner */
.gate-banner {
    width: 100%;
    max-width: 420px;
    background: #141c28;
    border: 1px solid rgba(26, 188, 156, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.gate-banner.hidden { display: none !important; }
.gate-banner-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #1abc9c; }
.gate-banner-text { font-size: 12.5px; color: #ccd6e0; line-height: 1.4; }
.gate-banner-btn {
    align-self: flex-start;
    background: #1abc9c;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

/* =========================
   Glass Card (Form)
========================= */
/* =========================
   Unified Terminal Card (One Solid Container, Zero Clutter)
========================= */
.terminal-card {
    width: 100%;
    max-width: 420px;
    color: #fff;
    background: #141b26;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
}
body.is-platinum .terminal-card {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.15);
}
/* Lock card height during AI thinking so it never scrolls/expands */
.terminal-card.is-thinking {
    overflow: hidden;
}
.terminal-card.is-thinking .ai-thinking-wrap {
    overflow: hidden;
}


.terminal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    font-size: 13.5px;
    color: #ffffff;
}
.terminal-brand img { width: 16px; height: 16px; }
.terminal-model-badge {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
}
body.is-platinum .terminal-model-badge {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.35);
    color: #ffd700;
}

.terminal-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.25s ease-out forwards;
}

.field-block { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.field-block label { font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.2px; }
.field-block input {
    padding: 13px 15px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    color: #fff;
    background: #1c2433;
    border: 1px solid #2a374c;
    pointer-events: none;
    transition: all 0.2s ease;
}
.field-block:hover input {
    border-color: #38bdf8;
    background: #202b3c;
}

.submit-btn {
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    cursor: not-allowed;
    background: #1e2635;
    color: #64748b;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.submit-btn.active {
    background: #10b981;
    color: #fff;
    cursor: pointer;
}
.submit-btn.active:hover {
    background: #059669;
}
body.is-platinum .submit-btn.active,
body.is-diamond .submit-btn.active {
    background: #eab308;
    color: #0b0f17;
    font-weight: 700;
}

/* =========================
   AI Reasoning / Thinking Stage ("Нейросетевой анализ")
========================= */
.ai-thinking-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 4px 2px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}
.ai-radar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ai-radar {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto;
}
.ai-radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    animation: pulseRadar 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ai-radar-ring.delay {
    animation-delay: 0.8s;
}
.ai-radar-ring.delay-2 {
    animation-delay: 1.6s;
}
@keyframes pulseRadar {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.ai-radar-sweep {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(56, 189, 248, 0) 0deg, rgba(56, 189, 248, 0) 270deg, rgba(56, 189, 248, 0.45) 360deg);
    animation: radarSweep 2s linear infinite;
    mask: radial-gradient(circle, transparent 38px, black 39px);
    -webkit-mask: radial-gradient(circle, transparent 38px, black 39px);
}
@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.ai-radar-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}
.ai-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 5px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.ai-target-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: blinkTargetDot 1s infinite alternate;
}
@keyframes blinkTargetDot {
    0% { opacity: 0.35; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
}
.ai-target-text {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
}
.ai-thinking-head-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}
.ai-thinking-head {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.ai-thinking-model-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}
body.is-platinum .ai-thinking-model-badge,
body.is-diamond .ai-thinking-model-badge {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
}
.ai-telemetry-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    box-sizing: border-box;
}
.ai-telemetry-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    box-sizing: border-box;
}
.ai-telem-lbl {
    font-size: 8.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}
.ai-telem-val {
    font-size: 10px;
    font-weight: 800;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}
.ai-telem-val.positive {
    color: #34d399;
}
.ai-console-card {
    width: 100%;
    background: rgba(11, 16, 26, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}
.ai-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: rgba(16, 24, 39, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-console-dots {
    display: flex;
    gap: 5px;
}
.ai-console-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.ai-console-dots .dot.red { background: #ef4444; }
.ai-console-dots .dot.yellow { background: #f59e0b; }
.ai-console-dots .dot.green { background: #10b981; }
.ai-console-title {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}
.ai-console-status {
    font-size: 8.5px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.ai-console-body {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.35;
    box-sizing: border-box;
}
.ai-console-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    opacity: 0;
    transform: translateY(4px);
    animation: fadeInConsoleLine 0.25s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeInConsoleLine {
    to { opacity: 1; transform: translateY(0); }
}
.ai-console-time {
    color: #475569;
    font-weight: 600;
    flex-shrink: 0;
}
.ai-console-tag {
    font-weight: 800;
    flex-shrink: 0;
}
.ai-console-tag.init { color: #38bdf8; }
.ai-console-tag.data { color: #818cf8; }
.ai-console-tag.tech { color: #fbbf24; }
.ai-console-tag.smc { color: #34d399; }
.ai-console-tag.vol { color: #f472b6; }
.ai-console-tag.sim { color: #38bdf8; }
.ai-console-tag.conf { color: #22d3ee; }
.ai-console-tag.exec { color: #a78bfa; }
.ai-console-msg {
    color: #cbd5e1;
    word-break: break-word;
}
.ai-progress-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ai-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.ai-prog-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 82%;
}
.ai-prog-pct {
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
}
.ai-scan-line {
    width: 100%;
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ai-scan-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    border-radius: 9999px;
    transition: width 0.08s linear;
}

/* =========================
   Signal Result Layout
========================= */
.rg2 { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.sig-dir-icon svg { width: 38px; height: 38px; margin: 0 auto; display: block; }
.rg2-ribbon {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 8px 24px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
}
.rg2-ribbon.buy {
    background: #10b981;
    color: #fff;
}
.rg2-ribbon.sell {
    background: #ef4444;
    color: #fff;
}
.rg2-pair { font-size: 20px; font-weight: 800; color: #fff; text-align: center; margin-top: 2px; }

.rg2-counters { display: flex; gap: 10px; }
.rg2-counter {
    flex: 1;
    background: #19212f;
    border: 1px solid #283549;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.rg2-counter .k { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.rg2-counter .v { font-size: 24px; font-weight: 900; margin-top: 2px; }
.rg2-counter .v.acc-val { color: #10b981; }
body.is-platinum .rg2-counter .v.acc-val,
body.is-diamond .rg2-counter .v.acc-val { color: #eab308; }

/* =====================================
   MONEY MANAGEMENT CARD (МАНИ-МЕНЕДЖМЕНТ)
===================================== */
.mm-card {
    background: #101622;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.mm-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.mm-badge {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}
.mm-balance-label {
    font-size: 12px;
    color: #94a3b8;
}
.mm-balance-label b {
    color: #ffffff;
    font-size: 13.5px;
}

.mm-rec-row {
    background: #141f2a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mm-rec-text {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}
.mm-rec-amount {
    font-size: 26px;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* Static Informative Risk Badges (No Click / Non-Button) */
.mm-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 2px 0;
}
.mm-stat-box {
    background: #192231;
    border: 1px solid #283549;
    border-radius: 10px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    cursor: default;
    user-select: none;
}
.mm-stat-box .pct {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}
.mm-stat-box .sum {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}
.mm-stat-box.rec {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.mm-stat-box.rec .pct {
    color: #10b981;
}
.mm-stat-box.rec .sum {
    color: #10b981;
}

.mm-hint {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
    padding-top: 2px;
}

/* Signal Stats Details */
.rg2-list { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rg2-list .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: #19212f;
    border-radius: 8px;
    border: 1px solid #253043;
    font-size: 12.5px;
}
.rg2-list .row .k { color: var(--text-muted); font-weight: 600; }
.rg2-list .row .v { font-weight: 700; color: #fff; }
.rg2-list .row.platinum-row {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
}
.rg2-list .row.platinum-row .k { color: #ffd700; }
.rg2-list .row.platinum-row .v { color: #ffd700; font-weight: 800; }

.rg2-actions { display: flex; gap: 10px; margin-top: 6px; }
.rg2-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    background: #10b981;
    color: #fff;
    transition: all 0.2s ease;
}
.rg2-btn:hover { background: #059669; }
.rg2-btn.ghost { background: #1c2433; color: #cbd5e1; border: 1px solid #2a374c; }
.rg2-btn.ghost:hover { background: #232d3f; }

/* FAQ */
.faq-section { width: 100%; max-width: 420px; margin: 24px auto 10px; }
.faq-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: #141b26;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: 0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-question img { width: 12px; transition: transform 0.25s ease; opacity: 0.6; }
.faq-answer {
    padding: 0 14px 12px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question img { transform: rotate(180deg); }

/* =========================
   Profile View Styles
========================= */
.profile-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: #141b26;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: #182232;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    border: 2px solid #283549;
    overflow: hidden;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.profile-avatar.has-image {
    background: #182232;
    border-color: #38bdf8;
}
.profile-avatar-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    user-select: none;
    z-index: 1;
}
.profile-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    z-index: 2;
}
body.is-platinum .profile-avatar,
body.is-diamond .profile-avatar {
    border-color: #eab308;
}
.profile-info { display: flex; flex-direction: column; gap: 3px; }
.profile-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.profile-username { font-size: 13px; color: #38bdf8; font-weight: 600; }
.profile-id { font-size: 11.5px; color: var(--text-muted); font-family: 'Inter', monospace; }

/* Status Box */
.status-box {
    background: #182232;
    border: 1px solid #283549;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-box-header { display: flex; justify-content: space-between; align-items: center; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #253348;
    color: #fff;
}
.status-badge.basic {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}
.status-badge.plus {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}
.status-badge.diamond, .status-badge.platinum {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid #eab308;
    color: #eab308;
    font-weight: 700;
}

.deposit-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.deposit-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.deposit-bar-bg {
    width: 100%;
    height: 8px;
    background: #101622;
    border: 1px solid #283549;
    border-radius: 4px;
    overflow: hidden;
}
.deposit-bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.profile-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease;
}
.profile-action-btn:active { transform: scale(0.98); }

/* Profile details */
.profile-details-list { display: flex; flex-direction: column; gap: 8px; }
.profile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #182232;
    border: 1px solid #283549;
    border-radius: 10px;
    font-size: 13px;
}
.profile-detail-row .label { color: var(--text-muted); }
.profile-detail-row .val { font-weight: 700; color: #fff; }

.profile-links { display: flex; flex-direction: column; gap: 8px; }
.profile-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #182232;
    border: 1px solid #283549;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.profile-link-btn:hover { background: #202d42; border-color: #38bdf8; }

/* =========================
   Admin View Styles
========================= */
.admin-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-card {
    background: #141b26;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dev switch mode */
.dev-mode-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 10px;
}
.dev-mode-btn {
    padding: 8px 3px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.dev-mode-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.dev-mode-btn.active#devModeBase {
    background: #10b981;
    color: #fff;
}
.dev-mode-btn.active.plus {
    background: #0284c7;
    color: #fff;
}
.dev-mode-btn.active.diamond {
    background: #eab308;
    color: #0b0f17;
    font-weight: 700;
}

/* Admin stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.admin-stat-card .num { font-size: 20px; font-weight: 900; color: #1abc9c; }
.admin-stat-card .desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Admin User search & grant */
.admin-input-group {
    display: flex;
    gap: 8px;
}
.admin-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    outline: none;
}
.admin-input:focus { border-color: #1abc9c; }
.admin-btn-action {
    padding: 10px 14px;
    background: #1abc9c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.admin-btn-action.gold { background: #eab308; color: #0b0f17; }

.admin-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.admin-sub-btn {
    padding: 9px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}
.admin-sub-btn:hover { background: rgba(255, 255, 255, 0.12); }
.admin-sub-btn.danger { border-color: #e74c3c; color: #e74c3c; }

/* =========================
   Bottom Navigation Bar ("Таблетка" / Floating Pill)
========================= */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 36px);
    max-width: 320px;
    height: 66px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 5px 8px;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 0;
    border-radius: 9999px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.nav-icon-wrap {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.nav-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.nav-item span {
    font-size: 11px;
    letter-spacing: 0.2px;
    font-weight: 600;
    line-height: 1.1;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

/* Active state: Glass highlight bubble + Blue accent glow */
.nav-item.active {
    background: rgba(38, 75, 125, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-item.active .nav-icon-wrap {
    color: #38bdf8;
    transform: translateY(-1px) scale(1.05);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}

.nav-item.active span {
    color: #38bdf8;
    font-weight: 700;
}

/* Platinum Mode Theme */
body.is-platinum .nav-item.active {
    background: rgba(255, 215, 0, 0.16);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
body.is-platinum .nav-item.active .nav-icon-wrap {
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.65));
}
body.is-platinum .nav-item.active span {
    color: #ffd700;
}

.nav-item.hidden { display: none !important; }

/* =========================
   Popups (Pair, Expiry, Model, VIP)
========================= */
/* Common Overlay */
.cp-overlay, .ex-overlay, .md-overlay, .vip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.cp-overlay[aria-hidden="false"],
.ex-overlay[aria-hidden="false"],
.md-overlay[aria-hidden="false"],
.vip-overlay[aria-hidden="false"] {
    display: flex;
}

/* Pair Popup Sheet */
.cp {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #111726;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cp-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.cp-tab {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.cp-tab img { width: 18px; height: 18px; opacity: 0.7; }
.cp-tab[aria-selected="true"] {
    background: rgba(26, 188, 156, 0.2);
    border-color: #1abc9c;
}
.cp-tab[aria-selected="true"] img { opacity: 1; }
/* Tab Lock indicator */
.cp-tab.is-locked::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab308' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.cp-search-row { display: flex; gap: 8px; }
.cp-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
}
.cp-search input {
    background: none;
    border: 0;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}
.cp-fav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.cp-fav[aria-pressed="true"] { background: rgba(243, 156, 18, 0.2); border-color: #f39c12; }

.cp-headrow {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}
.cp-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.15s;
}
.cp-item:hover { background: rgba(255, 255, 255, 0.08); }
.cp-item-left { display: flex; align-items: center; gap: 10px; }
.cp-star-btn { background: none; border: 0; cursor: pointer; opacity: 0.3; }
.cp-star-btn.active { opacity: 1; filter: drop-shadow(0 0 4px #f39c12); }
.cp-name { font-weight: 700; font-size: 14px; }
.cp-market { font-size: 11px; color: var(--text-muted); }

/* Expiry Popup Grid */
.ex, .md {
    width: 100%;
    max-width: 480px;
    background: #111726;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.25s ease-out;
}
.ex-header, .md-header { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.ex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ex-chip {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.ex-chip[aria-selected="true"] {
    background: #1abc9c;
    border-color: #1abc9c;
}
.ex-chip.is-locked {
    opacity: 0.6;
}
.ex-chip.is-locked::after {
    content: "VIP";
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 8.5px;
    font-weight: 700;
    color: #eab308;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Model Popup */
.md-grid { display: flex; flex-direction: column; gap: 10px; }
.md-chip {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #141b26;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.md-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #182232;
}
.md-chip[aria-selected="true"] {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
}
body.is-diamond .md-chip[aria-selected="true"] {
    background: rgba(234, 179, 8, 0.12);
    border-color: #eab308;
}
.md-chip.is-locked {
    opacity: 0.65;
    background: rgba(20, 27, 38, 0.6);
}
.md-chip-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.md-chip-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.md-chip-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.md-chip-winrate {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.md-chip-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}
.md-chip-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-left: 8px;
    white-space: nowrap;
}
.md-badge.diamond {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.md-badge.plus {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.md-lock-icon {
    font-size: 14px;
    opacity: 0.5;
}

/* VIP Bottom Sheet */
.vip-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: #101625;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}
.vip-grabber {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.vip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.vip-head h3 { font-size: 20px; font-weight: 800; color: #eab308; }
.vip-close {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vip-hero { text-align: center; margin-bottom: 20px; }
.vip-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(234, 179, 8, 0.14);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.vip-hero h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.vip-sub { font-size: 13px; color: var(--text-muted); }

/* 3-Tier Comparison in VIP Bottom Sheet */
.vip-compare-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.vip-tier-card {
    border-radius: 14px;
    padding: 14px 16px;
    position: relative;
    border: 1px solid var(--card-border);
}
.vip-tier-card.basic {
    background: #141b26;
    border-color: rgba(255, 255, 255, 0.08);
}
.vip-tier-card.plus {
    background: #121d2b;
    border-color: rgba(56, 189, 248, 0.35);
}
.vip-tier-card.diamond {
    background: #1c1b18;
    border-color: rgba(234, 179, 8, 0.4);
}

.vip-tier-badge {
    font-size: 13px;
    font-weight: 800;
    color: #cbd5e1;
    display: inline-block;
    margin-bottom: 2px;
}
.vip-tier-badge.plus-badge { color: #38bdf8; }
.vip-tier-badge.diamond-badge { color: #eab308; }

.vip-tier-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.vip-tier-price.plus-price { color: #7dd3fc; }
.vip-tier-price.diamond-price { color: #fde047; }

.vip-tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #e2e8f0;
}
.vip-tier-card.basic .vip-tier-features li::before { content: "• "; color: #94a3b8; }
.vip-tier-card.plus .vip-tier-features li::before { content: "• "; color: #38bdf8; font-weight: 700; }
.vip-tier-card.diamond .vip-tier-features li::before { content: "• "; color: #eab308; font-weight: 800; }

.vip-compare-3.compact { gap: 8px; }
.vip-tier-card.compact { padding: 10px 12px; }
.vip-tier-card.compact .vip-tier-features { font-size: 11px; }

.vip-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.vip-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.vip-icon { width: 32px; height: 32px; }
.vf-title { font-size: 13px; font-weight: 700; color: #fff; }
.vf-sub { font-size: 11.5px; color: var(--text-muted); }

.vip-how {
    background: #141b26;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.vip-how h4 { font-size: 14px; font-weight: 800; color: #eab308; margin-bottom: 4px; }
.vip-how-text { font-size: 12px; color: #ccd6e0; margin-bottom: 12px; }
.vip-cta-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    background: #eab308;
    color: #0b0f17;
    cursor: pointer;
}

/* ==============================================
   Admin Panel (Hub Navigation & Section Screens)
   ============================================== */
.admin-wrapper {
    padding: 14px 14px 90px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-view-screen {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.admin-view-screen.active {
    display: flex;
}

/* 1. Admin Hub Main Header Card */
.adm-header-card {
    background: linear-gradient(180deg, #141d2b 0%, #101722 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.adm-badge-tag {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}
.adm-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.adm-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Hub Quick KPI Row */
.adm-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.adm-kpi-item {
    background: rgba(11, 15, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.adm-kpi-item:active {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}
.adm-kpi-num {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 2px;
}
.adm-kpi-lbl {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==========================================================
   Admin Navigation Menu ("Таблетка" / Floating Pill) Styling
   Matches .bottom-nav and .nav-item / .nav-item.active
   ========================================================== */

#viewAdmin .admin-view-screen:not(.active) { display: none !important; }
#viewAdmin .adm-pane:not(.active) { display: none !important; }

/* Sections List (Tiles) in Hub */
.adm-sections-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-section-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 10px 20px 10px 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.adm-section-tile:hover,
.adm-section-tile:active {
    background: rgba(38, 75, 125, 0.55);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: scale(0.985);
}

.adm-tile-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(38, 75, 125, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
    transition: all 0.25s ease;
}

.adm-section-tile:hover .adm-tile-icon,
.adm-section-tile:active .adm-tile-icon {
    transform: scale(1.06);
    filter: drop-shadow(0 0 9px rgba(56, 189, 248, 0.85));
}

.adm-tile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.adm-tile-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.adm-tile-desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-tile-arrow {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.adm-section-tile:hover .adm-tile-arrow,
.adm-section-tile:active .adm-tile-arrow {
    background: rgba(38, 75, 125, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(2px);
}

/* 2. Admin Detail Screens */
.adm-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 0 14px;
}

.adm-return-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 22, 35, 0.9);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    color: #38bdf8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.adm-return-btn svg {
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}

.adm-return-btn:hover {
    background: rgba(38, 75, 125, 0.55);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.adm-return-btn:active {
    transform: scale(0.96);
    background: rgba(38, 75, 125, 0.7);
}

.adm-pane {
    display: none;
    flex-direction: column;
    gap: 12px;
}
.adm-pane.active {
    display: flex;
}
.adm-pane-header {
    margin-bottom: 2px;
}
.adm-pane-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.adm-pane-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Cards in detail pane */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-stat-card {
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.admin-stat-card .num {
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
}
.admin-stat-card .desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-sub-btn {
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.admin-sub-btn:hover {
    background: rgba(38, 75, 125, 0.45);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.admin-sub-btn:active {
    transform: scale(0.97);
}
.admin-sub-btn.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(239, 68, 68, 0.2);
}

/* Dev Mode Bar */
.dev-mode-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 5px;
    margin-top: 6px;
}
.dev-mode-btn {
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.dev-mode-btn.active {
    background: rgba(38, 75, 125, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}
.dev-mode-btn.plus.active {
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}
.dev-mode-btn.diamond.active {
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(234, 179, 8, 0.45);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #eab308;
}

/* Forms & Field Cards */
.adm-field-card {
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.adm-field-card label {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}
.adm-input {
    width: 100%;
    background: rgba(16, 22, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 11px 18px;
    font-size: 13px;
    color: #fff;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.adm-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* iOS-style Switch Rows */
.adm-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.adm-switch-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 12px;
}
.adm-switch-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}
.adm-switch-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.adm-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.adm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.adm-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #243042;
    transition: .25s;
    border-radius: 26px;
}
.adm-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .25s;
    border-radius: 50%;
}
.adm-switch input:checked + .adm-slider {
    background-color: #10b981;
}
.adm-switch input:checked + .adm-slider:before {
    transform: translateX(20px);
}

/* Action Buttons */
.adm-action-btn {
    width: 100%;
    padding: 13px 24px;
    border-radius: 9999px;
    background: rgba(38, 75, 125, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #38bdf8;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    user-select: none;
}
.adm-action-btn:hover {
    background: rgba(38, 75, 125, 0.8);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.adm-action-btn:active {
    transform: scale(0.97);
}
.adm-action-btn.emerald {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.adm-action-btn.emerald:hover {
    background: rgba(16, 185, 129, 0.38);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.38);
}
.adm-action-btn.gold {
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #eab308;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(234, 179, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.adm-action-btn.gold:hover {
    background: rgba(234, 179, 8, 0.35);
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.38);
}

/* Users List & Search */
.admin-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-input {
    flex: 1;
    background: rgba(16, 22, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 11px 18px;
    font-size: 13px;
    color: #fff;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s;
}
.admin-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
}
.admin-btn-action {
    background: rgba(38, 75, 125, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.admin-btn-action:active {
    transform: scale(0.97);
}

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}
.admin-user-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 11px 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}
.admin-user-card-item:hover,
.admin-user-card-item:active {
    background: rgba(38, 75, 125, 0.35);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.985);
}
.admin-user-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}
.admin-user-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}
.admin-user-badges {
    display: flex;
    align-items: center;
    gap: 5px;
}
.adm-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.adm-badge.reg { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.adm-badge.dep { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.adm-badge.plat { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.admin-page-btn {
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(16, 22, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-page-btn:hover:not(:disabled) {
    background: rgba(38, 75, 125, 0.45);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.admin-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Broadcast */
.admin-bcast-segments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.admin-seg-btn {
    padding: 11px 16px;
    border-radius: 9999px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-seg-btn:hover {
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.admin-seg-btn.active {
    background: rgba(38, 75, 125, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-weight: 700;
}
.admin-textarea {
    width: 100%;
    background: rgba(16, 22, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s;
}
.admin-textarea:focus {
    border-color: rgba(56, 189, 248, 0.5);
}

/* In-App Confirm & Alert Dialogs (Cyber Glass Style) */
.app-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(4, 7, 14, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0;
    transition: opacity 0.22s ease !important;
}
.app-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}
.app-dialog-card {
    width: 100% !important;
    max-width: 350px !important;
    background: rgba(16, 22, 35, 0.95) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    padding: 24px 20px 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transform: scale(0.92) !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
}
.app-modal-overlay.active .app-dialog-card {
    transform: scale(1) !important;
}
.app-dialog-icon-wrap {
    width: 54px !important;
    height: 54px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
    background: rgba(38, 75, 125, 0.45) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
    font-size: 26px !important;
    flex-shrink: 0 !important;
}
.app-dialog-icon-wrap.danger {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.32) !important;
}
.app-dialog-icon-wrap.success {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.32) !important;
}
.app-dialog-icon-wrap.warning {
    background: rgba(234, 179, 8, 0.18) !important;
    border-color: rgba(234, 179, 8, 0.45) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.32) !important;
}
.app-dialog-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}
.app-dialog-message {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
    margin-bottom: 22px !important;
    word-break: break-word !important;
    white-space: pre-line !important;
}
.app-dialog-actions {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
}
.app-dialog-btn {
    flex: 1 !important;
    padding: 12px 16px !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    border: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.app-dialog-btn:active {
    transform: scale(0.96) !important;
}
.app-dialog-btn.cancel {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
}
.app-dialog-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}
.app-dialog-btn.confirm {
    background: rgba(38, 75, 125, 0.7) !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.app-dialog-btn.confirm:hover {
    background: rgba(38, 75, 125, 0.9) !important;
    border-color: rgba(56, 189, 248, 0.7) !important;
}
.app-dialog-btn.confirm.danger {
    background: rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.55) !important;
    color: #f87171 !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.app-dialog-btn.confirm.danger:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    border-color: rgba(239, 68, 68, 0.75) !important;
}
.app-dialog-btn.confirm.success {
    background: rgba(16, 185, 129, 0.25) !important;
    border: 1px solid rgba(16, 185, 129, 0.55) !important;
    color: #10b981 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ============================================== */
/* ADMIN USER MODAL BUTTONS (CYBER PILL DESIGN)   */
/* ============================================== */
.admin-modal-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 4px;
}
.admin-modal-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(38, 75, 125, 0.45);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.admin-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-modal-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.admin-modal-user-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-modal-user-tgid {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle buttons grid */
.admin-access-toggles {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 6px !important;
}

/* Toggle button card */
.admin-toggle-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    cursor: pointer !important;
    background: rgba(16, 22, 35, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-align: left !important;
}
.admin-toggle-btn:active {
    transform: scale(0.97) !important;
}

/* Off state */
.admin-toggle-btn.is-off {
    background: rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}
.admin-toggle-btn.is-off:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* On state */
.admin-toggle-btn.is-on {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.admin-toggle-btn.is-on:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
}

.admin-toggle-icon {
    font-size: 20px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.admin-toggle-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    overflow: hidden !important;
}

.admin-toggle-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

.admin-toggle-status {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}
.admin-toggle-status.status-green {
    color: #10b981 !important;
}
.admin-toggle-status.status-red {
    color: #ef4444 !important;
}

/* Tier container */
.admin-tier-container {
    margin-top: 10px !important;
}

/* Tier buttons grid */
.admin-tier-selector {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-top: 6px !important;
}

/* Tier button */
.admin-tier-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 10px 4px !important;
    border-radius: 14px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    cursor: pointer !important;
    background: rgba(16, 22, 35, 0.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-align: center !important;
}
.admin-tier-btn:active {
    transform: scale(0.96) !important;
}

.admin-tier-icon {
    font-size: 18px !important;
    line-height: 1.1 !important;
}

.admin-tier-name {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
}

.admin-tier-desc {
    font-size: 9.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

/* Tier: Active states */
.admin-tier-btn.guest.active {
    background: rgba(148, 163, 184, 0.15) !important;
    border-color: rgba(148, 163, 184, 0.55) !important;
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.2) !important;
}
.admin-tier-btn.guest.active .admin-tier-name {
    color: #ffffff !important;
}
.admin-tier-btn.guest.active .admin-tier-desc {
    color: #cbd5e1 !important;
}

.admin-tier-btn.base.active {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.3) !important;
}
.admin-tier-btn.base.active .admin-tier-name {
    color: #10b981 !important;
}
.admin-tier-btn.base.active .admin-tier-desc {
    color: #6ee7b7 !important;
}

.admin-tier-btn.plus.active {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35) !important;
}
.admin-tier-btn.plus.active .admin-tier-name {
    color: #38bdf8 !important;
}
.admin-tier-btn.plus.active .admin-tier-desc {
    color: #7dd3fc !important;
}

.admin-tier-btn.diamond.active {
    background: rgba(234, 179, 8, 0.16) !important;
    border-color: #eab308 !important;
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.35) !important;
}
.admin-tier-btn.diamond.active .admin-tier-name {
    color: #facc15 !important;
}
.admin-tier-btn.diamond.active .admin-tier-desc {
    color: #fde047 !important;
}

/* Delete user button */
.admin-delete-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 18px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    cursor: pointer !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
}
.admin-delete-btn:active {
    transform: scale(0.97) !important;
}

/* Admin badges */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
}
.adm-badge.reg {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.adm-badge.dep {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.adm-badge.plus {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}
.adm-badge.platinum {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
    color: #facc15;
}
.adm-badge.base {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* =========================
   Admin User Card Screen
========================= */
.admin-user-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.admin-modal-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.admin-modal-avatar-wrap {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: #1e293b;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.admin-modal-avatar-fallback {
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
}
.admin-modal-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.admin-modal-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.admin-modal-user-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-modal-user-tgid {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==============================================
   1. Live Market Ticker Tape
   ============================================== */
.market-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(14, 20, 32, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 7px 0;
    margin-bottom: 14px;
    position: relative;
    user-select: none;
    border-radius: 12px;
}
.market-ticker-wrap::before,
.market-ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 2;
    pointer-events: none;
}
.market-ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, rgba(14, 20, 32, 0.95) 0%, transparent 100%);
}
.market-ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, rgba(14, 20, 32, 0.95) 0%, transparent 100%);
}
.market-ticker-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: tickerScroll 34s linear infinite;
}
.market-ticker-track:hover {
    animation-play-state: paused;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease;
}
.ticker-pill .pair {
    color: #fff;
    font-weight: 700;
}
.ticker-pill .price {
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
}
.ticker-pill .change {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}
.ticker-pill .change.up {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
}
.ticker-pill .change.down {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

/* ==============================================
   2. Hot Picks Row (Быстрые активы)
   ============================================== */
.hot-picks-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
}
.hot-picks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}
.hot-picks-tag {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}
.hot-picks-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.hot-picks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}
.hot-pick-chip {
    background: rgba(16, 22, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 9px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-align: left;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hot-pick-chip:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}
.hot-pick-chip:active {
    transform: scale(0.97);
}
.hot-pick-chip.active {
    background: linear-gradient(135deg, rgba(38, 75, 125, 0.5) 0%, rgba(16, 22, 35, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.chip-icon {
    font-size: 16px;
    line-height: 1;
}
.chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.chip-pair {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chip-rate {
    font-size: 9.5px;
    font-weight: 800;
    color: #34d399;
}

/* ==============================================
   3. Referral Invite Banner on Signals Screen
   ============================================== */
.ref-invite-banner {
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(20, 29, 46, 0.92) 0%, rgba(14, 20, 32, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.ref-invite-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.ref-invite-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ref-invite-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ref-invite-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ref-invite-tier-boost {
    font-size: 10.5px;
    font-weight: 800;
    color: #facc15;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
}
.ref-invite-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.ref-invite-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}
.ref-invite-desc b {
    color: #fff;
}
.ref-invite-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.ref-action-btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
    border: none;
    outline: none;
}
.ref-action-btn.primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    flex: 1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.ref-action-btn.primary:active { transform: scale(0.97); }
.ref-action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ref-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==============================================
   4. Recent Community Wins (Живая лента сигналов)
   ============================================== */
.community-wins-card {
    width: 100%;
    margin-top: 14px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}
.com-wins-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.com-wins-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.com-wins-icon { font-size: 16px; }
.com-wins-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}
.com-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 7px;
    border-radius: 9999px;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.com-wins-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.com-win-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}
.win-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.win-dir-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
}
.win-dir-tag.buy {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.win-dir-tag.sell {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.win-pair-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.win-pair-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.win-tf {
    font-size: 10px;
    color: var(--text-muted);
}
.win-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.win-profit {
    font-size: 12px;
    font-weight: 800;
    color: #34d399;
}
.win-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==============================================
   5. Today's Performance Stats (Плашка внизу)
   ============================================== */
.today-stats-card {
    width: 100%;
    margin-top: 14px;
    background: rgba(16, 22, 35, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}
.today-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.today-stats-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.today-stats-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #38bdf8;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}
.today-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.today-kpi-item {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.today-kpi-item .kpi-num {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}
.today-kpi-item.winrate .kpi-num {
    color: #34d399;
}
.today-kpi-item .kpi-num.highlight {
    color: #38bdf8;
    font-size: 14px;
}
.today-kpi-item .kpi-lbl {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* ==============================================
   6. SVG UI Iconography System (Fintech Cyber Vectors)
   ============================================== */
.ui-svg-icon {
    display: inline-block;
    vertical-align: -2.5px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease, stroke 0.2s ease;
}
.ui-svg-icon.fill-curr {
    fill: currentColor;
    stroke: none;
}
.ui-svg-icon.sm { width: 13px; height: 13px; vertical-align: -1.5px; }
.ui-svg-icon.md { width: 16px; height: 16px; vertical-align: -2.5px; }
.ui-svg-icon.lg { width: 22px; height: 22px; vertical-align: -3px; }
.ui-svg-icon.xl { width: 28px; height: 28px; vertical-align: -4px; }

.ui-svg-icon.gold { color: #facc15; stroke: #facc15; }
.ui-svg-icon.cyan { color: #38bdf8; stroke: #38bdf8; }
.ui-svg-icon.emerald { color: #10b981; stroke: #10b981; }
.ui-svg-icon.rose { color: #f43f5e; stroke: #f43f5e; }
.ui-svg-icon.muted { color: #64748b; stroke: #64748b; }
.ui-svg-icon.white { color: #ffffff; stroke: #ffffff; }

/* Status dot indicator (replaces unicode circle) */
.ui-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    vertical-align: 1px;
    margin-right: 6px;
}
.ui-status-dot.active {
    background: #10b981;
    color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.ui-status-dot.gold {
    background: #facc15;
    color: #facc15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}
.ui-status-dot.cyan {
    background: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.ui-status-dot.muted {
    background: #64748b;
    color: #64748b;
    box-shadow: none;
}

/* Link items with icon alignment */
.prof-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.prof-link-arrow {
    font-size: 18px;
    color: #64748b;
    line-height: 1;
}

/* Money management badge alignment */
.mm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mm-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.mm-hint .ui-svg-icon {
    margin-top: 2px;
}

/* Warning & Dialog icons */
.gate-banner-ico-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.app-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================
   Referral Program & Dedicated Screen Styles
   ============================================== */
.profile-view-screen {
    display: none;
    width: 100%;
}
.profile-view-screen.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-referral-entry-btn {
    background: linear-gradient(135deg, rgba(38, 75, 125, 0.45) 0%, rgba(16, 22, 35, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.22s ease;
    user-select: none;
    margin-top: 10px;
}
.profile-referral-entry-btn:hover {
    background: linear-gradient(135deg, rgba(38, 75, 125, 0.65) 0%, rgba(20, 29, 46, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
}
.profile-referral-entry-btn:active {
    transform: scale(0.98);
}
.ref-entry-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ref-entry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-entry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ref-entry-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.ref-entry-sub {
    font-size: 11px;
    color: #38bdf8;
    font-weight: 600;
}
.ref-entry-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ref-entry-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: #facc15;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
}
.ref-entry-arrow .arrow-ico {
    font-size: 18px;
    color: #64748b;
    line-height: 1;
}

/* Referral Invite Banner on Signals Screen */
.ref-invite-banner {
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(20, 29, 46, 0.92) 0%, rgba(14, 20, 32, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.ref-invite-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.ref-invite-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ref-invite-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ref-invite-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ref-invite-tier-boost {
    font-size: 10.5px;
    font-weight: 800;
    color: #facc15;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ref-invite-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.ref-invite-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}
.ref-invite-desc b {
    color: #fff;
}
.ref-invite-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.ref-action-btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}
.ref-action-btn.primary {
    flex: 1;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.ref-action-btn.primary:active {
    transform: scale(0.98);
}
.ref-action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
.ref-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.ref-action-btn .btn-arrow {
    font-size: 14px;
    line-height: 1;
}

/* Dedicated Referral Full Screen */
.profile-referral-screen-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.ref-hero-card {
    background: linear-gradient(135deg, rgba(20, 29, 46, 0.95) 0%, rgba(14, 20, 32, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ref-hero-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ref-hero-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.ref-hero-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
}
.ref-hero-desc b { color: #fff; }

.ref-target-card {
    background: rgba(16, 22, 35, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ref-target-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ref-target-tag {
    font-size: 11px;
    font-weight: 800;
    color: #facc15;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ref-target-tier-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #38bdf8;
}
.ref-target-desc {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 600;
}
.ref-target-desc b {
    color: #10b981;
    font-weight: 800;
    font-size: 15px;
}
.ref-prog-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin: 4px 0 2px;
}
.ref-prog-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}
.ref-prog-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.ref-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ref-roadmap-card, .ref-benefits-card, .ref-share-card, .ref-stats-summary-card {
    background: rgba(16, 22, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ref-roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.roadmap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 8px 10px;
}
.roadmap-item.current {
    border-color: rgba(255, 255, 255, 0.15);
}
.roadmap-item.gold {
    border-color: rgba(234, 179, 8, 0.25);
    background: rgba(234, 179, 8, 0.04);
}
.roadmap-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}
.roadmap-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.roadmap-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.roadmap-sub {
    font-size: 10.5px;
    color: var(--text-muted);
}
.roadmap-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
}
.roadmap-status.goal {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.roadmap-status.gold {
    color: #facc15;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.ref-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ref-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 12px;
}
.ref-benefit-item .benefit-ico {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ref-benefit-item .benefit-ico svg {
    display: block;
    width: 22px;
    height: 22px;
}
.ref-benefit-item .benefit-ico.emerald {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #10b981;
}
.ref-benefit-item .benefit-ico.cyan {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #38bdf8;
}
.ref-benefit-item .benefit-ico.gold {
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #facc15;
}
.ref-benefit-item .benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ref-benefit-item .benefit-text b {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.ref-benefit-item .benefit-text span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

.prof-ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.prof-ref-stat-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}
.prof-ref-stat-box.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}
.prof-ref-stat-box .num {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.prof-ref-stat-box.highlight .num {
    color: #34d399;
}
.prof-ref-stat-box .lbl {
    font-size: 10px;
    color: var(--text-muted);
}

.prof-ref-link-box {
    display: flex;
    gap: 6px;
    align-items: center;
}
.prof-ref-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    outline: none;
}
.prof-ref-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 9px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.prof-ref-copy-btn:active { transform: scale(0.96); }
.prof-ref-copy-btn.copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}
.prof-ref-share-btn {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}
.prof-ref-share-btn:active { transform: scale(0.98); }

/* ==============================================
   Guide & Strategy Screen Styles
   ============================================== */
.guide-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}
.ui-svg-icon.purple {
    color: #c084fc;
}
.roadmap-status.purple {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.3);
}



