/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ, ШРИФТЫ И РЕСЕТЫ
   (Файлы: layouts/base.blade.php, app.blade.php)
   ========================================================================== */
@font-face {
    font-family: "bootstrap-icons";
    font-display: swap;
    src: url("/assets/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2");
}

html, body {
    height: 100%;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Общие акцентные переменные (Темы оформления) */
.tx-page,
.tx-home-news {
    --tx-teal: #00b4d8;
    --tx-teal-dark: #0369a1;
    --tx-teal-bg: rgba(0, 180, 216, 0.08);
    --tx-teal-border: rgba(0, 180, 216, 0.28);
}

[data-bs-theme="dark"] .tx-page,
[data-bs-theme="dark"] .tx-home-news {
    --tx-teal: #00e5ff;
    --tx-teal-dark: #00b4d8;
    --tx-teal-bg: rgba(0, 229, 255, 0.09);
    --tx-teal-border: rgba(0, 229, 255, 0.3);
}

/* ==========================================================================
   2. НАВИГАЦИЯ И БРЕНДИНГ (НАВБАР)
   (Файл: elements/navbar.blade.php)
   ========================================================================== */
.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: .5px;
    display: inline-block;
    color: #adb5bd;
    background: #adb5bd linear-gradient(115deg, transparent 0%, transparent 41%, #0055a5 44%, #0077d8 47%, #38bdf8 49%, #fff 50%, #38bdf8 51%, #0077d8 53%, #0055a5 56%, transparent 59%, transparent 100%) no-repeat;
    background-size: 320px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brand-glint 3.5s infinite linear;
}

@keyframes brand-glint {
    0% { background-position: -320px 0; }
    35%, 100% { background-position: calc(100% + 320px) 0; }
}

@media (max-width: 767.98px) {
    .tx-main-navbar .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .tx-user-nav {
        margin-left: auto !important;
    }

    .tx-main-navbar .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
    }

    .tx-user-nav .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* ==========================================================================
   3. ЗИМНИЕ ЭФФЕКТЫ (СНЕГ И ГИРЛЯНДА)
   (Файл: elements/navbar.blade.php / snow script)
   ========================================================================== */
.tx-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1050;
    contain: strict;
    will-change: contents;
    transform: translateZ(0);
}

.tx-dewdrop-wire {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    padding: 0 16px;
    contain: layout paint;
}

[data-bs-theme="light"] .tx-dewdrop-wire {
    background: rgba(0, 0, 0, 0.08);
}

.tx-dew-drop {
    position: relative;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-top: -1px;
    flex-shrink: 0;
    will-change: transform, opacity;
    animation: txTwinkle 3s ease-in-out infinite alternate;
}

.tx-dew-warm {
    background: #fde68a;
    box-shadow: 0 0 6px #f59e0b, 0 0 14px rgba(245, 158, 11, 0.5);
}

.tx-dew-ice {
    background: #e0f2fe;
    box-shadow: 0 0 6px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.5);
}

@keyframes txTwinkle {
    0% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .tx-dew-drop { animation: none !important; opacity: 0.8 !important; }
    .tx-snow-canvas { display: none !important; }
}

/* ==========================================================================
   4. КОЛОКОЛЬЧИК УВЕДОМЛЕНИЙ И ВСПЛЫВАЮЩИЕ ТОСТЫ (NOTIFICATIONS & TOASTS)
   (Файл: elements/notifications.blade.php)
   ========================================================================== */
#notificationsDropdown::after {
    display: none !important;
}

.bell-has-unread {
    color: #38bdf8 !important;
    animation: bell-bounce 2.6s infinite ease-in-out;
    transform-origin: top center;
}

.tx-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 0.18em 0.42em !important;
    border-radius: 99px !important;
    border: 2px solid #1e293b !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.85) !important;
    animation: badge-pulse 1.8s infinite ease-in-out;
    line-height: 1 !important;
    z-index: 5;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(239, 68, 68, 1); }
}

@keyframes bell-bounce {
    0%, 65%, 100% { transform: rotate(0deg); }
    70% { transform: rotate(16deg); }
    75% { transform: rotate(-14deg); }
    80% { transform: rotate(10deg); }
    85% { transform: rotate(-6deg); }
    90% { transform: rotate(2deg); }
}

.tx-notifications-menu {
    border-radius: 14px !important;
    min-width: 290px !important;
    width: min(340px, calc(100vw - 32px)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    position: absolute !important;
}

.tx-toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1099;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100vw - 32px);
}

@media (max-width: 575.98px) {
    .tx-toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }
}

.tx-toast {
    pointer-events: auto;
    position: relative;
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}

.tx-toast.tx-toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tx-toast.tx-toast-leaving {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
}

.tx-toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.9rem;
}

.tx-toast-body {
    flex-grow: 1;
    min-width: 0;
}

.tx-toast-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.tx-toast-text {
    font-size: 0.82rem;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
}

.tx-toast-close {
    background: transparent;
    border: 0;
    padding: 0;
    margin: -4px -4px 0 0;
    color: inherit;
    opacity: 0.5;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
/* ==========================================================================
   6. ГЛАВНАЯ СТРАНИЦА: HERO, СТАТУС СЕРВЕРА И КНОПКА IP
   (Файл: home.blade.php)
   ========================================================================== */
.hero-wrapper {
    position: relative;
    min-height: 380px;
    padding: 40px 15px;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 60%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 2px 4px #000;
    line-height: 1.25;
    margin-bottom: 12px;
}

.online-heart, .offline-heart {
    font-size: 1.2rem;
    display: inline-block;
    vertical-align: middle;
}

.online-heart {
    color: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34,197,94,0.85));
    animation: heartbeat 1.4s infinite ease-in-out;
}

.offline-heart {
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239,68,68,0.7));
}

@keyframes heartbeat {
    0%, 28%, 70%, 100% { transform: scale(1); }
    14% { transform: scale(1.22); }
    42% { transform: scale(1.15); }
}

.btn-hero-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(34,197,94,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
}

.btn-hero-play::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.btn-hero-play:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #2ae06a 0%, #15803d 100%);
    box-shadow: 0 12px 28px rgba(34,197,94,0.6);
    color: #fff !important;
}

.btn-hero-play:hover::after {
    left: 140%;
}

.btn-hero-play:active {
    transform: translateY(0) scale(0.99);
}

.btn-hero-play i {
    font-size: 1.15rem;
}

.server-status-widget {
    width: 100%;
    max-width: 340px;
    margin: 8px auto 16px auto;
}

.server-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 2px 4px #000;
    margin-bottom: 6px;
    padding: 0 2px;
}

.server-status-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.server-status-percent {
    color: #4ade80 !important;
    font-size: 0.95rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 2px 4px #000, 0 0 10px rgba(34,197,94,0.5);
}

.server-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    overflow: hidden;
    padding: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85);
}

.server-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-offline-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 2px 4px #000;
    margin: 8px auto 14px auto;
}

.tx-play-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color);
}

.tx-play-btn {
    padding: 10px 32px;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tx-play-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   7. КАРТОЧКИ НОВОСТЕЙ И ФОРУМА НА ГЛАВНОЙ
   (Файл: home.blade.php)
   ========================================================================== */
.tx-home-news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.tx-home-news-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--bs-heading-color);
    margin-bottom: 0;
}

.tx-home-news-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tx-teal-bg);
    border: 1px solid var(--tx-teal-border);
    color: var(--tx-teal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tx-pill-link:hover {
    background: var(--tx-teal-dark);
    border-color: var(--tx-teal-dark);
    color: #fff;
    transform: translateY(-1px);
}

.tx-post-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.tx-post-card:hover {
    transform: translateY(-4px);
    border-color: var(--tx-teal-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.tx-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: rgba(0, 0, 0, 0.04);
}

.tx-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tx-post-card:hover .tx-card-img {
    transform: scale(1.04);
}

.tx-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tx-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.tx-card-title a {
    color: var(--bs-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tx-card-title a:hover {
    color: var(--tx-teal-dark);
}

.tx-card-text {
    font-size: 0.95rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tx-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tx-read-btn {
    background: var(--tx-teal-bg);
    border: 1px solid var(--tx-teal-border);
    color: var(--tx-teal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tx-read-btn:hover {
    background: var(--tx-teal-dark);
    border-color: var(--tx-teal-dark);
    color: #fff;
    transform: translateY(-1px);
}

.tx-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.tx-forum-post-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    padding: 16px 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-forum-post-card:hover {
    transform: translateY(-3px);
    border-color: var(--tx-teal-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tx-forum-post-link {
    color: var(--bs-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tx-forum-post-link:hover {
    color: var(--tx-teal-dark) !important;
}

.tx-forum-post-snippet {
    font-size: 0.88rem;
    color: var(--bs-secondary-color);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

[data-bs-theme="dark"] .tx-post-card,
[data-bs-theme="dark"] .tx-forum-post-card,
[data-bs-theme="dark"] .tx-play-card {
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .tx-pill-link,
[data-bs-theme="dark"] .tx-read-btn {
    color: var(--tx-teal);
}

[data-bs-theme="dark"] .tx-card-title a:hover,
[data-bs-theme="dark"] .tx-forum-post-link:hover {
    color: var(--tx-teal) !important;
}

[data-bs-theme="dark"] .tx-card-img-wrap {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .tx-forum-post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

/* ==========================================================================
   8. БЛОК ОПИСАНИЯ СЕРВЕРА (TX-PAGE)
   (Файл: home.blade.php / контент из админки)
   ========================================================================== */
.tx-page {
    color: var(--bs-body-color);
    line-height: 1.6;
}

.tx-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
    margin: 38px 0 8px;
    color: var(--bs-heading-color);
    letter-spacing: -0.2px;
}

.tx-section-desc {
    font-size: 0.92rem;
    color: var(--bs-secondary-color);
    text-align: center;
    margin-bottom: 24px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.tx-intro {
    background: var(--tx-teal-bg);
    border: 1px solid var(--tx-teal-border);
    border-radius: 18px;
    padding: 26px 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px -12px rgba(0, 180, 216, 0.2);
}

.tx-intro h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--bs-heading-color);
    margin-bottom: 10px;
}

.tx-intro p {
    font-size: 0.98rem;
    color: var(--bs-secondary-color);
    line-height: 1.55;
    margin-bottom: 18px;
}

.tx-tags {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 1199px) {
    .tx-tags { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .tx-tags { grid-template-columns: repeat(2, 1fr); }
}

.tx-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bs-border-color);
    font-size: 0.84rem;
    color: var(--bs-body-color);
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.tx-tag i {
    color: var(--tx-teal-dark);
    font-size: 0.95rem;
    line-height: 1;
}

.tx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}

@media (max-width: 991px) {
    .tx-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .tx-grid { grid-template-columns: 1fr; }
}

.tx-card {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
}

.tx-card:hover {
    border-color: var(--tx-teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -12px rgba(0, 180, 216, 0.28);
}

.tx-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tx-teal-bg);
    border: 1px solid var(--tx-teal-border);
    color: var(--tx-teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.tx-card-icon i {
    line-height: 1;
}

.tx-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--bs-heading-color);
}

.tx-card p {
    font-size: 0.88rem;
    color: var(--bs-secondary-color);
    line-height: 1.52;
    margin: 0;
}

.tx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .tx-steps { grid-template-columns: 1fr; }
}

.tx-step {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
}

.tx-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tx-teal), var(--tx-teal-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.tx-step h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 4px;
}

.tx-step p {
    font-size: 0.86rem;
    color: var(--bs-secondary-color);
    margin: 0;
    line-height: 1.45;
}

.tx-step code {
    color: var(--tx-teal-dark);
    font-weight: 700;
}

.tx-faq {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .tx-faq { grid-template-columns: 1fr; }
}

.tx-faq-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    padding: 20px;
    border-left: 3px solid var(--tx-teal);
}

.tx-faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 8px;
}

.tx-faq-item p {
    font-size: 0.87rem;
    color: var(--bs-secondary-color);
    line-height: 1.5;
    margin: 0;
}

.tx-seo {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 28px;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tx-seo h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bs-heading-color);
    margin-bottom: 10px;
}

.tx-seo h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin: 18px 0 6px;
}

.tx-seo strong {
    color: var(--bs-heading-color);
}

[data-bs-theme="dark"] .tx-tag { background: rgba(255, 255, 255, 0.04); }
[data-bs-theme="dark"] .tx-tag i { color: var(--tx-teal); }
[data-bs-theme="dark"] .tx-card,
[data-bs-theme="dark"] .tx-step,
[data-bs-theme="dark"] .tx-faq-item { background: rgba(255, 255, 255, 0.02); }
[data-bs-theme="dark"] .tx-card-icon { color: var(--tx-teal); }
[data-bs-theme="dark"] .tx-step code { color: var(--tx-teal); }

/* ==========================================================================
   9. ПЛАВАЮЩАЯ КНОПКА БЫСТРОГО АВТОВХОДА (FAB)
   (Файл: elements/quick-login.blade.php / base.blade.php)
   ========================================================================== */
#txFab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    height: 38px;
    max-width: 38px;
    padding: 0 11px;
    border-radius: 50px;
    background: linear-gradient(135deg, #00b4d8, #0369a1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
    color: #fff !important;
    text-decoration: none !important;
    font: 700 0.8rem/1 system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    backdrop-filter: blur(6px);
    transition: max-width .25s ease, transform .2s ease, box-shadow .2s ease;
}

#txFab i {
    color: #fde047;
    font-size: 1rem;
    flex-shrink: 0;
}

#txFab span {
    margin-left: 6px;
    opacity: 0;
    transition: opacity .15s ease;
}

#txFab:hover {
    max-width: 125px;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 180, 216, 0.5);
}

#txFab:hover span {
    opacity: 1;
}

@media (hover: none), (max-width: 576px) {
    #txFab:hover {
        max-width: 38px;
        transform: none;
    }
    #txFab span {
        display: none;
    }
}

/* ==========================================================================
   10. ПОДВАЛ (FOOTER), ИКОНКИ СОЦСЕТЕЙ И COOKIE BANNER
   (Файлы: elements/footer.blade.php, cookie.blade.php)
   ========================================================================== */
.footer-subtext {
    font-size: .75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .24) !important;
}

.footer-policy {
    font-size: .75rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, .24) !important;
    transition: color .2s ease;
}

.footer-policy:hover {
    color: rgba(255, 255, 255, .65) !important;
}

.footer-social-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s ease;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
}

.footer-social-btn i {
    font-size: .82rem;
    line-height: 1;
}

.bi-vk {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.684 0H8.316C1.592 0 0 1.592 0 8.316v7.368C0 22.408 1.592 24 8.316 24h7.368C22.408 24 24 22.408 24 15.684V8.316C24 1.592 22.408 0 15.684 0zm3.692 17.123h-1.744c-.66 0-.862-.525-2.049-1.714-1.033-1.01-1.492-1.144-1.748-1.144-.356 0-.458.102-.458.593v1.593c0 .424-.136.672-1.254.672-1.848 0-3.902-1.12-5.344-3.204-2.172-3.07-2.78-5.377-2.78-5.852 0-.254.102-.491.593-.491h1.744c.441 0 .61.203.78.678.864 2.493 2.305 4.68 2.899 4.68.22 0 .322-.102.322-.661V10.23c-.068-1.187-.695-1.289-.695-1.713 0-.203.17-.407.44-.407h2.746c.373 0 .509.203.509.644v3.476c0 .373.17.509.271.509.22 0 .407-.136.814-.543a12.87 12.87 0 0 0 2.22-3.476c.119-.271.322-.491.763-.491h1.744c.525 0 .644.271.525.644-.22 1.018-2.355 4.02-2.457 4.172-.203.322-.288.474 0 .848.203.271.881.864 1.339 1.39 1.474 1.746 1.61 2.39 1.61 2.764 0 .424-.22.644-.644.644z'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.684 0H8.316C1.592 0 0 1.592 0 8.316v7.368C0 22.408 1.592 24 8.316 24h7.368C22.408 24 24 22.408 24 15.684V8.316C24 1.592 22.408 0 15.684 0zm3.692 17.123h-1.744c-.66 0-.862-.525-2.049-1.714-1.033-1.01-1.492-1.144-1.748-1.144-.356 0-.458.102-.458.593v1.593c0 .424-.136.672-1.254.672-1.848 0-3.902-1.12-5.344-3.204-2.172-3.07-2.78-5.377-2.78-5.852 0-.254.102-.491.593-.491h1.744c.441 0 .61.203.78.678.864 2.493 2.305 4.68 2.899 4.68.22 0 .322-.102.322-.661V10.23c-.068-1.187-.695-1.289-.695-1.713 0-.203.17-.407.44-.407h2.746c.373 0 .509.203.509.644v3.476c0 .373.17.509.271.509.22 0 .407-.136.814-.543a12.87 12.87 0 0 0 2.22-3.476c.119-.271.322-.491.763-.491h1.744c.525 0 .644.271.525.644-.22 1.018-2.355 4.02-2.457 4.172-.203.322-.288.474 0 .848.203.271.881.864 1.339 1.39 1.474 1.746 1.61 2.39 1.61 2.764 0 .424-.22.644-.644.644z'/%3E%3C/svg%3E") no-repeat center/contain;
    vertical-align: middle;
}

.footer-banner-img {
    height: 44px;
    width: auto;
    max-width: 100%;
    border-radius: 6px;
    aspect-ratio: 468/60;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.tx-online-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 9px 18px;
    margin-bottom: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

.tx-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
}

.tx-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.tx-role-mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    z-index: 99999;
    width: calc(100% - 32px);
    max-width: 1160px;
    background: rgba(15, 20, 28, .97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(56, 189, 248, .45);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .9), 0 0 40px rgba(0, 119, 216, .28);
    padding: 24px 32px;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
}

#cookie-banner.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#cookie-banner button#accept-cookie {
    transition: transform .2s ease, box-shadow .2s ease;
}

#cookie-banner button#accept-cookie:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(34, 197, 94, .65) !important;
}

#cookie-banner button#accept-cookie:active {
    transform: translateY(0) scale(.98);
}

@media (max-width: 768px) {
    #cookie-banner {
        bottom: 12px;
        padding: 20px 18px;
    }
    #cookie-banner-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
    }
    #cookie-banner-actions,
    #cookie-banner button#accept-cookie {
        width: 100% !important;
    }
}
/* ==========================================================================
   11. ПРАВОВЫЕ СТРАНИЦЫ И ПРАВИЛА (LEGAL PAGES)
   (Файлы: rules.blade.php, terms.blade.php, personal-data.blade.php)
   ========================================================================== */
.legal-page {
    line-height: 1.6;
    font-size: 0.95rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 30px 0 12px;
    color: var(--bs-heading-color, inherit);
}

.legal-page p,
.legal-page li {
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-page table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: transparent;
}

.legal-page th,
.legal-page td {
    padding: 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

[data-bs-theme="dark"] .legal-page th {
    background-color: rgba(255, 255, 255, 0.05);
}

.legal-page a {
    color: var(--bs-link-color, #00b4d8);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--bs-link-hover-color, #0369a1);
}