/* =============================================
   ALJONA - KLIENTSKÝ PORTÁL
   Elegantní, mobile-first design
   ============================================= */

:root {
    --color-primary: #C4A484;
    --color-primary-light: #E8DDD3;
    --color-primary-dark: #8B7355;
    --color-accent: #4A7C9B;
    --color-accent-light: #E8F1F6;
    --color-bg: #FAF8F5;
    --color-text: #3D3D3D;
    --color-text-light: #7A7A7A;
    --color-white: #FFFFFF;
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-danger: #F44336;
    --color-border: #E8DDD3;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    min-height: 100vh; min-height: 100dvh;
    color: var(--color-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   HEADER
   ============================================= */
.portal-header {
    background: var(--color-white);
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-primary-dark);
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-logo-icon {
    width: 30px;
    height: 23px;
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

.portal-logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-name {
    font-weight: 500;
    color: var(--color-text);
    font-size: 14px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.portal-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portal-nav::-webkit-scrollbar { display: none; }

.nav-tabs {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}

.nav-tab:hover {
    color: var(--color-primary-dark);
}

.nav-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.nav-tab .nav-icon {
    font-size: 16px;
}

.nav-tab .nav-badge {
    background: var(--color-warning);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.portal-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.portal-page {
    display: none;
}

.portal-page.active {
    display: block;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover { background: #3A6278; }

.btn-secondary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.btn-secondary:hover { background: #ddd2c4; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover { background: var(--color-bg); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 24px;
}

.card + .card {
    margin-top: 16px;
}

/* =============================================
   DASHBOARD PAGE
   ============================================= */
.greeting {
    margin-bottom: 24px;
}

.greeting h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.greeting p {
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-accent);
}

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

/* Upcoming booking highlight */
.upcoming-highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, #3A6278 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.upcoming-highlight::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.upcoming-highlight .uh-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.upcoming-highlight .uh-content {
    flex: 1;
}

.upcoming-highlight .uh-title {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.upcoming-highlight .uh-service {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.upcoming-highlight .uh-date {
    font-size: 14px;
    opacity: 0.9;
}

.upcoming-highlight .uh-action {
    flex-shrink: 0;
}

.upcoming-highlight .uh-action .btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.upcoming-highlight .uh-action .btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Quick actions grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.quick-action:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-action .qa-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.quick-action .qa-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.quick-action .qa-desc {
    font-size: 12px;
    color: var(--color-text-light);
}

/* =============================================
   BOOKINGS PAGE
   ============================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.booking-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.booking-card + .booking-card { margin-top: 8px; }
.booking-card:hover { box-shadow: var(--shadow-sm); }

.booking-card .bc-date {
    text-align: center;
    min-width: 54px;
    flex-shrink: 0;
}

.booking-card .bc-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.booking-card .bc-month {
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-card .bc-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
    flex-shrink: 0;
}

.booking-card .bc-info { flex: 1; min-width: 0; }

.booking-card .bc-service {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-card .bc-details {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.booking-card .bc-status {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Cancel button */
.bc-cancel-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.bc-cancel-btn:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #DC2626;
}

/* Phone link in time slots */
.ts-phone-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.ts-phone-link:hover { opacity: 0.85; }

/* Custom confirm dialog */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 20px;
}
.custom-dialog-overlay.active { opacity: 1; }

.custom-dialog {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.2s;
}
.custom-dialog-overlay.active .custom-dialog { transform: scale(1); }

.cd-icon { font-size: 40px; margin-bottom: 12px; }
.cd-title { font-family: var(--font-heading); font-size: 20px; color: var(--color-text); margin-bottom: 20px; }

.cd-package {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: left;
}
.cd-pkg-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-text);
}
.cd-pkg-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: var(--color-text-light);
}
.cd-bonus-row {
    border-top: 1px dashed var(--color-border);
    margin-top: 4px;
    padding-top: 8px;
}

.cd-note {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.cd-actions {
    display: flex;
    gap: 12px;
}
.cd-actions .btn { flex: 1; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending { background: #FFF3E0; color: #E65100; }
.status-badge.confirmed { background: #E8F5E9; color: #2E7D32; }
.status-badge.completed { background: #ECEFF1; color: #546E7A; }
.status-badge.cancelled { background: #FFEBEE; color: #C62828; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-light);
}

.empty-state .es-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state .es-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.empty-state .es-text {
    font-size: 14px;
    margin-bottom: 16px;
}

/* =============================================
   CREDITS PAGE
   ============================================= */
.credit-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.credit-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.credit-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.credit-hero .ch-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.credit-hero .ch-balance {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
}

.credit-hero .ch-sub {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

.package-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.package-card + .package-card { margin-top: 8px; }

.package-card:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.package-card .pc-info { flex: 1; min-width: 0; }

.package-card .pc-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary-dark);
    font-weight: 500;
}

.package-card .pc-detail {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.package-card .pc-bonus {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 12px;
}

.package-card .pc-arrow {
    color: var(--color-text-light);
    margin-left: 8px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Request list item */
.request-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-bg);
}
.request-item:last-child { border-bottom: none; }

.request-item .ri-icon { font-size: 24px; flex-shrink: 0; }
.request-item .ri-info { flex: 1; min-width: 0; }
.request-item .ri-name { font-weight: 600; font-size: 14px; }
.request-item .ri-meta { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.request-item .ri-note { font-size: 11px; color: var(--color-danger); margin-top: 2px; }

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-header {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin: 0 auto 16px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary-dark);
}

.profile-email {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 124, 155, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =============================================
   REHAB PLANS PAGE
   ============================================= */
.rehab-plan-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rehab-plan-card + .rehab-plan-card { margin-top: 16px; }

.rehab-plan-header {
    padding: 16px 20px;
    background: var(--color-accent-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rehab-plan-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-accent);
    font-weight: 500;
}

.rehab-plan-body {
    padding: 16px 20px;
}

.exercise-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg);
    align-items: flex-start;
}
.exercise-item:last-child { border-bottom: none; }

.exercise-item .ei-num {
    width: 28px;
    height: 28px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.exercise-item .ei-info { flex: 1; }
.exercise-item .ei-name { font-weight: 600; font-size: 14px; }
.exercise-item .ei-detail { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.exercise-item .ei-desc { font-size: 13px; color: #666; margin-top: 4px; line-height: 1.4; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover { background: var(--color-bg); }

.modal h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.modal .modal-desc {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

/* =============================================
   TOAST
   ============================================= */
.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    max-width: 320px;
}

.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.info { background: var(--color-accent); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .portal-header { 
        padding: 0 12px; 
        gap: 8px;
    }
    .portal-main { padding: 16px 12px 80px; }
    
    /* Header logo responsive */
    .portal-logo {
        font-size: 20px;
        letter-spacing: 2px;
        gap: 6px;
    }
    .portal-logo-icon {
        width: 24px;
        height: 18px;
    }
    .portal-logo small {
        display: none;
    }
    
    /* Header actions responsive */
    .header-actions {
        gap: 8px;
    }
    .header-actions .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .header-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .greeting h1 { font-size: 26px; }
    
    .stats-row { grid-template-columns: 1fr; gap: 8px; }
    .stat-card { 
        display: flex; 
        align-items: center; 
        text-align: left; 
        gap: 12px; 
        padding: 14px 16px; 
    }
    .stat-card .stat-icon { margin-bottom: 0; font-size: 24px; }
    .stat-card .stat-value { font-size: 22px; }
    
    .quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .quick-action { padding: 14px; }
    .quick-action .qa-icon { font-size: 24px; margin-bottom: 4px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .upcoming-highlight { flex-direction: column; text-align: center; }
    .upcoming-highlight .uh-icon { font-size: 36px; }

    .header-user-name { display: none; }
    
    .credit-hero .ch-balance { font-size: 36px; }
    
    .booking-card { padding: 12px 14px; }
}

@media (max-width: 480px) {
    .portal-logo {
        font-size: 18px;
        letter-spacing: 1px;
        gap: 5px;
    }
    .portal-logo-icon {
        width: 20px;
        height: 15px;
    }
    .header-actions .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    .header-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .nav-tab { padding: 12px 14px; font-size: 12px; }
    .nav-tab .nav-icon { font-size: 14px; }
    
    .quick-actions { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   BOOKING WIZARD
   ============================================= */

/* Progress bar */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 16px;
}

.bp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.bp-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.bp-step.active .bp-num {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 124, 155, 0.3);
}

.bp-step.done .bp-num {
    background: var(--color-success);
    color: white;
}

.bp-label {
    font-size: 11px;
    color: var(--color-text-light);
    font-weight: 500;
}

.bp-step.active .bp-label {
    color: var(--color-accent);
    font-weight: 600;
}

.bp-line {
    width: 40px;
    height: 2px;
    background: #eee;
    margin: 0 8px;
    margin-bottom: 18px;
    transition: background 0.3s;
}

.bp-line.done {
    background: var(--color-success);
}

/* Step title & back */
.step-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.step-back {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.step-back:hover { text-decoration: underline; }

/* Step 1: Services */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.sc-icon { font-size: 36px; flex-shrink: 0; }
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-family: var(--font-heading); font-size: 20px; color: var(--color-primary-dark); font-weight: 500; }
.sc-desc { font-size: 13px; color: var(--color-text-light); margin-top: 4px; }
.sc-meta { font-size: 12px; color: var(--color-accent); margin-top: 6px; font-weight: 500; }
.sc-arrow { font-size: 24px; color: var(--color-text-light); flex-shrink: 0; }

/* Step 2: Durations */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.duration-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dc-time { margin-bottom: 12px; }
.dc-minutes { font-family: var(--font-heading); font-size: 42px; font-weight: 600; color: var(--color-accent); }
.dc-unit { font-size: 14px; color: var(--color-text-light); }
.dc-price { font-size: 16px; font-weight: 600; color: var(--color-text); }
.dc-price-old { font-size: 13px; color: var(--color-text-light); text-decoration: line-through; }
.dc-credit { font-size: 13px; color: var(--color-success); margin-top: 4px; }
.dc-save { font-weight: 700; }
.dc-desc { font-size: 12px; color: var(--color-text-light); margin-top: 4px; }

/* Loyalty banner */
.loyalty-banner {
    background: linear-gradient(135deg, #FFF8E1, #FFF3C4);
    border: 1px solid #FFE082;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6D4C00;
    margin-bottom: 20px;
}

/* Step 3: Calendar + Time - VERTIKÁLNÍ */
.datetime-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.timeslots-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* Calendar */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cal-month {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    font-size: 18px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav:hover:not(:disabled) { background: var(--color-bg); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 8px 0;
    text-transform: uppercase;
}

.cal-day {
    text-align: center;
    padding: 16px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--color-accent-light);
}

.cal-day.selected {
    background: var(--color-accent);
    color: white;
    font-weight: 600;
}

.cal-day.today {
    font-weight: 700;
}

.cal-day.today::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    margin: 2px auto 0;
}

.cal-day.selected.today::after {
    background: white;
}

.cal-day.disabled {
    color: #ccc;
    cursor: default;
}

.cal-day.closed small {
    display: block;
    font-size: 8px;
    color: #ccc;
    line-height: 1;
}

.cal-day.empty {
    cursor: default;
}

/* Calendar slot badges */
.cal-badge {
    display: block;
    font-size: 10px;
    line-height: 1;
    margin-top: 2px;
    color: var(--color-accent);
    font-weight: 600;
    opacity: 0.7;
    min-height: 12px;
}
.cal-day.selected .cal-badge { color: white; opacity: 0.8; }
.cal-day.no-slots { opacity: 0.4; }
.cal-day.no-slots .cal-badge { color: #999; }

/* Calendar hover tooltip */
.cal-tooltip {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    font-size: 13px;
    pointer-events: none;
    max-width: 260px;
    animation: tooltipFadeIn 0.15s ease;
}
.cal-tooltip strong {
    display: block;
    color: var(--color-accent);
    margin-bottom: 4px;
}
.cal-tooltip-times {
    color: var(--color-text-light);
    font-size: 12px;
    line-height: 1.5;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .cal-tooltip { display: none !important; }
    .cal-badge { font-size: 9px; }
}

/* Time slots */
.ts-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: var(--color-text-light);
    font-size: 14px;
}

.ts-loading {
    text-align: center;
    padding: 32px 16px;
    color: var(--color-accent);
    font-size: 14px;
}

.ts-header {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary-dark);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.ts-count {
    font-size: 13px;
    color: var(--color-success);
    font-weight: 500;
    margin-bottom: 16px;
}

.ts-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.ts-slot {
    padding: 10px 0;
    border: 2px solid var(--color-border);
    border-radius: 24px;
    background: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
    color: var(--color-text);
    text-align: center;
}

.ts-slot:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    transform: scale(1.05);
}

.ts-slot.selected {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Service tooltip */
.service-tooltip {
    display: none;
    position: absolute;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-width: 300px;
    pointer-events: none;
}

.st-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}

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

.service-tooltip p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.st-durations {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.st-dur {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 8px;
    background: var(--color-bg);
    border-radius: 6px;
}

/* Clickable progress steps */
.bp-step.clickable {
    cursor: pointer;
}

.bp-step.clickable:hover .bp-num {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bp-step.clickable .bp-label {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

/* Step 4: Confirmation */
.confirm-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.cc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg);
}

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

.cc-label {
    font-size: 13px;
    color: var(--color-text-light);
}

.cc-value {
    font-weight: 600;
    font-size: 15px;
}

.cc-time {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-accent);
}

/* Payment options */
.payment-section {
    margin-bottom: 24px;
}

.payment-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.payment-option:hover:not(.disabled) {
    border-color: var(--color-accent);
}

.payment-option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.payment-option.disabled {
    opacity: 0.5;
    cursor: default;
}

.payment-option input[type="radio"] { display: none; }
.po-icon { font-size: 28px; flex-shrink: 0; }
.po-info { flex: 1; }
.po-name { font-weight: 500; font-size: 14px; }
.po-price { font-size: 16px; font-weight: 600; margin-top: 2px; }
.po-save { font-size: 12px; color: var(--color-success); font-weight: 700; }

/* Total */
.confirm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
}

.ct-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-accent);
}

.cancel-policy {
    font-size: 12px;
    color: var(--color-text-light);
    padding: 12px 16px;
    background: #FFF8E1;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

/* Success */
.booking-success {
    text-align: center;
    padding: 48px 24px;
}

.bs-icon { font-size: 64px; margin-bottom: 16px; }

.bs-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.bs-text {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.bs-details {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: inline-block;
    text-align: left;
    margin-bottom: 24px;
}

.bs-row {
    padding: 6px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive booking */
@media (max-width: 768px) {
    .calendar-section { padding: 16px; }
    
    .bp-line { width: 24px; }
    .bp-num { width: 30px; height: 30px; font-size: 12px; }
    .bp-label { font-size: 10px; }
    
    .duration-grid { grid-template-columns: 1fr 1fr; }
    .dc-minutes { font-size: 32px; }
    
    .cal-grid { gap: 3px; }
    .cal-day { padding: 10px 4px; font-size: 14px; }
    .cal-label { font-size: 11px; padding: 4px 0; }
    
    .ts-slot { padding: 8px 16px; font-size: 14px; }
    
    .bs-actions { flex-direction: column; }
    
    .service-tooltip { display: none !important; }
}
/* =============================================
   HEALTH PROFILE - Preferences & Anamnesis
   ============================================= */

/* Pressure preference cards */
.hp-pressure-opt {
    text-align: center;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}
.hp-pressure-opt:hover {
    border-color: var(--color-accent);
    background: #FAFCFE;
}
.hp-pressure-opt.active {
    border-color: var(--color-accent);
    background: var(--color-accent-light, #EBF4F0);
    box-shadow: 0 0 0 1px var(--color-accent);
}

/* Body area chips */
.hp-chip {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text);
    font-family: inherit;
}
.hp-chip:hover {
    border-color: var(--color-accent);
}
.hp-chip.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: white;
}

/* Avoid chips - red variant */
.hp-chip.hp-chip-avoid.active {
    border-color: #E57373;
    background: #FFEBEE;
    color: #C62828;
}
.hp-chip.hp-chip-avoid:hover {
    border-color: #E57373;
}

/* Condition labels */
.hp-condition {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--color-border);
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.hp-condition:hover {
    border-color: #FFB74D;
}
.hp-condition.active {
    border-color: #FFB74D;
    background: #FFF8E1;
}

@media (max-width: 480px) {
    .hp-pressure-opt { padding: 12px 8px; }
    .hp-chip { padding: 6px 12px; font-size: 12px; }
}

/* =============================================
   PORTAL FOOTER
   ============================================= */
.portal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-light);
}

.portal-footer a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.portal-footer a:hover {
    color: var(--color-primary);
}

.portal-footer span {
    color: var(--color-border);
}