/* ===== DealPro Service — Premium Design System ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0d12;
    --bg2: #10141c;
    --card: #151b27;
    --card-h: #1a2233;
    --card-border: rgba(255,255,255,.05);
    --input-bg: #0f1319;
    --text: #edf0f5;
    --sub: #8b95a5;
    --muted: #5c6575;
    --blue: #3b82f6;
    --blue-h: #2563eb;
    --blue-soft: rgba(59,130,246,.08);
    --blue-glow: rgba(59,130,246,.15);
    --green: #22c55e;
    --green-soft: rgba(34,197,94,.08);
    --red: #ef4444;
    --red-soft: rgba(239,68,68,.08);
    --yellow: #f59e0b;
    --yellow-soft: rgba(245,158,11,.08);
    --purple: #8b5cf6;
    --purple-soft: rgba(139,92,246,.08);
    --border: rgba(255,255,255,.04);
    --border2: rgba(255,255,255,.08);
    --r: 16px;
    --r-sm: 12px;
    --r-xs: 8px;
    --nav-h: 64px;
    --glass: rgba(16,20,28,.85);
}

/* ===== BODY & BACKGROUND ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    font-size: 15px;
    position: relative;
}
/* Subtle ambient gradient behind content */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: 60px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--blue); text-decoration: none; }

/* ===== ICONS ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}
.icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== LOADING ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loader-container { text-align: center; }
.loader-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(59,130,246,.2);
}
.loader-logo .icon, .loader-logo svg { width: 28px; height: 28px; color: #fff; }
.loader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 14px;
}
.loader-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--sub);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.loader-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.hidden { display: none !important; }

/* ===== PAGE LAYOUT ===== */
.page {
    padding: 16px 16px calc(var(--nav-h) + 48px);
    max-width: 480px;
    margin: 0 auto;
    animation: pageIn .35s ease;
    position: relative;
    z-index: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 4px 0;
}
.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}
.back-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--card);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sub);
    transition: all .2s;
    flex-shrink: 0;
}
.back-btn:active { background: var(--card-h); transform: scale(.92); }

/* ===== HERO BANNER ===== */
.hero {
    background: linear-gradient(145deg, #141e32 0%, #111827 50%, #0c1220 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 32px 20px 28px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(139,92,246,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
    border: 1px solid rgba(59,130,246,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: glowPulse 3s ease-in-out infinite;
}
.hero-icon .icon { width: 24px; height: 24px; color: var(--blue); }
/* decorative dots */
.hero-dots {
    position: absolute;
    top: 12px; right: 16px;
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 6px;
    opacity: .15;
}
.hero-dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--blue);
}
.hero-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 2px;
    position: relative;
}
.hero-subtitle {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.5;
    position: relative;
}
.hero-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    margin: 12px auto 0;
    border-radius: 1px;
    position: relative;
}

/* ===== STAT GRID ===== */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 16px 14px;
    text-align: center;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    opacity: .6;
}
/* color coded top bars */
.stat-card:nth-child(1)::before { background: var(--blue); }
.stat-card:nth-child(2)::before { background: var(--green); }
.stat-card:nth-child(3)::before { background: var(--purple); }
.stat-card:nth-child(4)::before { background: var(--yellow); }
.stat-card:active { transform: scale(.96); }
.stat-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: var(--blue-soft);
}
.stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon.purple { color: var(--purple); background: var(--purple-soft); }
.stat-icon.yellow { color: var(--yellow); background: var(--yellow-soft); }
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.stat-label {
    font-size: 11px;
    color: var(--sub);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 500;
}

/* ===== SECTION ===== */
.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-label .icon { width: 14px; height: 14px; }
.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* ===== MENU LIST ===== */
.menu-list {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r);
    overflow: hidden;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active {
    background: var(--card-h);
    transform: scale(.985);
}
.menu-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
    background: var(--blue-soft);
    transition: transform .2s;
}
.menu-item:active .menu-icon { transform: scale(.9); }
.menu-icon.green { color: var(--green); background: var(--green-soft); }
.menu-icon.red { color: var(--red); background: var(--red-soft); }
.menu-icon.purple { color: var(--purple); background: var(--purple-soft); }
.menu-icon.yellow { color: var(--yellow); background: var(--yellow-soft); }
.menu-body { flex: 1; min-width: 0; }
.menu-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.menu-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.menu-arrow {
    color: var(--muted);
    flex-shrink: 0;
    opacity: .5;
}
.menu-badge {
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--blue);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity .25s;
}
.card:active {
    background: var(--card-h);
    transform: scale(.985);
}
.card:active::before { opacity: 1; }
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.card-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.card-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.card-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 4px;
}
.card-row .icon { width: 14px; height: 14px; }

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .2px;
}
.status-badge .icon { width: 13px; height: 13px; }
.badge-pending { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(245,158,11,.15); }
.badge-waiting { color: var(--purple); background: var(--purple-soft); border: 1px solid rgba(139,92,246,.15); }
.badge-progress { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(59,130,246,.15); }
.badge-confirm { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(245,158,11,.15); }
.badge-completed { color: var(--green); background: var(--green-soft); border: 1px solid rgba(34,197,94,.15); }
.badge-cancelled { color: var(--red); background: var(--red-soft); border: 1px solid rgba(239,68,68,.15); }

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sub);
    margin-bottom: 8px;
    padding-left: 2px;
}
.form-label .icon { width: 15px; height: 15px; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all .25s;
    -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow), 0 0 12px rgba(59,130,246,.06);
    background: rgba(15,19,25,.95);
}
.form-input::placeholder, .form-textarea::placeholder {
    color: var(--muted);
}
.form-select { cursor: pointer; }
.form-textarea {
    min-height: 100px;
    resize: vertical;
}
.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== ROLE SELECTOR ===== */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.role-option {
    background: var(--input-bg);
    border: 2px solid var(--border2);
    border-radius: var(--r-sm);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
}
.role-option.active {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 3px var(--blue-glow);
}
.role-option .icon { width: 28px; height: 28px; color: var(--sub); margin-bottom: 6px; }
.role-option.active .icon { color: var(--blue); }
.role-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(59,130,246,.2); }
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,197,94,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-success:active { transform: scale(.97); }
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239,68,68,.25);
}
.btn-danger:active { transform: scale(.97); }
.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(59,130,246,.3);
}
.btn-outline:active { background: var(--blue-soft); }
.btn-ghost {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border2);
}
.btn-ghost:active { background: var(--card-h); }
.btn-sm {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: var(--r-xs);
}
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.btn-group .btn { flex: 1; }
.btn:disabled {
    opacity: .4;
    pointer-events: none;
}

/* ===== COPY FIELD ===== */
.copy-field {
    display: flex;
    gap: 8px;
    align-items: center;
}
.copy-field .form-input {
    flex: 1;
    font-size: 13px;
    color: var(--sub);
}
.copy-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--r-sm);
    background: var(--card);
    border: 1px solid var(--border2);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .2s;
}
.copy-btn:active { background: var(--blue-soft); transform: scale(.92); }

/* ===== PROFILE HEADER ===== */
.profile-header {
    text-align: center;
    padding: 28px 0 20px;
    margin-bottom: 16px;
    position: relative;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(59,130,246,.06) 0%, transparent 70%);
    pointer-events: none;
}
.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,.2);
    position: relative;
    border: 2px solid rgba(59,130,246,.2);
}
.profile-avatar-img {
    display: block;
    margin: 0 auto 12px;
    border: 2px solid rgba(59,130,246,.25);
    box-shadow: 0 4px 20px rgba(59,130,246,.2);
}
.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.profile-username {
    font-size: 14px;
    color: var(--sub);
}
.profile-badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .2px;
}
.profile-badge .icon { width: 13px; height: 13px; }
.badge-garant { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(59,130,246,.15); }
.badge-admin { color: var(--purple); background: var(--purple-soft); border: 1px solid rgba(139,92,246,.15); }

/* ===== INFO ROWS ===== */
.info-block {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
}
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    font-size: 13px;
    color: var(--sub);
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-label .icon { width: 16px; height: 16px; }
.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* ===== PARTICIPANT CARD ===== */
.participant {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .2s;
}
.participant:active { background: var(--card-h); transform: scale(.985); }
.participant-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.participant-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
    border: 1px solid rgba(59,130,246,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.participant-info { flex: 1; }
.participant-name { font-size: 14px; font-weight: 600; }
.participant-role { font-size: 12px; color: var(--muted); margin-top: 1px; }
.participant-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--sub);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.participant-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.participant-stats .icon { width: 13px; height: 13px; }

/* ===== REVIEWS ===== */
.review-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}
.review-card:has(.review-positive)::before { background: var(--green); }
.review-card:has(.review-negative)::before { background: var(--red); }
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.review-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.review-type .icon { width: 14px; height: 14px; }
.review-positive { color: var(--green); background: var(--green-soft); }
.review-negative { color: var(--red); background: var(--red-soft); }
.review-text {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.5;
    padding-left: 8px;
}
.review-date {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
}
.review-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.review-option {
    padding: 18px;
    border-radius: var(--r-sm);
    border: 2px solid var(--border2);
    background: var(--input-bg);
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    font-weight: 500;
}
.review-option .icon { width: 32px; height: 32px; margin-bottom: 6px; }
.review-option.positive.active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.1);
}
.review-option.negative.active {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 52px 20px;
}
.empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--card), var(--card-h));
    border: 1px solid var(--border2);
    border-radius: 50%;
    animation: floatBounce 3s ease-in-out infinite;
}
.empty-icon .icon { width: 28px; height: 28px; }
.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.empty-hint {
    font-size: 13px;
    color: var(--muted);
    max-width: 240px;
    margin: 0 auto;
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    animation: toastIn .35s cubic-bezier(.32,.72,0,1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast .icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--green); }
.toast-success .icon { color: var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-error .icon { color: var(--red); }
.toast-hide { animation: toastOut .3s ease forwards; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn .2s ease;
}
.modal {
    background: var(--bg2);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 20px;
    animation: slideUp .35s cubic-bezier(.32,.72,0,1);
    border-top: 1px solid var(--border2);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border2);
    color: var(--sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}
.modal-close:active { transform: scale(.9); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-reglament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--sub);
    letter-spacing: 0.4px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}
.nav-reglament:active { color: var(--blue); }
.nav-reglament .icon { width: 12px; height: 12px; }
.nav-icons-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: var(--nav-h);
    width: 100%;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--r-xs);
    transition: all .25s;
    color: var(--muted);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.nav-item .icon { width: 22px; height: 22px; transition: transform .2s; }
.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
}
.nav-item.active {
    color: var(--blue);
}
.nav-item.active .icon { transform: scale(1.1); }
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 8px rgba(59,130,246,.4);
}

/* Unread badge */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
    z-index: 10;
    animation: badgeAppear .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badgeAppear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.nav-badge-pulse {
    animation: badgePulse .5s ease;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* ===== CHAT MESSAGES ===== */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
}
.chat-msg {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}
.chat-msg.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.08));
    border-color: rgba(59,130,246,.15);
}
.chat-msg.admin-msg {
    align-self: flex-start;
}
.chat-msg-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 3px;
    letter-spacing: .2px;
}
.chat-msg-time {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    text-align: right;
}
.chat-reply {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.chat-reply .form-input { flex: 1; }
.chat-reply .btn { width: auto; flex-shrink: 0; }

/* ===== ADMIN ===== */
.admin-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.admin-stat {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.admin-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}
.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.admin-stat-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ===== LEADERBOARD ===== */
.leader-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 13px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s;
}
.leader-card:active { background: var(--card-h); transform: scale(.985); }
.leader-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--sub);
    border: 1px solid var(--border2);
}
.leader-rank.gold { background: rgba(245,158,11,.12); color: var(--yellow); border-color: rgba(245,158,11,.2); }
.leader-rank.silver { background: rgba(192,192,192,.1); color: #c0c0c0; border-color: rgba(192,192,192,.2); }
.leader-rank.bronze { background: rgba(205,127,50,.1); color: #cd7f32; border-color: rgba(205,127,50,.2); }
.leader-info { flex: 1; min-width: 0; }
.leader-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leader-sub { font-size: 12px; color: var(--muted); }
.leader-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
}

/* ===== REF LEVEL ===== */
.ref-level-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r);
    padding: 28px 20px 24px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.ref-level-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--blue));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
.ref-level-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.ref-level-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.ref-level-bonus {
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
}

/* ===== SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--card-h) 50%, var(--card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s ease infinite;
    border-radius: var(--r-sm);
    height: 16px;
    margin-bottom: 8px;
}

/* ===== DEPOSIT BALANCE ===== */
.balance-card {
    background: linear-gradient(145deg, #141e32 0%, #111827 50%, #0c1220 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.balance-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.balance-card::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.balance-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    position: relative;
}
.balance-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    position: relative;
}
.balance-currency {
    font-size: 16px;
    color: var(--sub);
    font-weight: 400;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    padding: 3px;
    margin-bottom: 16px;
}
.tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-radius: var(--r-xs);
    cursor: pointer;
    transition: all .25s;
}
.tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ===== ANIMATIONS ===== */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toastIn {
    from { transform: translateY(-16px) scale(.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(59,130,246,.15); }
    50% { box-shadow: 0 0 24px rgba(59,130,246,.3); }
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(59,130,246,.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(59,130,246,.3); }
}

/* stagger entrance for children */
.stagger > * {
    animation: staggerIn .4s ease both;
}
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .1s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .2s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .3s; }
.stagger > *:nth-child(7) { animation-delay: .35s; }
.stagger > *:nth-child(8) { animation-delay: .4s; }
@keyframes staggerIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ===== MISC ===== */
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--sub); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.fw-600 { font-weight: 600; }
.fs-13 { font-size: 13px; }
.gap-8 { gap: 8px; }

/* ===== VERIFICATION ===== */
.verif-stats-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.verif-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}
.verif-stats-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.verif-stats-title .icon { width: 18px; height: 18px; color: var(--blue); }
.verif-stats-grid { display: flex; flex-direction: column; gap: 10px; }
.verif-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.verif-stat-row:last-child { border-bottom: none; }
.verif-stat-label { color: var(--sub); }
.verif-stat-value { font-weight: 600; color: var(--text); }

.verif-pending {
    background: rgba(234,179,8,.08);
    border: 1px solid rgba(234,179,8,.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--yellow);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.verif-pending .icon { width: 16px; height: 16px; }

.verif-section {
    margin-bottom: 20px;
}
.verif-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.verif-section-title .icon { width: 18px; height: 18px; color: var(--purple); }
.verif-benefits {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}
.verif-benefit {
    font-size: 13px;
    color: var(--sub);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.verif-benefit-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.verif-benefit-icon .icon { width: 16px; height: 16px; }

/* TIER CARDS */
.verif-tier {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
}
.verif-tier::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}
.verif-tier:nth-child(2)::before { background: linear-gradient(90deg, var(--green), var(--yellow)); }
.verif-tier:nth-child(3)::before { background: linear-gradient(90deg, var(--yellow), var(--purple)); }
.verif-tier-active {
    border-color: var(--green);
    box-shadow: 0 0 20px rgba(34,197,94,.08);
}
.verif-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.verif-tier-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--text);
}
.verif-tier-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34,197,94,.12);
    color: var(--green);
    border: 1px solid rgba(34,197,94,.2);
}
.verif-tier-reqs {
    margin-bottom: 12px;
}
.verif-tier-req {
    font-size: 13px;
    color: var(--sub);
    padding: 4px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.verif-tier-req .icon { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.verif-tier-fee {
    font-size: 13px;
    color: var(--text);
    padding: 10px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 4px;
}
.verif-tier-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.verif-tier-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 0;
}

/* Purchase page */
.verif-purchase-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.verif-purchase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
}
.verif-purchase-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.verif-purchase-title .icon { width: 22px; height: 22px; color: var(--blue); }
.verif-purchase-sub {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 18px;
}
.verif-currency-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}
.verif-currency-option {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: var(--sub);
    background: var(--bg);
}
.verif-currency-option:hover,
.verif-currency-option.active {
    border-color: var(--blue);
    background: rgba(59,130,246,.08);
    color: var(--blue);
    box-shadow: 0 0 12px rgba(59,130,246,.1);
}

/* Verified badge in profile */
.badge-verified {
    background: rgba(34,197,94,.12) !important;
    color: var(--green) !important;
    border: 1px solid rgba(34,197,94,.2);
}

/* outline button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
}
.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-outline .icon { width: 16px; height: 16px; }

.btn-sm { padding: 8px 14px !important; font-size: 12px !important; }
.card-actions { display: flex; gap: 8px; }

/* ===== DEAL CHAT ===== */
.page-chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    padding: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}
.page-chat .page-header { padding: 12px 16px; flex-shrink: 0; }
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: fadeIn .2s ease;
}
.chat-msg-me { align-self: flex-end; align-items: flex-end; }
.chat-msg-other { align-self: flex-start; align-items: flex-start; }
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    padding: 0 6px;
}
.chat-msg-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}
.chat-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--role-color, var(--blue));
    background: color-mix(in srgb, var(--role-color, var(--blue)) 12%, transparent);
    padding: 2px 7px;
    border-radius: 6px;
}
.chat-role-badge .icon { width: 10px; height: 10px; }
.chat-msg-bubble {
    padding: 8px 12px 6px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    display: inline-block;
    position: relative;
}
.chat-msg-me .chat-msg-bubble {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.chat-msg-other .chat-msg-bubble {
    background: var(--card);
    color: var(--text);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.chat-msg-time {
    font-size: 10px;
    opacity: .55;
    margin-left: 8px;
    vertical-align: bottom;
    display: inline;
    white-space: nowrap;
}
.chat-msg-me .chat-msg-time { color: rgba(255,255,255,.6); }
.chat-msg-other .chat-msg-time { color: var(--sub); }
.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-input-bar input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.chat-input-bar input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.chat-send-btn {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(59,130,246,.3);
}
.chat-send-btn:active { transform: scale(.9); }
.chat-send-btn .icon { width: 18px; height: 18px; margin-top: 1px; }
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sub);
    font-size: 15px;
    text-align: center;
    padding: 32px;
    gap: 4px;
}
.chat-empty .icon { width: 40px; height: 40px; opacity: .3; margin-bottom: 8px; }

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.news-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.news-emoji { font-size: 28px; flex-shrink: 0; line-height: 1; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.news-text { font-size: 13px; color: var(--sub); line-height: 1.4; }

/* ===== FORM TEXTAREA ===== */
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.form-textarea:focus { border-color: var(--blue); }
.mb-16 { margin-bottom: 16px; }

/* ===== ONLINE STATUS ===== */
.avatar-with-status { position: relative; display: inline-block; }
.status-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2.5px solid var(--bg);
    box-sizing: border-box;
}
.status-dot-green, .status-dot-sm.status-dot-green { background: #22c55e; }
.status-dot-yellow, .status-dot-sm.status-dot-yellow { background: #f59e0b; }
.status-dot-gray, .status-dot-sm.status-dot-gray { background: #6b7280; }
.status-dot-sm {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.online-text { font-size: 12px; color: #22c55e; margin-top: 2px; }

/* ===== NEWS CARDS UPDATED ===== */
.news-card { cursor: pointer; transition: transform .1s; }
.news-card:active { transform: scale(.98); }
.news-card-img {
    width: 56px; height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.news-arrow { color: var(--sub); flex-shrink: 0; opacity: .5; }
.news-arrow .icon { width: 18px; height: 18px; }
.news-meta { font-size: 11px; color: var(--sub); margin-top: 4px; }

.news-emoji-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}
.news-emoji-icon .icon { width: 24px; height: 24px; }

/* ===== NEWS DETAIL ===== */
.news-detail-img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}
.news-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.news-detail-emoji {\n    font-size: 36px;\n    flex-shrink: 0;\n    width: 52px; height: 52px;\n    background: var(--blue-soft);\n    border-radius: 14px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    color: var(--blue);\n}\n.news-detail-emoji .icon { width: 28px; height: 28px; }
.news-detail-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.news-detail-meta .icon { width: 14px; height: 14px; }
.news-detail-content {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

/* ===== PIN LOCK SCREEN ===== */
.pin-screen {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pin-lock-icon {
    margin-bottom: 28px;
}
.pin-icon-bg {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pin-icon-bg .icon { width: 36px; height: 36px; color: #fff; }
.pin-dots {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    transition: transform .1s;
}
.pin-dot {
    width: 16px; height: 16px;
    border: 2px solid var(--sub);
    border-radius: 50%;
    transition: background .15s, border-color .15s;
}
.pin-dot.filled {
    background: var(--text);
    border-color: var(--text);
}
.pin-label {
    color: var(--sub);
    font-size: 14px;
    text-align: center;
    margin-bottom: 36px;
    white-space: pre-line;
    line-height: 1.5;
}
.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 14px;
    justify-content: center;
}
.pin-key {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.pin-key:active { background: var(--border); }
.pin-key .icon { width: 24px; height: 24px; }
.pin-key-empty { border: none; pointer-events: none; }

.pin-shake {
    animation: pinShake .4s ease;
}
@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ===== PIN SETTINGS ===== */
.pin-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.pin-info-icon .icon { width: 40px; height: 40px; color: var(--blue); }
.pin-info-text {
    font-size: 14px;
    color: var(--sub);
    margin: 12px 0 8px;
    line-height: 1.5;
}
.pin-info-status { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; justify-content: center; }\n.pin-info-status .icon { width: 18px; height: 18px; }
.pin-on { color: #22c55e; }
.pin-off { color: var(--sub); }

/* ===== REGLAMENT LINK ===== */
.reglament-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sub);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.reglament-link:active { background: var(--border); }
.reglament-link .icon { width: 16px; height: 16px; }
