/* =========================================================
   Strategy & Growth – Booking UI (fixed layout)
   ========================================================= */
:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #059669;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 20px;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    /*background: var(--bg);*/
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

.booking-wrapper {
    min-height: 100vh;
    padding: 1.5rem 0 3rem;
}

/* ---------- Profile Card ---------- */
.profile-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    color: #fff;
}

.profile-img-wrap {
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.verified-badge {
    font-size: 1.05rem !important;
    color: #60a5fa !important;
}

.profile-title {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.profile-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.section-title-sm {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.meta-item i { color: var(--accent); font-size: 0.9rem; }

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Booking Card ---------- */
.booking-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.75rem 1.75rem 2rem;
    min-height: 480px;
}

/* Step Indicator – horizontal numbered steps */
.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 1.75rem;
    padding-bottom: 0.25rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 56px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.step.active .step-num {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step.done .step-num {
    background: var(--success);
    color: #fff;
}

.step-label {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

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

.step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #e2e8f0;
    margin: 16px 6px 0;
    min-width: 12px;
}

/* Service list */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1.1rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    background: #fff;
}

.service-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.service-item.selected {
    border-color: var(--accent);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 8px;
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.45;
}

.service-meta .duration {
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
    letter-spacing: -0.02em;
}

.service-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.service-item.selected .service-check { opacity: 1; }

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.time-slot {
    padding: 10px 6px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    color: var(--text);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--accent);
    background: #eff6ff;
}

.time-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Confirm card */
.confirm-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
}

.confirm-row .label {
    font-size: 0.9rem;
    color: var(--muted);
    flex-shrink: 0;
}

.confirm-row .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
    word-break: break-word;
}

.confirm-row .value.price {
    color: var(--success);
    font-size: 1.1rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    line-height: 1;
}

/* Buttons */
.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    font-weight: 600;
    border-radius: 10px;
}

.btn-primary:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.btn-primary:disabled {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    font-weight: 600;
    border-radius: 10px;
}

.back-btn {
    color: var(--muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 0 !important;
}

.back-btn:hover { color: var(--accent) !important; }

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.step-header h3 {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.step-footer {
    margin-top: 1.5rem;
}

.hint-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ---------- Admin ---------- */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0f172a;
    color: #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.admin-sidebar .brand {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.admin-sidebar .nav-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    padding: 1.5rem 2rem 3rem;
    min-height: 100vh;
    background: var(--bg);
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2px;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-completed { background: #dbeafe; color: #1e40af; }
.badge-cancelled,
.badge-no_show { background: #fee2e2; color: #991b1b; }

.table-admin th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
        padding: 1rem 1rem 2rem;
    }
    .profile-card {
        position: static !important;
        margin-bottom: 0.5rem;
    }
    .booking-card {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .booking-wrapper {
        padding: 0.75rem 0 2rem;
    }
    .booking-card {
        padding: 1rem;
        border-radius: 14px;
    }
    .service-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .service-price {
        width: 100%;
        margin-top: 0;
        padding-left: 62px;
    }
    .step-label {
        font-size: 0.65rem;
    }
    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .profile-header {
        padding: 1.5rem 1rem 1.25rem;
    }
    .section-title-sm {
        font-size: 1.15rem;
    }
}
