/* =========================================
   выбор языка
   ========================================= */


.locale-lang-btn.active {
    background: #4caf50 !important;
    color: #000 !important;
    border-color: #4caf50 !important;
}



.lang-switch button {
    border-radius: 4px;
    padding: 4px;
}
.lang-switch .active {
    color: green;
    border: 2px solid green;
}


/* =========================================
   ДВЕРЬ И ГЛАВНЫЙ ЭКРАН
   ========================================= */
.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.ticker {
    position: absolute;
    top: 10%;
    width: 100%;
    overflow: hidden;
    opacity: 0.15;
    z-index: 2;
}

.ticker__track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 2px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.door {
    position: relative;
    width: 180px;
    height: 320px;
    z-index: 3;
}

.door__frame {
    position: absolute;
    inset: -10px;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
}

.door__panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.05);
}

.door__handle {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 20px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.message {
    text-align: center;
    z-index: 3;
}

.message__line {
    font-size: 18px;
    line-height: 1.6;
    color: #888;
}

.message__line--accent {
    color: #4ade80;
    font-weight: 600;
    margin-top: 8px;
}

.btn {
    z-index: 3;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid #4ade80;
    color: #4ade80;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn:hover {
    background: #4ade80;
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

.btn--accept {
    border-color: #4ade80;
    color: #4ade80;
}

.btn--accept:hover {
    background: #4ade80;
    color: #0a0a0a;
}

.btn--decline {
    border-color: #2a2a2a;
    color: #555;
}

.btn--decline:hover {
    border-color: #ef4444;
    color: #ef4444;
}


.tz-select {
width: 100%;
    padding: 4px;
    border-radius: 4px;
    color: green;
    border: 2px groove green;
}



.match-card__teams {
    display: grid;
    grid-template-columns: 4fr 1fr 4fr;
    grid-gap: 1vh 1vw;
    width: 100%;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.match-card__odds {
    display: grid;
    grid-template-columns: 4fr 1fr 4fr;
    grid-gap: 1vh 1vw;
    width: 100%;
    justify-content: center;
    text-align: center;
    align-items: center;
}



/* =========================================
   ДИАЛОГ (ПРИВЕТСТВИЕ ПЕРЕД КЛУБОМ)
   ========================================= */
.dialogue {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
}

.dialogue--active {
    display: flex;
}

.dialogue__bubble {
    max-width: 420px;
    padding: 16px 24px;
    border-left: 2px solid #2a2a2a;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    color: #c0c0c0;
    opacity: 0;
    transform: translateY(10px);
    animation: bubbleIn 0.4s ease forwards;
}

.dialogue__bubble:nth-child(1) { animation-delay: 0.2s; }
.dialogue__bubble:nth-child(2) { animation-delay: 0.8s; }
.dialogue__bubble:nth-child(3) { animation-delay: 1.4s; }
.dialogue__bubble:nth-child(4) { animation-delay: 2.0s; }
.dialogue__bubble:nth-child(5) { animation-delay: 2.6s; }

@keyframes bubbleIn {
    to { opacity: 1; transform: translateY(0); }
}

.dialogue__label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: #4ade80;
    margin-bottom: 6px;
}

.dialogue__bubble--accent {
    border-left-color: #4ade80;
    color: #e0e0e0;
}

.dialogue__bubble--danger {
    border-left-color: #ef4444;
    color: #ef4444;
}

.dialogue__actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    animation: bubbleIn 0.4s ease 3.2s forwards;
}

/* =========================================
   КЛУБ (ОСНОВНОЙ ЭКРАН)
   ========================================= */
.club {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    padding: 20px;
    z-index: 20;
    background: #0a0a0a;
}

.club--active {
    display: flex;
}

.club__topbar {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    align-items: center;
    justify-content: center;
    grid-gap: 1vh 1vw;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1a1a;
}

.club__logo {
    font-size: 14px;
    letter-spacing: 3px;
    color: #e0e0e0;
}

.club__status {
    font-size: 11px;
    letter-spacing: 2px;
    text-align: right;
    color: #8B0000; /* Бордовый по умолчанию */
    font-weight: bold;
}

body.logged .club__status,
.club--active .club__status {
    color: #27c13b; /* Зеленый для авторизованных */
}

.club__body {
    padding: 20px;
    flex: 1;
}

.club__tabs {
    display: grid;
    gap: 24px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 18px;
    padding-top: 6px;
    margin-top: -10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;
}

.club__tab {
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.club__tab.active {
    color: #4ade80;
    border-bottom-color: #4ade80;
}

.club__panel {
    display: none;
}

.club__panel--active {
    display: block;
}

.club__panel-title {
    font-size: 14px;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.club__footer {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    font-size: 12px;
    color: #555;
    letter-spacing: 1px;
}

/* =========================================
   МОДАЛЬНЫЕ ОКНА (ОБЩИЕ)
   ========================================= */
.modal {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #141414;
    padding: 25px;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: monospace;
}

.modal-content h2 {
    color: #4caf50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.modal-content label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    margin-top: 12px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    background: #0a0a0a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #4caf50;
}

.modal-row {
    display: flex;
    gap: 10px;
}

.modal-row > div {
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-family: monospace;
    transition: 0.2s;
}

.modal-btn--cancel { background: #333; color: #fff; }
.modal-btn--cancel:hover { background: #444; }

.modal-btn--save { background: #4caf50; color: #000; }
.modal-btn--save:hover { background: #5cbf60; }

.modal-btn--delete { background: #f44336; color: #fff; }
.modal-btn--delete:hover { background: #d32f2f; }

.modal-actions--center {
    justify-content: center;
}

.modal-actions--center .modal-btn {
    width: 100%;
    max-width: 350px;
}

/* =========================================
   МОДАЛКА ПРАВИЛ (СПЕЦИАЛЬНЫЕ СТИЛИ)
   ========================================= */
.modal-content--rules {
    max-width: 600px;
    text-align: left;
}

.rules-title {
    color: #27c13b;
    margin-bottom: 10px;
    font-size: 20px;
}

.rules-subtitle {
    color: #888;
    margin-bottom: 20px;
    font-size: 14px;
}

.rules-h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}

.rules-list {
    margin-bottom: 20px;
    padding-left: 20px;
    line-height: 1.6;
    color: #ccc;
    font-size: 14px;
}

.rules-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
    font-size: 14px;
}

.rules-text b {
    color: #fff;
}

.rules-disclaimer {
    color: #f44336;
    font-size: 13px;
    margin-bottom: 20px;
}

.text-green { color: #27c13b; }


.tz-bar h5,
.sidebar__settings h5 {
    margin-bottom: 1vh;
    font-size: 1vw;
    font-weight: 300;
    letter-spacing: 2px;
}


.btn--accept {
    border-color: #4ade80;
    color: #4ade80;
    width: auto;
    margin-bottom: 8px;
}


.signals__sidebar {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    margin-top: 20px;
}


.sidebar__settings label {
    display: block;
    color: gray;
}



/* =========================================
   МОДАЛКА РЕГИСТРАЦИИ
   ========================================= */
.register {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9999; /* Чтобы была поверх всего */
    align-items: center;
    justify-content: center;
}

.register--active {
    display: flex;
}

.register__box {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    position: relative; /* Чтобы закрыть крестиком */
}

/* Кнопка закрытия (крестик) */
.register__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.register__close:hover {
    color: #fff;
}

/* Заголовок и подсказка */
.register__box h3 {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 4px;
}

.register__hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Поле ввода */
.register__box input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
}

.register__box input:focus {
    outline: none;
    border-color: #4ade80;
}

/* Кнопки внутри модалки */
.register__box .btn {
    width: 100%;
    padding: 12px;
    font-size: 13px;
}

/* Кнопка "У меня уже есть аккаунт" (ghost) */
.btn--ghost {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    margin-top: 8px;
}

.btn--ghost:hover {
    border-color: #555;
    color: #fff;
    background: transparent; /* Перебиваем ховер от .btn--accept, если он есть */
}

/* Текст для ошибок или уведомлений */
.register__note {
    font-size: 12px;
    color: #f44336; /* Красный для ошибок */
    min-height: 16px;
    margin-top: 4px;
}



/* =========================================
   МОДАЛКА СИГНАЛА (ВСПЛЫВАШКА)
   ========================================= */
.signal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 20000; /* Поверх всего */
    align-items: center;
    justify-content: center;
}

.signal-modal--active {
    display: flex;
}

.signal-modal__box {
    background: #0f0f0f;
    border: 1px solid #4ade80;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

.signal-modal__box h3 {
    color: #f44336; /* Красный цвет для привлечения внимания */
    margin-bottom: 16px;
    font-size: 20px;
    letter-spacing: 1px;
}

.signal-modal__box p {
    color: #c0c0c0;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.signal-modal__box p b {
    color: #4ade80;
}

.signal-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}

.signal-modal__actions .btn {
    padding: 10px 20px;
    font-size: 13px;
    flex: 1;
}



.signals__layout {
    display: flex;
    flex-direction: column; /* Ставим в колонку */
    gap: 20px;
}

.signals__main {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
    grid-gap: 1vh 1vw;
}




/* =========================================
   КАРТОЧКИ МАТЧЕЙ
   ========================================= */
.match-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.match-card--green { border-left: 3px solid #4ade80; }
.match-card--orange { border-left: 3px solid #f59e0b; }
.match-card--yellow { border-left: 3px solid #eab308; }
.match-card--gray { opacity: 0.4; border-left: 3px solid #333; }
.match-card--red { border-left: 3px solid #f44336; }

.match-card__col1,
.match-card__col2,
.match-card__col3 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.match-card__col2, .match-card__col3 {
    text-align: left; /* Текст влево */
}

.match-card__col2,
.match-card__col3 {
    text-align: right;
    font-size: 12px;
    color: #888;
}


.match-card__icon { font-size: 18px; color: #4ade80; }
.match-card__odds { display: flex; gap: 12px; font-size: 12px; color: #888; }
.match-card__time { font-size: 13px; color: #888; font-weight: 400; }
.match-card__tag { padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.03); color: #e0e0e0; font-size: 11px; }
.match-card__stats { display: flex; justify-content: space-between; font-size: 12px; color: #555; }
.match-card__score { color: #4ade80; font-weight: 600; }



.stat-value {
text-align: center;
    border: 1px groove green;
    color: green;
    border-radius: 4px;
    font-size: 1vw;
    width: 60%;
    text-align: center;
    padding: 2vh 0;
    margin: 2vh auto;
}


.stat-label {
text-align: center;
    color: green;
    letter-spacing: 2px;
}
.stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    align-items: center;
    justify-content: center;
    grid-gap: 1vh 1vw;
}

/* 4. Чат (внизу) на мобилке делаем во всю ширину */
.chat--fixed {
    height: 250px;
    width: 100%;
    margin-top: 20px;
}

/* 5. Кнопки в сайдбаре (Регистрация и т.д.) делаем во всю ширину */
.signals__sidebar .btn {
    width: 100%;
}



/* Сетка спортов */
.sports {
    display: flex;
    flex-direction: column; /* В колонку */
    gap: 20px;
}

.sports__col h4 {
    font-size: 12px;
    letter-spacing: 2px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sports__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 6px;
}

.sports__list--muted { opacity: 0.35; }

.signals__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    grid-gap: 1vh 1vw;
}

.signals__counter { text-align: right; }
.signals__skipped { margin-top: 24px; opacity: 0.6; }
.signals__skipped h4 { font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }

/* =========================================
   ПРОФИЛЬ, ТАРИФЫ, СТАТИСТИКА (ОСТАЛЬНОЕ)
   ========================================= */
.profile__info { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 450px; }
.profile__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 8px; font-size: 13px; }
.profile__row span { color: #888; }
.profile__row b { color: #eee; font-weight: 500; }

.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing__card { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px; border: 1px solid #1a1a1a; border-radius: 12px; background: rgba(255, 255, 255, 0.01); transition: border-color 0.3s ease; }
.pricing__card:hover { border-color: #2a2a2a; }
.pricing__name { font-size: 13px; letter-spacing: 2px; color: #4ade80; text-transform: uppercase; }
.pricing__price { font-size: 26px; color: #e0e0e0; font-weight: 700; }
.pricing__desc { font-size: 14px; color: #888; margin-bottom: 12px; }
.pricing__current { font-size: 13px; color: #888; margin-bottom: 20px; }
.pricing__current b { color: #4ade80; }
