@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --accent: #8B5CF6;
    --accent-2: #EC4899;
    --accent-soft: rgba(139, 92, 246, 0.12);
    --gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 45%, #EC4899 100%);
    --gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --surface: #FAFAFC;
    --surface-card: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.78);
    --border: rgba(139, 92, 246, 0.1);
    --shadow-sm: 0 2px 12px rgba(124, 58, 237, 0.06);
    --shadow-md: 0 12px 40px rgba(124, 58, 237, 0.14);
    --shadow-nav: 0 -4px 24px rgba(0, 0, 0, 0.06);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --primary: var(--accent);
    --gray-light: var(--surface-2, #F3F0FA);
    --gray: var(--border);
    --border-radius: var(--radius-md);
    --tg-bg-color: var(--surface);
    --tg-text-color: #1A1523;
    --tg-hint-color: #8B8499;
    --nav-height: 88px;
}

body.dark {
    --surface: #0D0B12;
    --surface-card: #16131F;
    --surface-2: #1E1A28;
    --surface-glass: rgba(22, 19, 31, 0.88);
    --border: rgba(167, 139, 250, 0.15);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --tg-bg-color: var(--surface);
    --tg-text-color: #F5F3FF;
    --tg-hint-color: #9B93AE;
    --gray-light: #1E1A28;
}

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

body {
    font-family: var(--font);
    background: var(--tg-bg-color);
    color: var(--tg-text-color);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -30%;
    width: 70%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.app {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Bottom Navigation ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 200;
    background: linear-gradient(to top, var(--tg-bg-color) 60%, transparent);
    pointer-events: none;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px 8px;
    box-shadow: var(--shadow-nav), var(--shadow-sm);
    pointer-events: all;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--tg-hint-color);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    transition: transform 0.25s ease;
}

.nav-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-item.active svg {
    stroke: var(--accent);
    transform: scale(1.08);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--gradient);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ─── Content ─── */
.content {
    flex: 1;
    padding: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.tab-content { display: none; animation: fadeIn 0.35s ease; }
.tab-content.active { display: block; }

.section-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--tg-hint-color);
    margin-bottom: 20px;
}

/* ─── Profile Hero ─── */
.profile-hero {
    margin: 0 -16px 20px;
    padding: 32px 20px 24px;
    background: var(--gradient);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.profile-avatar-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.2);
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.profile-tagline {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 20px;
}

.profile-stats-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.stat-chip {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
}

.stat-chip:active { background: rgba(255,255,255,0.3); }
.stat-chip .stat-value { display: block; font-size: 16px; font-weight: 800; }
.stat-chip .stat-label { font-size: 10px; opacity: 0.8; font-weight: 500; }

/* ─── Cards ─── */
.glass-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tg-hint-color);
    margin-bottom: 10px;
}

/* ─── Quick Actions ─── */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--tg-text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.action-tile:active { transform: scale(0.96); }

.action-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-tile-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.75;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--tg-hint-color);
    border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-row svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.75;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── Catalog ─── */
.catalog-header { margin-bottom: 16px; padding-top: 8px; }

.chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--tg-text-color);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chip.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

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

.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.service-card:active { transform: scale(0.99); }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.service-info { flex: 1; min-width: 0; }
.service-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.service-info p { font-size: 12px; color: var(--tg-hint-color); margin-bottom: 4px; }
.service-duration { font-size: 11px; color: var(--accent); font-weight: 600; }
.service-price { font-size: 17px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.btn-add {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.salon-picker { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.salon-switcher { margin: 8px 0 12px; }
.salon-switcher-label { font-size: 12px; color: var(--tg-hint-color); margin: 0 0 6px; }
.salon-switcher-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.salon-chip.active { background: var(--accent, #7c3aed); color: #fff; border-color: transparent; }
.salon-pick-btn { margin-bottom: 4px; }

.btn-add:active { transform: scale(0.9); }

/* ─── Buttons ─── */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background: var(--surface-card);
    color: var(--tg-text-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-full);
}

.btn-ghost:active { background: var(--accent-soft); }

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon svg { width: 18px; height: 18px; stroke: var(--tg-text-color); fill: none; stroke-width: 1.75; }

/* ─── Cart ─── */
.cart-header, .bookings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-qty { font-size: 12px; color: var(--tg-hint-color); }
.cart-item-price { font-weight: 700; font-size: 15px; }

.btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-footer {
    position: sticky;
    bottom: calc(var(--nav-height) + 8px);
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--shadow-md);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--tg-hint-color);
    margin-bottom: 6px;
}

.cart-total-row {
    font-size: 18px;
    font-weight: 800;
    color: var(--tg-text-color);
    margin: 8px 0 14px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.checkout-hint {
    text-align: center;
    font-size: 12px;
    color: var(--tg-hint-color);
    margin-top: 10px;
}

.promocode-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.promocode-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface-card);
    font-family: var(--font);
    font-size: 14px;
    color: var(--tg-text-color);
    outline: none;
}

.promocode-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn-apply-promo {
    padding: 12px 18px;
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.empty-state, .empty-cart {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon-wrap svg { width: 36px; height: 36px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.empty-state p, .empty-cart p { color: var(--tg-hint-color); margin-bottom: 20px; font-size: 15px; }

/* ─── Bookings ─── */
.booking-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent);
}

.booking-card.cancelled { border-left-color: var(--danger); opacity: 0.7; }
.booking-card.completed { border-left-color: var(--success); }

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.booking-number { font-size: 12px; font-weight: 700; color: var(--tg-hint-color); letter-spacing: 0.05em; }

.status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
}

.status-pill.confirmed { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.status-pill.pending { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.status-pill.cancelled { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.booking-time { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.booking-amount { font-size: 18px; font-weight: 800; }

.booking-actions-row { display: flex; gap: 8px; }

.btn-pay {
    padding: 8px 14px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel {
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ─── Reviews ─── */
.reviews-section { margin-top: 8px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 { font-size: 17px; font-weight: 700; }

.reviews-score-card {
    background: var(--gradient);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
}

.score-number { font-size: 52px; font-weight: 800; line-height: 1; }
.score-stars { font-size: 20px; margin: 6px 0; letter-spacing: 2px; }
.score-count { font-size: 13px; opacity: 0.8; }

.review-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
}

.review-author { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.review-stars { color: #F59E0B; font-size: 13px; margin-bottom: 6px; }
.review-text { font-size: 13px; color: var(--tg-hint-color); line-height: 1.5; }

/* ─── More Menu ─── */
.more-menu { padding-top: 8px; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.menu-item:active { transform: scale(0.98); background: var(--accent-soft); }

.menu-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon-wrap svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.75; }
.menu-label { flex: 1; font-weight: 600; font-size: 15px; }
.menu-arrow { color: var(--tg-hint-color); font-size: 18px; }

/* ─── Modals (Bottom Sheet) ─── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 11, 18, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: 0;
}

.modal-content {
    background: var(--surface-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 8px 20px 28px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: 8px auto 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 16px;
    cursor: pointer;
    color: var(--tg-hint-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Slots ─── */
.slot-dates {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.slot-date-btn, .slot-time-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.slot-date-btn.active, .slot-time-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.slot-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.qr-container {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    margin: 12px auto;
    max-width: 220px;
}

.qr-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.payment-actions .btn-secondary,
.payment-actions .btn-primary {
    width: 100%;
}

.payment-instruction { font-size: 14px; color: var(--tg-hint-color); text-align: center; margin-bottom: 8px; }
.payment-hint { font-size: 12px; color: var(--tg-hint-color); text-align: center; margin-top: 8px; line-height: 1.4; }
.payment-link-box {
    margin: 12px 0;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    text-align: center;
}
.payment-link-label { font-size: 12px; color: var(--tg-hint-color); margin: 0 0 8px; }
.payment-link-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 6px;
}
.btn-copy-link { width: 100%; font-size: 13px; margin-top: 4px; }

.pay-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.pay-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
}
.pay-card h1 { font-size: 20px; margin: 0 0 8px; }
.pay-amount { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.pay-hint { font-size: 13px; color: var(--tg-hint-color); line-height: 1.45; margin-bottom: 20px; }
.pay-bank-btn { display: block; text-decoration: none; margin-bottom: 20px; }
.pay-link-label { font-size: 12px; color: var(--tg-hint-color); margin: 0 0 6px; }
.pay-link-text { font-size: 11px; word-break: break-all; color: var(--accent); margin: 0 0 12px; }
.payment-details { text-align: center; margin: 12px 0; font-size: 15px; }

/* ─── Loader ─── */
.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--tg-bg-color);
    z-index: 9999;
    gap: 16px;
}

.loader { text-align: center; padding: 32px; color: var(--tg-hint-color); font-size: 14px; }
.empty-hint { color: var(--tg-hint-color); padding: 16px 0; text-align: center; font-size: 14px; }
.error { color: var(--danger); text-align: center; padding: 24px; }

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 300;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(16, 185, 129, 0.3); color: var(--success); }

/* ─── Admin ─── */
.admin-page { padding: 16px 16px 32px; max-width: 480px; margin: 0 auto; }
.admin-hero {
    background: var(--gradient);
    margin: -16px -16px 24px;
    padding: 24px 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    color: #fff;
}
.admin-hero h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.admin-hero p { opacity: 0.85; font-size: 14px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.admin-section { margin-bottom: 24px; }
.admin-section h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tg-hint-color);
    margin-bottom: 12px;
}
.admin-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.admin-list .badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}
.admin-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.admin-form input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    font-family: var(--font);
    font-size: 14px;
    color: var(--tg-text-color);
    outline: none;
}
.admin-form input:focus { border-color: var(--accent); }
.admin-form button, .admin-card button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.admin-card-edit { display: flex; flex-direction: column; gap: 8px; }
.admin-hours-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-hours-row .day-label { min-width: 28px; font-weight: 700; }
.btn-danger { background: rgba(239, 68, 68, 0.12) !important; color: var(--danger) !important; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--tg-hint-color); margin-top: 6px; }
.booking-client { font-weight: 600; margin-top: 4px; }
.booking-services { font-size: 13px; color: var(--tg-hint-color); margin-top: 2px; }
.badge-paid { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: #d97706; }

/* Admin tabs */
.admin-page { padding-bottom: 88px; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.admin-tab-head h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    color: var(--tg-text-color);
}
.admin-tab-badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.admin-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    background: var(--surface-card);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
}
.admin-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    border: none;
    background: none;
    color: var(--tg-hint-color);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.admin-nav-item.active { color: var(--accent); }
.admin-nav-icon { font-size: 18px; line-height: 1; }

/* Reports */
.period-chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.report-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.report-kpi {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}
.report-kpi-value { display: block; font-size: 20px; font-weight: 800; }
.report-kpi-label { font-size: 11px; color: var(--tg-hint-color); text-transform: uppercase; letter-spacing: 0.04em; }
.report-substats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--tg-hint-color);
    margin-bottom: 20px;
}
.report-section-title { font-size: 13px; font-weight: 700; margin: 16px 0 10px; color: var(--tg-hint-color); text-transform: uppercase; letter-spacing: 0.05em; }
.report-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding: 8px 4px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.report-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.report-bar {
    width: 100%;
    max-width: 28px;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}
.report-bar-label { font-size: 9px; color: var(--tg-hint-color); margin-top: 4px; }
.top-services-list { margin-bottom: 16px; }
.top-svc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.top-svc-rank {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.top-svc-info { display: flex; flex-direction: column; gap: 2px; }
.top-svc-info span { font-size: 12px; color: var(--tg-hint-color); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { font-size: 12px; padding: 6px 12px; }

/* Services admin */
.service-admin-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-admin-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.service-admin-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.svc-chip {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.service-admin-actions { display: flex; gap: 4px; }
.btn-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    cursor: pointer;
    font-size: 16px;
}
.btn-danger-icon { border-color: rgba(239,68,68,0.3); }

/* Schedule */
.schedule-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.schedule-days { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.schedule-day-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.schedule-day-card.is-off { opacity: 0.55; }
.schedule-day-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.schedule-day-name { font-weight: 700; font-size: 14px; }
.schedule-day-times { display: flex; gap: 12px; }
.time-field { flex: 1; }
.time-field label { display: block; font-size: 11px; color: var(--tg-hint-color); margin-bottom: 4px; }
.time-field input[type="time"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--tg-text-color);
}
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 26px;
    transition: 0.2s;
}
.toggle-slider:before {
    position: absolute; content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); }

.field-label { font-size: 12px; font-weight: 600; color: var(--tg-hint-color); margin-bottom: 4px; display: block; }
.admin-hint-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    font-size: 13px;
    line-height: 1.45;
}

.register-banner {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    text-align: center;
}
.register-banner p { margin: 0 0 12px; font-size: 14px; }
.register-salon-page .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-hint-color);
}
.register-salon-page .form-hint {
    font-size: 12px;
    color: var(--tg-hint-color);
    margin: -4px 0 8px;
    line-height: 1.4;
}
.register-success {
    padding: 20px 0;
    text-align: center;
}
.register-success h2 { margin-bottom: 8px; }
.register-link {
    word-break: break-all;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
}
.register-form .btn-secondary { margin-top: 8px; }
