:root {
    --bg: #050509; 
    --bg-card: #111318; 
    --bg-card-active: #1a1d26; 
    --accent: #00f3ff; 
    --accent-soft: rgba(0, 243, 255, 0.15);
    --text-main: #f5f5f5; 
    --text-muted: #9ca3af;
    --border: #272a36; 
    --border-bright: #3f4454;
    --danger: #ef4444; 
    --success: #22c55e;
    --warning: #facc15; 
    --admin-accent: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background-color: var(--bg); color: var(--text-main); min-height: 100vh; }
.page { max-width: 600px; margin: 0 auto; padding: 0 0 40px; position: relative; }
a { color: inherit; text-decoration: none; }

/* Кнопки */
.btn {
    border-radius: 12px; border: none; padding: 14px 20px; font-size: 15px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: 0.2s; width: 100%; text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-primary { 
    background: var(--accent); color: #000; 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 0 8px rgba(0, 243, 255, 0.5); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size:13px; padding: 10px; }
.btn-cal { background: #2563eb; color: white; margin-bottom: 20px; }
.btn-danger { background: var(--danger); color: white; }

/* Карточки */
.card {
    background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border);
    padding: 16px; margin: 0 16px 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Формы */
label { font-size: 13px; display: block; margin-bottom: 6px; color: var(--text-muted); font-weight: 500; }
input[type="text"], input[type="tel"], select {
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
    background: #0b0c10; color: var(--text-main); font-size: 16px; outline: none; transition: border 0.2s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 8px rgba(0,243,255,0.2); }

/* --- КАЛЕНДАРЬ И КНОПКИ --- */
input[type="date"] {
    font-family: inherit; 
    background: #000000;     
    color: var(--text-main); 
    border: 1px solid var(--border); 
    padding: 10px 12px; border-radius: 8px;
    color-scheme: dark;      
    text-transform: uppercase; font-weight: 700; outline: none;
}
input[type="date"]:focus { border-color: var(--accent); }

.btn-go {
    background: transparent;       
    color: var(--accent);          
    border: 2px solid var(--accent); 
    font-weight: 800; padding: 10px 24px; border-radius: 8px; cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1); 
    transition: 0.2s;
}
.btn-go:hover { 
    background: var(--accent);     
    color: #000; 
    box-shadow: 0 0 20px var(--accent); 
}

/* --- СЛОТЫ --- */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.slot-card { 
    background: var(--bg-card-active); 
    border-radius: 12px; 
    border: 1px solid var(--border-bright); 
    padding: 14px; position:relative; overflow:hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.slot-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); }

.slot-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; }
.type-LIGHT::before { background: #22c55e; }
.type-HOBBY::before { background: #38bdf8; }

.slot-card.full-slot {
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    opacity: 0.7;
    box-shadow: none;
}
.slot-card.full-slot:hover { transform: none; border-color: var(--border); }

.slot-top { display:flex; justify-content:space-between; margin-bottom: 4px; }
.slot-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.slot-time { font-size: 20px; font-weight: 800; color: #fff; }
.slot-info { font-size: 13px; color: var(--text-muted); margin-top: 4px; display:flex; justify-content:space-between; align-items:center; }

.calendar-header {
    background: var(--bg);
    padding: 15px 16px; 
    margin-bottom: 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border);
}

.header-text { display: flex; flex-direction: column; gap: 4px; }
.title { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; }
.mark { 
    font-size: 10px; color: var(--accent); border: 1px solid var(--accent); 
    padding: 2px 5px; border-radius: 4px; margin-left: 5px; vertical-align: middle;
    box-shadow: 0 0 8px var(--accent-soft); 
}

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.logo { width: 100px; height: auto; filter: drop-shadow(0 0 12px var(--accent-soft)); }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.contact-link {
    font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: none;
    display: flex; align-items: center; gap: 5px;
}
.contact-link:hover { color: #fff; }
.contact-link.accent { color: var(--accent); }

.status-row { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.status-title { color: var(--danger); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.status-call { font-size: 12px; color: #e2e8f0; white-space: nowrap; }
.status-call a { color: var(--accent); text-decoration: none; font-weight: 700; border-bottom: 1px dotted var(--accent); }

.date-nav { display: flex; gap: 8px; margin: 0 16px 20px; align-items: center; background: #0b0c10; padding: 10px; border-radius: 12px; border: 1px solid var(--border); }
.day-section { margin-bottom: 20px; padding: 0 16px; }
.day-header { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); display:flex; align-items:center; gap:8px; }
.day-header span { color: var(--text-main); }

/* Admin Grid */
.admin-grid { display: flex; flex-wrap: wrap; gap: 15px; padding-bottom: 20px; align-items: flex-start; }

/* УВЕЛИЧЕННАЯ ШИРИНА ДЛЯ АДМИНА */
.day-column { width: 220px; flex-shrink: 0; background: #111318; padding: 10px; border-radius: 10px; border: 1px solid #333; }

.day-title { text-align: center; font-weight: bold; margin-bottom: 10px; color: var(--accent); }
.slot-count { float: right; font-weight: bold; color: #fff; }

/* УВЕЛИЧЕННАЯ ВЫСОТА СЛОТА АДМИНА */
.adm-slot { 
    display: block; padding: 8px 12px; margin-bottom: 8px; border-radius: 6px; 
    background: #050509; border: 1px solid #333; text-decoration: none; color: #fff; 
    font-size: 13px; transition: 0.1s; 
    min-height: 40px; /* Чтобы влезали статусы */
}
.adm-light { border-left: 4px solid #22c55e; }
.adm-hobby { border-left: 4px solid #38bdf8; }
.adm-busy { background: rgba(255, 140, 0, 0.1); border: 1px solid #ff8c00; box-shadow: 0 0 12px rgba(255, 140, 0, 0.2); }
.adm-busy .slot-time { font-weight: 800; color: #ff8c00; }

.neon-glow { border-color: var(--accent) !important; box-shadow: 0 0 10px var(--accent), inset 0 0 5px rgba(0,243,255,0.2) !important; color: #fff !important; text-shadow: 0 0 5px var(--accent); }
.options-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 500px) { .options-grid { grid-template-columns: 1fr 1fr; } }
.complex-option { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.option-label { flex-grow: 1; position: relative; cursor: pointer; margin: 0; }
.option-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-content { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: #0b0c10; transition: 0.15s; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.option-label input:checked + .option-content { border-color: var(--accent); background: var(--accent-soft); color: #fff; box-shadow: 0 0 12px rgba(0,243,255,0.15); }
.option-label input:disabled + .option-content { opacity: 0.5; cursor: not-allowed; background: #000; }
.option-title { font-size: 14px; font-weight: 500; }
.option-note { font-size: 11px; color: var(--accent); margin-top: 2px; }
.info-btn { width: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 10px; background: #0b0c10; color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: 0.2s; position: relative; z-index: 50; }
.info-btn:active { background: var(--border); }
.help-text { display: none; font-size: 13px; color: #e2e8f0; margin: 0 16px 12px; padding: 12px; background: rgba(255,255,255,0.08); border-radius: 8px; line-height: 1.5; border-left: 2px solid var(--accent); }
.price-block { text-align: center; margin: 20px 16px; padding: 15px; background: rgba(0, 243, 255, 0.05); border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 12px; box-shadow: 0 0 15px rgba(0, 243, 255, 0.05); }
.price-val { font-size: 28px; font-weight: 800; color: var(--accent); text-shadow: 0 0 12px rgba(0,243,255,0.4); }
.warning-box { display: none; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5; padding: 12px; border-radius: 10px; margin: 15px 16px; font-size: 13px; line-height: 1.4; font-weight: 600; text-align: center; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); } 70% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.header-overlay { background: var(--bg); border-bottom: 1px solid var(--border); padding: 15px 0 20px; margin-bottom: 15px; position: sticky; top: 0; z-index: 50; }
.back-nav { margin-bottom: 15px; padding: 0 16px; }
.back-link { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.neon-line { padding: 0 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; line-height: 1.2; }
.neon-type-light { font-size: 28px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #22c55e; }
.neon-type-hobby { font-size: 28px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #00f3ff; }
.neon-details { font-size: 17px; font-weight: 600; color: #e2e8f0; text-transform: uppercase; letter-spacing: 0.05em; }
.header-desc { margin-top: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.5; padding: 0 16px; }
.header-desc a { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.info-block { margin-top: 20px; text-align: left; font-size: 14px; color: #e2e8f0; background: #111318; border: 1px solid var(--border); padding: 20px; border-radius: 12px; line-height: 1.6; }
.info-block h3 { margin: 15px 0 10px 0; font-size: 15px; color: var(--accent); }
.info-block h3:first-child { margin-top: 0; }
.info-list { margin: 0; padding-left: 0; list-style: none; }
.info-list li { margin-bottom: 6px; }
.important-text { color: #fcd34d; font-weight: bold; margin: 10px 0; }
.admin-header { border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-badge { background: var(--admin-accent); color: white; padding: 4px 8px; border-radius: 6px; font-weight: bold; font-size: 12px; }
.admin-links { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.admin-nav-link { color: #fff; background: #1f2937; padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px; }
.admin-nav-link:hover { border-color: var(--accent); color: var(--accent); }
.adm-details-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 15px; }
.adm-details-table th { text-align: left; color: var(--text-muted); padding: 10px; border-bottom: 1px solid var(--border); }
.adm-details-table td { padding: 12px 10px; border-bottom: 1px solid #333; vertical-align: top; }
.adm-details-table tr:last-child td { border-bottom: none; }
.adm-client-info { margin-bottom: 4px; }
.adm-client-phone { font-size: 14px; font-weight: bold; color: var(--accent); text-decoration: none; margin-right: 10px; }
.adm-client-phone:hover { text-decoration: underline; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; margin-right: 5px; text-decoration: none; font-size: 18px; }
.btn-phone { background: rgba(255,255,255,0.1); color: #fff; }
.btn-wa { background: rgba(34,197,94,0.2); color: #22c55e; }
.btn-book { padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 8px; text-decoration:none; background: transparent; color: #fff; border: 1px solid var(--border); box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: 0.2s; }
.btn-book:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
.alert-ok { background: rgba(34,197,94,0.2); color: #4ade80; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
.alert-err { background: rgba(239,68,68,0.2); color: #f87171; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
/* --- ПОГОДА (Weather Widget) --- */
.weather-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    
    /* УВЕЛИЧИЛИ РАЗМЕРЫ */
    padding: 6px 14px;       /* Больше отступы внутри */
    font-size: 18px;         /* Шрифт крупнее (было 14px) */
    gap: 8px;                /* Расстояние между иконкой и цифрой */
    font-weight: 700;
    
    color: #fff;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    
}
/* Маленький бейдж для админки */
.weather-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    
    padding: 1px 5px;
    font-size: 11px; /* Мелкий шрифт */
    font-weight: 600;
    color: #e2e8f0;
    
    margin-left: 6px; /* Отступ от времени */
    vertical-align: middle;
}