:root {
    color-scheme: dark;
    /* Лесная палитра чистого воздуха */
    --bg-dark: #07130d;
    --bg-gradient: radial-gradient(circle at 50% -20%, #173d2b 0%, #08150e 70%, #040906 100%);
    --card-bg: rgba(18, 42, 30, 0.65);
    --card-border: rgba(52, 211, 153, 0.18);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    --text-main: #f0fdf4;
    --text-muted: #95c4a6;
    --text-dim: #5c8f70;
    
    --accent-emerald: #10b981;
    --accent-glow: #34d399;
    --accent-hover: #059669;
    --accent-light: rgba(52, 211, 153, 0.15);
    
    --gold: #f59e0b;
    --danger: #ef4444;
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: #040906;
    color-scheme: dark;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    width: 100%;
}

/* Эффект матового лесного тумана на заднем плане */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 20px 120px;
    position: relative;
    z-index: 1;
}

/* Шапка WebApp и навигация */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    transform: translateX(-4px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.back-btn:active {
    transform: translateX(-2px) scale(0.98);
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-glow);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
}

h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hint {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Карточка Формы */
form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

form:hover {
    border-color: rgba(52, 211, 153, 0.35);
}

/* Навигация по месяцам */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.month-label {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-transform: capitalize;
}

.month-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    transform: scale(1.05);
}

/* Обертка календаря */
.calendar-wrap {
    background: rgba(8, 24, 16, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
}

.calendar-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.selected-range-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Сетка Календаря */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    padding-bottom: 6px;
}

.day-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.day-num {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.day-price {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: #34d399;
    line-height: 1;
    opacity: 0.9;
    position: absolute;
    bottom: 3px;
}

.day-btn.disabled .day-price {
    display: none;
}

.day-btn.selected .day-price,
.day-btn.in-range .day-price {
    color: #ffffff;
    opacity: 1;
}

.day-btn:hover:not(.disabled) {
    background: var(--accent-light);
    border-color: var(--accent-glow);
    color: #ffffff;
    transform: translateY(-2px);
}

.day-btn.disabled,
.day-btn.past {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    opacity: 0.45 !important;
    transform: none !important;
    box-shadow: none !important;
}

.day-btn.disabled .day-num,
.day-btn.past .day-num {
    color: #64748b !important;
    text-decoration: none !important;
}

#admin-calendar-grid .day-btn.past:not(.disabled) {
    background: rgba(18, 42, 30, 0.4) !important;
    border-color: rgba(52, 211, 153, 0.15) !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    opacity: 0.85 !important;
}

#admin-calendar-grid .day-btn.past:not(.disabled) .day-num {
    color: var(--text-main) !important;
}

#admin-calendar-grid .day-btn.past:not(.disabled):hover {
    background: rgba(52, 211, 153, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #ffffff !important;
}

.day-btn.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: var(--accent-glow) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.day-btn.in-range {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: var(--accent-glow);
}

.day-btn.checkout-available {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.day-btn.checkout-available:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Поля ввода и выпадающие списки */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

input,
select {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(5, 18, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--accent-glow);
    background: rgba(10, 30, 20, 0.85);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

input::placeholder {
    color: var(--text-dim);
}

select option {
    background: #0d2117;
    color: #ffffff;
}

/* Информационные плашки */
.balance-info,
.price-info {
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.balance-info {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #bae6fd;
}

.balance-info.has-balance {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--text-main);
}

.price-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-info strong {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--accent-glow);
}

/* Главная кнопка отправки */
#submit-btn {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    margin-top: 6px;
}

#submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

#submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

#submit-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    box-shadow: none;
    cursor: not-allowed;
}

.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: 12px;
}

.error.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--accent-glow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .container {
        padding: 16px 14px 40px;
    }
    form {
        padding: 20px 16px;
    }
    .row {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 26px;
    }
}

/* Полноэкранная модальная табличка успешной брони */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 15, 10, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: linear-gradient(135deg, rgba(18, 48, 33, 0.95) 0%, rgba(8, 26, 17, 0.98) 100%);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    border: 2px solid rgba(52, 211, 153, 0.4);
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 6px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

.modal-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-booking-number {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--accent-glow);
    background: rgba(16, 185, 129, 0.12);
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    margin: 4px 0;
}

/* Блок оплаты в модальном окне успеха */
.modal-payment-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.22) 100%);
    border: 1.5px dashed var(--accent-glow);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.payment-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-amount {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-glow);
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.payment-details {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.payment-phone {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    margin-top: 6px;
    letter-spacing: 0.5px;
    user-select: all;
}

.modal-close-btn {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
}

/* Выбор Домиков Карточками */
.rooms-selection-wrap {
    margin-bottom: 20px;
}

.rooms-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dim);
}

.rooms-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    margin: -10px;
}

.room-card {
    background: rgba(18, 38, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.room-card:hover:not(.disabled) {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.room-card.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.3));
    border: 2px solid #34d399;
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.5);
}

.room-card.disabled {
    opacity: 0.75;
    cursor: pointer;
    background: rgba(10, 24, 18, 0.6);
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.room-card.disabled:hover {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

@keyframes calendarPulse {
    0% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
    50% { border-color: #34d399; box-shadow: 0 0 25px rgba(52, 211, 153, 0.5); }
    100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
}

.calendar-wrap.pulse-highlight {
    animation: calendarPulse 1.2s ease-in-out;
}

.room-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.room-card-icon {
    font-size: 15px;
}

.room-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.room-card-status {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
}

.room-card.selected .room-card-status {
    color: #34d399;
    font-weight: 600;
}

.room-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #34d399;
    margin-top: 6px;
}

.room-card.disabled .room-card-price {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 580px) {
    .rooms-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .room-card {
        padding: 8px 4px;
        min-height: 75px;
        border-radius: var(--radius-sm);
    }

    .room-card-header {
        gap: 2px;
    }

    .room-card-icon {
        font-size: 12px;
    }

    .room-card-title {
        font-size: 11px;
    }

    .room-card-status {
        font-size: 9px;
        margin-top: 2px;
    }

    .room-card-price {
        font-size: 11px;
        margin-top: 4px;
    }
}

/* Блок соцсетей и карт под кнопкой бронирования */
.social-links-block {
    margin-top: 24px;
    padding-top: 12px;
    border-top: none;
    text-align: center;
    width: 100%;
}

.social-links-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.social-links-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    row-gap: 20px;
    column-gap: 20px;
    text-decoration: none !important;
    font-size: initial;
    line-height: initial;
}

.social-links-grid a,
.social-links-grid a:hover,
.social-links-grid a:focus,
.social-links-grid a:active,
.social-links-grid a:visited {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    display: inline-flex;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none !important;
    text-decoration-line: none !important;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link-btn svg,
.social-link-btn img {
    width: 28px;
    height: 28px;
    fill: #ffffff;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.social-link-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.social-link-btn:hover svg,
.social-link-btn:hover img {
    fill: #ffffff;
    transform: scale(1.1);
}

/* Бренд-цвета для ховера */
.social-link-btn.tg:hover {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    border-color: #0088cc;
    box-shadow: 0 8px 22px rgba(0, 136, 204, 0.5);
}

.social-link-btn.bot:hover {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    border-color: #2aabee;
    box-shadow: 0 8px 22px rgba(42, 171, 238, 0.5);
}

.social-link-btn.insta:hover {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-color: #fd1d1d;
    box-shadow: 0 8px 22px rgba(253, 29, 29, 0.5);
}

.social-link-btn.yandex:hover {
    background: linear-gradient(135deg, #fc3f1d 0%, #e62e0e 100%);
    border-color: #fc3f1d;
    box-shadow: 0 8px 22px rgba(252, 63, 29, 0.5);
}

.social-link-btn.dgis:hover {
    background: linear-gradient(135deg, #61b832 0%, #4a9b22 100%);
    border-color: #61b832;
    box-shadow: 0 8px 22px rgba(97, 184, 50, 0.5);
}

.social-link-btn.vk:hover {
    background: linear-gradient(135deg, #0077ff 0%, #0056cc 100%);
    border-color: #0077ff;
    box-shadow: 0 8px 22px rgba(0, 119, 255, 0.5);
}

@media (max-width: 480px) {
    .social-links-grid {
        gap: 14px;
        row-gap: 14px;
        column-gap: 14px;
    }
    .social-link-btn {
        width: 46px;
        height: 46px;
    }
    .social-link-btn svg,
    .social-link-btn img {
        width: 25px;
        height: 25px;
    }
}

/* Чекбокс согласия с правилами */
.rules-agree-wrap {
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(8, 24, 16, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.rules-agree-wrap.error-shake {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    width: 100%;
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 5px;
    background: rgba(5, 18, 12, 0.8);
    border: 1.5px solid rgba(52, 211, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    margin-top: 1px;
}

.checkbox-label:hover .custom-checkbox {
    border-color: var(--accent-glow);
    background: rgba(16, 185, 129, 0.15);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: var(--accent-glow);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✓';
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.checkbox-text {
    display: block;
    white-space: normal;
    word-break: normal;
    flex: 1;
}

.rules-link-btn {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: var(--accent-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rules-link-btn:hover {
    color: #ffffff;
}

/* Модальное окно правил */
.rules-modal-card {
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
    align-items: stretch;
}

.rules-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 34, 23, 0.85);
}

.rules-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-small {
    font-size: 22px;
}

.modal-close-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close-icon:hover {
    color: var(--accent-glow);
    transform: scale(1.15);
}

.rules-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(90vh - 140px);
}

.rules-section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 2px 0;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(52, 211, 153, 0.25);
}

.rule-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.rule-item:hover {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(52, 211, 153, 0.2);
}

.rule-icon {
    font-size: 22px;
    min-width: 28px;
    text-align: center;
}

.rule-content strong {
    display: block;
    font-size: 14.5px;
    color: #ffffff;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.rule-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.full-rules-link {
    display: block;
    text-align: center;
    font-size: 13.5px;
    color: var(--accent-glow);
    text-decoration: none;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.full-rules-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-glow);
    color: #ffffff;
}

.rules-modal-footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 34, 23, 0.85);
}

/* Премиум подпись разработчика ChattyApps */
.dev-footer {
    text-align: center !important;
    padding: 32px 16px 44px !important;
    margin-top: 32px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
}

.dev-footer-link,
.dev-footer-link:visited,
.dev-footer-link:active,
.dev-footer-link:link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    font-family: var(--font-heading, 'Plus Jakarta Sans', 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    padding: 10px 22px !important;
    border-radius: 9999px !important;
    background: radial-gradient(130% 130% at 20% 0%, rgba(52, 211, 153, 0.18) 0%, rgba(18, 42, 30, 0.85) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.dev-footer-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
    text-transform: uppercase !important;
}

.dev-footer-text {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
    color: #34d399 !important;
}

.dev-footer-arrow {
    color: #34d399 !important;
    font-size: 14px !important;
    transition: transform 0.25s ease !important;
}

.dev-footer-link:hover {
    transform: translateY(-3px) scale(1.03) !important;
    border-color: #34d399 !important;
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.35), 0 0 20px rgba(52, 211, 153, 0.25) !important;
    background: radial-gradient(130% 130% at 20% 0%, rgba(52, 211, 153, 0.28) 0%, rgba(18, 42, 30, 0.95) 100%) !important;
}

.dev-footer-link:hover .dev-footer-arrow {
    transform: translate(2px, -2px) !important;
}

/* ==========================================================================
   АДМИН-КАЛЕНДАРЬ БРОНИРОВАНИЙ
   ========================================================================== */
.admin-calendar-wrap {
    background: rgba(18, 42, 30, 0.65);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.adm-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.adm-cal-month-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.adm-cal-nav-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-cal-nav-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: #34d399;
    color: #34d399;
}

.adm-cal-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}

.adm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.adm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.adm-dot.checkin { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.7); }
.adm-dot.pending { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.7); }
.adm-dot.stay { background: #94a3b8; box-shadow: 0 0 10px rgba(148, 163, 184, 0.5); }
.adm-dot.checkout { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }

.adm-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.adm-cal-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dim, #64748b);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.adm-cal-day {
    min-height: 95px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    user-select: none;
}

.adm-cal-day:hover {
    background: rgba(52, 211, 153, 0.09);
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.adm-cal-day.today {
    border-color: #34d399 !important;
    background: rgba(52, 211, 153, 0.08) !important;
    box-shadow: inset 0 0 12px rgba(52, 211, 153, 0.15);
}

.adm-cal-day.selected {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.adm-cal-day.other-month {
    opacity: 0.25;
}

.adm-cal-day-num {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adm-cal-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 70px;
    scrollbar-width: none;
}
.adm-cal-badges::-webkit-scrollbar { display: none; }

.adm-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.adm-badge-text {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adm-badge-id {
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.adm-badge.checkin {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}
.adm-badge.pending {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.adm-badge.stay {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.adm-badge.checkout {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.adm-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.adm-badge.checkin .adm-badge-dot { background: #10b981; }
.adm-badge.pending .adm-badge-dot { background: #f59e0b; }
.adm-badge.stay .adm-badge-dot { background: #94a3b8; }
.adm-badge.checkout .adm-badge-dot { background: #ef4444; }

/* Дневные карточки */
.adm-day-detail-panel {
    background: rgba(18, 42, 30, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.adm-bcard {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease;
}

.adm-bcard:hover {
    border-color: rgba(52, 211, 153, 0.3);
}

.adm-bcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.adm-bcard-title {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
}

.adm-bcard-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text-muted, #cbd5e1);
}

.adm-bcard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* ==========================================================================
   ЮРИДИЧЕСКИЕ ССЫЛКИ И УВЕДОМЛЕНИЯ ПО 152-ФЗ
   ========================================================================== */
.legal-consent-notice {
    font-size: 11.5px;
    color: var(--text-dim, #94a3b8);
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
    padding: 0 4px;
}

.legal-consent-notice a {
    color: #34d399;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-consent-notice a:hover {
    color: #6ee7b7;
}

.legal-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-dim, #94a3b8);
    flex-wrap: wrap;
}

.legal-footer-links a {
    color: var(--text-muted, #cbd5e1);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer-links a:hover {
    color: #34d399;
    text-decoration: underline;
}

.legal-sep {
    opacity: 0.4;
}

.adm-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   АДМИН-КАЛЕНДАРЬ (АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ)
   ========================================================================== */
@media (max-width: 768px) {
    .admin-calendar-wrap {
        padding: 10px 4px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .adm-cal-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .adm-cal-month-title {
        font-size: 16px !important;
        text-align: center !important;
    }

    .adm-cal-nav-btn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }

    .adm-cal-legend {
        gap: 6px !important;
        padding: 6px 8px !important;
        font-size: 10.5px !important;
        justify-content: space-around !important;
        margin-bottom: 10px !important;
    }

    .adm-legend-item {
        gap: 4px !important;
    }

    .adm-dot {
        width: 8px !important;
        height: 8px !important;
    }

    .adm-cal-weekdays {
        gap: 3px !important;
        width: 100% !important;
        margin-bottom: 4px !important;
    }

    .adm-cal-weekday {
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 4px 0 !important;
        text-align: center !important;
    }

    .adm-cal-grid {
        gap: 3px !important;
        width: 100% !important;
    }

    .adm-cal-day {
        min-height: 54px !important;
        height: auto !important;
        padding: 4px 2px !important;
        border-radius: 8px !important;
        gap: 2px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        position: relative !important;
    }

    .adm-cal-day-num {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        padding-left: 2px !important;
        box-sizing: border-box !important;
        color: #ffffff !important;
    }

    .adm-cal-day-num span {
        display: inline-block !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .adm-badge-text,
    .adm-badge-id {
        display: none !important; /* На телефонах прячем длинный текст и id в ячейках */
    }

    .adm-cal-badges {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        align-content: center !important;
        gap: 3.5px !important;
        max-width: 32px !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .adm-badge {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 6.5px !important;
        height: 6.5px !important;
        min-width: 6.5px !important;
        min-height: 6.5px !important;
        max-width: 6.5px !important;
        max-height: 6.5px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        flex: 0 0 6.5px !important;
        box-sizing: border-box !important;
    }

    .adm-badge.checkin,
    .adm-badge.pending,
    .adm-badge.stay,
    .adm-badge.checkout {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .adm-badge-dot {
        width: 6.5px !important;
        height: 6.5px !important;
        min-width: 6.5px !important;
        min-height: 6.5px !important;
        border-radius: 50% !important;
        margin: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .adm-badge.checkin .adm-badge-dot { background: #10b981 !important; box-shadow: 0 0 5px rgba(16, 185, 129, 0.8) !important; }
    .adm-badge.pending .adm-badge-dot { background: #f59e0b !important; box-shadow: 0 0 5px rgba(245, 158, 11, 0.8) !important; }
    .adm-badge.stay .adm-badge-dot { background: #94a3b8 !important; box-shadow: 0 0 5px rgba(148, 163, 184, 0.6) !important; }
    .adm-badge.checkout .adm-badge-dot { background: #ef4444 !important; box-shadow: 0 0 5px rgba(239, 68, 68, 0.8) !important; }

    .adm-day-detail-panel {
        padding: 14px !important;
        margin-top: 14px !important;
    }

    .adm-bcard {
        padding: 12px !important;
    }
}

/* ==========================================================================
   Cookie Banner & 152-ФЗ Legal Pages Styling
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 32px);
    max-width: 720px;
    background: rgba(12, 34, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
    padding: 16px 20px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-text strong {
    color: #ffffff;
}

.cookie-banner-text a, .cookie-banner-text button {
    color: var(--accent-glow);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.cookie-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cookie-banner-btn {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.cookie-banner-btn:hover {
    background: var(--accent-glow);
    color: #040906;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.5);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 20px);
        padding: 14px 16px;
    }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
        padding: 11px;
    }
}

/* Legal Card and Standalone Pages */
.legal-page-container {
    max-width: 840px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.legal-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 36px 32px;
}

.legal-header {
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.legal-badge-152 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.legal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 12px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.legal-list li::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 0;
    color: var(--accent-glow);
    font-size: 18px;
}

.legal-callout {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid var(--accent-emerald);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 18px 0;
}

.legal-callout-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 14.5px;
}

.legal-callout p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-text strong {
    color: #ffffff;
}

.cookie-banner-text a, .cookie-banner-text button {
    color: var(--accent-glow);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.cookie-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cookie-banner-btn {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.cookie-banner-btn:hover {
    background: var(--accent-glow);
    color: #040906;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.5);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 20px);
        padding: 14px 16px;
    }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
        padding: 11px;
    }
}

/* Legal Card and Standalone Pages */
.legal-page-container {
    max-width: 840px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.legal-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 36px 32px;
}

.legal-header {
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.legal-badge-152 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.legal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 12px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.legal-list li::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 0;
    color: var(--accent-glow);
    font-size: 18px;
}

.legal-callout {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid var(--accent-emerald);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin: 18px 0;
}

.legal-callout-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 14.5px;
}

.legal-callout p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.legal-back-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   🎁 СЕКЦИЯ НАКОПИТЕЛЬНЫХ БОНУСОВ И СПИСАНИЯ НА САЙТЕ
   ========================================================================== */
.bonus-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1.5px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px 0 16px;
    transition: all 0.3s ease;
}

.bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.bonus-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bonus-badge-icon {
    font-size: 18px;
}

.bonus-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.bonus-balance-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-emerald);
    color: var(--accent-glow);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.bonus-discount-preview {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.bonus-discount-preview strong {
    color: #34d399;
}

.bonus-switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(52, 211, 153, 0.25);
    user-select: none;
    margin-bottom: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.bonus-switch-label:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(52, 211, 153, 0.45);
}

.bonus-switch-label input {
    display: none;
}

.bonus-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.bonus-switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.bonus-switch-label input:checked + .bonus-switch-slider {
    background: #10b981;
}

.bonus-switch-label input:checked + .bonus-switch-slider::before {
    transform: translateX(20px);
}

.bonus-switch-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.bonus-applied-notice {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.4;
}

.bonus-hint-text {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.4;
}

.bonus-browser-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.btn-get-code {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-get-code:hover {
    opacity: 0.92;
}

.btn-get-code:active {
    transform: scale(0.98);
}

.btn-get-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bonus-code-input-wrap {
    margin-top: 10px;
}

.bonus-code-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(52, 211, 153, 0.4);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 9px 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    max-width: 150px;
}

.bonus-code-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.btn-verify-code {
    background: #34d399;
    color: #07130d;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-verify-code:hover {
    background: #6ee7b7;
}

.bonus-code-status {
    font-size: 12.5px;
    margin-top: 6px;
    line-height: 1.4;
}

.bonus-code-status.success {
    color: #34d399;
}

.bonus-code-status.error {
    color: #ef4444;
}

/* ==========================================================================
   🔔 ЛИСТ ОЖИДАНИЯ (WAITLIST)
   ========================================================================== */

/* Кнопка листа ожидания в шапке */
.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-waitlist-btn {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--accent-glow);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.top-nav-waitlist-btn:hover {
    background: rgba(52, 211, 153, 0.22);
    border-color: var(--accent-glow);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}

/* Плавающая боковая кнопка */
.floating-side-waitlist-btn {
    position: fixed;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    z-index: 99;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(4, 47, 36, 0.95) 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 10px 14px 10px 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-side-waitlist-btn:hover {
    padding-left: 16px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: var(--accent-glow);
    box-shadow: -6px 0 25px rgba(52, 211, 153, 0.35);
}

.floating-side-waitlist-btn .f-bell {
    font-size: 16px;
    animation: bell-shake 3.5s infinite ease-in-out;
}

.floating-side-waitlist-btn .f-text {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

@keyframes bell-shake {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(14deg); }
    90% { transform: rotate(-14deg); }
    95% { transform: rotate(7deg); }
}

@media (max-width: 600px) {
    .floating-side-waitlist-btn .f-text {
        display: none;
    }
    .floating-side-waitlist-btn {
        padding: 10px 10px;
        border-radius: 10px 0 0 10px;
    }
}

/* ==========================================
   СИСТЕМНЫЙ ЛОГ И КОНСОЛЬ (SYSTEM LOGS)
========================================== */
.log-line {
    font-family: 'Consolas', 'Fira Code', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    padding: 3px 6px;
    margin: 1px 0;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.log-line:hover {
    background: rgba(255, 255, 255, 0.04);
}

.log-line-default {
    color: #94a3b8;
}

.log-line-info {
    color: #cbd5e1;
}

.log-line-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
}

.log-line-warning {
    color: #fde047;
    background: rgba(234, 179, 8, 0.06);
    border-left: 3px solid #eab308;
}

.log-line-userbot {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.06);
    border-left: 3px solid #06b6d4;
}

.log-line-success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.06);
    border-left: 3px solid #22c55e;
}

.log-timestamp {
    color: #64748b;
    font-weight: 500;
    margin-right: 6px;
}

.log-badge-error {
    background: #ef4444;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10.5px;
}

.log-badge-warning {
    background: #eab308;
    color: #0f172a;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10.5px;
}

.log-badge-info {
    background: #0284c7;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10.5px;
}

.log-badge-userbot {
    background: #0891b2;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 10.5px;
}


