/* === Гранд-отель: тёмная тема с золотыми акцентами === */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: #0c0b09; color: #f2ece0; overflow-x: hidden; min-height: 100vh; }
h1, h2, h3 { font-family: 'Playfair Display', serif; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2722; border-radius: 3px; }
a { color: inherit; text-decoration: none; }

/* ==================== Блобы ==================== */
.auth-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: blobFloat 12s ease-in-out infinite alternate; }
.blob-1 { width: 500px; height: 500px; background: #c9a96e; top: -10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: #5c4a2a; bottom: -15%; right: -5%; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: #8b6914; top: 50%; left: 60%; animation-delay: -8s; }
.blob-4 { display: none; }
@keyframes blobFloat {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-30px) scale(1.05); }
    66% { transform: translate(-20px,20px) scale(0.95); }
    100% { transform: translate(30px,-10px) scale(1.02); }
}

/* ==================== Авторизация ==================== */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.glass { background: rgba(21,20,18,0.75); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid rgba(201,169,110,0.15); }
.auth-card { border-radius: 24px; padding: 36px; max-width: 400px; width: 100%; position: relative; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.auth-logo { width: 60px; height: 60px; border-radius: 16px; background: rgba(201,169,110,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.auth-logo i { font-size: 24px; color: #c9a96e; }
.auth-title { text-align: center; font-size: 28px; font-weight: 700; color: #f2ece0; margin-bottom: 8px; }
.auth-subtitle { text-align: center; font-size: 14px; color: #8a8477; margin-bottom: 8px; }
.auth-divider { display: none; }
.form-group { position: relative; margin-bottom: 14px; }
.form-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5a5650; font-size: 14px; pointer-events: none; }
.input-field { width: 100%; padding: 13px 16px 13px 42px; background: rgba(255,255,255,0.04); border: 2px solid #2a2722; border-radius: 12px; color: #f2ece0; font-size: 15px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.input-field::placeholder { color: #5a5650; }
.input-field:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,0.1); }
.input-field.error { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.1); }
.input-field:disabled { opacity: 0.5; cursor: not-allowed; }
.error-message { color: #f87171; font-size: 14px; text-align: center; margin-top: 6px; }
.hidden { display: none !important; }

/* Ссылки в форме авторизации */
.auth-link { color: #8a8477; font-size: 13px; text-align: center; cursor: pointer; transition: color 0.2s; background: none; border: none; font-family: 'DM Sans', sans-serif; }
.auth-link:hover { color: #c9a96e; }
.auth-bottom-links { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.text-link { color: #8a8477; font-size: 13px; cursor: pointer; transition: color 0.2s; background: none; border: none; font-family: 'DM Sans', sans-serif; }
.text-link:hover { color: #c9a96e; }

/* ==================== Переключатель языка (авторизация) ==================== */
.auth-lang-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: rgba(21,20,18,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 10px;
    overflow: hidden;
}
.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #5a5650;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    line-height: 1.4;
}
.lang-btn:hover { color: #8a8477; }
.lang-btn.active {
    background: rgba(201,169,110,0.15);
    color: #c9a96e;
}

/* ==================== Переключатель тем на авторизации ==================== */
.auth-theme-switcher { position: fixed !important; top: 16px !important; left: 16px !important; right: auto !important; z-index: 50 !important; }
.auth-theme-switcher .theme-toggle-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(201,169,110,0.15); background: rgba(21,20,18,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #8a8477; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 14px; }
.auth-theme-switcher .theme-toggle-btn:hover { color: #c9a96e; border-color: rgba(201,169,110,0.3); }

/* ==================== Кнопки ==================== */
.btn-primary { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, #c9a96e, #a88b4a); color: #0c0b09; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: transform 0.2s, box-shadow 0.2s; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(201,169,110,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary .spinner { width: 16px; height: 16px; border-width: 2px; }

.btn-ghost { padding: 10px 18px; border: 1px solid #2a2722; border-radius: 10px; background: transparent; color: #8a8477; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost:hover { border-color: #3a3732; color: #f2ece0; background: rgba(255,255,255,0.03); }

/* Кнопка отмены заказа */
.btn-cancel, .btn-cancel-order {
    padding: 8px 16px;
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 10px;
    background: rgba(248,113,113,0.06);
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-cancel:hover, .btn-cancel-order:hover { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.35); }
.btn-cancel:active, .btn-cancel-order:active { transform: scale(0.97); }
.btn-cancel:disabled, .btn-cancel-order:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Кнопка повтора заказа */
.btn-repeat {
    padding: 8px 16px;
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 10px;
    background: rgba(201,169,110,0.06);
    color: #c9a96e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-repeat:hover { background: rgba(201,169,110,0.12); border-color: rgba(201,169,110,0.35); }
.btn-repeat:active { transform: scale(0.97); }

/* Вторичная кнопка (в модалках и диалогах) */
.btn-secondary {
    padding: 12px 20px;
    border: 1px solid #2a2722;
    border-radius: 12px;
    background: transparent;
    color: #8a8477;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-secondary:hover { border-color: #3a3732; color: #f2ece0; background: rgba(255,255,255,0.03); }

/* Кнопка выхода */
.btn-logout {
    padding: 8px 14px;
    border: 1px solid #2a2722;
    border-radius: 10px;
    background: transparent;
    color: #8a8477;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-logout:hover { border-color: rgba(248,113,113,0.3); color: #f87171; background: rgba(248,113,113,0.06); }
.btn-logout .logout-text { display: none; }

/* ==================== Шапка ==================== */
.main-app { display: flex; flex-direction: column; min-height: 100vh; }
.app-header { position: sticky; top: 0; z-index: 40; background: rgba(12,11,9,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid #2a2722; }
.header-decor { display: none; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 36px; height: 36px; border-radius: 10px; background: rgba(201,169,110,0.12); display: flex; align-items: center; justify-content: center; }
.header-logo i { font-size: 14px; color: #c9a96e; }
.header-brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #f2ece0; }
.brand-sub { font-size: 12px; color: #5a5650; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { display: flex; align-items: center; gap: 10px; }
.room-badge { background: rgba(201,169,110,0.12); color: #c9a96e; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.room-badge i { font-size: 12px; }

/* ==================== Переключатель тем ==================== */
.theme-switcher { position: relative; }
.theme-toggle-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #2a2722; background: transparent; color: #8a8477; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 14px; }
.theme-toggle-btn:hover { border-color: #3a3732; color: #c9a96e; }
.theme-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #1a1917; border: 1px solid #2a2722; border-radius: 14px; padding: 6px; min-width: 180px; box-shadow: 0 16px 48px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.25s; z-index: 50; }
.theme-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-option { width: 100%; padding: 10px 14px; border: none; border-radius: 10px; background: transparent; color: #8a8477; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 10px; transition: all 0.15s; text-align: left; }
.theme-option:hover { background: rgba(255,255,255,0.04); color: #f2ece0; }
.theme-option.active { color: #c9a96e; background: rgba(201,169,110,0.1); }
.theme-option i { width: 18px; text-align: center; font-size: 13px; }

/* ==================== Переключатель языка (шапка) ==================== */
.header-lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid #2a2722;
    border-radius: 8px;
    overflow: hidden;
}
.header-lang-switcher .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* ==================== Табы ==================== */
.desktop-tabs { display: flex; gap: 4px; }
.tab-btn { padding: 8px 18px; border: none; background: transparent; color: #5a5650; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; border-bottom: 2px solid transparent; transition: all 0.25s; white-space: nowrap; display: flex; align-items: center; gap: 6px; position: relative; }
.tab-btn i { font-size: 12px; }
.tab-btn:hover { color: #c9b89a; }
.tab-btn.active { color: #c9a96e; border-bottom-color: #c9a96e; }
/* Бейдж-счётчик на табе (уведомления) */
.tab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 100px;
    background: #f87171;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* Точка-индикатор на табе */
.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a96e;
    flex-shrink: 0;
}

/* ==================== Мобильная навигация ==================== */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(12,11,9,0.94); backdrop-filter: blur(20px); border-top: 1px solid #2a2722; padding: 6px 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.mobile-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; border: none; background: transparent; color: #5a5650; font-size: 11px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: color 0.2s; position: relative; }
.mobile-nav-btn i { font-size: 20px; }
.mobile-nav-btn.active { color: #c9a96e; }
.mobile-nav-btn .tab-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
}

/* ==================== Контент ==================== */
.main-content { flex: 1; max-width: 1100px; margin: 0 auto; width: 100%; padding: 24px 20px; }
.tab-panel { animation: fadeIn 0.35s ease; }
.fade-in { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== Поиск ==================== */
.search-box { position: relative; margin-bottom: 20px; }
.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255,255,255,0.04);
    border: 2px solid #2a2722;
    border-radius: 12px;
    color: #f2ece0;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input::placeholder { color: #5a5650; }
.search-input:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,0.1); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5a5650; font-size: 14px; pointer-events: none; }
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #5a5650;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}
.search-clear:hover { background: rgba(255,255,255,0.1); color: #f2ece0; }
.search-clear.visible { display: flex; }

/* ==================== Чипсы ==================== */
.chip-scroll, #categoryFilters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.chip-scroll::-webkit-scrollbar, #categoryFilters::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 18px; border-radius: 100px; border: 1px solid #2a2722; background: transparent; color: #8a8477; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.25s; white-space: nowrap; }
.chip:hover { border-color: #3a3732; color: #c9b89a; }
.chip.active { background: rgba(201,169,110,0.12); border-color: rgba(201,169,110,0.3); color: #c9a96e; }
.chip:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ==================== Карточки услуг ==================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service-card { background: #1a1917; border: 1px solid #2a2722; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-4px); border-color: #35322c; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.service-card:active { transform: translateY(-2px); }
.service-card-img { width: 100%; height: 180px; background: linear-gradient(135deg, #2a2418, #1a1917); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.placeholder-icon { font-size: 40px; color: #3a352a; }
.service-card-body { padding: 16px; }
.service-card-title { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: #f2ece0; margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-desc { font-size: 13px; color: #8a8477; margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.service-price { font-size: 20px; font-weight: 700; color: #c9a96e; }
.service-duration { font-size: 12px; color: #5a5650; display: flex; align-items: center; gap: 4px; }

/* ==================== Тулбар каталога и Список (List View) ==================== */
.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.view-toggle-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #2a2722;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #5a5650;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.view-toggle-btn:hover {
    border-color: #3a3732;
    color: #8a8477;
}
.view-toggle-btn.active {
    background: rgba(201,169,110,0.12);
    border-color: rgba(201,169,110,0.3);
    color: #c9a96e;
    box-shadow: 0 4px 16px rgba(201,169,110,0.15);
}

.mobile-category-select-wrap {
    display: none;
    min-width: 0;
}
.mobile-category-select-wrap select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border-radius: 12px;
    border: 2px solid #2a2722;
    background-color: rgba(255,255,255,0.04);
    color: #f2ece0;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5650' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.mobile-category-select-wrap select:focus {
    outline: none;
    border-color: #c9a96e;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
    background-color: rgba(255,255,255,0.06);
}
.mobile-category-select-wrap select option {
    background: #1a1917;
    color: #f2ece0;
}

.services-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.services-grid.list-view .service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1a1917;
    border: 1px solid #2a2722;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.services-grid.list-view .service-card:hover {
    transform: translateX(4px);
    border-color: rgba(201, 169, 110, 0.25);
    background: #1e1d1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.services-grid.list-view .service-card:active {
    transform: translateX(2px);
}
.services-grid.list-view .service-card-img,
.services-grid.list-view .service-card-title,
.services-grid.list-view .service-card-desc,
.services-grid.list-view .service-card-footer {
    display: none;
}
.services-grid.list-view .service-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.list-item-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f2ece0;
    line-height: 1.3;
    transition: color 0.2s;
}
.services-grid.list-view .service-card:hover .list-item-name {
    color: #c9a96e;
}
.list-item-desc {
    font-size: 13px;
    color: #8a8477;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 20px;
}
.services-grid.list-view .service-price {
    font-size: 18px;
    font-weight: 700;
    color: #c9a96e;
    white-space: nowrap;
}
.services-grid.list-view .service-duration {
    font-size: 12px;
    color: #5a5650;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ==================== Заказы ==================== */
.orders-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 700; color: #f2ece0; }
.orders-count { font-size: 13px; color: #5a5650; font-weight: 400; margin-left: 8px; }

/* Фильтры заказов */
.orders-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.orders-filters .chip { padding: 6px 14px; font-size: 12px; }

.order-card { background: #1a1917; border: 1px solid #2a2722; border-radius: 14px; padding: 16px; margin-bottom: 10px; transition: border-color 0.2s; }
.order-card:hover { border-color: #35322c; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-id { font-size: 13px; font-weight: 700; color: #c9a96e; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: rgba(59,130,246,0.12); color: #60a5fa; }
.badge-assigned { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-in_progress { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-completed { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-cancelled { background: rgba(248,113,113,0.12); color: #f87171; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.order-service { font-size: 14px; font-weight: 500; color: #f2ece0; margin-bottom: 4px; }
.order-description { font-size: 13px; color: #8a8477; line-height: 1.5; }
.order-time { font-size: 12px; color: #5a5650; margin-top: 10px; display: flex; align-items: center; gap: 5px; }

/* Действия с заказом */
.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(42,39,34,0.6);
}

/* Развернутые детали заказа */
.order-details { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(42,39,34,0.6); }
.order-details.open { display: block; animation: fadeIn 0.25s ease; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.info-label { font-size: 13px; color: #5a5650; }
.info-value { font-size: 13px; color: #f2ece0; font-weight: 500; text-align: right; max-width: 60%; word-break: break-word; }

/* Кнопка развернуть/свернуть заказ */
.order-expand-btn {
    background: none;
    border: none;
    color: #5a5650;
    font-size: 12px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    margin-top: 8px;
    transition: color 0.2s;
}
.order-expand-btn:hover { color: #8a8477; }
.order-expand-btn i { font-size: 10px; transition: transform 0.2s; }
.order-expand-btn.open i { transform: rotate(180deg); }

/* ==================== Профиль ==================== */
.profile-card {
    background: #1a1917;
    border: 1px solid #2a2722;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(201,169,110,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-avatar i { font-size: 22px; color: #c9a96e; }
.profile-info { min-width: 0; }
.profile-name { font-size: 16px; font-weight: 600; color: #f2ece0; margin-bottom: 2px; }
.profile-room { font-size: 13px; color: #8a8477; }

/* Список настроек */
.settings-list {
    background: #1a1917;
    border: 1px solid #2a2722;
    border-radius: 16px;
    overflow: hidden;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(42,39,34,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: rgba(255,255,255,0.02); }
.settings-item-left { display: flex; align-items: center; gap: 12px; }
.settings-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201,169,110,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-item-icon i { font-size: 14px; color: #c9a96e; }
.settings-item-label { font-size: 14px; font-weight: 500; color: #f2ece0; }
.settings-item-desc { font-size: 12px; color: #5a5650; margin-top: 2px; }
.settings-item-right { color: #5a5650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.settings-item-value { font-size: 13px; color: #8a8477; }

/* Разделитель секций */
.section-divider { height: 1px; background: #2a2722; margin: 20px 0; }

/* Версия приложения */
.version-text { text-align: center; font-size: 12px; color: #3a352a; margin-top: 24px; }

/* ==================== Модалки ==================== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel { background: #151412; border: 1px solid #2a2722; border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.97); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.modal-title { font-size: 20px; font-weight: 700; color: #f2ece0; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #2a2722; background: #1a1917; color: #8a8477; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 14px; }
.modal-close:hover { color: #f2ece0; background: #222120; }
.modal-body { padding: 20px; }
.modal-footer { padding: 0 20px 20px; }
.modal-service-info { display: flex; gap: 16px; padding: 16px; background: #1a1917; border-radius: 16px; border: 1px solid #2a2722; margin-bottom: 20px; }
.modal-service-info img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.modal-service-placeholder { width: 80px; height: 80px; border-radius: 12px; background: rgba(201,169,110,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-service-placeholder i { font-size: 24px; color: #3a352a; }
.modal-service-details { min-width: 0; }
.modal-service-name { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: #f2ece0; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-service-desc { font-size: 13px; color: #8a8477; margin-bottom: 8px; line-height: 1.5; }
.modal-service-meta { display: flex; align-items: center; gap: 12px; }
.modal-service-price { font-size: 18px; font-weight: 700; color: #c9a96e; }
.modal-service-duration { font-size: 12px; color: #5a5650; display: flex; align-items: center; gap: 4px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: #8a8477; margin-bottom: 8px; }
.textarea-field { width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.04); border: 2px solid #2a2722; border-radius: 12px; color: #f2ece0; font-size: 15px; font-family: 'DM Sans', sans-serif; min-height: 100px; resize: vertical; outline: none; transition: border-color 0.3s, box-shadow 0.3s; margin-bottom: 16px; }
.textarea-field::placeholder { color: #5a5650; }
.textarea-field:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,0.1); }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-primary { margin-top: 0; }
.modal-actions .btn-secondary { flex: 1; }

/* ==================== Модалка подтверждения ==================== */
.confirm-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.confirm-overlay.open { opacity: 1; visibility: visible; }
.confirm-panel {
    background: #151412;
    border: 1px solid #2a2722;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 28px 24px 24px;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.confirm-overlay.open .confirm-panel { transform: translateY(0) scale(1); }
.confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(248,113,113,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.confirm-icon i { font-size: 22px; color: #f87171; }
.confirm-icon.icon-warning { background: rgba(251,191,36,0.1); }
.confirm-icon.icon-warning i { color: #fbbf24; }
.confirm-icon.icon-info { background: rgba(96,165,250,0.1); }
.confirm-icon.icon-info i { color: #60a5fa; }
.confirm-title { font-size: 18px; font-weight: 700; color: #f2ece0; margin-bottom: 8px; }
.confirm-text { font-size: 14px; color: #8a8477; line-height: 1.6; margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn-secondary,
.confirm-actions .btn-cancel { flex: 1; justify-content: center; padding: 12px 16px; }
.confirm-actions .btn-danger {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.confirm-actions .btn-danger:hover { box-shadow: 0 8px 24px rgba(248,113,113,0.3); transform: translateY(-1px); }
.confirm-actions .btn-danger:active { transform: translateY(0); }
.confirm-actions .btn-danger:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ==================== Тосты ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 20px; border-radius: 12px; background: #1a1917; border: 1px solid #2a2722; box-shadow: 0 10px 40px rgba(0,0,0,0.5); font-size: 14px; font-weight: 500; color: #f2ece0; display: flex; align-items: center; gap: 10px; animation: toastIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; max-width: 360px; }
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-success .toast-icon { color: #34d399; }
.toast-error .toast-icon { color: #f87171; }
.toast-info .toast-icon { color: #60a5fa; }
.toast-warning .toast-icon { color: #fbbf24; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(0.95); } }

/* ==================== Загрузка / пусто ==================== */
.loading-box { display: flex; align-items: center; justify-content: center; padding: 80px 20px; flex-direction: column; gap: 12px; }
.loading-text { font-size: 13px; color: #5a5650; }
.spinner { width: 20px; height: 20px; border: 2.5px solid #2a2722; border-top-color: #c9a96e; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-light { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
.spinner-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-state-icon { font-size: 48px; color: #2a2722; margin-bottom: 16px; }
.empty-state-text { font-size: 15px; color: #5a5650; margin-bottom: 8px; }
.empty-state-hint { font-size: 13px; color: #3a352a; }

/* ==================== Скелетон-загрузка ==================== */
.skeleton { background: linear-gradient(90deg, #1a1917 25%, #222120 50%, #1a1917 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; border-radius: 8px; }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 280px; border-radius: 16px; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line-short { width: 60%; }
.skeleton-line-medium { width: 80%; }
.skeleton-title { height: 18px; width: 70%; margin-bottom: 10px; }
.skeleton-order { height: 120px; border-radius: 14px; margin-bottom: 10px; }

/* ==================== Утилиты ==================== */
.text-gold { color: #c9a96e; }
.text-muted { color: #8a8477; }
.text-dim { color: #5a5650; }
.text-danger { color: #f87171; }
.text-success { color: #34d399; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.error-inline { color: #f87171; text-align: center; padding: 40px 20px; font-size: 14px; }

/* ==================== Адаптив ==================== */
@media (max-width: 767px) {
    .mobile-nav { display: flex; }
    .desktop-tabs { display: none !important; }
    .main-content { padding-bottom: 90px; }
    .btn-logout .logout-text { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-panel { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
    .modal-overlay.open .modal-panel { transform: translateY(0); }
    .confirm-panel { margin: 0 12px; max-width: calc(100% - 24px); }
    .header-lang-switcher { display: none; }
    .auth-card { padding: 28px 20px; }
    .auth-title { font-size: 24px; }
    .orders-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .order-actions { flex-wrap: wrap; }
    .profile-card { flex-direction: column; text-align: center; }
    .toast { max-width: calc(100vw - 40px); }

    /* Мобильные настройки каталога */
    #categoryFilters { display: none !important; }
    .catalog-toolbar { flex-wrap: nowrap; }
    .mobile-category-select-wrap { display: flex; flex: 1; }
    .services-grid.list-view .service-card { padding: 14px 16px; }
    .services-grid.list-view .service-price { font-size: 16px; }
}

@media (max-width: 480px) {
    .services-grid.list-view .service-card {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .services-grid.list-view .service-card-body {
        flex-basis: calc(100% - 100px);
    }
    .list-item-meta {
        margin-left: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(42,39,34,0.5);
    }
}

@media (min-width: 768px) {
    .btn-logout .logout-text { display: inline; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .view-toggle-btn { margin-left: auto; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Стили для поля "Дополнительные пожелания" */
#orderDescription {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 2px solid #2a2722;
    border-radius: 12px;
    color: #f2ece0;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 16px;
}
#orderDescription::placeholder { color: #5a5650; }
#orderDescription:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,0.1); }

/* Стили для лейбла над ним */
label[for="orderDescription"] {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8a8477;
    margin-bottom: 8px;
}