/* ================= RESET & BASE ================= */
*, *::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, 0.12);
    --emerald: #059669;
    --emerald-500: #10B981;
    --emerald-soft: rgba(5, 150, 105, 0.1);
    --red-500: #DC2626;
    --red-600: #B91C1C;
    --red-soft: rgba(220, 38, 38, 0.1);
    --purple-500: #8B5CF6;
    --orange-500: #F59E0B;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-cream: #FDFCF9;
    --text-dark: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: rgba(255,255,255,0.1);
    --shadow-sm: 0 4px 16px rgba(10, 31, 68, 0.06);
    --shadow-md: 0 12px 32px rgba(10, 31, 68, 0.10);
    --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.16);
    --shadow-gold: 0 12px 30px rgba(201, 162, 39, 0.35);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.skip-link {
    position: absolute; top: -100px; right: 20px;
    background: var(--navy-900); color: #fff;
    padding: 12px 20px; border-radius: 8px;
    z-index: 10000; transition: top 0.3s;
}
.skip-link:focus { top: 20px; }

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

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ================= HEADER ================= */
.header {
    position: fixed; top: 16px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1240px;
    z-index: 1000;
    background: rgba(10, 31, 68, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(10, 31, 68, 0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    top: 8px;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
    display: flex; align-items: center; gap: 12px;
    color: #fff; font-weight: 800; font-size: 22px;
    letter-spacing: -0.5px; flex-shrink: 0;
}
.logo-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-radius: 12px; font-size: 22px;
    box-shadow: var(--shadow-gold);
}
.logo-text .accent { color: var(--gold-400); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav > li { position: relative; }

.nav > li > a,
.nav > li > .nav-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.78);
    font-size: 15px; font-weight: 500;
    position: relative; padding: 6px 0;
    transition: var(--transition); cursor: pointer;
}
.nav > li > a::after,
.nav > li > .nav-trigger::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 0; height: 2px; background: var(--gold-500);
    border-radius: 2px; transition: width 0.3s ease;
}
.nav > li > a:hover,
.nav > li > .nav-trigger:hover { color: #fff; }
.nav > li > a:hover::after,
.nav > li > .nav-trigger:hover::after { width: 100%; }

.nav-trigger .caret { font-size: 10px; transition: transform 0.3s ease; opacity: 0.8; }
.nav-dropdown.open .nav-trigger .caret { transform: rotate(180deg); }
.nav-dropdown.open .nav-trigger { color: var(--gold-400); }

.nav-dropdown { position: relative; }

.dropdown-menu {
    position: absolute; top: calc(100% + 18px); right: -20px;
    min-width: 300px; background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(10, 31, 68, 0.25), 0 0 0 1px rgba(10, 31, 68, 0.06);
    padding: 10px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1200;
}
.dropdown-menu::before {
    content: ''; position: absolute; top: -7px; right: 32px;
    width: 14px; height: 14px; background: #FFFFFF;
    border-radius: 3px; transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(10, 31, 68, 0.04);
}
.dropdown-menu::after {
    content: ''; position: absolute; top: -18px; right: 0; left: 0;
    height: 18px; pointer-events: auto;
}

@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
}

.dropdown-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px;
    color: var(--text-body); font-size: 14.5px; font-weight: 500;
    transition: var(--transition); position: relative;
}
.dropdown-menu a:hover {
    background: linear-gradient(90deg, var(--gold-soft), transparent);
    color: var(--navy-900);
}
.dropdown-menu a:hover .dd-icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); transform: scale(1.05);
}
.dropdown-menu a:hover .dd-arrow { opacity: 1; transform: translateX(-3px); }

.dd-icon {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--bg-light); color: var(--navy-700);
    border-radius: 10px; font-size: 15px;
    flex-shrink: 0; transition: var(--transition);
}
.dd-content { flex: 1; min-width: 0; }
.dd-title {
    display: block; font-weight: 600; color: var(--navy-900);
    font-size: 14.5px; margin-bottom: 1px; line-height: 1.4;
}
.dd-sub {
    display: block; font-size: 12px; color: var(--text-muted);
    font-weight: 400; line-height: 1.4;
}
.dd-arrow {
    color: var(--gold-500); font-size: 13px;
    opacity: 0; transition: var(--transition); flex-shrink: 0;
}

.dropdown-divider { height: 1px; background: var(--border); margin: 6px 10px; }

.dropdown-parent { position: relative; }
.dropdown-parent > .dropdown-toggle-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px;
    color: var(--text-body); font-size: 14.5px; font-weight: 500;
    transition: var(--transition);
    cursor: pointer; width: 100%; text-align: right;
    font-family: inherit;
}
.dropdown-parent > .dropdown-toggle-item:hover {
    background: linear-gradient(90deg, var(--gold-soft), transparent);
    color: var(--navy-900);
}
.dropdown-parent > .dropdown-toggle-item:hover .dd-icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); transform: scale(1.05);
}
.dropdown-parent > .dropdown-toggle-item .dd-chevron {
    color: var(--gold-500); font-size: 12px;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.dropdown-parent.open > .dropdown-toggle-item .dd-chevron {
    transform: rotate(180deg);
}

.sub-dropdown {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.dropdown-parent.open .sub-dropdown { max-height: 300px; }
.sub-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; padding-right: 62px;
    border-radius: 8px;
    color: var(--text-muted); font-size: 13.5px; font-weight: 500;
    transition: var(--transition);
}
.sub-dropdown a:hover {
    background: var(--bg-light);
    color: var(--navy-900);
}
.sub-dropdown a i { color: var(--gold-500); font-size: 12px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 11px 22px; border-radius: 12px;
    font-weight: 600; font-size: 14.5px;
    transition: var(--transition); white-space: nowrap;
}

/* ✅ دکمه واحد ورود / ثبت‌نام */
.btn-auth {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    font-weight: 800;
    box-shadow: var(--shadow-gold);
    padding: 11px 24px;
}
.btn-auth:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(201, 162, 39, 0.5);
}
.btn-auth i { font-size: 15px; }

.menu-btn {
    display: none; width: 42px; height: 42px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; border-radius: 10px; transition: var(--transition);
}
.menu-btn:hover { background: rgba(255,255,255,0.06); }
.menu-btn span {
    width: 22px; height: 2px; background: #fff;
    border-radius: 2px; transition: var(--transition);
}

/* ================= 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,0.08);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: #fff; font-size: 14px; font-weight: 600;
    transition: var(--transition); cursor: pointer;
}
.user-btn:hover { background: rgba(255,255,255,0.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, 0.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); }

/* ================= HERO ================= */
.hero {
    position: relative; min-height: 100vh;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    overflow: hidden; display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30, 75, 148, 0.4), transparent 70%);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 60px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-soft); color: var(--gold-400);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 8px 16px; border-radius: 100px;
    font-size: 13.5px; font-weight: 600; margin-bottom: 28px;
}
.hero-badge .dot {
    width: 8px; height: 8px; background: var(--emerald);
    border-radius: 50%; box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900; line-height: 1.25;
    color: #fff; letter-spacing: -1px; margin-bottom: 24px;
}
.hero h1 .highlight { color: var(--gold-400); position: relative; display: inline-block; }
.hero h1 .highlight::after {
    content: ''; position: absolute; bottom: 4px; right: 0; left: 0;
    height: 8px; background: rgba(201, 162, 39, 0.2);
    z-index: -1; border-radius: 4px;
}
.hero p.lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.9; margin-bottom: 36px; max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary-lg {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); padding: 16px 32px; border-radius: 14px;
    font-size: 16px; font-weight: 800;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-gold); transition: var(--transition);
}
.btn-primary-lg:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(201, 162, 39, 0.55);
}
.btn-outline-lg {
    background: transparent; color: #fff;
    padding: 16px 32px; border-radius: 14px;
    font-size: 16px; font-weight: 600;
    border: 1.5px solid var(--border-light);
    display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition);
}
.btn-outline-lg:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.hero-stats {
    display: flex; gap: 40px; flex-wrap: wrap;
    padding-top: 32px; border-top: 1px solid var(--border-light);
}
.stat-item .stat-num {
    font-size: 28px; font-weight: 900; color: #fff;
    display: block; margin-bottom: 4px;
}
.stat-item .stat-num .plus { color: var(--gold-400); }
.stat-item .stat-label { font-size: 13.5px; color: rgba(255,255,255,0.6); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-wrapper {
    position: relative; width: 100%; max-width: 460px;
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    min-height: 400px;
}
.hero-image-wrapper img { width: 100%; height: 560px; object-fit: cover; display: block; }
.float-card {
    position: absolute;
    background: rgba(10, 31, 68, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 3; animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-card.card-1 { top: 40px; right: -30px; animation-delay: 0s; }
.float-card.card-2 { bottom: 60px; left: -30px; animation-delay: 1.5s; }
.float-card .fc-row { display: flex; align-items: center; gap: 10px; }
.float-card .fc-icon {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-400);
    border-radius: 10px; font-size: 18px; flex-shrink: 0;
}
.float-card .fc-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.float-card .fc-sub { font-size: 11.5px; color: rgba(255,255,255,0.6); }
.float-card .avatars-stack { display: flex; margin-bottom: 10px; }
.float-card .avatars-stack img {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--navy-800);
    margin-left: -10px; object-fit: cover;
}
.float-card .avatars-stack img:first-child { margin-left: 0; }
.float-card .fc-online {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: #4ADE80; font-weight: 600;
}
.float-card .fc-online .online-dot {
    width: 7px; height: 7px; background: #4ADE80;
    border-radius: 50%; box-shadow: 0 0 10px #4ADE80;
}

/* ================= SECTION ================= */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700;
    color: var(--navy-700); background: var(--gold-soft);
    padding: 6px 16px; border-radius: 100px;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-tag.tag-live { background: rgba(16, 185, 129, 0.1); color: #059669; }
.live-dot {
    width: 8px; height: 8px; background: #22C55E;
    border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900; color: var(--navy-900);
    letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.section-head p strong { color: var(--navy-900); font-weight: 800; }

/* ================= HOW IT WORKS ================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.step-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-500);
}
.step-num-badge {
    position: absolute; top: -18px; right: 50%;
    transform: translateX(50%);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    border-radius: 50%;
    font-size: 18px; font-weight: 900;
    box-shadow: var(--shadow-gold);
    border: 3px solid #fff;
}
.step-icon-lg {
    width: 72px; height: 72px;
    display: grid; place-items: center;
    background: var(--gold-soft);
    color: var(--gold-500);
    border-radius: 20px;
    font-size: 30px;
    margin: 12px auto 20px;
    transition: var(--transition);
}
.step-card:hover .step-icon-lg {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    transform: rotate(-6deg) scale(1.05);
}
.step-card h3 {
    font-size: 18px; font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}
.step-card p {
    color: var(--text-muted);
    font-size: 14.5px; line-height: 1.85;
}

/* ================= ONLINE LAWYERS ================= */
.lawyers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lawyer-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 22px 16px; border: 1px solid var(--border);
    text-align: center; transition: var(--transition);
    position: relative; overflow: hidden;
}
.lawyer-card.is-online {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}
.lawyer-card.is-online:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}
.lawyer-card.is-offline { opacity: 0.6; filter: grayscale(0.5); }
.lawyer-card.is-offline:hover { transform: translateY(-4px); opacity: 0.75; }

.lawyer-online-badge {
    position: absolute; top: 20px; left: 20px;
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 5px 12px; border-radius: 100px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 2; letter-spacing: 0.3px;
}
.lawyer-online-badge .badge-dot {
    width: 6px; height: 6px; background: #fff;
    border-radius: 50%; animation: onlineBlink 1.5s ease-in-out infinite;
}
@keyframes onlineBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.lawyer-card.is-offline .lawyer-online-badge {
    background: linear-gradient(135deg, #94A3B8, #64748B); box-shadow: none;
}
.lawyer-card.is-offline .lawyer-online-badge .badge-dot { animation: none; opacity: 0.5; }

.lawyer-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 12px;
    border: 4px solid var(--bg-light);
    transition: var(--transition); position: relative;
}
.lawyer-card.is-online .lawyer-avatar {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.lawyer-card:hover .lawyer-avatar { transform: scale(1.05); }
.lawyer-card.is-online:hover .lawyer-avatar {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15);
}
.lawyer-name {
    font-size: 16px; font-weight: 800;
    color: var(--navy-900); margin-bottom: 6px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lawyer-name i { color: var(--emerald); font-size: 14px; }
.lawyer-specialty { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }
.lawyer-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center; margin-bottom: 12px;
}
.lawyer-tags .tag {
    background: var(--bg-light); color: var(--text-muted);
    font-size: 12px; font-weight: 600;
    padding: 4px 8px; border-radius: 100px;
}
.lawyer-rating {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; margin-bottom: 12px;
    font-size: 12.5px; color: var(--text-muted);
}
.lawyers-empty { grid-column: 1/-1; padding: 35px; text-align:center; color:var(--text-muted); background:#fff; border-radius:16px; }
.lawyer-rating .stars { color: #FBBF24; }
.btn-lawyer {
    width: 100%; padding: 12px;
    background: var(--navy-900); color: #fff;
    border-radius: 12px; font-weight: 700; font-size: 14.5px;
    transition: var(--transition);
}
.btn-lawyer:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.lawyer-card.is-online .btn-lawyer {
    background: linear-gradient(135deg, #10B981, #059669); color: #fff;
}
.lawyer-card.is-online .btn-lawyer:hover {
    background: linear-gradient(135deg, #059669, #047857); color: #fff;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}
.lawyer-card.is-offline .btn-lawyer { background: var(--text-light); color: #fff; }

.view-all-lawyers {
    text-align: center;
    margin-top: 40px;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    color: var(--navy-900);
    border: 2px solid var(--navy-900);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    transition: var(--transition);
}
.btn-view-all:hover {
    background: var(--navy-900);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ================= LAWYER JOIN SECTION ================= */
.lawyer-join-section {
    background: linear-gradient(135deg, #0A1F44 0%, #0F2A5C 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.lawyer-join-section::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
    border-radius: 50%; filter: blur(80px);
}
.lawyer-join-section::after {
    content: ''; position: absolute; bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30, 75, 148, 0.4), transparent 70%);
    border-radius: 50%; filter: blur(80px);
}
.lawyer-join-section .container { position: relative; z-index: 2; }
.lawyer-join-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.lawyer-join-header .join-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-400);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 700;
    margin-bottom: 18px;
}
.lawyer-join-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900; color: #fff;
    line-height: 1.3; margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.lawyer-join-header h2 .gold { color: var(--gold-400); }
.lawyer-join-header p {
    color: rgba(255,255,255,0.72);
    font-size: 16px; line-height: 1.85;
}

.join-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 48px;
}
.join-step-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}
.join-step-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201, 162, 39, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.join-step-num {
    position: absolute; top: -18px; right: 50%;
    transform: translateX(50%);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    border-radius: 50%;
    font-size: 18px; font-weight: 900;
    box-shadow: var(--shadow-gold);
    border: 3px solid var(--navy-900);
}
.join-step-icon {
    width: 72px; height: 72px;
    display: grid; place-items: center;
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-400);
    border-radius: 20px;
    font-size: 30px;
    margin: 12px auto 20px;
    transition: var(--transition);
}
.join-step-card:hover .join-step-icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    transform: rotate(-6deg) scale(1.05);
}
.join-step-card h3 {
    font-size: 18px; font-weight: 800;
    color: #fff; margin-bottom: 10px;
}
.join-step-card p {
    color: rgba(255,255,255,0.65);
    font-size: 14.5px; line-height: 1.85;
}
.lawyer-join-actions {
    text-align: center;
}
.btn-join-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}
.btn-join-main:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(201, 162, 39, 0.55);
}

/* ================= ABOUT US ================= */
.about-section { background: var(--bg-white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-visual { position: relative; }
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(10, 31, 68, 0.2);
}
.about-image-wrapper img {
    width: 100%; height: 480px;
    object-fit: cover; display: block;
}
.about-badge {
    position: absolute; bottom: -25px; left: -25px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff; padding: 22px 26px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(10, 31, 68, 0.35);
    display: flex; align-items: center; gap: 14px;
    z-index: 3; border: 1px solid var(--border-light);
}
.about-badge .badge-icon {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    border-radius: 14px; font-size: 22px; flex-shrink: 0;
}
.about-badge .badge-text { line-height: 1.3; }
.about-badge .badge-num {
    font-size: 20px; font-weight: 900;
    color: var(--gold-400); display: block;
}
.about-badge .badge-label { font-size: 12px; color: rgba(255,255,255,0.75); }

.about-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 900; color: var(--navy-900);
    line-height: 1.3; letter-spacing: -0.5px;
    margin-bottom: 22px;
}
.about-content h2 .accent {
    color: var(--gold-500); position: relative; display: inline-block;
}
.about-content h2 .accent::after {
    content: ''; position: absolute; bottom: 3px; right: 0; left: 0;
    height: 6px; background: rgba(201, 162, 39, 0.2);
    z-index: -1; border-radius: 3px;
}
.about-content p {
    color: var(--text-body); font-size: 15.5px;
    line-height: 2; margin-bottom: 18px; text-align: justify;
}
.about-content p:last-of-type { margin-bottom: 24px; }

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.about-value-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px; font-weight: 600;
    color: var(--navy-900);
    transition: var(--transition);
}
.about-value-item:hover {
    border-color: var(--gold-500);
    background: var(--gold-soft);
    transform: translateX(-4px);
}
.about-value-item i { color: var(--gold-500); font-size: 16px; flex-shrink: 0; }
.btn-about {
    display: inline-flex;
    align-items: center; gap: 10px;
    padding: 14px 30px;
    background: var(--navy-900); color: #fff;
    border-radius: 12px;
    font-size: 15px; font-weight: 700;
    transition: var(--transition);
}
.btn-about:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ================= FAQ ================= */
.faq { background: var(--bg-cream); }
.faq-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 60px; align-items: start;
}
.faq-side h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900; color: var(--navy-900);
    line-height: 1.3; margin-bottom: 16px;
}
.faq-side p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 28px; }
.faq-side .btn {
    background: var(--navy-900); color: #fff;
    padding: 14px 28px; border-radius: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.faq-side .btn:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); transform: translateY(-2px);
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--bg-white); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--gold-500); }
.faq-item summary {
    cursor: pointer; padding: 22px 26px;
    font-weight: 700; font-size: 16px; color: var(--navy-900);
    list-style: none; display: flex;
    justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--bg-light); border-radius: 50%;
    color: var(--navy-900); font-size: 16px;
    transition: var(--transition); flex-shrink: 0;
}
.faq-item[open] summary .icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); transform: rotate(45deg);
}
.faq-item .answer {
    padding: 0 26px 22px;
    color: var(--text-muted); font-size: 15px; line-height: 1.9;
}

/* ================= CTA ================= */
.cta-section { padding: 60px 0 100px; background: var(--bg-white); }
.cta-box {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-xl);
    padding: 70px 60px; overflow: hidden; text-align: center;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.25), transparent 70%);
    border-radius: 50%; filter: blur(60px);
}
.cta-box::after {
    content: ''; position: absolute; bottom: -50%; left: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(30, 75, 148, 0.5), transparent 70%);
    border-radius: 50%; filter: blur(60px);
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900; color: #fff;
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.cta-box p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 600px; margin: 0 auto 32px; }

.btn-urgent-lg {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900); padding: 16px 36px; border-radius: 14px;
    font-size: 16px; font-weight: 800;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition); position: relative; overflow: hidden;
}
.btn-urgent-lg:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(201, 162, 39, 0.55);
}

/* ================= FOOTER ================= */
.footer {
    background: var(--navy-900); color: rgba(255,255,255,0.7);
    padding: 60px 0 30px; border-top: 1px solid var(--border-light);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
    font-size: 14.5px; line-height: 1.9;
    color: rgba(255,255,255,0.6); max-width: 320px;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; }
.footer a { font-size: 14.5px; transition: var(--transition); }
.footer a:hover { color: var(--gold-400); padding-right: 4px; }
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px; text-align: center;
    font-size: 13.5px; color: rgba(255,255,255,0.5);
}

/* ================= AUTH MODAL ================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 31, 68, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%; max-width: 460px;
    padding: 40px 36px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal { transform: scale(1); }

.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);
}
.modal-close:hover { background: var(--red-soft); color: var(--red-500); }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header .logo-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    font-size: 28px;
}
.modal-header h2 {
    font-size: 22px; font-weight: 900;
    color: var(--navy-900); margin-bottom: 8px;
    line-height: 1.4;
}
.modal-header p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ================= AUTH STEP ================= */
.auth-step { display: none; }
.auth-step.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 6px;
}
.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;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 4px var(--gold-soft);
}
.form-group input::placeholder { 
    color: var(--text-light);
    letter-spacing: normal;
    font-weight: 400;
}

/* OTP input */
.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;
}
.otp-input:focus {
    outline: none;
    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-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-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-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.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-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;
}

.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: 9998;
    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, 0.4);
    animation: pulseTest 2s ease-in-out infinite;
}
.test-mode-badge i { font-size: 13px; }
@keyframes pulseTest {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ================= TOAST ================= */
.toast-container {
    position: fixed;
    bottom: 24px; left: 24px;
    z-index: 10000;
    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,0.3);
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    min-width: 260px;
    animation: toastIn 0.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; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { order: -1; }
    .hero-image-wrapper img { height: 420px; }
    .float-card.card-1 { right: 0; }
    .float-card.card-2 { left: 0; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .join-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .lawyers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-badge { bottom: -20px; left: 0; }
    .about-image-wrapper img { height: 400px; }
}

@media (max-width: 768px) {
    .header { top: 8px; width: calc(100% - 16px); padding: 10px 16px; border-radius: 16px; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0; left: 0;
        flex-direction: column;
        background: rgba(10, 31, 68, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-light);
        border-radius: 16px;
        padding: 20px; gap: 4px;
        align-items: stretch;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav.active { display: flex; }
    .nav > li { width: 100%; }
    .nav > li > a,
    .nav > li > .nav-trigger {
        padding: 12px 16px; border-radius: 10px;
        width: 100%; justify-content: space-between;
    }
    .nav > li > a::after,
    .nav > li > .nav-trigger::after { display: none; }
    .nav > li > a:hover,
    .nav > li > .nav-trigger:hover { background: rgba(255,255,255,0.06); }

    .dropdown-menu {
        position: static; transform: none !important;
        width: 100%;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        box-shadow: none; padding: 0;
        max-height: 0; overflow: hidden;
        opacity: 1; visibility: visible;
        margin-top: 0;
        transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
    }
    .dropdown-menu::before,
    .dropdown-menu::after { display: none; }
    .nav-dropdown.open .dropdown-menu {
        max-height: 900px; padding: 8px; margin-top: 6px;
    }
    .dropdown-menu a { color: rgba(255,255,255,0.85); padding: 10px 12px; }
    .dropdown-menu a:hover { background: rgba(201,162,39,0.1); }
    .dd-title { color: #fff; }
    .dd-sub { color: rgba(255,255,255,0.55); }
    .dd-icon { background: rgba(255,255,255,0.06); color: var(--gold-400); }
    .dropdown-divider { background: rgba(255,255,255,0.08); }

    .dropdown-parent > .dropdown-toggle-item {
        color: rgba(255,255,255,0.85);
        padding: 10px 12px;
    }
    .dropdown-parent > .dropdown-toggle-item:hover {
        background: rgba(201,162,39,0.1);
    }
    .dropdown-parent > .dropdown-toggle-item .dd-title { color: #fff; }
    .dropdown-parent > .dropdown-toggle-item .dd-sub { color: rgba(255,255,255,0.55); }
    .dropdown-parent > .dropdown-toggle-item .dd-icon {
        background: rgba(255,255,255,0.06);
        color: var(--gold-400);
    }
    .sub-dropdown {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
    }
    .sub-dropdown a {
        color: rgba(255,255,255,0.7);
        padding: 9px 14px; padding-right: 50px;
    }
    .sub-dropdown a:hover {
        background: rgba(201,162,39,0.1);
        color: var(--gold-400);
    }

    .menu-btn { display: flex; }
    .btn-auth { padding: 9px 16px; font-size: 13px; }
    .btn-auth i { font-size: 13px; }

    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .stat-item .stat-num { font-size: 22px; }

    .steps-grid, .join-steps-grid, .lawyers-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .lawyer-join-section { padding: 70px 0; }
    .cta-box { padding: 50px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-brand p { margin: 0 auto; }
    .footer a:hover { padding-right: 0; }
    
    .modal { padding: 32px 24px; }
    .user-name { display: none; }

    .btn-join-main { width: 100%; justify-content: center; }

    .about-values { grid-template-columns: 1fr; }
    .btn-about { width: 100%; justify-content: center; }

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

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

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-cta { flex-direction: column; }
    .btn-primary-lg, .btn-outline-lg { width: 100%; justify-content: center; }
    .hero-stats { justify-content: space-between; gap: 12px; }
    .float-card { padding: 12px 14px; }
    .float-card .fc-icon { width: 34px; height: 34px; font-size: 15px; }
    .float-card .fc-title { font-size: 12px; }
    .float-card .fc-sub { font-size: 10.5px; }
    .cta-box { padding: 40px 20px; }
    .btn-urgent-lg { width: 100%; justify-content: center; }
    .lawyer-online-badge { top: 14px; left: 14px; font-size: 10px; padding: 4px 10px; }
    .about-image-wrapper img { height: 320px; }
    .about-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        justify-content: center;
    }

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

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

.lawyer-rating .rating-not-set{color:#768395;font-size:11px;font-weight:600}

/* Verified-lawyer tooltip */
.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-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)}}
.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)}
/* Accelerator plan: featured Top Lawyer cards */
#topLawyersSection[hidden]{display:none!important}
.top-lawyers-section{background:linear-gradient(180deg,#fffdf5,#f8fafc)}
.top-lawyers-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}
.top-lawyers-section[hidden]{display:none!important}
.top-lawyers-more-wrap{display:flex;justify-content:center;margin-top:24px}.top-lawyers-more{display:inline-flex;align-items:center;gap:9px;padding:11px 18px;border:1px solid #e7d99d;border-radius:12px;background:#fffaf0;color:#80620e;font-size:13px;font-weight:800;text-decoration:none;transition:.2s}.top-lawyers-more:hover{transform:translateY(-2px);background:#fff4cc;box-shadow:0 8px 20px #0a1f4412}.top-lawyers-more .fa-arrow-left{margin-right:3px}
.home-top-lawyer-card{position:relative;display:flex;align-items:center;gap:14px;min-height:126px;padding:18px;border:1px solid #e7d99d;border-radius:18px;background:#fff;box-shadow:0 8px 22px #0a1f4410;transition:transform .2s,box-shadow .2s}
.home-top-lawyer-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #0a1f4418}
.home-top-avatar-wrap{position:relative;flex:0 0 72px}.home-top-avatar-wrap img,.home-lawyer-avatar-wrap img{width:72px;height:72px;object-fit:cover;border-radius:18px;border:2px solid #f0d775}
.home-top-lawyer-info{display:grid;gap:3px;min-width:0}.home-top-lawyer-info strong{color:#142747}.home-top-lawyer-info small{font-size:12px;color:#64748b}
.home-top-badge{display:inline-flex;align-items:center;gap:5px;color:#8a6715;background:#fff6d7;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.home-top-lawyer-card>.home-top-badge{position:absolute;left:12px;top:12px}
.home-lawyer-avatar-wrap{position:relative;width:max-content;margin:0 auto 8px}
.home-top-crown{position:absolute;top:-10px;right:-8px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff4c4;color:#a7780d;border:2px solid #fff;box-shadow:0 3px 10px #0a1f4422}
.lawyer-name .home-top-badge{margin-right:6px;vertical-align:middle}
