/* =========================================================
   RESET
========================================================= */

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

:root {
    --navy-900: #0A1F44;
    --navy-800: #0F2A5C;
    --navy-700: #173B7A;
    --gold-500: #C9A227;
    --gold-400: #DDB43A;
    --gold-300: #E8C766;
    --gold-soft: rgba(201,162,39,.12);
    --emerald: #059669;
    --emerald-500: #10B981;
    --emerald-soft: rgba(5,150,105,.10);
    --red-500: #DC2626;
    --red-600: #B91C1C;
    --red-soft: rgba(220,38,38,.10);
    --blue-500: #3B82F6;
    --blue-soft: rgba(59,130,246,.10);
    --purple-500: #8B5CF6;
    --purple-soft: rgba(139,92,246,.10);
    --orange-500: #F59E0B;
    --orange-soft: rgba(245,158,11,.10);
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --shadow-sm: 0 4px 16px rgba(10,31,68,.06);
    --shadow-md: 0 12px 32px rgba(10,31,68,.10);
    --shadow-gold: 0 12px 30px rgba(201,162,39,.35);
    --radius: 14px;
    --radius-lg: 22px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
    color: var(--text-body);
    line-height: 1.75;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--gold-500); color: var(--navy-900); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =========================================================
   HEADER
========================================================= */

.page-header {
    background: var(--navy-900);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(10,31,68,.15);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-radius: 10px;
    font-size: 19px;
    box-shadow: var(--shadow-gold);
}

.logo-text .accent { color: var(--gold-400); }

.header-nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

.header-nav a {
    color: rgba(255,255,255,.75);
    font-size: 14.5px;
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 0;
}

.header-nav a:hover { color: var(--gold-400); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-header {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-header-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
}

.btn-header-gold:hover { transform: translateY(-2px); }

/* ================= USER MENU ================= */
.user-menu { position: relative; display: none; }
.user-menu.active { display: block; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.user-btn:hover { background: rgba(255,255,255,.15); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10,31,68,.25);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1300;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .user-info {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-dropdown .user-info .u-name {
    font-weight: 700;
    color: var(--navy-900);
    font-size: 14.5px;
    margin-bottom: 2px;
}

.user-dropdown .user-info .u-phone {
    font-size: 12px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    transition: var(--transition);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-light);
    color: var(--navy-900);
}

.user-dropdown .logout-btn { color: var(--red-500); }
.user-dropdown .logout-btn:hover { background: var(--red-soft); }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
}

.menu-toggle:hover { background: rgba(255,255,255,.08); }

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) { opacity: 0; }

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    background: var(--navy-900);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: rgba(255,255,255,.85);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(255,255,255,.08);
    color: var(--gold-400);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 8px 0;
}

/* =========================================================
   MAIN
========================================================= */

.main-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--navy-900); font-weight: 700; }

/* =========================================================
   PROFILE COVER
========================================================= */

.profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    height: 190px;
    isolation: isolate;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,75,148,.6), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.profile-hero-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #fff;
    text-align: center;
    width: max-content;
    max-width: calc(100% - 40px);
    z-index: 1;
}

.cover-logo-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-radius: 22px;
    font-size: 38px;
    box-shadow: 0 14px 36px rgba(201,162,39,.5);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.2);
}

.cover-brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.cover-brand-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.cover-brand-name .gold { color: var(--gold-400); }

.cover-brand-tagline {
    font-size: 15px;
    color: rgba(255,255,255,.88);
    font-weight: 600;
    letter-spacing: .4px;
}

/* =========================================================
   PROFILE HEADER
========================================================= */

.profile-header-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    padding: 32px;
    margin-top: -55px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-avatar-block {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 12px 32px rgba(10,31,68,.15);
}

.online-badge-large {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald));
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 100px;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(16,185,129,.4);
}
.online-badge-large.is-offline { background:#64748b; }
.online-badge-large.is-offline .dot { animation:none; opacity:.75; }
.reviews-empty { width:100%; text-align:center; color:var(--text-muted); padding:24px; }

.online-badge-large .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blinkDot 1.5s ease-in-out infinite;
}

@keyframes blinkDot {
    0%,100% { opacity: 1; }
    50% { opacity: .3; }
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-name {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -.5px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name i {
    color: var(--emerald);
    font-size: 20px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--emerald);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(5,150,105,.3);
}

.profile-title {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-title i { color: var(--gold-500); }

.profile-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.meta-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-stat .value {
    font-size: 17px;
    font-weight: 900;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-stat .value .rating-stars {
    color: #FBBF24;
    font-size: 13px;
    letter-spacing: -1px;
}

.meta-stat .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--gold-soft), #fff);
    color: var(--navy-900);
    border: 1.5px solid var(--gold-500);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.profile-tag i {
    color: var(--gold-500);
    font-size: 12px;
}

/* =========================================================
   LAYOUT
========================================================= */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 400px;
    gap: 24px;
    align-items: start;
}

.main-content {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 .icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold-500);
    border-radius: 11px;
    font-size: 17px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-text {
    font-size: 15px;
    color: var(--text-body);
    line-height: 2;
    text-align: justify;
}

.about-text p { margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--navy-900); font-weight: 800; }

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.about-info-grid .info-item[hidden]{display:none!important}
.education-verified-badge{position:relative;display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin-inline-start:7px;padding:3px 8px;border:1px solid #b7ead7;border-radius:999px;background:#e9fbf3;color:#08764f;font-size:10px;font-weight:800;white-space:nowrap;cursor:help}
.education-verified-badge:hover{background:#d9f7e9;box-shadow:0 4px 12px #08764f22}
.education-verified-badge{cursor:help}
.verified-lawyer-mark{color:#138a68!important;cursor:help;filter:drop-shadow(0 2px 3px rgba(16,137,103,.18));transition:transform .18s,color .18s}
.verified-lawyer-mark:hover,.verified-lawyer-mark:focus-visible{color:#08704f!important;transform:scale(1.16);outline:0}
.verified-tooltip{position:fixed;z-index:100000;display:flex;align-items:center;gap:9px;width:max-content;max-width:min(280px,calc(100vw - 24px));padding:10px 13px;border:1px solid rgba(221,180,58,.55);border-radius:13px;background:linear-gradient(135deg,#102c50,#183e68);box-shadow:0 10px 28px rgba(8,27,51,.28);color:#fff;font-size:11px;font-weight:700;line-height:1.7;direction:rtl;pointer-events:none;animation:verifiedTooltipIn .16s ease-out}
.verified-tooltip::after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;border-left:1px solid rgba(221,180,58,.55);border-bottom:1px solid rgba(221,180,58,.55);background:#183e68;transform:translateX(-50%) rotate(-45deg)}
.verified-tooltip.is-below::after{top:-7px;bottom:auto;border:0;border-top:1px solid rgba(221,180,58,.55);border-left:1px solid rgba(221,180,58,.55);transform:translateX(-50%) rotate(45deg)}
.verified-tooltip-icon{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border:1px solid rgba(221,180,58,.5);border-radius:9px;background:rgba(221,180,58,.14);color:#f1cf68}
.verified-tooltip-text{white-space:normal}
@keyframes verifiedTooltipIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item .icon-box {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--bg-light);
    color: var(--navy-700);
    border-radius: 12px;
    font-size: 17px;
    flex-shrink: 0;
}

.info-item .info-content .label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-item .info-content .value {
    font-size: 14px;
    color: var(--navy-900);
    font-weight: 800;
}

/* =========================================================
   SERVICES
========================================================= */

.services-list {
    display: grid;
    gap: 14px;
}

.service-option {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: block;
}

.service-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-option:hover .service-card {
    border-color: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.service-option.disabled {
    cursor: not-allowed;
}
.service-option.disabled .service-card {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: var(--text-muted);
    opacity: 0.72;
    filter: grayscale(.12);
    box-shadow: none;
    transform: none;
}
.service-option.disabled > input:checked ~ .service-card{background:#F1F5F9!important;border-color:#CBD5E1!important;opacity:.72;filter:grayscale(.12)}
.service-option.disabled:hover .service-card {
    border-color: #CBD5E1;
    transform: none;
    box-shadow: none;
}
.badge-disabled {
    background: #E2E8F0;
    color: #64748B;
}

.service-option > input:checked ~ .service-card {
    border-color: var(--gold-500);
    background: linear-gradient(135deg, var(--gold-soft), #fff);
    box-shadow: 0 10px 28px rgba(201,162,39,.2);
}

.service-option > input:checked ~ .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-500), var(--gold-400));
}

.service-icon-big {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    flex-shrink: 0;
}

.service-icon-big.urgent {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--red-600);
}

.service-icon-big.scheduled {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--blue-500);
}

.service-icon-big.phone {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--emerald);
}

.service-icon-big.chat {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    color: var(--purple-500);
}

.service-option > input:checked ~ .service-card .service-icon-big.urgent {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: #fff;
}

.service-option > input:checked ~ .service-card .service-icon-big.scheduled {
    background: linear-gradient(135deg, var(--blue-500), #2563EB);
    color: #fff;
}

.service-option > input:checked ~ .service-card .service-icon-big.chat {
    background: linear-gradient(135deg, var(--purple-500), #7C3AED);
    color: #fff;
}

.service-option > input:checked ~ .service-card .service-icon-big.phone {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald));
    color: #fff;
}

.service-info-main {
    flex: 1;
    min-width: 0;
}

.service-info-main h3 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.service-info-main h3 .badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
}

.badge-urgent {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: #fff;
}

.badge-blue {
    background: linear-gradient(135deg, var(--blue-500), #2563EB);
    color: #fff;
}

.service-info-main p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

.service-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 11.5px;
    color: var(--text-body);
    font-weight: 600;
}

.service-features-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-features-row i {
    color: var(--emerald-500);
    font-size: 11px;
}

.service-price-col {
    text-align: left;
    flex-shrink: 0;
    padding-right: 8px;
    border-right: 1px dashed var(--border);
}

.service-price-col .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.service-price-col .amount {
    font-size: 18px;
    font-weight: 900;
    color: var(--gold-500);
    line-height: 1.2;
    display: block;
    margin-bottom: 3px;
}

.service-price-col .amount small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.service-price-col .duration {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}
.service-price-col .public-discount-price{display:inline-flex;flex-direction:row;align-items:center;gap:4px;white-space:nowrap}.service-price-col .public-discount-old{display:inline-flex;align-items:center;gap:2px;color:#8793a2;font-size:10px;font-weight:600;white-space:nowrap}.service-price-col .public-discount-old del{text-decoration-color:#d64545;text-decoration-thickness:2px;color:#929dab}.service-price-col .public-discount-old small{font-size:9px;color:#9aa5b2}.service-price-col .public-discount-badge{display:inline-flex;padding:2px 4px;border:1px solid #f2c6c6;border-radius:999px;background:#fff2f1;color:#b42335;font-size:8px;font-weight:900;white-space:nowrap}.service-price-col .amount .discount-price{margin:0;color:#0b7654;font-size:15px;font-weight:900;white-space:nowrap}.service-price-col .amount .discount-price small{font-size:9px;color:#637487}.service-price-col{min-width:max-content}.service-price-col .amount:has(.public-discount-price){white-space:nowrap}

/* =========================================================
   CALENDAR
========================================================= */

.calendar-section {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    border: 2px solid rgba(59,130,246,.3);
    border-radius: var(--radius);
    animation: slideDown .35s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.calendar-section h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-section h3 .icon-badge {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--blue-500);
    color: #fff;
    border-radius: 9px;
    font-size: 13px;
}

.day-selector {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 6px;
    margin-bottom: 18px;
}

.day-btn {
    position: relative;
    cursor: pointer;
    display: block;
}

.day-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.day-btn-content {
    min-height: 66px;
    padding: 9px 4px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.day-btn:hover .day-btn-content { border-color: var(--blue-500); }

.day-btn input:checked ~ .day-btn-content {
    border-color: var(--blue-500);
    background: linear-gradient(135deg, var(--blue-500), #2563EB);
    box-shadow: 0 8px 20px rgba(59,130,246,.3);
}

.day-btn-content .day-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
    color: var(--navy-900);
}

.day-btn input:checked ~ .day-btn-content .day-title { color: #fff; }

.day-btn-content .day-sub {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.day-btn.date-only .day-btn-content .day-sub { font-weight: 800; }
.day-btn.is-unavailable { cursor: not-allowed; }
.day-btn.is-unavailable .day-btn-content { background: #f5f7fa; opacity: .58; }

.day-btn input:checked ~ .day-btn-content .day-sub {
    color: rgba(255,255,255,.85);
}

@media (max-width: 700px) {
    .day-selector { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
    .day-btn-content { min-height: 60px; padding: 8px 3px; }
}

.slot-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.slot-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.slot-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.legend-green { background: var(--emerald-500); }
.legend-red { background: var(--red-500); }

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

.slot-item {
    position: relative;
    cursor: pointer;
    display: block;
}

.slot-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-content {
    padding: 11px 8px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.slot-content .slot-time {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy-900);
    display: block;
    margin-bottom: 4px;
}

.slot-content .slot-capacity {
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 100px;
}

.slot-content.available-green {
    border-color: rgba(16,185,129,.4);
    background: linear-gradient(135deg, rgba(16,185,129,.06), #fff);
}

.slot-content.available-green .slot-capacity {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.slot-item:hover .slot-content.available-green {
    border-color: var(--emerald-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,185,129,.2);
}

.slot-content.full {
    border-color: rgba(220,38,38,.3);
    background: #FEF2F2;
    opacity: .7;
}

.slot-content.full .slot-time {
    color: var(--text-muted);
    text-decoration: line-through;
}

.slot-content.full .slot-capacity {
    background: var(--red-soft);
    color: var(--red-500);
}

.slot-item input:disabled ~ .slot-content { cursor: not-allowed; }
.slot-item input:disabled ~ .slot-content:hover { transform: none; box-shadow: none; }

.slot-item input:checked ~ .slot-content {
    border-color: var(--blue-500);
    background: linear-gradient(135deg, var(--blue-500), #2563EB);
    box-shadow: 0 8px 20px rgba(59,130,246,.35);
    transform: translateY(-2px);
}

.slot-item input:checked ~ .slot-content .slot-time { color: #fff; }

.slot-item input:checked ~ .slot-content .slot-capacity {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.slots-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 13px;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.slots-empty i {
    font-size: 26px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.selected-summary {
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--emerald-soft), #fff);
    border: 2px solid rgba(5,150,105,.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.selected-summary .info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-900);
}

.selected-summary .info i {
    font-size: 22px;
    color: var(--emerald);
}

.selected-summary .info small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* =========================================================
   REVIEWS
========================================================= */

.reviews-summary {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.rating-big {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.rating-big .num {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1;
    margin-bottom: 4px;
}

.rating-big .stars {
    color: #FBBF24;
    font-size: 14px;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.rating-big .count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.rating-bars {
    flex: 1;
    min-width: 200px;
    display: grid;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.rating-bar-row .star-label {
    color: var(--text-muted);
    width: 40px;
}

.rating-bar-row .bar-bg {
    flex: 1;
    height: 8px;
    background: #fff;
    border-radius: 100px;
    overflow: hidden;
}

.rating-bar-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    border-radius: 100px;
}

.rating-bar-row .percent {
    color: var(--text-muted);
    width: 40px;
    text-align: left;
}

.reviews-list {
    display: grid;
    gap: 14px;
}

.review-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

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

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-user-info {
    flex: 1;
    min-width: 0;
}

.review-user-info .name {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.review-user-info .date {
    font-size: 11.5px;
    color: var(--text-muted);
}

.review-stars {
    color: #FBBF24;
    font-size: 13px;
    letter-spacing: -1px;
}

.review-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-body);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text-body);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    margin-top: 16px;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-load-more:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

/* =========================================================
   SIDEBAR
========================================================= */

.profile-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 20px;
    align-self: start;
}

.booking-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold-500);
    box-shadow: 0 20px 50px rgba(201,162,39,.15);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.booking-card h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-card h3 i { color: var(--gold-500); }

.booking-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.booking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

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

.booking-row .label {
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-row .value {
    font-weight: 800;
    color: var(--navy-900);
    text-align: left;
    max-width: 60%;
    word-break: break-word;
}

.booking-row .value.empty {
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
}

/* ================= DISCOUNT FIELD ================= */
.discount-section {
    margin-bottom: 18px;
    padding: 16px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1.5px dashed rgba(201,162,39,.5);
    border-radius: 14px;
}

.discount-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.discount-label i { color: var(--gold-500); font-size: 14px; }

.discount-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.discount-input.is-applied {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
    letter-spacing: 0;
    direction: rtl;
    cursor: default;
    opacity: 1;
}
.btn-apply-discount.is-remove-discount {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.discount-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
    text-align: center;
    letter-spacing: 2px;
    direction: ltr;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.discount-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

.discount-input::placeholder {
    color: var(--text-light);
    letter-spacing: 0;
    font-weight: 500;
}

.discount-input:disabled {
    background: var(--bg-light);
    color: var(--emerald);
    border-color: var(--emerald);
    cursor: not-allowed;
}

.btn-apply-discount {
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-apply-discount:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
}

.btn-apply-discount:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.discount-message {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}

.discount-message.show { display: flex; }

.discount-message.success {
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid rgba(5,150,105,.3);
}

.discount-message.error {
    background: var(--red-soft);
    color: var(--red-600);
    border: 1px solid rgba(220,38,38,.3);
}

.discount-message i { font-size: 14px; flex-shrink: 0; }

/* ================= BOOKING TOTAL ================= */
.booking-total {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
    color: #fff;
}

.booking-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.booking-total-row + .booking-total-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,.2);
}

.booking-total .label {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

.booking-total .amount {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-align: left;
}

.booking-total .amount small {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}

.booking-total .amount.discount-amount {
    color: #FBBF24;
}

.booking-total .amount.final-amount {
    font-size: 22px;
    color: var(--gold-400);
}

.booking-total .amount.final-amount small {
    color: rgba(255,255,255,.75);
    font-size: 12px;
}

.btn-book-now {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    margin-bottom: 12px;
}

.btn-book-now:hover:not(:disabled) { transform: translateY(-2px); }

.btn-book-now:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #94A3B8, #64748B);
    box-shadow: none;
}

.booking-note {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.booking-note i { color: var(--emerald-500); }

/* =========================================================
   QUICK INFO
========================================================= */

.quick-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.quick-info-card h4 {
    font-size: 14px;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-info-card h4 i {
    color: var(--gold-500);
    font-size: 13px;
}

.quick-info-list {
    display: grid;
    gap: 12px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.quick-info-item .ic {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--bg-light);
    color: var(--navy-700);
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-info-item .text { flex: 1; min-width: 0; }

.quick-info-item .text strong {
    display: block;
    font-size: 12.5px;
    color: var(--navy-900);
    font-weight: 800;
    margin-bottom: 2px;
}

.quick-info-item .text span {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* =========================================================
   TRUST
========================================================= */

.trust-card {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.trust-card h4 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-card h4 i { color: var(--gold-400); }

.trust-card .item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
}

.trust-card .item i {
    color: var(--emerald-500);
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,31,68,.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 22px;
    max-width: 440px;
    width: 100%;
    padding: 32px 26px 26px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    transform: scale(.9) translateY(20px);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.modal.success::before {
    background: linear-gradient(90deg, var(--emerald-500), #34D399);
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--gold-500);
}

.modal.success .modal-icon {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--emerald);
}

.modal h3 {
    font-size: 19px;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.btn-modal {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.modal.success .btn-modal {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald));
}

/* =========================================================
   AUTH MODAL
========================================================= */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,31,68,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 460px;
    padding: 40px 36px;
    box-shadow: 0 40px 80px rgba(0,0,0,.3);
    position: relative;
    transform: scale(.95);
    transition: transform .3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.auth-modal-close:hover {
    background: var(--red-soft);
    color: var(--red-500);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal-header .logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-radius: 14px;
    font-size: 26px;
    box-shadow: var(--shadow-gold);
}

.auth-modal-header h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.auth-modal-header p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.auth-error {
    background: var(--red-soft);
    color: var(--red-600);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
    line-height: 1.6;
}

.auth-error.show { display: block; }

.auth-step { display: none; }
.auth-step.active { display: block; }

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

.auth-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.auth-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
    direction: ltr;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    outline: none;
}

.auth-form-group input:focus {
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.auth-form-group input::placeholder {
    color: var(--text-light);
    letter-spacing: normal;
    font-weight: 400;
}

.auth-info {
    background: var(--emerald-soft);
    color: var(--emerald);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.7;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-info i { font-size: 16px; }

.auth-phone-display {
    text-align: center;
    font-size: 15px;
    color: var(--navy-900);
    font-weight: 800;
    margin-bottom: 16px;
    direction: ltr;
    letter-spacing: 1px;
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    direction: ltr;
    margin-bottom: 16px;
}

.otp-input {
    width: 48px !important;
    height: 56px;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--navy-900);
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.otp-input:focus {
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 4px var(--gold-soft);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: var(--emerald);
    background: var(--emerald-soft);
    color: var(--emerald);
}

.btn-auth-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    transition: var(--transition);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition);
    background: none;
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-back-link:hover {
    color: var(--navy-900);
    background: var(--bg-light);
}

.resend-timer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}

.resend-timer strong {
    color: var(--navy-900);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.resend-btn {
    color: var(--gold-500);
    font-weight: 700;
    background: none;
    padding: 0;
    margin-right: 4px;
    transition: var(--transition);
}

.resend-btn:hover:not(:disabled) {
    color: var(--gold-400);
    text-decoration: underline;
}

.resend-btn:disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* =========================================================
   TEST MODE BADGE
========================================================= */

.test-mode-badge {
    position: fixed;
    top: 90px;
    left: 16px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #fff;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(245,158,11,.4);
    animation: pulseTest 2s ease-in-out infinite;
}

.test-mode-badge i { font-size: 13px; }

@keyframes pulseTest {
    0%,100% { opacity: 1; }
    50% { opacity: .7; }
}

/* =========================================================
   TOAST
========================================================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--navy-900);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    animation: toastIn .3s ease;
    pointer-events: auto;
    border-right: 4px solid var(--gold-500);
}

.toast.success { border-right-color: var(--emerald); }
.toast.error { border-right-color: var(--red-500); }
.toast.info { border-right-color: var(--orange-500); }
.toast i { font-size: 18px; }

@keyframes toastIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,.7);
    padding: 40px 20px 20px;
    text-align: center;
    font-size: 13.5px;
}

.site-footer a { color: var(--gold-400); }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
}

@media (max-width: 1024px) {
    .header-nav { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .main-container { padding: 20px 16px 50px; }
    .profile-hero { height: 165px; }
    .cover-content { gap: 16px; }
    .cover-logo-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; }
    .cover-brand-name { font-size: 26px; }
    .cover-brand-tagline { font-size: 13px; }

    .profile-header-card {
        padding: 22px;
        margin-top: -80px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar { width: 120px; height: 120px; }
    .profile-name-row { justify-content: center; }
    .profile-name { font-size: 1.3rem; }
    .profile-title { justify-content: center; }
    .profile-meta-row { justify-content: center; gap: 20px; }
    .profile-tags { justify-content: center; }

    .card { padding: 20px 16px; }
    .card-header h2 { font-size: 16px; }
    .card-header h2 .icon { width: 32px; height: 32px; font-size: 14px; }

    .service-card { padding: 14px; gap: 12px; flex-wrap: wrap; }
    .service-icon-big { width: 48px; height: 48px; font-size: 20px; }
    .service-info-main h3 { font-size: 14px; }
    .service-price-col { border-right: none; border-top: 1px dashed var(--border); padding-top: 10px; padding-right: 0; text-align: right; width: 100%; }

    .day-selector { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .slots-grid { grid-template-columns: repeat(2,1fr); }

    .reviews-summary { flex-direction: column; }
    .rating-big { border-left: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; width: 100%; }

    .selected-summary { flex-direction: column; text-align: center; }

    .user-name { display: none; }

    .otp-input { width: 44px !important; height: 52px; font-size: 20px !important; }
    .otp-inputs { gap: 6px; }

    .auth-modal { padding: 32px 24px; }

    .test-mode-badge {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .logo { font-size: 17px; }
    .logo-icon { width: 34px; height: 34px; }
    .header-actions .btn-header-gold { padding: 9px 13px; font-size: 12px; }

    .profile-name { font-size: 1.15rem; }
    .profile-avatar { width: 100px; height: 100px; }

    .day-selector { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .slots-grid { grid-template-columns: repeat(2,1fr); }

    .profile-hero { height: 145px; }
    .cover-content { gap: 12px; }
    .cover-logo-icon { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; }
    .cover-brand-name { font-size: 21px; }
    .cover-brand-tagline { font-size: 11.5px; }

    .breadcrumb { max-width: 100%; overflow-x: auto; white-space: nowrap; }

    .otp-input { width: 38px !important; height: 46px; font-size: 18px !important; border-radius: 10px; }
    .otp-inputs { gap: 5px; }
    .auth-modal { padding: 28px 20px; }

    .discount-input-row { flex-direction: column; }
    .btn-apply-discount { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
.booking-case-fields{margin:16px 0;padding:14px;border:1px solid #e1e7f0;border-radius:12px;background:#f8fafc;display:grid;gap:8px}.booking-case-fields textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cbd5e1;border-radius:8px;padding:9px;font:inherit}.booking-case-fields input{font-size:12px}.booking-case-fields small{color:#66758a}
.service-book-btn{margin-top:12px;border:0;border-radius:10px;background:#17366d;color:#fff;padding:9px 16px;font-family:inherit;cursor:pointer}.service-book-btn:disabled{opacity:.45;cursor:not-allowed}.service-option .calendar-section{margin-top:16px;width:100%;border-top:1px solid #e6eaf2;padding-top:14px}.document-type-picker{margin:14px 0;padding:12px;border:1px solid #e1e6ef;border-radius:10px}.document-type-picker select{display:block;width:100%;margin-top:7px;padding:9px;border:1px solid #ccd5e4;border-radius:8px;font-family:inherit}
.service-plan{margin-bottom:14px}.service-plan-extra:empty{display:none}.service-plan-extra .calendar-section{margin-top:12px;padding:16px;border:1px solid #dce5f1;border-radius:12px;background:#fff}.booking-case-fields .btn-book-now{width:100%;margin-top:8px}

.online-badge-large.is-consulting{background:#fff4e5;color:#945300;border-color:#f2ce91}
.online-badge-large.is-consulting .dot{background:#df8515;animation:none}
.profile-status-row{display:flex;min-width:0;margin:-5px 0 14px}
.profile-status-row .online-badge-large{position:static;box-sizing:border-box;width:fit-content;max-width:100%;align-items:flex-start;white-space:normal;overflow-wrap:anywhere;text-align:right;line-height:1.65;border-radius:12px;padding:7px 11px;box-shadow:0 4px 12px rgba(10,31,68,.12)}
.profile-status-row .online-badge-large .dot{flex:0 0 6px;margin-top:6px}
.profile-top-lawyer-crown{position:absolute;top:-12px;right:-10px;z-index:3;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#fff3bf,#e5c655);border:3px solid #fff;color:#8b6710;box-shadow:0 6px 18px #0a1f4425;font-size:18px}
.top-lawyer-badge{display:inline-flex;align-items:center;gap:6px;margin:6px 0;padding:6px 11px;border-radius:20px;background:#fff6d7;color:#876411;font-size:12px;font-weight:800;white-space:nowrap}
.profile-top-lawyer-crown[hidden],.top-lawyer-badge[hidden]{display:none!important}
.verified-badge{cursor:help}
