/* ═══════════════════════════════════ */
/*          ПЕРЕМЕННЫЕ                */
/* ═══════════════════════════════════ */

:root {
    --color-bg: #f2d5de;
    --color-card: rgba(255, 255, 255, 0.6);
    --color-card-hover: rgba(255, 255, 255, 0.8);
    --color-border: rgba(232, 135, 154, 0.25);
    --color-accent: #2d2d2d;
    --color-accent-soft: #e8879a;
    --color-text: #2d2d2d;
    --color-text-muted: #999;
    --color-white: #fff;
    --color-pink-light: #fff0f3;

    --radius: 24px;
    --radius-sm: 14px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════ */
/*          СБРОС                     */
/* ═══════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    overflow: hidden;
}


/* ═══════════════════════════════════ */
/*          DASHBOARD LAYOUT          */
/* ═══════════════════════════════════ */

.dashboard {
    display: flex;
    height: 100vh;
    padding: 16px;
    gap: 16px;
}


/* ═══════════════════════════════════ */
/*          SIDEBAR                   */
/* ═══════════════════════════════════ */

.sidebar {
    width: 64px;
    min-width: 64px;
    background: var(--color-card);
    backdrop-filter: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
}

.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.sidebar-link.active {
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Tooltip */
.sidebar-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 54px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 16px;
}


/* ═══════════════════════════════════ */
/*          MAIN CONTENT              */
/* ═══════════════════════════════════ */

.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}


/* ═══════════════════════════════════ */
/*          TOP ROW                   */
/* ═══════════════════════════════════ */

.row-top {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 0;
}


/* ═══════════════════════════════════ */
/*          HERO CARD                 */
/* ═══════════════════════════════════ */

.card-hero {
    flex: 2;
    background: linear-gradient(145deg, #f5ebe6, #ede4dd);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.hero-body {
    margin: 0;
    padding: 20px 0;
}

.hero-body h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.hero-body p {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 400px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}


/* ═══════════════════════════════════ */
/*          RIGHT COLUMN              */
/* ═══════════════════════════════════ */

.col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
}


/* ═══════════════════════════════════ */
/*          GLASS CARDS               */
/* ═══════════════════════════════════ */

.glass-card {
    background: var(--color-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.glass-card:hover {
    background: var(--color-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}


/* ═══════════════════════════════════ */
/*          SERVICES CARD             */
/* ═══════════════════════════════════ */

.card-services {
    flex: 1;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-head h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-badge {
    background: var(--color-pink-light);
    color: var(--color-accent-soft);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.service-row .price {
    font-weight: 600;
    color: var(--color-accent-soft);
}

.service-row.muted {
    color: var(--color-text-muted);
    font-size: 12px;
}


/* ═══════════════════════════════════ */
/*          BOOKING CARD              */
/* ═══════════════════════════════════ */

.card-booking {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: transparent;
}

.card-booking:hover {
    background: #1a1a1a;
}

.booking-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.booking-icon {
    font-size: 28px;
}

.booking-inner h3 {
    font-size: 15px;
    font-weight: 600;
}

.booking-inner p {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

.btn-book {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-book:hover {
    background: rgba(255,255,255,0.25);
}


/* ═══════════════════════════════════ */
/*          BOTTOM ROW                */
/* ═══════════════════════════════════ */

.row-bottom {
    display: flex;
    gap: 16px;
    height: 220px;
    min-height: 220px;
}

.row-bottom .glass-card {
    flex: 1;
}

/* Отзывы и Галерея — пропорции заданы ниже */

.row-bottom h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}


/* ═══════════════════════════════════ */
/*          MASTERS CARD              */
/* ═══════════════════════════════════ */

.masters-avatars {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.avatar {
    width: 44px;
    height: 44px;
    background: var(--color-pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.avatar-more {
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}


/* ═══════════════════════════════════ */
/*          GALLERY CARD              */
/* ═══════════════════════════════════ */

.gallery-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gallery-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0e6e2, #e8ddd8);
    border-radius: var(--radius-sm);
}


/* ═══════════════════════════════════ */
/*          REVIEWS CARD              */
/* ═══════════════════════════════════ */

.review-mini .stars {
    color: #f0b340;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.review-mini p {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.4;
}


/* ═══════════════════════════════════ */
/*     РАСКРЫТИЕ КАРТОЧКИ             */
/* ═══════════════════════════════════ */

.card-full {
    display: none;
}

.glass-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 1000px;
    z-index: 200;
    cursor: default;
    padding: 48px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
}

.glass-card.expanded .card-preview {
    display: none;
}

.glass-card.expanded .card-full {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.glass-card.expanded .card-full h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.card-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--color-text);
}

.card-close:hover {
    background: rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════ */
/*          OVERLAY                   */
/* ═══════════════════════════════════ */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ═══════════════════════════════════ */
/*         СКРОЛЛБАР                  */
/* ═══════════════════════════════════ */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}


/* ═══════════════════════════════════ */

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    z-index: 1;
}

.hero-badge,
.hero-body,
.hero-stats {
    position: relative;
    z-index: 2;
}

/* ═══ Hero текст поверх видео — белый ═══ */
.card-hero .hero-body h1 {
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.card-hero .hero-body p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.card-hero .hero-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}
.card-hero .stat-value {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.card-hero .stat-label {
    color: rgba(255,255,255,0.8);
}

/* === Hero Video Slider === */

/* Hero Poster — мгновенная загрузка */
.hero-poster {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hero-poster.hero-poster-active {
    opacity: 1;
}
.card-hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}

.hero-video.hero-video-active {
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ═══════════════════════════════════ */
/*   КАРТОЧКИ — ВИЗУАЛЬНАЯ ИНДИВИДУАЛЬНОСТЬ   */
/* ═══════════════════════════════════ */

/* Все карточки — единая розовая обводка */
.card-masters,
.card-gallery,
.card-reviews,
.card-contacts,
.card-booking,
.card-services {
    border: 3px solid #e8879a !important;
}

/* Единый hover */
.card-masters:hover,
.card-gallery:hover,
.card-reviews:hover,
.card-booking:hover,
.card-services:hover {
    border-color: #d4748a;
    box-shadow: 0 8px 32px rgba(232, 135, 154, 0.12);
}

/* Декоративный фоновый символ в правом верхнем углу */
.card-masters::before,
.card-reviews::before,
.card-booking::before,
.card-services::before {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 48px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s;
}


.card-masters:hover::before,
.card-reviews:hover::before,
.card-booking:hover::before,
.card-services:hover::before {
    opacity: 0.08;
}

/* row-bottom — пропорции карточек */
.row-bottom .card-masters { flex: 1; }
.row-bottom .card-reviews { flex: 0 0 220px !important; width: 220px !important; height: 220px !important; aspect-ratio: 1 !important; }
.row-bottom .card-loyalty { flex: 0 0 220px !important; width: 220px !important; }
.row-bottom .card-gallery { flex: 1.4 !important; width: auto !important; height: auto !important; aspect-ratio: auto !important; min-width: 280px; }
.row-bottom .card-contacts { flex: 0.9; }


/* ═══════════════════════════════════ */
/*          MIDDLE ROW                */
/* ═══════════════════════════════════ */

.row-middle {
    display: flex;
    gap: 16px;
    height: 240px;
    min-height: 240px;
}

.row-middle .glass-card {
    flex: 1;
}


/* ═══════════════════════════════════ */
/*          LOYALTY CARD              */
/* ═══════════════════════════════════ */

.card-loyalty {
    border: 3px solid #e8879a !important;
    display: flex;
    flex-direction: column;
}

.card-loyalty:hover {
    border-color: #d4748a;
    box-shadow: 0 8px 32px rgba(232, 135, 154, 0.12);
}

.loyalty-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.loyalty-icon {
    font-size: 24px;
}

.loyalty-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.loyalty-levels {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.loyalty-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 140px;
    transition: transform 0.2s ease;
}

.loyalty-level:hover {
    transform: translateY(-2px);
}

.level-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.level-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.level-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.level-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
}

.level-badge.diamond {
    background: linear-gradient(135deg, #e8879a, #d4707f);
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.level-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.level-desc {
    font-size: 11px;
    color: var(--color-text-muted);
}

.loyalty-bonus {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8879a, #d4707f);
    border-radius: var(--radius-sm);
    margin-top: auto;
}

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

.bonus-text {
    font-size: 12px;
    color: white;
}

.bonus-text strong {
    font-weight: 700;
}


/* ═══════════════════════════════════ */
/*    GALLERY КВАДРАТ + LOYALTY       */
/* ═══════════════════════════════════ */

/* gallery — wide, not square (overridden above) */

.row-bottom .card-loyalty {
    flex: 0 0 200px;
    width: 200px;
    border: 3px solid #e8879a !important;
}

.card-loyalty:hover {
    border-color: #d4748a;
    box-shadow: 0 8px 32px rgba(232, 135, 154, 0.12);
}

.loyalty-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.loyalty-icon {
    font-size: 20px;
}

.loyalty-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.loyalty-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.loyalty-level {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.level-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.level-badge.bronze { background: linear-gradient(135deg, #cd7f32, #b8860b); }
.level-badge.silver { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); }
.level-badge.gold { background: linear-gradient(135deg, #ffd700, #ffb700); color: #1a1a1a; }
.level-badge.diamond { background: linear-gradient(135deg, #e8879a, #d4707f); }

.level-name {
    font-size: 11px;
    font-weight: 500;
}

.loyalty-bonus {
    padding: 8px 10px;
    background: linear-gradient(135deg, #e8879a, #d4707f);
    border-radius: 8px;
    font-size: 11px;
    color: white;
    text-align: center;
}

.loyalty-bonus strong {
    font-weight: 700;
}


/* ═══════════════════════════════════ */
/*    GALLERY + LOYALTY — ОДИНАКОВЫЕ  */
/* ═══════════════════════════════════ */

.row-bottom .card-loyalty {
    flex: 0 0 220px !important;
    width: 220px !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    aspect-ratio: 1 !important;
}










body.modal-open .dashboard {
    filter: brightness(0.5) !important;
}

body.modal-open .sidebar {
    filter: brightness(0.45) !important;
}

/* ═══ FORCE BORDERS — Reviews & Contacts ═══ */

/* Reviews & Contacts - розовый фон */
.glass-card.card-reviews,
.glass-card.card-contacts {
    background: rgba(253, 242, 248, 0.85) !important;
    border: 1px solid rgba(232, 135, 154, 0.3) !important;
    box-shadow: 0 4px 24px rgba(232, 135, 154, 0.08) !important;
}

.glass-card.card-reviews:hover,
.glass-card.card-contacts:hover {
    background: rgba(253, 242, 248, 0.95) !important;
    border: 1px solid rgba(232, 135, 154, 0.5) !important;
    box-shadow: 0 8px 32px rgba(232, 135, 154, 0.12) !important;
}

/* Рамки для Отзывы и Контакты */
.glass-card.card-reviews,
.glass-card.card-contacts {
    border: 3px solid #e8879a !important;
}

/* Знак рубля — системный шрифт */
.rub {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
    font-style: normal;
}

/* ═══════════════════════════════════ */

/* ═══════════════════════════════════ */
/*     OVERLAY — LIGHT (no blur)      */
/* ═══════════════════════════════════ */

.overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/*          LOGIN MODAL               */
/* ═══════════════════════════════════ */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.login-modal.active {
    opacity: 1;
    visibility: visible;
}
.login-modal-inner {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 48px 56px;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: 0 24px 80px rgba(0,0,0,0.15);
    max-width: 360px;
    width: 90%;
}
.login-modal.active .login-modal-inner {
    transform: scale(1) translateY(0);
}
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.login-modal-close:hover {
    color: var(--color-text);
}
.login-modal-icon {
    margin-bottom: 16px;
    color: var(--color-accent-soft);
}
.login-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.login-modal-text {
    font-size: 15px;
    color: var(--color-text-muted);
}
