/* Main styles for index.php */

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

/* PC Card Overlay */
.pc-card-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}
.group:hover .pc-card-overlay {
    background-color: rgba(0, 0, 0, 0.85);
}

.pc-detail-status-dot {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    flex: 0 0 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.pc-detail-status-dot:not(.hidden) {
    display: inline-block;
}

.pc-detail-status-dot--free {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16), 0 0 18px rgba(34, 197, 94, 0.72);
}

.pc-detail-status-dot--busy {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16), 0 0 18px rgba(239, 68, 68, 0.72);
}

.pc-detail-status-dot--unknown {
    background: #6b7280;
    box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.14), 0 0 14px rgba(107, 114, 128, 0.55);
}

.pc-detail-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pc-detail-status-badge:not(.hidden) {
    display: inline-flex;
}

.pc-detail-status-badge--free {
    background: rgba(22, 163, 74, 0.9);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.38);
}

.pc-detail-status-badge--busy {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(248, 113, 113, 0.72);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.pc-detail-status-badge--unknown {
    background: rgba(75, 85, 99, 0.9);
    border-color: rgba(156, 163, 175, 0.55);
    box-shadow: 0 0 16px rgba(107, 114, 128, 0.32);
}

::-webkit-scrollbar-track {
    background: #0f0f11;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation Keyframes for Rotating Words - равномерная без пауз */
@keyframes rotateWords {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words {
    animation: rotateWords 12s infinite linear;
}

/* Анимация для H1 - синхронизирована с шапкой */
@keyframes rotateWordsH1 {
    0% {
        transform: translateY(0);
    }
    18% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-100%);
    }
    40% {
        transform: translateY(-100%);
    }
    44% {
        transform: translateY(-200%);
    }
    62% {
        transform: translateY(-200%);
    }
    66% {
        transform: translateY(-300%);
    }
    84% {
        transform: translateY(-300%);
    }
    88% {
        transform: translateY(-400%);
    }
    100% {
        transform: translateY(-400%);
    }
}

.animate-rotate-words-h1 {
    animation: rotateWordsH1 12s infinite linear;
}

/* Крутилка в H1 */
.rotating-container {
    display: inline-block;
    position: relative;
    height: 1em;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-text {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotateWordsH1 12s infinite linear;
}

.rotating-text > span {
    display: flex;
    align-items: center;
    height: 1em;
    white-space: nowrap;
}

/* Hide scrollbar for sidebar but apply custom one if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sidebar: мобильная версия — выезжает под шапкой */
.sidebar-panel {
    position: fixed;
    top: 64px;       /* высота хедера */
    left: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

/* Sidebar: открытое состояние на мобильных (JS toggle) */
.sidebar-panel.sidebar-open {
    transform: translateX(0);
}

/* Sidebar: десктоп — фиксированный с независимой прокруткой */
@media (min-width: 1024px) {
    .sidebar-panel {
        position: fixed;
        top: 64px;       /* высота хедера */
        left: 0;
        bottom: 0;
        height: calc(100vh - 64px);
        transform: none;
        transition: none;
    }

    /* Основной контент — отступ слева на ширину сайдбара */
    .main-content {
        margin-left: 288px;  /* w-72 = 18rem = 288px */
    }
}

/* Neon underline animation for PC names */
.pc-name-link {
    text-decoration: none;
}

#section-pcs-grid.pc-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

#section-pcs-grid.pc-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#section-pcs-grid.pc-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#section-pcs-grid.pc-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pc-name-link .neon-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    transition: width 0.4s ease-out;
}

.pc-name-link:hover .neon-underline {
    width: 100%;
}

.pc-status-note-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.favorite-note-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    color: #22d3ee;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, filter 0.2s ease;
}

.favorite-note-button:hover {
    color: #67e8f9;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}

.favorite-note-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
}

.favorite-note-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-note-bracket {
    flex: 0 0 auto;
}

.favorite-note-tag {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    justify-content: center;
}

.favorite-note-tooltip-portal {
    position: fixed;
    width: max-content;
    max-width: min(280px, 70vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: #07070a;
    color: #f3f4f6;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
    white-space: normal;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 20px rgba(34,211,238,0.16);
    pointer-events: none;
    z-index: 9999;
}

/* Multiselect dropdown - Cyberpunk style */
.custom-multiselect-dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    width: 100%;
    background: #0f0f11;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 
                0 0 10px rgba(168, 85, 247, 0.1);
}

/* Поле поиска в dropdown */
.dropdown-search {
    position: sticky;
    top: 0;
    background: #1a1a1e;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.dropdown-search input {
    width: 100%;
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.dropdown-search input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.dropdown-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Опция в списке */
.custom-multiselect-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-multiselect-option:last-child {
    border-bottom: none;
}

.custom-multiselect-option:hover {
    background: rgba(168, 85, 247, 0.15);
}

/* Кастомный чекбокс */
.custom-multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-multiselect-option input[type="checkbox"]:hover {
    border-color: rgba(168, 85, 247, 0.6);
}

.custom-multiselect-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.custom-multiselect-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* Лейбл опции */
.custom-multiselect-option label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.custom-multiselect-option:hover label {
    color: white;
}

.custom-multiselect-option input[type="checkbox"]:checked + label {
    color: #a855f7;
    font-weight: 500;
}

/* Range input styling - Neon gradient */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    --range-progress: 100%;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 30px rgba(34, 211, 238, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 40px rgba(34, 211, 238, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: linear-gradient(to right,
            #a855f7 0%,
            #22d3ee var(--range-progress),
            #374151 var(--range-progress),
            #374151 100%);
}

/* Firefox */
input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
    background: #374151;
}

input[type=range]::-moz-range-progress {
    background: linear-gradient(to right, #a855f7, #22d3ee);
    height: 4px;
    border-radius: 2px;
}

/* ============================================================
   КНОПКА СПРАВКИ (?) — Неоновый стиль
   ============================================================ */
.help-btn-neon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(34,211,238,0.15));
    border: 1.5px solid rgba(168,85,247,0.6);
    color: #c084fc;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(168,85,247,0.35), 0 0 20px rgba(168,85,247,0.15), inset 0 0 10px rgba(168,85,247,0.05);
}

.help-btn-neon:hover {
    border-color: rgba(168,85,247,1);
    color: #e879f9;
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(34,211,238,0.2));
    box-shadow: 0 0 20px rgba(168,85,247,0.6), 0 0 40px rgba(168,85,247,0.3), inset 0 0 15px rgba(168,85,247,0.1);
    transform: scale(1.1);
}

.help-btn-neon.active {
    border-color: #a855f7;
    color: white;
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(34,211,238,0.3));
    box-shadow: 0 0 25px rgba(168,85,247,0.7), 0 0 50px rgba(168,85,247,0.35);
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.help-btn-neon {
    animation: neonPulse 3s ease-in-out infinite;
}

.help-btn-neon:hover {
    animation: none;
}

/* ============================================================
   ПОПАП СПРАВКИ — Glassmorphism + Cyberpunk
   ============================================================ */
/* Оверлей-обёртка для модального окна справки партнёра */
.help-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 40px 16px;
    animation: helpOverlayFadeIn 0.25s ease-out forwards;
}

/* hidden должен перебивать display:flex у .help-modal-overlay */
.help-modal-overlay.hidden {
    display: none !important;
}

@keyframes helpOverlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Блокируем прокрутку body когда открыта модалка */
body.help-modal-open {
    overflow: hidden;
}

.help-content {
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 32px;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.12), 0 20px 60px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    will-change: transform;
    animation: helpPopupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes helpPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a855f7, #22d3ee, transparent);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.5);
}

/* Заголовок попапа справки */
.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.help-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #e879f9, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.help-icon-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.help-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-close-btn:hover {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
    color: white;
    transform: rotate(90deg);
}

/* Кнопки Бот / Поддержка */
.help-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.help-action-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.help-action-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.help-action-btn-bot .help-action-icon-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(99,102,241,0.15));
    border: 1px solid rgba(168,85,247,0.4);
    color: #c084fc;
    box-shadow: 0 0 15px rgba(168,85,247,0.15);
}

.help-action-btn-bot:hover {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 8px 20px rgba(168,85,247,0.15), inset 0 0 40px rgba(168,85,247,0.05);
}

.help-action-btn-bot:hover .help-action-icon-box {
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(99,102,241,0.3));
    color: white;
    box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

.help-action-btn-support .help-action-icon-box {
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(34,211,238,0.35);
    color: #22d3ee;
    box-shadow: 0 0 15px rgba(34,211,238,0.1);
}

.help-action-btn-support:hover {
    border-color: rgba(34,211,238,0.5);
    box-shadow: 0 8px 20px rgba(34,211,238,0.15), inset 0 0 40px rgba(34,211,238,0.05);
}

.help-action-btn-support:hover .help-action-icon-box {
    background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(6,182,212,0.3));
    color: white;
    box-shadow: 0 0 20px rgba(34,211,238,0.4);
}

.sidebar-beta-btn {
    padding: 12px 12px;
    border-radius: 12px;
}

.sidebar-beta-btn .help-action-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 12px;
}

.sidebar-beta-btn .help-action-btn-text {
    min-width: 0;
}

.sidebar-beta-btn .help-action-btn-label {
    font-size: 10px;
    line-height: 1.1;
    color: rgba(255,255,255,0.52);
}

.sidebar-beta-btn .help-action-btn-name {
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sidebar-beta-btn .help-action-btn-arrow {
    flex-shrink: 0;
    margin-left: 8px;
}

.help-action-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-grow: 1;
}

.help-action-btn-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.help-action-btn-name {
    font-size: 15px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.help-action-btn-arrow {
    color: rgba(255,255,255,0.3);
}
.help-action-btn:hover .help-action-btn-arrow {
    color: white;
}

/* FAQ плитки (Аккордеон) */
.help-faq-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-tile {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.help-tile:hover {
    border-color: rgba(168,85,247,0.3);
    background: rgba(255,255,255,0.04);
}

.help-tile details {
    margin: 0;
}

/* Скрываем стандартный маркер детали */
.help-tile summary::-webkit-details-marker,
.help-tile summary::marker {
    display: none;
    content: ""; /* Для Safari и новых Chrome */
}

.help-tile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none; /* Убираем маркер для большинства браузеров */
    user-select: none;
    transition: background 0.3s ease;
}

.help-tile details[open] summary {
    background: rgba(168,85,247,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.help-tile summary:hover {
    background: rgba(168,85,247,0.08);
}

.help-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.help-tile summary:hover .help-tile-icon,
.help-tile details[open] .help-tile-icon {
    background: linear-gradient(135deg, rgba(168,85,247,0.4), rgba(34,211,238,0.2));
    color: white;
    box-shadow: 0 0 10px rgba(168,85,247,0.4);
}

.help-tile summary h2 {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0;
    transition: color 0.3s ease;
}

.help-tile details[open] summary h2 {
    color: #e879f9;
}

.help-tile-chevron {
    color: rgba(255,255,255,0.4);
}

.help-tile details[open] summary .help-tile-chevron {
    transform: rotate(180deg);
    color: white;
}

/* Плавное открытие (работает только в некоторых браузех, но помогает) */
.help-tile-content {
    padding: 20px;
    animation: slideDown 0.3s ease-out forwards;
    transform-origin: top;
}

@keyframes slideDown {
    from { opacity: 0; transform: scaleY(0.95); }
    to { opacity: 1; transform: scaleY(1); }
}

.help-tile-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-tile-content p:last-child {
    margin-bottom: 0;
}

.help-tile-content [data-lucide] {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    margin: 0 0.12em;
    vertical-align: -0.16em;
    stroke-width: 2.5;
}

.help-tile-content [data-lucide="save"],
.help-tile-content [data-lucide="bell"] {
    color: #c084fc;
}

.help-tile-content [data-lucide="heart"] {
    color: #f87171;
}

.help-tile-content [data-lucide="tag"] {
    color: #22d3ee;
}

/* Списки с фичами */
.help-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.help-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.help-features-list li i {
    margin-top: 2px;
}

/* Alert Box inside Help */
.help-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(234, 179, 8, 0.05); /* yellow-500/5 */
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 16px;
    border-radius: 12px;
}

/* Ссылки внутри справки */
.help-link {
    color: #c084fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(192, 132, 252, 0.4);
}

.help-link:hover {
    color: #22d3ee;
    border-bottom-color: rgba(34, 211, 238, 0.8);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

@media (max-width: 640px) {
    .help-action-buttons {
        grid-template-columns: 1fr;
    }
    .help-content {
        padding: 24px 16px;
    }
}

/* ============================================================
   ИНФОРМАЦИОННЫЙ БЛОК НА ПАНЕЛИ ФИЛЬТРОВ
   ============================================================ */
.sidebar-info-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.sidebar-info-block:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-info-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(to right, #9333ea, #4f46e5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.sidebar-info-link:hover {
    background: linear-gradient(to right, #a855f7, #6366f1);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(255,255,255,0.1);
}

/* ============================================================
   КНОПКИ РАЗРЕШЕНИЯ (FHD / 2K / 4K)
   ============================================================ */
.resolution-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.resolution-btn:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.resolution-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.15));
    border-color: rgba(168, 85, 247, 0.8);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(168, 85, 247, 0.15);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* Стилизация select для фильтров города/провайдера */
#computers-filters select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ============================================================
   ЛОГОТИП (Свечение при наведении)
   ============================================================ */
.logo-text {
    transition: filter 0.3s ease;
}

.logo-text:hover {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

/* ============================================================
   НЕОНОВЫЕ ВКЛАДКИ (Главные и Сортировка)
   ============================================================ */
.tab-neon {
    transition: all 0.3s ease;
}

/* Неактивное состояние */
.tab-neon:not(.active) {
    background-color: transparent;
    color: #9ca3af; /* text-gray-400 */
}

/* Hover для обеих вкладок */
.tab-neon:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* Активное состояние */
.tab-neon.active {
    background: linear-gradient(to right, #9333ea, #4f46e5); /* purple-600 to indigo-600 */
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* При наведении на активную вкладку свечение должно усиливаться */
.tab-neon.active:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* ============================================================
   НЕОНОВЫЕ КНОПКИ ДЕЙСТВИЙ (Войти, Играть, Перейти)
   ============================================================ */
.btn-neon-primary {
    background: linear-gradient(to right, #9333ea, #4f46e5); /* purple-600 to indigo-600 */
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-primary:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
}

.btn-neon-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.btn-neon-cyan {
    background: linear-gradient(to right, #06b6d4, #14b8a6); /* cyan-500 to teal-500 */
    color: white;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-cyan:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
}

.btn-neon-cyan:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* Белая кнопка с неоновым свечением */
.btn-neon-white {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.btn-neon-white:hover {
    background: #ffffff; /* pure white */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.btn-neon-white:active {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Неоновые теги (Жанры) */
.tag-neon {
    background: rgba(168, 85, 247, 0.05); /* very subtle purple */
    color: #e5e7eb; /* gray-200 */
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
}

.tag-neon:hover {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Второстепенная кнопка (Отмена и др.) */
.btn-neon-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-neon-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-neon-secondary:active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.steam-mode-toggle {
    height: 36px;
    transition: box-shadow 0.3s ease;
}

.steam-guard-help-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* ============================================================
   GLOBAL PRELOADER 
   ============================================================ */
#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #0f0f11;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#global-loader.hidden-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-circles {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.loader-circle-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-top: 4px solid #22d3ee;
    border-bottom: 4px solid #22d3ee;
    border-radius: 50%;
    animation: spinLoader 2s linear infinite;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.loader-circle-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border-left: 4px solid #a855f7;
    border-right: 4px solid #a855f7;
    border-radius: 50%;
    animation: spinLoaderReverse 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.loader-icon {
    width: 40px;
    height: 40px;
    color: white;
    animation: pulseLoader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-text-container {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulseLoader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-bar-bg {
    margin-top: 16px;
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(to right, #a855f7, #22d3ee);
    border-radius: 4px;
    box-shadow: 0 0 10px #a855f7;
    animation: pulseBar 1.5s ease-in-out infinite alternate;
}

.loader-subtitle {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes spinLoader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinLoaderReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulseLoader {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes pulseBar {
    0% { width: 10%; left: 0; }
    100% { width: 40%; left: 60%; }
}

@media (max-width: 640px) {
    .loader-circles {
        width: 90px;
        height: 90px;
    }
    .loader-icon {
        width: 30px;
        height: 30px;
    }
    .loader-title {
        font-size: 18px;
    }
    .loader-bar-bg {
        width: 150px;
    }
}

/* ============================================================================
   HEADER — ссылка-профиль с встроенным балансом
   ============================================================================ */

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.profile-link:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}
.profile-link-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.profile-link-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7, #4f46e5);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    border: none;
}
.profile-link-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.profile-link:hover .profile-link-name {
    color: #c084fc;
}
.profile-link-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 8px;
    margin-left: 2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.14));
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.2s ease;
}
.profile-link:hover .profile-link-balance {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}
.profile-link-balance-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}
.profile-link-balance-value {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .profile-link-name {
        display: none;
    }
}

/* ============================================================================
   PROFILE — страница: шапка профиля + история сессий
   ============================================================================ */

#section-profile:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.06);
}

.profile-avatar-wrap {
    flex-shrink: 0;
}
.profile-avatar-img,
.profile-avatar-fallback {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
}
.profile-avatar-img {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7, #4f46e5);
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-info {
    flex: 1 1 240px;
    min-width: 0;
}
.profile-nick {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #9ca3af;
    font-size: 13px;
}
.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-balance-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.15);
    flex-shrink: 0;
}

.profile-balance-button {
    position: relative;
    min-width: 236px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-balance-button:hover {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.32), inset 0 0 16px rgba(255,255,255,0.04);
}

.profile-balance-button::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 260px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: #07070a;
    color: #f3f4f6;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 20px rgba(34,211,238,0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.profile-balance-button:hover::after {
    opacity: 1;
    visibility: visible;
}

.profile-balance-button:hover .profile-balance-label-default {
    opacity: 0;
}

.profile-balance-label-default,
.profile-balance-label-hover {
    transition: opacity 0.2s ease;
}

.profile-balance-label-hover {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    white-space: nowrap;
}

.profile-balance-button:hover .profile-balance-label-hover {
    opacity: 1;
}

.profile-balance-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}
.profile-balance-label {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.profile-balance-arrow {
    color: #c084fc;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.profile-balance-button:hover .profile-balance-arrow {
    opacity: 1;
}
.profile-balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.profile-merchant-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04));
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}
.profile-merchant-card:hover {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
}
.profile-merchant-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    flex-shrink: 0;
}
.profile-merchant-label {
    font-size: 11px;
    font-weight: 700;
    color: #67e8f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.profile-merchant-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.3px;
}
.profile-merchant-arrow {
    color: #22d3ee;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.profile-merchant-card:hover .profile-merchant-arrow {
    opacity: 1;
}

.profile-sessions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}

.profile-sessions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-sessions-loader,
.profile-sessions-empty {
    padding: 60px 20px;
    text-align: center;
    background: #1a1a1e;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* ----------------------------------------------------------------------------
   Строка истории сессии (.session-row) — компактный кастомный компонент.
   Не переиспользует каталожные плитки: своя обложка 64×88, имя ПК со статусом,
   город · ISP, дата и кнопка «Играть» (активна/disabled по статусу ПК).
   ---------------------------------------------------------------------------- */

.session-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #131316;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.session-row:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: #16161a;
}

.session-cover {
    position: relative;
    width: 64px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1f1f24;
    text-decoration: none;
    display: block;
}
.session-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.session-cover-pad {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    color: #22d3ee;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.6));
    pointer-events: none;
}
.session-cover-missing,
.session-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.session-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.session-row-top,
.session-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-game-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.15s ease;
}
a.session-game-title:hover {
    color: #c084fc;
}
.session-game-title-missing {
    color: #9ca3af;
    font-style: italic;
    font-weight: 700;
}

.session-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.session-date i {
    color: #c084fc;
}

.session-pc-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d1d5db;
    flex-wrap: wrap;
    min-width: 0;
}
.session-status-icon {
    font-size: 12px;
    line-height: 1;
}
.session-pc-prep {
    color: #9ca3af;
}
.session-pc-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}
.session-pc-name:hover {
    color: #c084fc;
}
.session-meta {
    color: #9ca3af;
}
.session-pc-line-missing {
    color: #9ca3af;
    font-style: italic;
}

.session-play-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.session-play-btn-active {
    background: linear-gradient(to right, #9333ea, #4f46e5);
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.session-play-btn-active:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), inset 0 0 10px rgba(255,255,255,0.1);
}
.session-play-btn-disabled {
    background: rgba(255, 255, 255, 0.04);
    color: #6b7280;
    border-color: rgba(255, 255, 255, 0.06);
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 640px) {
    .session-row {
        padding: 12px;
        gap: 12px;
    }
    .session-cover {
        width: 56px;
        height: 76px;
    }
    .session-game-title {
        font-size: 15px;
    }
    .session-row-top,
    .session-row-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .session-play-btn {
        align-self: stretch;
    }
    .session-actions {
        align-self: stretch;
        width: 100%;
    }
    .session-owner-message-btn,
    .session-actions .session-play-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-meta {
        justify-content: center;
    }
    .profile-balance-card,
    .profile-merchant-card {
        width: 100%;
        justify-content: center;
    }
}
