/* ================= 🎨 ПЕРЕМЕННЫЕ И ТЕМЫ ================= */
:root {
    --transition: all 0.2s ease;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-card: #ffffff;
    --bg-hover: #eaeaea;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent: #d32f2f;
    --accent-hover: #b71c1c;
    --success: #1a1a1a;
    --error: #d32f2f;
    --border: #1a1a1a;
    --input-bg: #ffffff;
    --shadow: 4px 4px 0 #1a1a1a;
    --font: 'Arial', 'Helvetica Neue', sans-serif;
}

html[data-theme="dark"] {
    --bg-primary: #121212 !important;
    --bg-secondary: #1e1e1e !important;
    --bg-card: #1a1a1a !important;
    --bg-hover: #2a2a2a !important;
    --text-primary: #e0e0e0 !important;
    --text-secondary: #a0a0a0 !important;
    --accent: #ef5350 !important;
    --accent-hover: #f44336 !important;
    --success: #e0e0e0 !important;
    --error: #ef5350 !important;
    --border: #e0e0e0 !important;
    --input-bg: #1a1a1a !important;
    --shadow: 4px 4px 0 #000000 !important;
}

/* 🔹 КРИТИЧНО: Явные цвета для html в обеих темах */
html {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: none !important;
}
html[data-theme="dark"] {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* ================= 💻 ДЕСКТОП: КНОПКА ВЫХОДА ================= */
@media (min-width: 769px) {
    .header-right {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }
    .header-right .btn,
    .header-right .btn-sm,
    .header-right [href*="logout"],
    .header-right [href*="client_logout"] {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .header-right [href*="logout"],
    .header-right [href*="client_logout"] {
        background: transparent !important;
        border: 2px solid var(--border) !important;
        color: var(--text-primary) !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        min-width: auto !important;
        width: auto !important;
    }
    .header-right [href*="logout"]:hover,
    .header-right [href*="client_logout"]:hover {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
        color: #fff !important;
    }
    .header-right .btn-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .top-header-bar {
        padding: 0 0.8rem !important;
        height: 56px !important;
    }
    .header-right {
        display: flex !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    .header-right .btn,
    .header-right a[href*="logout"],
    .header-right a[href*="login"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-width: auto !important;
        white-space: nowrap !important;
    }
    .header-right .btn span { display: none !important; }
    .header-right .btn svg { width: 18px !important; height: 18px !important; }
}

/* ================= 🖱️ КРАСНЫЙ СКРОЛЛБАР ================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); border-left: 1px solid var(--border); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ================= 🌍 ГЛОБАЛЬНЫЕ СТИЛИ ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden !important; width: 100% !important; }

/* 🔹 КРИТИЧНО: Убран !important из background-image */
body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 100vh;
    position: relative;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='10' y='30' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='20'%3E∫%3C/text%3E%3Ctext x='60' y='70' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='20'%3E∮%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='20' y='40' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='18'%3E∑%3C/text%3E%3Ctext x='50' y='60' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='18'%3E∏%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Ctext x='15' y='45' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='16'%3E√%3C/text%3E%3Ctext x='50' y='30' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='14'%3E∛%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Ctext x='20' y='35' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='16'%3Eπ%3C/text%3E%3Ctext x='45' y='50' fill='%2394a3b8' opacity='0.08' font-family='Arial' font-size='14'%3Eθ%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='25' cy='25' r='15' fill='none' stroke='%2394a3b8' stroke-width='0.5' opacity='0.08'/%3E%3Crect x='55' y='55' width='20' height='20' fill='none' stroke='%2394a3b8' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 90px 90px, 70px 70px, 100px 100px, 40px 40px, 40px 40px;
    background-position: 0 0, 20px 20px, 40px 10px, 10px 40px, 30px 30px, 0 0, 0 0;
    background-attachment: fixed;
}

/* 🔹 КРИТИЧНО: Явные цвета для body в тёмной теме */
html[data-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='10' y='30' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='20'%3E∫%3C/text%3E%3Ctext x='60' y='70' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='20'%3E∮%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='20' y='40' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='18'%3E∑%3C/text%3E%3Ctext x='50' y='60' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='18'%3E∏%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Ctext x='15' y='45' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='16'%3E√%3C/text%3E%3Ctext x='50' y='30' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='14'%3E∛%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Ctext x='20' y='35' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='16'%3Eπ%3C/text%3E%3Ctext x='45' y='50' fill='%2364748b' opacity='0.12' font-family='Arial' font-size='14'%3Eθ%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='25' cy='25' r='15' fill='none' stroke='%2364748b' stroke-width='0.5' opacity='0.12'/%3E%3Crect x='55' y='55' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E"),
        linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px) !important;
}

[data-theme="dark"] .main-content {
    background: radial-gradient(ellipse at top, rgba(30, 30, 40, 0.6) 0%, transparent 70%), #121212;
}
a { color: inherit; text-decoration: none; font-weight: 700; }

/* =================  МАТЕМАТИЧЕСКИЕ АКЦЕНТЫ ================= */
.math-icon {
    font-family: 'Courier New', monospace; font-weight: 700; color: var(--accent);
    font-size: 1.15em; margin-right: 4px; display: inline-flex; align-items: center; vertical-align: middle;
}
.grid-slot-time, .mobile-slot-time, .schedule-slot-time,
.card .table td[data-label="Время"], .card .table td[data-label="Дата"], .card > div:first-child {
    font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: 0.5px;
}
.card-title, .page-title, .modal-content h3 {
    position: relative; padding-bottom: 0.8rem; border-bottom: none !important;
    display: block; width: 100%;
}
.card-title::after, .page-title::after, .modal-content h3::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent); border-radius: 2px; opacity: 0.9;
}
.schedule-empty::before, .mobile-day-panel p:empty::before {
    content: "∅"; font-family: 'Courier New', monospace; font-size: 1.8rem;
    color: var(--text-secondary); opacity: 0.25; display: block; margin-bottom: 0.3rem;
}
.schedule-empty, .mobile-day-panel p:empty {
    position: relative; padding-left: 1.5rem; font-style: italic;
}
.btn:disabled::after {
    content: '∫'; animation: spin 0.8s linear infinite; display: inline-block;
    font-size: 1.1rem; margin-left: 0.5rem; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 📐 HEADER & NAV ================= */
.top-header-bar {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
    background: var(--bg-primary);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}
.logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    margin-right: auto !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center left;
}
.logo-link:hover { transform: scale(1.08); }
.site-logo {
    height: 38px !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: filter 0.3s ease;
}
.logo-link:hover .site-logo { filter: drop-shadow(0 5px 12px rgba(211, 47, 47, 0.5)); }
.logo-text {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}
.logo-text span { color: var(--accent); }

.top-nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.2rem;
}
.top-nav::-webkit-scrollbar { display: none; }
.nav-link {
    display: flex; align-items: center; padding: 0 0.8rem; height: 100%;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.3px; color: var(--text-primary);
    position: relative; white-space: nowrap; flex-shrink: 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: transparent; }

.header-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ================= 🔘 BUTTONS & INPUTS ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.8rem 1.5rem; background: var(--accent); color: #fff;
    border: 2px solid var(--accent); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.1s ease; box-shadow: 4px 4px 0 var(--border);
    position: relative; transform: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); background: var(--accent-hover); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border); filter: brightness(0.95); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; position: relative; transform: none; box-shadow: 2px 2px 0 var(--border); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 0; font-size: 0; }
.btn-icon svg { width: 22px; height: 22px; stroke: #fff; }
.btn-icon.btn-secondary svg { stroke: var(--text-primary); }
.btn-icon.btn-secondary:hover svg { stroke: #fff; }

.theme-toggle-btn {
    width: 40px; height: 40px; padding: 0;
    background: transparent;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    box-shadow: none;
}
.theme-toggle-btn svg { width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; }
.theme-toggle-btn:hover { background: var(--bg-hover); border-color: var(--accent); }

.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
    width: 100%; padding: 0.7rem; background: var(--input-bg); color: var(--text-primary); font-family: var(--font);
    border: none !important; border-bottom: 2px solid var(--border) !important;
    border-radius: 0 !important; transition: border-color 0.3s ease;
}
.form-control:focus, input:focus {
    border-bottom-color: var(--accent) !important; outline: none; box-shadow: 0 2px 0 0 var(--accent);
}
.form-control::placeholder, input::placeholder {
    color: var(--text-secondary); opacity: 0.6; font-family: 'Courier New', monospace;
}
input[type="date"], input[type="time"], input[type="datetime-local"] {
    color-scheme: light; background-color: var(--input-bg); color: var(--text-primary); border: 2px solid var(--border);
}
[data-theme="dark"] input[type="date"], [data-theme="dark"] input[type="time"], [data-theme="dark"] input[type="datetime-local"] { color-scheme: dark; }

/* ================= 🔔 NOTIFICATIONS ================= */
.notification-bell { position: relative; cursor: pointer; padding: 0.4rem; display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: color 0.2s; background: none; border: none; }
.notification-bell:hover { color: var(--accent); }
.notification-bell svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
.notification-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 800; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bg-primary); }
.notif-wrapper { position: relative; }
.notif-dropdown { display: none; position: absolute; top: 100%; right: 0; width: 340px; max-height: 420px; overflow-y: auto; background: var(--bg-card); border: 2px solid var(--border); box-shadow: 6px 6px 0 var(--border); z-index: 1001; margin-top: 0.5rem; }
.notif-dropdown.active { display: block; }
.notif-header { padding: 0.8rem 1rem; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid var(--border); position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.notif-list { list-style: none; }
.notif-item { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.8rem; transition: background 0.2s; }
.notif-item:hover { background: var(--bg-hover); }
.notif-text { flex: 1; font-size: 0.85rem; line-height: 1.4; }
.notif-time { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ================= 📦 LAYOUT & CARDS ================= */
.admin-layout { display: block; padding-top: 64px; }
.main-content { padding: 2rem 1.5rem; max-width: 1200px; width: 100%; margin: 0 auto !important; }
.page-title { font-size: 1.8rem; font-weight: 900; margin: 0 auto 1.5rem; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 0.5rem; }
.card { background: var(--bg-card); border: 2px solid var(--border); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 4px 4px 0 var(--border); }
.card:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--border); transition: var(--transition); }
.card-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 1rem; text-transform: uppercase; padding-bottom: 0.5rem; }

/* ================= 📅 SCHEDULE ================= */
.schedule-container { margin-top: 1rem; }
.schedule-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--border); padding-bottom: 1rem; }
.schedule-nav h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; margin: 0; flex-shrink: 0; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--border); padding-bottom: 1rem; }
.month-nav h3 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin: 0; }
.schedule-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    background: var(--border); border: 2px solid var(--border); border-radius: 4px; overflow: hidden;
    touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.grid-day-header { background: var(--bg-secondary); padding: 0.6rem 0.2rem; text-align: center; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; color: var(--text-secondary); }
.grid-day { background: var(--bg-card); min-height: 110px; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; position: relative; transition: background 0.2s; }
.grid-day:hover { background: var(--bg-hover); }
.grid-day.other-month { background: var(--bg-secondary); opacity: 1; cursor: default; pointer-events: none; border-color: transparent; }
.grid-day.other-month .grid-day-num span:first-child { color: var(--text-secondary); opacity: 0.25; font-weight: 400; }
.grid-day.other-month .grid-slot, .grid-day.other-month .grid-day-count, .grid-day.other-month .grid-add-btn { display: none; }
.grid-day-num { font-weight: 900; font-size: 0.9rem; margin-bottom: 0.2rem; display: flex; justify-content: space-between; align-items: center; }
.grid-day-count { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; }
.grid-slot {
    background: var(--bg-secondary); border-left: 3px solid var(--accent); padding: 0.25rem 0.4rem;
    font-size: 0.72rem; border-radius: 2px; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 0.3rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.grid-slot:hover { transform: translateX(3px); box-shadow: 2px 2px 0 var(--accent); z-index: 2; }
.grid-slot.booked { border-left-color: var(--success); background: rgba(22, 163, 74, 0.08); }
.grid-slot-time { font-weight: 700; font-family: monospace; white-space: nowrap; }
.grid-slot-info { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-add-btn {
    width: 100%; margin: 4px 0 0; padding: 6px 0; background: var(--accent); color: #ffffff;
    border: none; border-radius: 6px; font-size: 1.2rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center; letter-spacing: 2px; flex-shrink: 0;
}
.grid-add-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); background: var(--accent-hover); }
.grid-add-btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
[data-theme="dark"] .grid-add-btn { background: var(--accent); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
[data-theme="dark"] .grid-add-btn:hover { background: var(--accent-hover); }

.schedule-week { display: flex; flex-direction: column; border: 2px solid var(--border); }
.schedule-day { border-bottom: 2px solid var(--border); }
.schedule-day:last-child { border-bottom: none; }
.schedule-day-header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--bg-secondary); color: var(--text-primary); cursor: pointer; font-weight: 700; text-transform: uppercase; }
.schedule-day-header:hover { background: var(--accent); color: #fff; }
.schedule-weekday { font-size: 1.2rem; font-weight: 900; min-width: 40px; }
.schedule-day-num { font-size: 1.5rem; font-weight: 900; min-width: 35px; }
.schedule-day-month { font-size: 0.85rem; margin-left: auto; opacity: 0.8; }
.schedule-slots { display: none; background: var(--bg-secondary); }
.schedule-slots.open { display: block; }
.schedule-slot { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.5rem 0.8rem 4rem; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-primary); transition: var(--transition); }
.schedule-slot:hover { background: var(--bg-hover); border-left: 4px solid var(--accent); }
.schedule-slot:last-child { border-bottom: none; }
.schedule-slot-time { font-weight: 900; font-size: 1rem; min-width: 120px; font-family: monospace; }
.schedule-slot-info { flex: 1; font-size: 0.9rem; color: var(--text-secondary); }
.schedule-slot-actions { display: flex; gap: 0.5rem; align-items: center; }
.schedule-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; border: 2px solid var(--border); cursor: pointer; font-weight: 700; text-transform: uppercase; background: transparent; color: var(--text-primary); }
.schedule-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.schedule-btn-cancel, .schedule-btn-delete { border-color: var(--accent); color: var(--accent); }
.schedule-btn-cancel:hover, .schedule-btn-delete:hover { background: var(--accent); color: #fff; }
.schedule-empty { padding: 1rem 1.5rem 1rem 4rem; color: var(--text-secondary); font-style: italic; }
.schedule-btn-homework { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); background: transparent; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.schedule-btn-homework:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-card); }
.schedule-btn-homework-delete { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; padding: 0 0.3rem; opacity: 0.5; transition: var(--transition); }
.schedule-btn-homework-delete:hover { opacity: 1; color: var(--error); }
.icon-paperclip { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ================= 📊 TABLES & ALERTS ================= */
.table { width: 100%; border-collapse: collapse; border: 2px solid var(--border); }
.table th, .table td { padding: 0.8rem 1rem; text-align: left; border: 1px solid var(--border); }
.table th { background: var(--bg-secondary); font-weight: 900; text-transform: uppercase; font-size: 0.8rem; }
.alert { padding: 1rem 1.5rem; margin-bottom: 1.5rem; border: 2px solid var(--border); font-weight: 700; text-transform: uppercase; box-shadow: 4px 4px 0 var(--border); }
.alert-success { background: var(--bg-secondary); border-color: var(--accent); }
.alert-error { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ================= 🪟 MODALS & TOAST ================= */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s ease; backdrop-filter: blur(4px); }
.modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border: 3px solid var(--border);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 4px 4px 0 var(--border);
    position: relative;
    color: var(--text-primary);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.active .modal-content { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-back { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; margin-bottom: 1rem; transition: all 0.2s ease; }
.btn-back:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-hover); }
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 0.8rem; }
.toast { background: var(--bg-card); color: var(--text-primary); border: 2px solid var(--border); padding: 1rem 1.5rem; font-weight: 700; text-transform: uppercase; box-shadow: 4px 4px 0 var(--border); animation: slideIn 0.3s ease; min-width: 280px; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--accent); background: var(--accent); color: #fff; }
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* ================= 🔐 LOGIN ================= */
.login-container { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-secondary); }
.login-card { width: 100%; max-width: 420px; background: var(--bg-card); padding: 2.5rem; border: 3px solid var(--border); box-shadow: 4px 4px 0 var(--border); }

/* ================= 📈 STATISTICS & TYPE ================= */
.type-option { flex: 1; padding: 0.6rem; text-align: center; font-weight: 600; cursor: pointer; border: 2px solid var(--border); border-radius: 6px; transition: var(--transition); }
.type-option.active { border-color: var(--accent); background: rgba(255, 107, 107, 0.1); }
.type-option:hover { background: var(--bg-hover); }

/* ================= 🎥 VIDEO ================= */
.schedule-btn.video-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; color: white !important; border: none !important; }
#videoModal .modal-content { background: #000; border-radius: 12px; overflow: hidden; }
#videoContainer iframe { border-radius: 12px; }

/* ================= 🟢 MY BOOKINGS & PAST SLOTS ================= */
.grid-slot.my-booking, .mobile-slot-card.my-booking {
    background: var(--accent-bg, rgba(76, 175, 80, 0.12)) !important;
    border: 2px solid var(--accent, #4CAF50) !important;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.3) inset; position: relative;
}
[data-theme="dark"] .grid-slot.my-booking, [data-theme="dark"] .mobile-slot-card.my-booking {
    background: rgba(76, 175, 80, 0.15) !important; border-color: #66bb6a !important;
}
.grid-slot.my-booking::before {
    content: 'Моя'; position: absolute; top: -6px; right: -4px; background: var(--accent, #4CAF50);
    color: #fff; font-size: 0.6rem; padding: 1px 5px; border-radius: 8px; font-weight: 700;
    line-height: 1.2; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 2;
}
.grid-slot.past-slot, .mobile-slot-card.past-slot {
    opacity: 0.5; filter: grayscale(80%); background: var(--bg-secondary) !important;
    border-color: var(--text-secondary) !important; cursor: not-allowed; pointer-events: none;
}
.grid-slot.past-slot .grid-slot-info, .mobile-slot-card.past-slot .mobile-slot-info { color: var(--text-secondary) !important; font-style: italic; }
.grid-slot.past-slot .grid-slot-time, .mobile-slot-card.past-slot .mobile-slot-time { color: var(--text-secondary) !important; text-decoration: line-through; }

/* ================= 🔄 SWIPE ANIMATIONS ================= */
#scheduleGrid { will-change: transform, opacity; transition: none; }
@keyframes slideOutLeft { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
.anim-out-left { animation: slideOutLeft 0.3s ease-in forwards; }
@keyframes slideInFromRight { 0% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.anim-in-right { animation: slideInFromRight 0.3s ease-out forwards; }
@keyframes slideOutRight { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.anim-out-right { animation: slideOutRight 0.3s ease-in forwards; }
@keyframes slideInFromLeft { 0% { transform: translateX(-100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.anim-in-left { animation: slideInFromLeft 0.3s ease-out forwards; }

/* ================= 🔔 FIX NOTIF BELL ================= */
.notif-wrapper { position: relative; z-index: 1200 !important; }
.notification-bell { position: relative; z-index: 1201 !important; touch-action: manipulation; }
.notif-dropdown { z-index: 1300 !important; top: calc(64px + 8px) !important; pointer-events: auto !important; }

/* ================= 📱 МОБИЛЬНАЯ ВЕРСИЯ ================= */
@media (max-width: 768px) {
    .top-header-bar {
        padding: 0 0.4rem;
        gap: 0.3rem;
        align-items: center;
        flex-wrap: wrap;
        min-height: 64px;
    }
    .mobile-slot-card.filtered-hidden { display: none !important; }
    .logo-link {
        margin-right: auto !important;
        order: 1;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    .logo-text { display: none !important; }
    .site-logo { height: 32px !important; }

    .theme-toggle-btn {
        order: 2;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border: 2px solid var(--border);
        border-radius: 4px;
        background: var(--bg-primary);
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .theme-toggle-btn svg { width: 18px; height: 18px; stroke: var(--text-primary); }

    .menu-toggle {
        display: flex !important;
        order: 3;
        width: 36px !important;
        height: 36px !important;
        margin-left: 0.2rem;
        background: var(--bg-primary);
        border: 2px solid var(--border);
        border-radius: 4px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        z-index: 1060;
    }
    .menu-toggle svg { width: 18px; height: 18px; }

    .header-right {
        display: flex !important;
        order: 4;
        align-items: center;
        gap: 0.2rem;
        flex-shrink: 0;
        margin-left: 0.2rem;
    }

    .header-right .btn-icon,
    .header-right .mobile-auth-btn,
    .header-right [href*="logout"],
    .notification-bell {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border: 2px solid var(--border);
        border-radius: 4px;
        background: var(--bg-primary);
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        flex-shrink: 0;
        color: var(--text-primary);
    }
    .header-right .btn-icon svg,
    .header-right .mobile-auth-btn svg,
    .header-right [href*="logout"] svg,
    .notification-bell svg {
        width: 18px; height: 18px; stroke: var(--text-primary);
    }

    .header-right .mobile-auth-btn.enter,
    .header-right [href*="login"]:not(.btn-sm) {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
    }
    .header-right .mobile-auth-btn.enter svg,
    .header-right [href*="login"]:not(.btn-sm) svg {
        stroke: #fff !important;
    }

    .header-right .mobile-auth-btn.logout,
    .header-right [href*="logout"],
    .header-right a[href*="client_logout"] {
        background: var(--bg-primary) !important;
        border-color: var(--border) !important;
    }
    .header-right .mobile-auth-btn.logout svg,
    .header-right [href*="logout"] svg {
        stroke: var(--text-primary) !important;
    }

    .notif-wrapper { display: flex; align-items: center; }
    .notification-bell {
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        border: 2px solid var(--border); border-radius: 4px;
        background: var(--bg-primary); padding: 0;
    }
    .notification-bell svg { width: 18px; height: 18px; }
    .notif-dropdown {
        position: fixed; top: 64px; right: 0; left: 0;
        width: 100%; max-width: none; max-height: 50vh;
        z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .notif-dropdown.active { display: block; }
    .header-right .btn-sm { display: none !important; }

    .top-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
        background-color: var(--bg-card) !important;
        border-bottom: 3px solid var(--accent) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
        z-index: 1050 !important;
        padding: 0 !important;
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
    }

    .top-nav.open {
        display: flex !important;
        animation: fadeIn 0.2s ease;
    }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .nav-link {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1.2rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        border-bottom: 2px solid var(--border) !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        background: var(--bg-card) !important;
        background-color: var(--bg-card) !important;
        opacity: 1 !important;
    }
    .nav-link:last-child { border-bottom: none !important; }
    .nav-link.active {
        background: var(--bg-secondary) !important;
        color: var(--accent) !important;
    }
    .nav-link:active { background: var(--bg-hover) !important; }

    .main-content {
        padding: 1rem 0.5rem;
        padding-top: 70px !important;
    }
    .page-title { font-size: 1.2rem; }
    .card { padding: 1rem; }
    .card > div:first-child { font-size: 1.8rem !important; }

    .schedule-container { margin-top: 0.5rem; }
    .schedule-grid {
        display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 4px;
        width: 100%; max-width: 100%; background: var(--bg-secondary); border: 2px solid var(--border);
        border-radius: 8px; box-sizing: border-box; overflow: hidden;
    }
    .grid-day-header { display: block; font-size: 0.65rem; padding: 2px 1px; text-align: center; background: transparent; }
    .grid-day { min-height: 35px; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg-card); cursor: pointer; }
    .grid-day:active { transform: scale(0.96); }
    .grid-day.today { border: 1px solid var(--accent); }
    .grid-day.selected { background: var(--accent) !important; border-color: var(--accent-hover); }
    .grid-day.selected .grid-day-num, .grid-day.selected .grid-day-num span { color: #ffffff !important; }
    .grid-day.other-month { opacity: 0.3; pointer-events: none; background: transparent; }
    .grid-day-num { margin: 0; font-size: 0.85rem; font-weight: 700; line-height: 1; }
    .grid-day-count { display: none; }
    .grid-day > .grid-slot, .grid-day > .grid-add-btn { display: none !important; }
    .grid-add-btn { padding: 6px 0; font-size: 1.2rem; }

    .mobile-day-panel { display: none; margin-top: 10px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 8px; padding: 10px; }
    .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
    .panel-header h4 { margin: 0; font-size: 0.95rem; font-weight: 900; }
    .close-panel { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-secondary); padding: 0 4px; }
    .mobile-slot-card { background: var(--bg-secondary); border-left: 4px solid var(--accent); padding: 8px 10px; margin-bottom: 6px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .mobile-slot-card:active { transform: scale(0.98); }
    .mobile-slot-card.booked { border-left-color: var(--success); background: rgba(22, 163, 74, 0.08); }
    .mobile-slot-time { font-weight: 900; font-family: monospace; font-size: 0.9rem; min-width: 60px; }
    .mobile-slot-info { font-size: 0.85rem; color: var(--text-secondary); text-align: right; }

    .modal-content {
        width: 96%;
        margin: auto;
        padding: 3.5rem 1rem 1.5rem 1rem !important;
        max-height: 85vh;
        position: relative !important;
        z-index: 1 !important;
    }
    .modal-content .card-title {
        padding-right: 45px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }
    .modal-close {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
        z-index: 100001 !important;
        background: var(--accent) !important;
        color: #fff !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-tap-highlight-color: transparent;
    }

    .schedule-btn, .btn { width: 100%; min-height: 40px; font-size: 0.9rem; padding: 8px 10px; border-radius: 6px; }
    .btn-back { width: 100%; margin-bottom: 8px; justify-content: center; font-size: 0.9rem; }
    .form-control { font-size: 0.95rem; padding: 8px 10px; }

    .month-nav { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0.4rem 0; }
    .month-nav h3 { width: 100%; text-align: center; margin: 0; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .month-nav .btn-icon, #prevMonth, #nextMonth { display: none !important; }

    .form-grid-2col { grid-template-columns: 1fr; }
    #clientSearch { max-width: 100%; width: 100%; }
    .card .table, .card .table thead, .card .table tbody, .card .table th, .card .table td, .card .table tr { display: block; white-space: normal; }
    .card .table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .card .table tr { margin-bottom: 8px; border: 2px solid var(--border); border-radius: 6px; background: var(--bg-card); box-shadow: 3px 3px 0 var(--border); overflow: hidden; }
    .card .table td { display: block; border: none; border-bottom: 1px solid var(--border); position: relative; padding-left: 45%; padding-right: 10px; padding-top: 6px; padding-bottom: 6px; text-align: right; min-height: 40px; word-break: break-word; }
    .card .table td:last-child { border-bottom: none; }
    .card .table td::before { content: attr(data-label); position: absolute; left: 10px; width: 40%; text-align: left; font-weight: 700; text-transform: uppercase; font-size: 0.65rem; color: var(--text-secondary); }
    .card .table td[data-label="Действия"], .card .table td:last-child { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; padding-top: 8px; padding-bottom: 8px; }
    .card .table td[data-label="Действия"]::before { display: none; }
    .card .table td form { width: 100%; display: block; margin: 0; }
    .card .table td .btn-sm { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 8px; font-size: 0.75rem; min-width: 0; white-space: nowrap; box-sizing: border-box; }
    .card .table td .edit-btn, .card .table td .btn-danger { flex: 1; width: 100%; }

    #videoModal .modal-content { width: 100%; height: 100vh; max-width: none; max-height: none; border-radius: 0; }

    .top-nav, .top-nav.open {
        background: var(--bg-card) !important;
        background-color: var(--bg-card) !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
    }

    .nav-link {
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border) !important;
        margin: 0 !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .top-header-bar {
        padding: 0 0.8rem !important;
        height: 56px !important;
    }
    .header-right {
        display: flex !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
    }
    .header-right .btn,
    .header-right a[href*="logout"],
    .header-right a[href*="login"],
    .header-right .btn-sm {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0.35rem 0.5rem !important;
        min-width: auto !important;
    }
    .header-right .btn svg {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .header-right {
        display: flex !important;
        gap: 0.5rem !important;
    }
    .header-right .btn,
    .header-right a[href*="logout"],
    .header-right a[href*="login"] {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

[hidden] { display: none !important; }

@media (min-width: 769px) {
    .header-right {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    .header-right .btn,
    .header-right a.btn,
    .header-right [href*="login"],
    .header-right [href*="logout"],
    .header-right .mobile-auth-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        white-space: nowrap;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.85rem;
    }
    .header-right .btn svg,
    .header-right a svg,
    .header-right .mobile-auth-btn svg {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        stroke: currentColor !important;
        fill: none;
        stroke-width: 2;
    }
    .header-right .btn,
    .header-right a {
        color: var(--text-primary) !important;
        border: 2px solid var(--border) !important;
        background: var(--bg-primary) !important;
        padding: 0.5rem 1rem !important;
    }
    .header-right .btn:hover,
    .header-right a:hover {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
        color: #fff !important;
    }
    .header-right .btn:hover svg,
    .header-right a:hover svg {
        stroke: #fff !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1070 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
        position: relative !important;
    }
    .top-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1060 !important;
        display: none !important;
        flex-direction: column !important;
        background: var(--bg-card) !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25) !important;
        border-bottom: 3px solid var(--accent) !important;
        padding: 0 !important;
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
    }
    .top-nav.open {
        display: flex !important;
        animation: menuSlideDown 0.2s ease forwards;
    }
    @keyframes menuSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-link {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem !important;
        border-bottom: 1px solid var(--border) !important;
        background: var(--bg-card) !important;
    }
    .nav-link:last-child { border-bottom: none !important; }
}

.header-nav-desktop {
    display: flex;
    margin-left: 2rem;
}
.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .header-nav-desktop { display: none !important; }
}

.grid-slot { cursor: pointer; }
.grid-slot[draggable="true"] { cursor: grab !important; }
.grid-slot.dragging {
    opacity: 0.5;
    border: 2px dashed #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}
.grid-day.drag-over {
    background: rgba(241, 90, 90, 0.15) !important;
    border: 2px dashed var(--accent);
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* 🔹 Плавные переходы только для интерактивных элементов */
.card, .btn, .nav-link, .grid-slot, .mobile-slot-card, a {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}