/* ================================================
   JasoosWale.com - India's First Verified Detective Marketplace
   Design System & Styles
   ================================================ */

/* ── Global: prevent any color/outline/shadow change on click ── */
:root {
    --bs-focus-ring-color: transparent;
    --bs-focus-ring-width: 0;
    --bs-btn-focus-box-shadow: none;
}
* {
    -webkit-tap-highlight-color: transparent;
}
a:focus, a:active,
button:focus, button:active,
.btn:focus, .btn:active, .btn:focus-visible,
.nav-link:focus, .nav-link:active,
.dropdown-item:focus, .dropdown-item:active,
[role="button"]:focus, [role="button"]:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* ── Per-button color lock: prevent Bootstrap from changing text color on click ── */
.btn-hero-primary:focus, .btn-hero-primary:active, .btn-hero-primary:focus-visible { color: #111827 !important; }
.btn-outline-light:focus, .btn-outline-light:active, .btn-outline-light:focus-visible { color: #f8f9fa !important; background: transparent !important; }
.btn-accent:focus, .btn-accent:active, .btn-accent:focus-visible { color: #fff !important; }
.btn-gold:focus, .btn-gold:active, .btn-gold:focus-visible { color: var(--dark) !important; }
.btn-cta:focus, .btn-cta:active { color: var(--accent) !important; }
.btn-search:focus, .btn-search:active { color: #111827 !important; }
.ai-advisor-btn:focus, .ai-advisor-btn:active { color: #fff !important; }
.auth-btn-submit:focus, .auth-btn-submit:active { color: #fff !important; }
.auth-type-btn:focus, .auth-type-btn:active { color: inherit !important; }
.city-chip:focus, .city-chip:active { color: inherit !important; }

/* ── Premium Custom Scrollbar ── */

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080c14;
    border-left: 1px solid rgba(255,255,255,0.04);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255,212,59,0.9)  0%,
        rgba(245,166,35,1)   40%,
        rgba(200,134,10,0.95) 100%
    );
    border-radius: 999px;
    border: 2px solid #080c14;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ffe87a 0%,
        #f5a623 50%,
        #e09010 100%
    );
    border-color: #080c14;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #f5a623 0%, #c8860a 100%);
    border-color: #080c14;
    background-clip: padding-box;
}
::-webkit-scrollbar-corner {
    background: #080c14;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #f5a623 #080c14;
}

textarea[name="description"]::placeholder {
    color: #737373;
    opacity: 1;
    font-size: 12px;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --primary-deep: #0f3460;
    --accent: #e63946;
    --accent-hover: #c1121f;
    --gold: #f5a623;
    --gold-light: #ffd700;
    --success: #27ae60;
    --info: #2980b9;
    --dark: #0f0f1a;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --card-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 16px;
    /* Typography scale (sub-1rem) */
    --text-2xs: 0.7rem;
    --text-xs:  0.75rem;
    --text-sm:  0.82rem;
    --text-base: 0.9rem;
    --text-md:  0.95rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #374151;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ── Global Form Enhancements ── */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid #e2e6ea;
    padding: 10px 14px;
    font-size: var(--text-base);
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
    outline: none;
}
.form-control::placeholder { color: #adb5bd; }
.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.form-text { font-size: var(--text-xs); }
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
    border-color: var(--accent);
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: #aaa;
    font-size: 0.82rem;
    padding: 8px 0;
}

.top-bar span {
    font-size: 0.75rem;
}

/* ── Navbar avatar & user dropdown ────────────────────────────────────── */
.nav-icon-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: #e91e63;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

/* Avatar + Full Name + Dashboard pill button */
.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    border: none;
    border-radius: 50px;
    padding: 5px 16px 5px 5px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.nav-user-pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-user-pill[aria-expanded="true"] { filter: brightness(0.96); transform: translateY(0); }
.nav-user-pill::after { display: none; }

/* Avatar wrapper — holds the photo + optional badge */
.nav-pill-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.nav-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    display: block;
}
.nav-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.6);
}

/* Unread badge on the avatar */
.nav-icon-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e91e63;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--gold);
}

.nav-user-pill-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.nav-user-name {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
.nav-user-label {
    color: rgba(10,20,50,0.6);
    font-size: 0.75rem;
    font-weight: 500;
}
.nav-pill-caret {
    color: var(--primary);
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* Dropdown panel */
.nav-user-dropdown {
    min-width: 220px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 8px 0;
    margin-top: 8px;
}
.nav-user-info {
    padding: 10px 16px 8px;
    display: flex;
    flex-direction: column;
}
.nav-user-info strong { font-size: 0.9rem; color: #1a1a2e; }
.nav-user-info span   { font-size: 0.75rem; color: #737373; }
.nav-user-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 4px;
}
.nav-user-dropdown .dropdown-item:hover { background: #f5f5f5; }
.nav-user-dropdown .dropdown-item i { width: 16px; color: #666; }
.nav-user-dropdown .dropdown-item.text-danger i { color: #dc3545; }

/* Navigation */
.main-nav {
    background: var(--primary) !important;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--gold);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.brand-highlight {
    color: var(--gold);
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold) !important;
}

.top-bar-lifematters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, #c1121f 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 13px 4px 10px;
    border-radius: 50px;
    transition: all 0.22s;
    box-shadow: 0 2px 10px rgba(230,57,70,0.45);
}
.top-bar-lifematters:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230,57,70,0.6);
    color: #fff !important;
    opacity: 0.92;
}
.top-bar-lifematters .fa-heart-pulse {
    animation: lm-pulse 1.4s ease-in-out infinite;
}
@keyframes lm-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.3); }
}

/* Help page Quick Links sidebar */
.help-quicklinks .nav-link {
    color: #212529 !important;
    font-size: 0.9rem;
}
.help-quicklinks .nav-link:hover {
    color: var(--accent) !important;
    padding-left: 12px !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-hover);
    border-radius: var(--radius);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 30px 30px;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233,69,96,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(249,199,79,0.12);
    color: #f9c74f;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(249,199,79,0.35);
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Box */
.hero-search {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
}

.hero-search .form-control,
.hero-search .form-select {
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.hero-search .btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.hero-search .btn-search:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Trust Bar */
.trust-bar {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

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

.trust-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
}

.trust-text h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #737373;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--primary);
    color: #fff;
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
    border-color: var(--accent);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.5rem;
}

.category-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.82rem;
    color: #737373;
    margin: 0;
}

/* Detective Cards */
.detective-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.detective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.detective-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.detective-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detective-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.detective-info .location {
    font-size: 0.82rem;
    color: #737373;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: var(--success);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.detective-card-body {
    padding: 20px;
}

.detective-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.detective-stats .stat {
    text-align: center;
}

.detective-stats .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.detective-stats .stat-label {
    font-size: 0.75rem;
    color: #737373;
    text-transform: uppercase;
}

.detective-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.spec-tag {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #555;
}

.detective-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detective-price {
    font-size: 0.82rem;
    color: #555;
}

.detective-price strong {
    color: var(--accent);
    font-size: 1.1rem;
}

/* How It Works */
.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box .number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-box .label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-cta {
    background: #fff;
    color: var(--accent);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--accent);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 15px;
}

.testimonial-card .text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-card .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}
.author-avatar.av-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.author-avatar.av-blue   { background: linear-gradient(135deg, #2980b9, #3498db); }
.author-avatar.av-green  { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.author-avatar.av-rose   { background: linear-gradient(135deg, #e91e8c, #c2185b); }
.author-avatar.av-teal   { background: linear-gradient(135deg, #1abc9c, #16a085); }
.author-avatar.av-orange { background: linear-gradient(135deg, #f39c12, #e67e22); }
.author-avatar.av-violet { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.testimonial-card .author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-card .author-location {
    font-size: 0.75rem;
    color: #737373;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #0d0d1a 0%, #09090f 100%);
    color: #b0b8c8;
    padding: 72px 0 0;
    position: relative;
    overflow: hidden;
}
/* Gradient top line replacing hard red border */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 25%, var(--gold) 60%, transparent 100%);
}
/* Ambient glow behind brand column */
.site-footer::after {
    content: '';
    position: absolute;
    top: -60px; left: -80px;
    width: 420px; height: 320px;
    background: radial-gradient(ellipse, rgba(230,57,70,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand i {
    color: var(--gold);
    margin-right: 8px;
}

.footer-desc {
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}
.footer-trust-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.2);
    color: #e9a0a5;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.footer-badge-gold {
    background: rgba(245,166,35,0.08);
    border-color: rgba(245,166,35,0.2);
    color: #f5cc7a;
}
.footer-badge i { font-size: 0.65rem; }

.footer-link-life {
    color: var(--accent) !important;
    font-weight: 700;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 12px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 22px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

/* Footer bottom bar */
.footer-bottom {
    margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.25);
    padding: 20px 0;
}
.footer-bottom .text-muted,
.site-footer .text-muted {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.82rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-bottom a:hover,
.site-footer a.text-muted:hover {
    color: var(--gold) !important;
}

/* Panic / Quick Exit Button */
.panic-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 99999;
    background: #dc3545;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panic-btn:hover {
    background: #b02a37;
    padding-right: 24px;
    color: #fff !important;
}

.panic-btn i {
    font-size: 1rem;
}

/* ================================================
   Auth Pages - Professional Split-Screen Layout
   ================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #fff;
    padding: 0;
}

/* ── Left Branding Panel ─────────────────────────── */
.auth-split-left {
    background: linear-gradient(160deg, var(--dark) 0%, var(--primary) 45%, var(--primary-deep) 100%);
    color: #fff;
    padding: 40px 44px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Register page — push content to top */
.auth-split-left--top {
    justify-content: flex-start;
    padding-top: 28px;
}

/* Animated gradient orbs */
.auth-split-left::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(233,69,96,0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: auth-orb-1 8s ease-in-out infinite alternate;
}

.auth-split-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,166,35,0.13) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: auth-orb-2 10s ease-in-out infinite alternate;
}

/* Floating dots grid overlay */
.auth-split-left .auth-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    animation: auth-dots-drift 20s linear infinite;
}

/* Orb keyframes */
@keyframes auth-orb-1 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-30px, 40px) scale(1.1); }
    100% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes auth-orb-2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-20px, 30px) scale(0.96); }
}

@keyframes auth-dots-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 28px 28px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-split-left::before,
    .auth-split-left::after,
    .auth-split-left .auth-dots {
        animation: none;
    }
}

.auth-left-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 52px;
}

.auth-brand img { height: 42px; }

.auth-brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.auth-brand-name .text-gold { color: var(--gold); }

.auth-left-headline {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -0.5px;
}

.auth-left-headline .text-gold { color: var(--gold); }

.auth-left-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Feature list ── */
.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.auth-features-list li:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(245,166,35,0.2);
}

.auth-feat-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(245,166,35,0.2) 0%, rgba(245,166,35,0.08) 100%);
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.auth-feat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-feat-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    line-height: 1.2;
}

.auth-feat-text span {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

/* ── Stats row ── */
.auth-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-top: 4px;
}

.auth-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.auth-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.auth-stat-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.5px;
}

.auth-stat-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ── Role tag pill ───────────────────────────────── */
.auth-left-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.3);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* ── Support card ────────────────────────────────── */
.auth-support-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 26px;
}

.auth-support-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-support-title i { color: var(--gold); font-size: 0.68rem; }

.auth-support-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
    line-height: 1.5;
}

.auth-support-contacts {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-support-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.auth-support-link:hover { opacity: 0.75; color: var(--gold); }
.auth-support-link i { font-size: 0.7rem; width: 14px; text-align: center; }

/* ── Access card (reset-password) ───────────────── */
.auth-access-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 26px;
}

.auth-access-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-access-title i { color: var(--gold); font-size: 0.68rem; }

.auth-access-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.auth-access-item {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-access-item i {
    color: var(--gold);
    font-size: 0.65rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Rating summary card ─────────────────────────── */
.auth-rating-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 26px;
}

.auth-rating-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.auth-rating-score {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.auth-rating-stars {
    color: var(--gold);
    font-size: 0.62rem;
    letter-spacing: 1px;
}

.auth-rating-count {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    font-weight: 500;
}

.auth-rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-rbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
}

.auth-rbar-row span:first-child { width: 16px; text-align: right; flex-shrink: 0; }
.auth-rbar-row span:last-child  { width: 24px; flex-shrink: 0; }

.auth-rbar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.auth-rbar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

/* ── Security strip ──────────────────────────────── */
.auth-security-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.auth-security-strip span {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-security-strip span i {
    color: var(--gold);
    font-size: 0.68rem;
}

/* ── Testimonial snippet ─────────────────────────── */
.auth-testimonial {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    position: relative;
}

.auth-quote-icon {
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}

.auth-testimonial p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    font-style: italic;
    line-height: 1.65;
    margin: 0 0 14px;
}

.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-testimonial-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #c8860a 100%);
    color: #1a1a2e;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.auth-testimonial-author > div strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.2;
}

.auth-testimonial-author > div span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.42);
    font-weight: 400;
}

/* ── Right Form Panel ────────────────────────────── */
.auth-split-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 36px 40px;
    background: #f7f8fc;
    min-height: 100vh;
    /* overflow-y: auto removed — it created a scroll-clip boundary that cut off
       the Google Sign-In button's bottom border/shadow; page-level scroll is fine */
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

/* Form panel logo */
.auth-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -12px;
    margin-bottom: 24px;
}
.auth-form-brand img {
    height: 36px;
    width: auto;
}
.auth-form-brand span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
}
.auth-form-brand span span {
    color: var(--gold);
}

.auth-form-header {
    margin-bottom: 20px;
}

.auth-form-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    letter-spacing: -0.4px;
}

.auth-form-header p {
    color: #737373;
    font-size: 0.9rem;
    margin: 0;
}

/* ── Form Fields ─────────────────────────────────── */
.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-icon-input {
    position: relative;
    width: 100%;
}

.auth-icon-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c0c0;
    font-size: 0.9rem;
    z-index: 5;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-icon-input input,
.auth-icon-input .form-control {
    padding: 11px 15px 11px 40px !important;
    border: 1.5px solid #e6e6e6 !important;
    border-radius: 10px !important;
    font-size: 0.9rem;
    color: #2d2d2d;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: 100%;
    outline: none;
    box-shadow: none !important;
}

.auth-icon-input input:focus,
.auth-icon-input .form-control:focus {
    border-color: var(--accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(233,69,96,0.09) !important;
}

.auth-icon-input:focus-within > i {
    color: var(--accent);
}

/* Password toggle button inside input-group */
.auth-icon-input .toggle-password {
    background: #f5f5f5;
    border: 1.5px solid #e6e6e6 !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #aaa;
    padding: 0 14px;
    transition: color 0.2s, background 0.2s;
}

.auth-icon-input .toggle-password:hover {
    color: var(--accent);
    background: #fef0f3;
}

/* Phone input */
.auth-phone-group {
    display: flex;
}

.auth-phone-prefix {
    background: #f2f2f2;
    border: 1.5px solid #e6e6e6;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 11px 13px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.auth-phone-group input {
    flex: 1;
    width: 0; /* flex child fills remaining space */
    min-width: 0;
    padding: 11px 15px !important;
    border: 1.5px solid #e6e6e6;
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    font-size: 0.9rem;
    color: #2d2d2d;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-phone-group input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(233,69,96,0.09);
}

/* Type toggle */
.auth-type-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
    gap: 4px;
}

.auth-type-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.auth-type-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(26,26,46,0.22);
}

.auth-type-btn:hover:not(.active) {
    background: #e4e4e4;
    color: #333;
    text-decoration: none;
}

/* Submit button */
.auth-btn-submit {
    display: flex;
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.auth-btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233,69,96,0.32);
}

.auth-btn-submit:active { transform: translateY(0); }

/* Error box */
.auth-error-box {
    background: #fff4f6;
    border: 1px solid #f8c0ca;
    border-left: 4px solid var(--accent);
    border-radius: 9px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-error-box > div {
    color: #c0334a;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-error-box > div i { margin-top: 2px; flex-shrink: 0; }

/* Forgot password link */
.auth-forgot-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot-link:hover { text-decoration: underline; }

/* Footer switch text */
.auth-switch-text {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #737373;
}

.auth-switch-text a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-text a:hover { text-decoration: underline; }

/* Google OAuth button — standard white style per Google brand guidelines */
.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3c4043;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    letter-spacing: 0.01em;
}
.btn-google-auth svg {
    flex-shrink: 0;
}
.btn-google-auth:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    color: #3c4043;
    text-decoration: none;
}

/* Divider between Google and email form */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #888;
    font-size: 0.82rem;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

/* Password strength */
.auth-strength-bar {
    height: 4px;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    transition: background 0.3s;
}

.auth-strength-bar.active {
    background: #eee;
}

.auth-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

/* ── Forgot Password success state ───────────────── */
.auth-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 8px;
}
.auth-success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 24px;
    box-shadow: 0 0 0 8px rgba(230,57,70,0.06);
}
.auth-success-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}
.auth-success-desc {
    color: #737373;
    font-size: 0.92rem;
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 20px;
}
.auth-success-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f8fc;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.5;
}
.auth-success-tip i {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.9rem;
}
.auth-success-state .auth-btn-submit {
    max-width: 260px;
    width: 100%;
    text-decoration: none;
}
.auth-success-icon--warn {
    background: rgba(230,57,70,0.08) !important;
    border-color: rgba(230,57,70,0.2) !important;
    box-shadow: 0 0 0 8px rgba(230,57,70,0.04) !important;
}

/* ── Terms checkbox ───────────────────────────────── */
.auth-terms {
    margin-bottom: 14px;
    margin-top: 4px;
}
.auth-terms--shared {
    margin-bottom: 12px;
    margin-top: 0;
}
@keyframes authTermsShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.auth-terms--shake {
    animation: authTermsShake 0.5s ease;
    color: var(--accent);
}
.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    user-select: none;
}
.auth-terms-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.auth-terms-label a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-terms-label a:hover { text-decoration: underline; }

/* Legacy compat (old auth-body used in other pages) */
.auth-body .form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.auth-body .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

/* Password strength bar */
.password-strength-bar {
    height: 5px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.btn-primary-custom {
    background: var(--accent);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    align-items: flex-start;
}

.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 60px; /* height of sticky navbar */
    height: calc(100vh - 60px);
    overflow-y: auto;
    align-self: flex-start;
}

.dashboard-main .nav-tabs .nav-link {
    color: #555 !important;
    font-weight: 500;
}
.dashboard-main .nav-tabs .nav-link:hover {
    color: var(--accent) !important;
}
.dashboard-main .nav-tabs .nav-link.active {
    color: #212529 !important;
    font-weight: 600;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 30px;
    background: var(--light-bg);
    min-height: calc(100vh - 60px);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--gold);
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
}

/* ── Profile / Avatar ──────────────────────────────────────────────────── */
.profile-avatar-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.profile-avatar-initials {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Sidebar avatar */
.sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    display: block;
    margin: 0 auto;
}

.sidebar-avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid var(--gold);
    margin: 0 auto;
    letter-spacing: 1px;
}

/* Dashboard Cards */
.dash-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.dash-stat-icon.blue { background: linear-gradient(135deg, #2980b9, #3498db); }
.dash-stat-icon.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.dash-stat-icon.orange { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.dash-stat-icon.red { background: linear-gradient(135deg, #e74c3c, #ec7063); }
.dash-stat-icon.purple { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.dash-stat-info h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary);
}

.dash-stat-info p {
    font-size: 0.82rem;
    color: #737373;
    margin: 0;
}

/* Tables */
.table-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-card .table {
    margin: 0;
}

.table-card .table th {
    background: var(--light-bg);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
    border: none;
    padding: 14px 20px;
}

.table-card .table td {
    padding: 14px 20px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-color: #f5f5f5;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-open { background: rgba(41,128,185,0.1); color: var(--info); }
.status-bidding { background: #fff3e0; color: #f57c00; }
.status-assigned { background: #e8f5e9; color: #388e3c; }
.status-in_progress { background: #f3e5f5; color: #7b1fa2; }
.status-completed { background: #e8f5e9; color: #27ae60; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-disputed { background: #fce4ec; color: #ad1457; }

/* Case Tracker */
.case-tracker {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    position: relative;
}

.case-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.tracker-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tracker-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
}

.tracker-dot.active {
    background: var(--success);
}

.tracker-dot.current {
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233,69,96,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(233,69,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(233,69,96,0); }
}

.tracker-label {
    font-size: 0.75rem;
    color: #737373;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE — DESKTOP BREAKPOINTS
   ================================================ */
@media (max-width: 991px) {
    /* Keep sidebar hidden — offcanvas handles navigation */
    .dashboard-sidebar { display: none; }
    .dashboard-main { margin-left: 0; }
    /* Note: hero-title, hero-stats handled by the comprehensive mobile block below */
}

@media (max-width: 767px) {
    /* BUG FIX: was display:block which stripped flex layout and broke top-bar wrapping */
    .top-bar { display: flex; flex-wrap: wrap; justify-content: center; }
    /* Note: hero-section, hero-title, hero-stats, section, section-title
       are all defined (with better values) in the comprehensive mobile block below */
}

/* ================================================
   MOBILE NAVIGATION — DASHBOARD
   ================================================ */

/* Mobile top bar shown inside dashboard pages (< lg) */
.dash-mobile-bar {
    display: none;
    background: var(--primary);
    padding: 10px 16px;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1025;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Offcanvas sidebar dark theme */
.dash-offcanvas {
    background: var(--primary);
    width: 260px;
}

.dash-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px;
}

.dash-offcanvas .offcanvas-body {
    padding: 0;
    overflow-y: auto;
}

/* NOTE: .dash-mobile-bar, .dashboard-main padding, and stat-card column rules
   were duplicated here. The comprehensive mobile block (section 30, ~line 7745)
   covers all of these with more complete selectors (also handles col-lg-3).
   Removed to prevent rule-order confusion — the later block is authoritative. */

/* ================================================
   MOBILE — SMALL PHONES (< 576px)
   ================================================ */
@media (max-width: 575px) {
    /* Dashboard padding */
    .dashboard-main { padding: 10px; }

    /* Stat cards: 2-per-row kept (good on phones too) */

    /* Dashboard heading row: stack on tiny screens */
    .dashboard-main > .d-flex.justify-content-between { flex-wrap: wrap; gap: 8px; }

    /* Case tracker: horizontal scroll */
    .case-tracker {
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
        gap: 6px;
        padding: 20px 0 12px;
        -webkit-overflow-scrolling: touch;
    }
    .case-tracker::before { display: none; }
    .tracker-step { flex-shrink: 0; min-width: 68px; }
    .tracker-label { font-size: 0.7rem; }

    /* Table cards: reduce padding */
    .table-card .table th,
    .table-card .table td { padding: 10px 12px; font-size: 0.82rem; }

    /* Status badges: smaller */
    .status-badge { padding: 3px 8px; font-size: 0.7rem; }

    /* Dash stat card */
    .dash-stat-card { padding: 16px; gap: 10px; }
    .dash-stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .dash-stat-info h4 { font-size: 1.3rem; }
}

/* ================================================
   MOBILE — FILTER SIDEBAR (Detectives / View-Leads)
   ================================================ */
.filter-mobile-toggle { display: none; }

@media (max-width: 991px) {
    .filter-mobile-toggle {
        display: flex;
        width: 100%;
        margin-bottom: 12px;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .filter-sidebar { padding: 18px; position: static !important; }
}

/* ================================================
   MOBILE — GENERAL PAGE IMPROVEMENTS
   ================================================ */
@media (max-width: 767px) {
    /* Page header */
    .page-header { padding: 28px 0; }
    .page-header h1 { font-size: 1.45rem; }

    /* Section spacing */
    .section { padding: 40px 0; }
    .section-title { font-size: 1.45rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 28px; }

    /* Hero */
    .hero-section { padding: 48px 0 32px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-search { padding: 16px; margin-top: 20px; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .hero-stat-number { font-size: 1.6rem; }
    .hero-stat-label { font-size: 0.7rem; }

    /* CTA section */
    .cta-section { padding: 50px 0; }
    .cta-section h2 { font-size: 1.7rem; }
    .cta-section p { font-size: 0.95rem; }

    /* Stats section */
    .stats-section { padding: 40px 0; }
    .stat-box .number { font-size: 2.2rem; }

    /* Panic button: compact */
    .panic-btn { padding: 8px 10px; font-size: 0.75rem; }

    /* Trust bar */
    .trust-bar { padding: 20px 0; }

    /* Footer */
    .site-footer { padding: 44px 0 0; }
    .footer-bottom { margin-top: 36px; }

    /* Detective card footer: stack */
    .detective-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Article / tutorial content */
    .tutorial-card { padding: 20px; }
    .article-content-wrapper { padding: 20px; }
    .article-title { font-size: 1.4rem; }
    .article-meta { gap: 10px; }

    /* About timeline: single column */
    .about-timeline-item { gap: 14px; }
    .about-timeline-dot { width: 44px; height: 44px; font-size: 0.95rem; }
    .about-timeline::before { left: 22px; }
}

@media (max-width: 480px) {
    /* Navbar brand */
    .brand-text { font-size: 1.1rem; }
    .brand-logo { height: 28px; }

    /* Hero CTA buttons: stack */
    .hero-content .d-flex { flex-direction: column; }
    .hero-content .d-flex .btn { width: 100%; text-align: center; }

    /* Hero title */
    .hero-title { font-size: 1.55rem; }

    /* Nav user pill: compact */
    .nav-user-pill { padding: 4px 10px 4px 4px; gap: 6px; }
    .nav-user-name { font-size: 0.82rem; }
    .nav-user-label { font-size: 0.7rem; }
    .nav-avatar-img,
    .nav-avatar-initials { width: 32px; height: 32px; font-size: 0.75rem; }

    /* Category cards: ensure 2-per-row text is readable */
    .category-card { padding: 20px 12px; }
    .category-icon { width: 54px; height: 54px; font-size: 1.2rem; }
    .category-card h5 { font-size: 0.9rem; }
    .category-card p { font-size: 0.75rem; }

    /* Footer links: allow wrapping */
    .site-footer .col-md-6.text-md-end {
        text-align: left !important;
        margin-top: 8px;
    }
    .site-footer .col-md-6.text-md-end a {
        display: block;
        margin-bottom: 5px;
        margin-right: 0 !important;
    }
}

/* ================================================
   MOBILE — SMALL PHONES TYPOGRAPHY & LAYOUT (< 576px)
   ================================================ */
@media (max-width: 576px) {
    /* Note: body overflow-x:hidden is set globally (not inside a media query) */

    /* Hero h1s defined in style.css */
    .dir-hero-title,
    .legal-hero h1,
    .lm-hero h1,
    .contact-hero-title,
    .det-hero-title,
    .vl-hero-title { font-size: 1.6rem; }

    /* Hero paddings */
    .legal-hero  { padding: 32px 0 28px; }
    .directory-header { padding: 40px 0 36px; }

    /* Trust pill bars: wrap & center */
    .dir-trust-bar,
    .vl-hero-trust,
    .pricing-hero-trust { flex-wrap: wrap; gap: 6px; justify-content: center; }
    .dir-trust-bar span,
    .vl-hero-trust span  { font-size: 0.68rem; padding: 4px 10px; }

    /* Hero stat rows */
    .hiw-hero-stats  { gap: 14px; }

    /* Section typography */
    .section-title    { font-size: 1.25rem; }
    .section-subtitle { font-size: 0.88rem; }

    /* CTA buttons: stack full-width */
    .cta-section .d-flex,
    .about-cta .d-flex { flex-direction: column; align-items: center; }
    .cta-section .d-flex .btn,
    .about-cta .d-flex .btn { width: 100%; max-width: 280px; }

    /* About compare cards: stack */
    .about-compare-card { padding: 20px; }
    .about-compare-list li { font-size: 0.82rem; }

    /* About service/trust/step cards: single col */
    .about-service-card,
    .about-trust-card,
    .about-step-card { padding: 18px 16px; }

    /* Pricing cards */
    .pc-card-top  { padding: 22px 18px 18px; }
    .pc-card-body { padding: 18px; }
    .pc-popular-badge { font-size: 0.65rem; }

    /* Detective profile stats: single col on tiny phones */
    .dp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dp-stat-val  { font-size: 1.3rem; }

    /* Footer bottom: stack */
    .footer-bottom .col-md-6:last-child { margin-top: 8px; }
    .footer-bottom a { display: inline-block; margin-bottom: 4px; }
}

/* ================================================
   ADMIN QUICK-ACTION CARDS
   ================================================ */
.admin-quick-card {
    transition: transform 0.15s, box-shadow 0.15s;
    color: inherit;
}
.admin-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
    color: var(--primary);
}

/* ================================================
   MOBILE — SUCCESS STORIES FILTER STRIP
   ================================================ */
@media (max-width: 991px) {
    .story-filters-wrap {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .story-filters-wrap::-webkit-scrollbar { display: none; }
    .story-filters-wrap .btn { flex-shrink: 0; white-space: nowrap; }
}

/* ================================================
   MOBILE — HELP PAGE QUICKLINKS
   ================================================ */
@media (max-width: 767px) {
    .help-quicklinks {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .help-quicklinks .nav-link {
        white-space: nowrap;
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
}

/* ================================================
   AI ADVISOR SECTION
   ================================================ */
.ai-advisor-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    border-top: 3px solid var(--accent);
}

.ai-advisor-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.ai-advisor-desc {
    color: #b0b0b8;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ai-advisor-feat-icon {
    width: 38px;
    height: 38px;
    background: rgba(230, 57, 70, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.ai-advisor-feat-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.ai-advisor-feat-desc {
    color: #9a9aaa;
    font-size: 13px;
}

.ai-advisor-form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-advisor-form-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 22px;
}

.ai-advisor-form-title i { color: var(--accent); }

.ai-advisor-label {
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.ai-advisor-label .required { color: var(--accent); }
.ai-advisor-label .optional { color: #888; font-weight: 400; }

.ai-advisor-select,
.ai-advisor-textarea {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.ai-advisor-select:focus,
.ai-advisor-textarea:focus {
    border-color: rgba(230,57,70,0.5) !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1) !important;
    outline: none;
}

.ai-advisor-textarea { resize: vertical; }

#homepageAdvisorForm select option { background: #1a1a2e; color: #fff; }

.ai-advisor-privacy {
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #d4a84b;
    margin-bottom: 12px;
}

.ai-advisor-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.ai-advisor-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,57,70,0.35);
}

.ai-advisor-trust-item { font-size: 12px; color: #888; }
.ai-advisor-trust-check { color: var(--gold); }

@media (max-width: 767px) {
    .ai-advisor-form-card { padding: 20px; }
    .ai-advisor-desc { font-size: 14px; }
    .ai-advisor-feat-title { font-size: 13px; }
}

@media (max-width: 480px) {
    .ai-advisor-form-card { padding: 16px; }
    .ai-advisor-btn { font-size: 14px; padding: 12px; }
}

/* ================================================
   SUCCESS STORIES
   ================================================ */
.story-icon-sm {
    width: 50px;
    height: 50px;
    background: rgba(233, 69, 96, 0.1);
}
.story-icon-sm i { color: var(--accent); }

.story-badge {
    background: rgba(233, 69, 96, 0.1) !important;
    color: var(--accent) !important;
}

.story-quote-border { border-color: var(--accent) !important; }

.story-det-avatar {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .story-icon-sm { width: 40px; height: 40px; }
    .story-det-avatar { width: 44px; height: 44px; font-size: 0.95rem; }
}


/* Pricing — featured (Gold) card */
.pricing-card-featured {
    border: 2px solid var(--accent) !important;
    transform: scale(1.05);
    z-index: 2;
}

@media (max-width: 991px) {
    .pricing-card-featured {
        transform: none;
    }
}

/* Learn & Resources cards */
.learn-card { padding: 35px; }

@media (max-width: 767px) {
    .learn-card { padding: 24px; }
}

/* Utility */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.bg-accent { background: var(--accent); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--dark);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    padding: 50px 0;
    color: #fff;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 5px;
}

.page-header .breadcrumb {
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--gold);
}

/* Legal Hero (Privacy / Terms / Refund) */
.legal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    padding: 68px 0 64px;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.legal-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.legal-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    word-spacing: 0.18em;
}
.legal-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 22px;
    line-height: 1.7;
}
.legal-hero .breadcrumb { justify-content: center; margin: 0; }
.legal-hero .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.legal-hero .breadcrumb-item.active { color: var(--gold); }
@media (max-width: 767px) {
    .legal-hero { padding: 44px 0 36px; }
    .legal-hero h1 { font-size: 2rem; }
}

/* Filters */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.filter-sidebar h6 {
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

/* Rating Stars */
.rating-stars {
    color: var(--gold);
}

.rating-stars .empty {
    color: #ddd;
}

/* ================================================
   Tutorial Page Styles
   ================================================ */
.tutorial-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.tutorial-case-study {
    background: var(--light-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 25px;
    margin: 20px 0;
}

.tutorial-case-study h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.tutorial-case-study p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* ================================================
   Article Card Styles
   ================================================ */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.article-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light-bg);
}

.article-card-sm .article-card-image {
    height: 120px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.article-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.article-card-body {
    padding: 18px;
}

.article-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.82rem;
    color: #737373;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #aaa;
}

/* ================================================
   Single Article Page Styles
   ================================================ */
.article-content-wrapper {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
}

.article-category-badge {
    display: inline-block;
    background: rgba(233,69,96,0.1);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
}

.article-category-badge:hover {
    background: var(--accent);
    color: #fff;
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.82rem;
    color: #737373;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 12px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tag {
    display: inline-block;
    background: var(--light-bg);
    color: #555;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-decoration: none;
    margin: 3px 3px;
    transition: var(--transition);
}

.article-tag:hover {
    background: var(--accent);
    color: #fff;
}

.article-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--primary);
    border-color: #eee;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}

@media (max-width: 767px) {
    .tutorial-card, .article-content-wrapper {
        padding: 20px;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .article-meta {
        gap: 10px;
    }
}

/* ================================================
   Directory Styles
   ================================================ */
.directory-header {
    padding: 116px 0 112px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.directory-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.directory-city-card {
    background: #f4f6f9;
    border-radius: 14px;
    padding: 20px 12px 16px;
    text-align: center;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.directory-city-card:hover {
    background: #4a90d9;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.35);
}

.directory-city-card:hover .city-landmark-svg {
    color: #ffffff;
}

.directory-city-card:hover h5 {
    color: #ffffff;
}

.directory-city-card:hover p {
    color: rgba(255,255,255,0.75);
}

.city-landmark-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 68px;
    margin: 0 auto 12px;
    color: #444;
    transition: color 0.22s ease;
}
.city-landmark-svg svg {
    width: 100%;
    height: 100%;
}

.directory-city-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #222;
    text-shadow: none;
    transition: color 0.22s ease;
}

.directory-city-card p {
    font-size: 0.75rem;
    color: #737373;
    margin: 0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.22s ease;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.directory-service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    height: 100%;
}

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

.directory-service-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.directory-service-card h6 {
    font-weight: 700;
    color: var(--primary);
}

.directory-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.directory-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.directory-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.directory-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.directory-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 12px;
}

.directory-content p {
    margin-bottom: 18px;
}

.directory-content ul, .directory-content ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.directory-content li {
    margin-bottom: 8px;
}

/* ================================================
   About Page Styles
   ================================================ */

.about-tag {
    display: inline-block;
    background: rgba(233,69,96,0.08);
    color: var(--accent);
    border: 1px solid rgba(233,69,96,0.2);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats boxes */
.about-stat-box {
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.about-stat-box:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--card-hover);
}

.about-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-lbl {
    font-size: 0.75rem;
    color: #737373;
    font-weight: 500;
}

/* Values list */
.about-value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.about-value-icon {
    width: 38px;
    height: 38px;
    background: rgba(233,69,96,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Timeline */
.about-timeline {
    position: relative;
    padding-left: 0;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    opacity: 0.2;
}

.about-timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.about-timeline-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(26,26,46,0.2);
    position: relative;
    z-index: 1;
}

.about-timeline-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    flex: 1;
    transition: var(--transition);
}

.about-timeline-card:hover {
    box-shadow: var(--card-hover);
    transform: translateX(4px);
}

.about-timeline-year {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-timeline-card h5 {
    font-weight: 700;
    margin: 4px 0 8px;
    color: var(--primary);
    font-size: 1rem;
}

.about-timeline-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

/* Service cards */
.about-service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.about-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
    border-color: var(--accent);
}

.about-service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto 14px;
}

.about-service-card h6 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.about-service-card p {
    font-size: 0.82rem;
    color: #737373;
    margin: 0;
    line-height: 1.55;
}

/* Compare cards */
.about-compare-card {
    border-radius: 14px;
    padding: 28px;
    height: 100%;
}

.about-compare-old {
    background: #fafafa;
    border: 1px solid #eee;
}

.about-compare-new {
    background: #fff;
    border: 2px solid rgba(233,69,96,0.2);
    box-shadow: 0 8px 30px rgba(233,69,96,0.08);
}

.about-compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-compare-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    color: #555;
}

.about-compare-list li:last-child { border-bottom: none; }

.about-compare-list li i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.about-compare-list li.bad i { background: #fee2e2; color: #ef4444; }
.about-compare-list li.good i { background: #dcfce7; color: #16a34a; }
.about-compare-list li.bad { color: #737373; }
.about-compare-list li.good { color: #333; font-weight: 500; }

/* Step cards */
.about-step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.about-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}

.about-step-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(233,69,96,0.07);
    line-height: 1;
    position: absolute;
    top: 14px;
    right: 18px;
    letter-spacing: -2px;
}

.about-step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 auto 16px;
}

.about-step-card h6 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.about-step-card p {
    font-size: 0.82rem;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* Trust cards */
.about-trust-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    height: 100%;
}

.about-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
    border-color: var(--accent);
}

.about-trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(233,69,96,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.about-trust-card h6 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.about-trust-card p {
    font-size: 0.82rem;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* ================================================
   Auth Pages – Responsive Adjustments
   ================================================ */

/* Mobile trust strip — shown only below lg */
.auth-mobile-trust {
    display: none;
    background: var(--primary);
    padding: 14px 18px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-mobile-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.88);
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 5px 12px;
    border-radius: 50px;
}
.auth-mobile-trust span i {
    color: var(--gold);
    font-size: 0.7rem;
}

@media (max-width: 991px) {
    .auth-split-left { display: none !important; }
    .auth-mobile-trust { display: flex; }

    .auth-split-right {
        padding: 24px 16px 32px;
        min-height: 100vh;
        align-items: flex-start;
        background: #f7f8fc;
    }

    .auth-form-wrap {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .auth-split-right { padding: 28px 18px 24px; }

    .auth-form-header h2 { font-size: 1.45rem; }

    .auth-type-btn { font-size: 0.82rem; padding: 7px 8px; }
}

/* ── Hero Premium Enhancements ──────────────────────────────────────────── */

.hero-badge {
    letter-spacing: 0.5px;
    font-size: 0.82rem;
}

/* Gold title span — subtle glow for depth */
.hero-title span {
    text-shadow: 0 0 40px rgba(245,166,35,0.12);
}

/* Hero primary CTA — gold gradient (premium feel) */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    color: #111827;
    border: none;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(245,166,35,0.2);
    transition: all 0.3s ease;
}
.btn-hero-primary:hover, .btn-hero-primary:focus {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    color: #111827;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245,166,35,0.28);
}

/* Hero stats — vertical separators + bigger numbers */
.hero-stat + .hero-stat {
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number { font-size: 2.3rem; }

@media (max-width: 767px) {
    .hero-stat + .hero-stat {
        padding-left: 0;
        border-left: none;
    }
}

/* Hero search — stronger glassmorphism + gold search button */
.hero-search {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    padding: 30px;
}
.hero-search h5 {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 14px;
    margin-bottom: 18px !important;
}
.hero-search .btn-search {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    color: #111827;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245,166,35,0.2);
}
.hero-search .btn-search:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
    color: #111827;
    box-shadow: 0 6px 18px rgba(245,166,35,0.28);
    transform: translateY(-2px);
}

/* Trust bar — item hover */
.trust-item {
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.25s;
}
.trust-item:hover { background: rgba(230,57,70,0.05); }

/* Testimonial cards — gold left accent */
.testimonial-card { border-left: 3px solid var(--gold); }

/* CTA section — subtle diagonal texture */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0px, transparent 20px,
        rgba(255,255,255,0.04) 20px, rgba(255,255,255,0.04) 40px
    );
    pointer-events: none;
}

/* Stats section — divider between boxes */
.stat-box {
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-box:last-child { border-right: none; }

/* ── Landing Page Visual Enhancements ───────────────────────────────────── */

/* Section title — centered gold underline */
.text-center .section-title {
    padding-bottom: 18px;
}
.text-center .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Trust bar — gold top border + icon glow */
.trust-bar {
    border-top: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.trust-icon {
    box-shadow: 0 4px 14px rgba(230,57,70,0.15);
}

/* How It Works — connecting line + enhanced step number */
.steps-row {
    position: relative;
}
.steps-row::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
    opacity: 0.18;
    z-index: 0;
}
@media (max-width: 767px) {
    .steps-row::before { display: none; }
}
.step-number {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
    box-shadow: 0 8px 22px rgba(230,57,70,0.28);
    position: relative;
    z-index: 1;
}
.step-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(230,57,70,0.2);
}

/* Feature item — Why Choose Us */
.feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    height: 100%;
}
.feature-item:hover {
    border-color: rgba(230,57,70,0.25);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
    transform: translateY(-4px);
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.feature-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}
.feature-content p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
    line-height: 1.65;
}

/* City chip links */
.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
    background: #fff;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.city-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(230,57,70,0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230,57,70,0.12);
}

/* ================================================================
   PREMIUM UI UPGRADES v1.0
   To revert everything: delete from this line to END PREMIUM below
   ================================================================ */

/* 1 — Page fade-in on every load */
body { animation: jwFadeIn 0.28s ease both; }
@keyframes jwFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 2 — Scroll reveal base classes (applied via JS) */
.jw-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.58s cubic-bezier(0.22,1,0.36,1),
                transform 0.58s cubic-bezier(0.22,1,0.36,1);
}
.jw-reveal.jw-visible { opacity: 1; transform: translateY(0); }
.jw-reveal-d1 { transition-delay: 0.07s; }
.jw-reveal-d2 { transition-delay: 0.14s; }
.jw-reveal-d3 { transition-delay: 0.21s; }
.jw-reveal-d4 { transition-delay: 0.28s; }

/* 3 — Enhanced btn-accent: gradient + shadow + press effect */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #c1121f 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(233,69,96,0.32) !important;
    letter-spacing: 0.01em;
}
.btn-accent:hover {
    box-shadow: 0 8px 24px rgba(233,69,96,0.46) !important;
    transform: translateY(-2px) scale(1.02) !important;
}
.btn-accent:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(233,69,96,0.22) !important;
    transition: transform 0.08s, box-shadow 0.08s;
}

/* 4 — Glass card utility (use class="glass-card" on dark backgrounds) */
.glass-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius);
}

/* 5 — Tighter letter-spacing on key headings */
.section-title { letter-spacing: -0.025em; }
.page-header h1 { letter-spacing: -0.03em; }
.cta-section h2 { letter-spacing: -0.025em; }

/* ================================================================
   END PREMIUM UI UPGRADES v1.0
   ================================================================ */
.city-chip i { font-size: 0.75rem; color: var(--accent); }

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 2rem;
    color: #bbb;
}
.empty-state h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: var(--text-sm);
    color: #737373;
    max-width: 380px;
    margin: 0 auto 22px;
    line-height: 1.65;
}
.empty-state-sm {
    text-align: center;
    padding: 32px 16px;
    color: #737373;
    font-size: var(--text-sm);
}
.empty-state-sm i {
    display: block;
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 10px;
}

/* ================================================
   WHY CHOOSE US CARDS
   ================================================ */
.why-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f5;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.10);
}
.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.why-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.why-card p {
    font-size: var(--text-sm);
    color: #737373;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 575px) {
    .why-card { padding: 22px 18px; gap: 16px; }
    .why-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

/* Skip navigation link — visible on keyboard focus */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-nav:focus { top: 0; color: #fff; }

/* Focus rings on custom interactive elements */
.btn-cta:focus-visible,
.btn-accent:focus-visible,
.btn-gold:focus-visible,
.btn-primary-custom:focus-visible,
.ai-advisor-btn:focus-visible,
.submit-btn:focus-visible,
.ai-btn-primary:focus-visible,
.hiw-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.2);
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    padding: 64px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.contact-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.contact-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.contact-hero-subtitle {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}
.contact-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.contact-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.contact-hero-stat i { color: var(--accent); }

/* Contact info items */
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.bg-accent-soft { background: rgba(230, 57, 70, 0.10); }
.bg-blue-soft   { background: rgba(41, 128, 185, 0.10); }
.bg-green-soft  { background: rgba(39, 174, 96, 0.10); }

.contact-info-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 2px;
}
.contact-info-value {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2px;
}
.contact-info-value:hover { color: var(--accent); }
.contact-info-sub {
    display: block;
    font-size: var(--text-xs);
    color: #9ca3af;
}

/* Response status badge */
.contact-response-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 4px;
}
.contact-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: contact-pulse 2s infinite;
}
@keyframes contact-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

/* Quick links */
.contact-quick-links { display: flex; flex-direction: column; gap: 8px; }
.contact-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8f9fa;
    color: var(--primary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}
.contact-quick-link:hover {
    background: rgba(230, 57, 70, 0.06);
    color: var(--accent);
}
.contact-quick-link > i:first-child { color: var(--accent); font-size: 0.85rem; width: 16px; text-align: center; }
.contact-quick-link > i.fa-chevron-right { color: #d1d5db; font-size: 0.65rem; }

/* Form card title with accent underline */
.contact-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 0;
}
.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

@media (max-width: 576px) {
    .contact-hero-title { font-size: 2rem; }
    .contact-hero { padding: 48px 0 36px; }
}

/* Disable float hover on contact page panels */
.contact-panels .card:hover {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
}

/* ============================================================
   Detectives Listing Page
   ============================================================ */

/* ── Hero ── */
.det-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.det-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.det-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 16px;
}
.det-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.det-hero-sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.72);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.det-hero-search { max-width: 580px; margin: 0 auto 24px; }
.det-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    gap: 12px;
}
.det-search-icon { color: #9ca3af; font-size: 0.95rem; flex-shrink: 0; }
.det-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-base);
    color: var(--primary);
    background: transparent;
    min-width: 0;
}
.det-search-input::placeholder { color: #adb5bd; }
.det-search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.det-search-btn:hover { background: var(--accent-hover); }
.det-hero-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.det-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: var(--text-xs);
    font-weight: 500;
}
.det-hero-trust span i { color: var(--gold); }

/* Category bar scroll hint */
.det-cat-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 0 2px;
    background: #fff;
}
.det-cat-hint-pointer {
    color: var(--accent);
    font-size: 0.88rem;
    animation: det-hint-blink 1.1s ease-in-out infinite;
    transform-origin: bottom left;
}
.det-cat-hint-text {
    font-size: var(--text-xs);
    color: #888;
    letter-spacing: 0.04em;
    font-weight: 500;
    text-transform: uppercase;
}
@keyframes det-hint-blink {
    0%, 100% { opacity: 1;   transform: scale(1)    rotate(0deg); }
    30%       { opacity: 0.3; transform: scale(0.9)  rotate(-6deg); }
    60%       { opacity: 1;   transform: scale(1.15) rotate(4deg); }
}

/* ── Category Pills Bar ── */
.det-cat-bar {
    background: #fff;
    border-bottom: 1px solid #edf0f5;
    padding: 10px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.det-cat-wrap {
    position: relative;
}
.det-cat-wrap::before,
.det-cat-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 64px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s;
}
.det-cat-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 20%, transparent);
}
.det-cat-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 20%, transparent);
}
.det-cat-wrap.det-cat-fade-left::before  { opacity: 1; }
.det-cat-wrap.det-cat-fade-right::after  { opacity: 1; }

.det-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.det-cat-scroll::-webkit-scrollbar { display: none; }
.det-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    color: #6b7280;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.18s;
    flex-shrink: 0;
}
.det-cat-pill:hover { background: rgba(230,57,70,0.07); color: var(--accent); }
.det-cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.det-cat-pill i { font-size: 0.78rem; }

/* ── Main Section ── */
.det-section { padding: 36px 0 64px; }

/* ── Filter Sidebar ── */
.det-filter-wrap { position: sticky; top: 120px; }
.det-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid #e2e6ea;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 8px;
}
.det-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.det-filter-caret { color: #9ca3af; font-size: 0.7rem; }
.det-filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    margin-bottom: 16px;
}
.det-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid #f3f4f6;
}
.det-filter-clear {
    font-size: var(--text-xs);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.det-filter-clear:hover { text-decoration: underline; color: var(--accent-hover); }
.det-filter-group { margin-bottom: 14px; }
.det-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 6px;
}
.det-filter-label i { color: var(--accent); font-size: 0.72rem; }

/* ── Sidebar Post Case CTA ── */
.det-sidebar-cta {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: #fff;
}
.det-sidebar-cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin: 0 auto 12px;
}
.det-sidebar-cta p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.82);
    margin-bottom: 14px;
    line-height: 1.6;
}
.det-sidebar-cta-btn {
    display: block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: 700;
    transition: background 0.2s;
}
.det-sidebar-cta-btn:hover { background: var(--accent-hover); color: #fff; }

/* ── Results Bar ── */
.det-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.det-results-count {
    font-size: var(--text-sm);
    color: #6b7280;
}
.det-results-count strong { color: var(--primary); font-size: var(--text-base); }
.det-sort-select {
    font-size: var(--text-sm) !important;
    border-radius: 10px !important;
    min-width: 150px;
    cursor: pointer;
}

/* ── Detective Cards ── */
.det-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #edf0f5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.det-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.1);
    border-color: rgba(230,57,70,0.25);
}
.det-card-featured {
    border-color: rgba(230,57,70,0.3);
    box-shadow: 0 4px 20px rgba(230,57,70,0.08);
}
.det-card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 16px 16px 0 0;
}
.det-card-ribbon {
    position: absolute;
    top: 14px; right: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: var(--text-2xs);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.04em;
}

/* Card top */
.det-card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 20px 16px;
}
.det-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
}
.det-avatar-check {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-size: 0.5rem;
    color: #fff;
}
.det-card-identity { flex: 1; min-width: 0; padding-top: 2px; }
.det-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.det-agency {
    font-size: var(--text-xs);
    color: #9ca3af;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.det-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.det-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: #737373;
}
.det-meta i { color: var(--accent); font-size: 0.68rem; }

/* Stats row */
.det-card-stats {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}
.det-stat { flex: 1; text-align: center; }
.det-stat-div { width: 1px; height: 28px; background: #e5e7eb; flex-shrink: 0; }
.det-stat-val {
    display: block;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.det-stat-lbl {
    display: block;
    font-size: var(--text-2xs);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Specs */
.det-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 20px;
    flex: 1;
}
.det-spec {
    display: inline-block;
    background: rgba(230,57,70,0.06);
    color: var(--accent);
    border: 1px solid rgba(230,57,70,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Card footer */
.det-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}
.det-price { line-height: 1.2; }
.det-price-from {
    display: block;
    font-size: var(--text-2xs);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.det-price-amt {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}
.det-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.det-view-btn:hover { background: var(--accent); color: #fff; transform: translateX(2px); }
.det-view-btn i { font-size: 0.68rem; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .det-cat-bar { top: 56px; }
    .det-filter-wrap { position: static; }
}
@media (max-width: 576px) {
    .det-hero-title { font-size: 2rem; }
    .det-hero { padding: 40px 0 32px; }
    .det-search-wrap { padding: 5px 5px 5px 14px; }
    .det-search-btn { padding: 8px 14px; font-size: var(--text-xs); }
    .det-hero-trust span { font-size: 0.68rem; padding: 4px 10px; }
    .det-results-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Global 3D Hover Lift — all cards site-wide
   Layered shadows simulate depth without any tilt/rotation
   ============================================================ */
.card,
.det-card,
.detective-card,
.category-card,
.step-card,
.hiw-step-card,
.testimonial-card,
.pricing-card,
.article-card,
.directory-city-card,
.directory-service-card,
.about-timeline-card,
.about-service-card,
.about-compare-card,
.about-step-card,
.about-trust-card,
.glass-card,
.why-card,
.trust-card,
.stat-box,
.hc-card,
.mh-card,
.city-card,
.learn-card,
.det-filter-card {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease !important;
}

.card:hover,
.det-card:hover,
.detective-card:hover,
.category-card:hover,
.step-card:hover,
.hiw-step-card:hover,
.testimonial-card:hover,
.pricing-card:hover,
.article-card:hover,
.directory-city-card:hover,
.directory-service-card:hover,
.about-timeline-card:hover,
.about-service-card:hover,
.about-compare-card:hover,
.about-step-card:hover,
.about-trust-card:hover,
.glass-card:hover,
.why-card:hover,
.trust-card:hover,
.stat-box:hover,
.hc-card:hover,
.mh-card:hover,
.city-card:hover,
.learn-card:hover,
.det-filter-card:hover {
    transform: translateY(-10px) !important;
    box-shadow:
        0 1px 2px  rgba(0, 0, 0, 0.06),
        0 4px 8px  rgba(0, 0, 0, 0.07),
        0 12px 24px rgba(0, 0, 0, 0.09),
        0 28px 48px rgba(0, 0, 0, 0.07) !important;
}

/* ============================================================
   Hero Visual — removed
   ============================================================ */

.hero-visual {
    position: relative;
    height: 380px;
    width: 100%;
}

.hv-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(230,57,70,0.2) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Base card — glassmorphism */
.hv-card {
    position: absolute;
    width: 260px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
}

/* Back card — upper, centered-left, tilted left */
.hv-card-back {
    top: 30px;
    left: 50%;
    z-index: 1;
    animation: hv-float-back 5s ease-in-out infinite;
}
@keyframes hv-float-back {
    /* translateX(-70%) = shift left by 70% of card width so it's left-of-center */
    0%, 100% { transform: translateX(-70%) rotate(-5deg) translateY(0); }
    50%       { transform: translateX(-70%) rotate(-5deg) translateY(-12px); }
}

/* Front card — lower, centered-right, tilted right, gold border */
.hv-card-front {
    bottom: 30px;
    left: 50%;
    z-index: 2;
    border-color: rgba(245,166,35,0.35);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,166,35,0.2), 0 2px 8px rgba(0,0,0,0.2);
    animation: hv-float-front 5s ease-in-out infinite 1s;
}
@keyframes hv-float-front {
    /* translateX(-30%) = shift left by 30% → right-of-center, overlapping back card */
    0%, 100% { transform: translateX(-30%) rotate(4deg) translateY(0); }
    50%       { transform: translateX(-30%) rotate(4deg) translateY(-12px); }
}

/* Avatar circle */
.hv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: #fff;
}
.hv-av-navy { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.hv-av-red  { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }

/* Card text */
.hv-info { flex: 1; min-width: 0; }
.hv-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hv-spec {
    font-size: 0.71rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hv-meta { display: flex; align-items: center; gap: 8px; }
.hv-stars { color: var(--gold); font-size: 0.68rem; letter-spacing: 1px; }
.hv-cases { font-size: 0.67rem; color: rgba(255,255,255,0.45); }

/* Shield badge */
.hv-shield { font-size: 1rem; color: rgba(255,255,255,0.22); flex-shrink: 0; }
.hv-shield-gold { color: var(--gold); }

/* Floating trust bubbles */
.hv-bubble {
    position: absolute;
    background: rgba(15,20,40,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.71rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hv-bubble i { color: var(--gold); font-size: 0.68rem; }

/* Bubble positions + individual float animations */
/* bbl-1: top-right corner */
.hv-bbl-1 {
    top: 16px;
    right: 16px;
    animation: hv-bbl-float 4.5s ease-in-out infinite 0s;
}

/* bbl-2: left side, vertically centered — bridges the two cards */
.hv-bbl-2 {
    top: 50%;
    left: 16px;
    animation: hv-bbl-float 5s ease-in-out infinite 1.2s;
}

/* bbl-3: bottom-right, below front card */
.hv-bbl-3 {
    bottom: 16px;
    right: 16px;
    animation: hv-bbl-float 4s ease-in-out infinite 2.4s;
}

@keyframes hv-bbl-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ============================================================
   DIRECTORY PAGE
   ============================================================ */

/* ── Page header ── */
.dir-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.dir-hero-sub {
    color: rgba(255,255,255,0.72);
    font-size: var(--text-md);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ── Trust chips bar ── */
.dir-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    justify-content: center;
}
.dir-trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 50px;
}
.dir-trust-bar span i {
    color: var(--gold);
}

/* ── Sidebar CTA block ── */
.dir-sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    padding: 24px 20px 20px;
    text-align: center;
    color: #fff;
}
.dir-sidebar-cta-icon {
    width: 52px;
    height: 52px;
    background: rgba(212,175,55,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--gold);
}
.dir-sidebar-cta h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.dir-sidebar-cta p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Sidebar buttons ── */
.dir-sidebar-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.dir-sidebar-btn-primary:hover { opacity: 0.88; color: var(--primary); }

.dir-sidebar-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.dir-sidebar-btn-outline:hover {
    background: var(--primary);
    color: var(--gold);
}
.dir-sidebar-cta .dir-sidebar-btn-outline {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}
.dir-sidebar-cta .dir-sidebar-btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

/* ── Sidebar info card ── */
.dir-sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dir-sidebar-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.dir-sidebar-card-desc {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 14px;
}

/* ── Sidebar link list ── */
.dir-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dir-sidebar-links li {
    border-bottom: 1px solid #f0f0f0;
}
.dir-sidebar-links li:last-child { border-bottom: none; }
.dir-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #444;
    text-decoration: none;
    transition: color 0.15s;
}
.dir-sidebar-links a:hover { color: var(--accent); }
.dir-sidebar-links a i {
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .directory-header { padding: 72px 0 68px; }
    .dir-hero-title { font-size: 2rem; }
    .dir-trust-bar  { gap: 7px; }
    .dir-trust-bar span { font-size: 0.68rem; padding: 4px 10px; }
}

/* ── City Operational Notice Bar ── */
.city-notice-bar {
    background: linear-gradient(90deg, #0f1923 0%, #1a2637 50%, #0f1923 100%);
    border-top: 1px solid rgba(245,166,35,0.18);
    border-bottom: 2px solid var(--gold);
    padding: 11px 0;
    position: relative;
    z-index: 10;
}
.city-notice-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.city-notice-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.85rem;
    animation: cityPulse 2.4s ease-in-out infinite;
}
@keyframes cityPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.35); }
    50%       { box-shadow: 0 0 0 7px rgba(245,166,35,0); }
}
.city-notice-text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.45;
}
.city-notice-text strong {
    color: var(--gold);
    font-weight: 700;
}
.city-notice-text a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.city-notice-text a:hover {
    color: #fff;
}
.city-notice-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    padding: 4px 6px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.city-notice-close:hover { color: rgba(255,255,255,0.8); }
@media (max-width: 575px) {
    .city-notice-text { font-size: 0.8rem; }
    .city-notice-icon { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ============================================================
   ARTICLES PAGE
   ============================================================ */
.articles-header {
    padding: 92px 0 88px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.articles-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Section */
.art-section { padding: 36px 0 64px; }
.art-section-single { padding: 48px 0 64px; }

/* Search in sidebar */
.art-search-wrap {
    display: flex;
    gap: 6px;
}
.art-search-wrap .form-control { font-size: 13px; }
.art-search-btn { padding: 6px 12px; flex-shrink: 0; }

/* Category list */
.art-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.art-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.18s;
    margin-bottom: 2px;
}
.art-cat-link:hover { background: rgba(15,52,96,0.06); color: var(--primary); }
.art-cat-link.active { background: rgba(230,57,70,0.07); color: var(--accent); font-weight: 600; }
.art-cat-count {
    background: #f0f2f8;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}
.art-cat-link.active .art-cat-count { background: rgba(230,57,70,0.12); color: var(--accent); }

/* Nav icon in articles sidebar */
.tut-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    flex-shrink: 0;
}
.tutorial-sidebar .nav-link.active .tut-nav-icon { color: var(--accent); }
.tutorial-sidebar .nav-link:hover .tut-nav-icon { color: var(--primary); }

/* Clear link in dark header */
.art-sidebar-clear {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
}
.art-sidebar-clear:hover { color: #fff; }

/* Article cards */
.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #edf0f5;
    transition: var(--transition);
    height: 100%;
}
.article-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}
.article-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}
.article-card-sm .article-card-image { height: 130px; }
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.04); }
.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
}
.article-card-sm .article-card-placeholder { font-size: 1.8rem; }
.article-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
}
.article-card-body { padding: 18px 18px 16px; }
.article-card-sm .article-card-body { padding: 12px 14px 12px; }
.article-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-excerpt {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.72rem;
    color: #999;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
}
.article-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   ARTICLE SINGLE PAGE
   ============================================================ */
.art-section-single { padding-top: 48px; }

/* Inline header inside article card */
.art-inner-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f5;
}
.art-inner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15,52,96,0.08);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.18s;
}
.art-inner-badge:hover { background: var(--accent); color: #fff; }
.art-inner-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.art-inner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: var(--text-sm);
    color: #888;
}
.art-inner-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.art-inner-meta i { color: #bbb; font-size: 0.78rem; }

/* Article content wrapper */
.article-content-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #edf0f5;
}
.article-featured-image {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.article-body {
    font-size: var(--text-base);
    line-height: 1.8;
    color: #3a3a4a;
}
.article-body h2 { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 32px 0 14px; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 24px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    background: rgba(230,57,70,0.04);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #555;
    font-style: italic;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}
.article-tag {
    background: rgba(15,52,96,0.07);
    color: var(--primary-deep);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.18s;
}
.article-tag:hover { background: var(--accent); color: #fff; }

/* Share row */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
    font-size: var(--text-sm);
}
.share-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    transition: all 0.2s ease;
}
.share-icon-btn.btn-outline-success:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-icon-btn.btn-outline-primary:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-icon-btn.btn-outline-dark:hover    { background: #000; border-color: #000; color: #fff; }

/* Recent articles in sidebar */
.art-recent-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 4px;
    text-decoration: none;
    transition: all 0.18s;
}
.art-recent-link:hover .art-recent-title { color: var(--accent); }
.art-recent-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-recent-date {
    font-size: 0.72rem;
    color: #aaa;
}

@media (max-width: 991px) {
    .article-content-wrapper { padding: 24px 20px; }
    .art-inner-title { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .articles-header { padding: 60px 0 56px; }
    .articles-header .dir-hero-title { font-size: 2rem; }
    .art-inner-title { font-size: 1.35rem; }
}

/* ============================================================
   TUTORIALS PAGE
   ============================================================ */
.tutorials-header {
    padding: 92px 0 88px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tutorials-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Tutorial section */
.tut-section { padding: 48px 0 64px; }

/* Sidebar */
.tutorial-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #edf0f5;
    overflow: hidden;
}
.tut-sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tut-sidebar-header i { color: var(--gold); }
.tutorial-sidebar .nav { padding: 10px 10px; }
.tutorial-sidebar .nav-link {
    color: #555 !important;
    font-size: 0.875rem;
    padding: 8px 12px !important;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.18s;
    margin-bottom: 2px;
}
.tutorial-sidebar .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(15,52,96,0.06);
}
.tutorial-sidebar .nav-link.active {
    color: var(--accent) !important;
    background: rgba(230,57,70,0.07);
    font-weight: 600;
}
.tut-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f0f2f8;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.18s;
}
.tutorial-sidebar .nav-link.active .tut-nav-num {
    background: var(--accent);
    color: #fff;
}

/* Sidebar CTA */
.tut-sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--primary-deep) 100%);
    padding: 20px;
    text-align: center;
    margin: 10px 10px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.tut-sidebar-cta-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    color: var(--gold);
}
.tut-sidebar-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.tut-sidebar-btn {
    display: block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.tut-sidebar-btn:hover { background: var(--accent-hover); color: #fff; }

/* Chapter cards */
.tutorial-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #edf0f5;
    border-top: 3px solid var(--primary-deep);
    margin-bottom: 0;
}
.tutorial-chapter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15,52,96,0.08);
    color: var(--primary-deep);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.tutorial-chapter-block {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #edf0f5;
}
.tutorial-chapter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .tutorials-header { padding: 60px 0 56px; }
    .tutorials-header .dir-hero-title { font-size: 2rem; }
    .tutorial-card { padding: 24px 20px; }
}

/* ============================================================
   HERO ILLUSTRATION
   ============================================================ */
.hero-illus {
    position: relative;
    height: 240px;
    align-items: center;
    justify-content: center;
}

/* Background rings */
.hi-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245,166,35,0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hi-ring-1 { width: 260px; height: 260px; }
.hi-ring-2 { width: 320px; height: 320px; border-color: rgba(245,166,35,0.06); }

/* SVG magnifying glass */
.hi-glass-svg {
    width: 200px;
    height: 230px;
    position: relative;
    z-index: 2;
    animation: hiGlassFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
@keyframes hiGlassFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Floating stat cards */
.hi-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 10px 14px;
    z-index: 3;
    white-space: nowrap;
}
.hi-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.hi-card-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hi-card-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.2;
}

/* Card positions + individual float animations */
.hi-card-1 {
    top: 10px;
    left: 0;
    animation: hiFloat1 4.5s ease-in-out infinite;
}
.hi-card-2 {
    top: 10px;
    right: 0;
    animation: hiFloat2 5s ease-in-out infinite 0.8s;
}
.hi-card-3 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: hiFloat3 4s ease-in-out infinite 1.6s;
}

@keyframes hiFloat1 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}
@keyframes hiFloat2 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
@keyframes hiFloat3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-7px); }
}

/* Decorative dots */
.hi-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.hi-dot-1 { width: 8px; height: 8px; background: #f5a623; opacity: 0.5; top: 20px; right: 80px; animation: hiFloat1 3.5s ease-in-out infinite; }
.hi-dot-2 { width: 5px; height: 5px; background: #e63946; opacity: 0.4; bottom: 40px; left: 60px; animation: hiFloat2 4.2s ease-in-out infinite 0.5s; }
.hi-dot-3 { width: 6px; height: 6px; background: #fff; opacity: 0.2; top: 50%; right: 30px; animation: hiFloat3 3.8s ease-in-out infinite 1s; }

/* ============================================================
   TESTIMONIALS — Modern Grid
   ============================================================ */

/* Rating summary bar */
.testi-summary {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.testi-summary-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}
.testi-summary-score {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.testi-summary-stars { color: #f5a623; font-size: 1rem; margin-bottom: 4px; }
.testi-summary-count { font-size: 0.76rem; color: #888; }
.testi-summary-divider { display: none; }
.testi-summary-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 24px;
    align-items: center;
}
.testi-summary-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
    background: #f4f6f9;
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    border-radius: 50px;
}
.testi-summary-chips span i { color: var(--success); font-size: 0.72rem; }

/* Testimonial cards */
.testi-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.testi-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.testi-card--featured {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(245,166,35,0.12);
}
.testi-card--featured::after {
    content: 'Top Review';
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testi-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent);
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.15);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.testi-tag--detective {
    color: var(--success);
    background: rgba(39,174,96,0.08);
    border-color: rgba(39,174,96,0.18);
}

.testi-stars { color: #f5a623; font-size: 0.85rem; margin-bottom: 12px; }

.testi-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: auto;
}
.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.testi-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}
.testi-role {
    font-weight: 500;
    font-size: 0.75rem;
    color: #888;
    margin-left: 4px;
}
.testi-location {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}
.testi-location i { font-size: 0.65rem; margin-right: 3px; color: var(--accent); }

/* ============================================================
   ANIMATIONS & POLISH v2.0
   ============================================================ */

/* 1 — Navbar shrink on scroll */
.main-nav {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.main-nav.nav-scrolled {
    padding: 6px 0 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.45) !important;
}
.main-nav.nav-scrolled .brand-logo { height: 28px; }
.main-nav.nav-scrolled .brand-text  { font-size: 1.2rem; }

/* 2 — Hero CTA pulse */
@keyframes jwPulse {
    0%   { box-shadow: 0 4px 14px rgba(245,166,35,0.25); }
    50%  { box-shadow: 0 4px 28px rgba(245,166,35,0.55), 0 0 0 6px rgba(245,166,35,0.12); }
    100% { box-shadow: 0 4px 14px rgba(245,166,35,0.25); }
}
.btn-hero-primary {
    animation: jwPulse 2.8s ease-in-out infinite;
}
.btn-hero-primary:hover {
    animation: none;
}

/* 3 — Category icon bounce on card hover */
.category-card:hover .category-icon {
    animation: jwIconBounce 0.45s ease;
}
@keyframes jwIconBounce {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-8px); }
    70%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* 4 — Step cards staggered entrance */
.step-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.step-card.jw-step-visible {
    opacity: 1;
    transform: translateY(0);
}
.step-card:nth-child(1) { transition-delay: 0s;     }
.step-card:nth-child(2) { transition-delay: 0.12s;  }
.step-card:nth-child(3) { transition-delay: 0.24s;  }
.step-card:nth-child(4) { transition-delay: 0.36s;  }

/* 5 — Trust bar items staggered fade-up */
.trust-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.trust-item.jw-trust-visible {
    opacity: 1;
    transform: translateY(0);
}
.trust-item:nth-child(1) { transition-delay: 0s;    }
.trust-item:nth-child(2) { transition-delay: 0.1s;  }
.trust-item:nth-child(3) { transition-delay: 0.2s;  }
.trust-item:nth-child(4) { transition-delay: 0.3s;  }

/* 6 — Section title underline draw */
.text-center .section-title::after {
    width: 0;
    transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.text-center .section-title.jw-title-visible::after {
    width: 50px;
}

/* 7 — Footer columns fade-up */
.site-footer .col-lg-3,
.site-footer .col-lg-4,
.site-footer .col-md-6 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.site-footer .col-lg-3.jw-footer-visible,
.site-footer .col-lg-4.jw-footer-visible,
.site-footer .col-md-6.jw-footer-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8 — Shimmer sweep on hero search button */
@keyframes jwShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.btn-search {
    background-size: 200% auto !important;
    background-image: linear-gradient(135deg, var(--gold) 0%, var(--gold) 40%, #ffe082 60%, var(--gold) 100%) !important;
    animation: jwShimmer 3s linear infinite;
}
.btn-search:hover { animation: none; }

/* ============================================================
   VIEW LEADS — Find Investigation Work
   ============================================================ */

/* Hero — identical background/size to .det-hero */
.vl-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-deep) 100%);
    padding: 92px 0 88px;
    position: relative;
    overflow: hidden;
}
.vl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.vl-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 16px;
}
.vl-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.vl-hero-sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.72);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.vl-hero-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.vl-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: var(--text-xs);
    font-weight: 500;
}
.vl-hero-trust span i { color: var(--gold); }

/* Section wrapper */
.vl-section {
    padding: 36px 0 64px;
}

/* Sidebar CTA */
.vl-sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--primary-deep) 100%);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15,52,96,0.3);
}
.vl-sidebar-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: var(--gold);
    border: 1px solid rgba(255,255,255,0.2);
}
.vl-sidebar-cta h6 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.vl-sidebar-cta p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
    line-height: 1.55;
}

/* Results bar */
.vl-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.vl-results-count {
    font-size: 14px;
    color: #555;
}
.vl-results-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* Empty state */
.vl-empty {
    background: #fff;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid #e8eaf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.vl-empty-icon {
    width: 70px;
    height: 70px;
    background: #f0f2f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: #aab0c0;
}
.vl-empty h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.vl-empty p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Lead cards */
.lead-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e8eaf0;
    border-left: 4px solid #d0d5e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.lead-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.12);
    border-left-color: var(--primary-deep);
}
.lead-card--urgent {
    border-left-color: var(--accent);
}
.lead-card--urgent:hover {
    border-left-color: var(--accent-hover);
    box-shadow: 0 8px 24px rgba(230,57,70,0.15);
}
.lead-card--high {
    border-left-color: var(--gold);
}
.lead-card--high:hover {
    border-left-color: #d4891a;
    box-shadow: 0 8px 24px rgba(245,166,35,0.15);
}

/* Card top row */
.lead-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.lead-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15,52,96,0.07);
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.lead-cat-tag i {
    font-size: 11px;
}

/* Urgency badges */
.lead-urgency {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.lead-urgency--urgent {
    background: rgba(230,57,70,0.1);
    color: var(--accent);
    border: 1px solid rgba(230,57,70,0.2);
}
.lead-urgency--high {
    background: rgba(245,166,35,0.12);
    color: #c07d10;
    border: 1px solid rgba(245,166,35,0.25);
}

/* Card content */
.lead-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lead-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #777;
    margin-bottom: 14px;
    padding: 10px 0;
    border-top: 1px solid #f0f2f6;
}
.lead-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lead-meta i {
    color: var(--primary-deep);
    font-size: 11px;
}

/* Card footer */
.lead-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.lead-bids {
    font-size: 12px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lead-bids i {
    color: var(--primary-deep);
}

/* Lead action buttons */
.lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.lead-btn--primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.lead-btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.lead-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid #d0d5e0;
}
.lead-btn--outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 576px) {
    .vl-hero { padding: 60px 0 56px; }
    .vl-hero-title { font-size: 2rem; }
    .vl-hero-trust span { font-size: 0.68rem; padding: 4px 10px; }
    .lead-meta { gap: 5px 10px; }
    .lead-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .lead-btn { width: 100%; justify-content: center; }
}

/* ================================================================
   SUCCESS STORIES PAGE
   ================================================================ */

/* ── Hero ── */
.ss-hero {
    padding: 72px 0 68px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ss-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Filter Section ── */
.ss-filter-section {
    background: #f8f9fb;
    border-bottom: 1px solid #e8ecf0;
    padding: 14px 0;
    position: sticky;
    top: 60px; /* navbar resting height (36px logo + 24px padding) */
    z-index: 100;
}
.ss-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.ss-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #d0d5e0;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ss-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26,26,46,0.04);
}
.ss-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Stories Section ── */
.ss-section { padding: 56px 0 64px; }

/* ── Story Card ── */
.ss-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    border-left: 4px solid #0f3460;
    box-shadow: 0 2px 12px rgba(26,26,46,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ss-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26,26,46,0.1);
}
.ss-card--matrimonial,
.ss-card--corporate,
.ss-card--missing,
.ss-card--cyber,
.ss-card--insurance,
.ss-card--property,
.ss-card--surveillance,
.ss-card--background,
.ss-card--other        { border-left-color: #0f3460; }

/* ── Card Head ── */
.ss-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
}
.ss-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(230,57,70,0.08);
    color: var(--accent);
}
.ss-card--matrimonial  .ss-card-icon { background: rgba(230,57,70,0.08);  color: #e63946; }
.ss-card--corporate    .ss-card-icon { background: rgba(15,52,96,0.08);    color: #0f3460; }
.ss-card--missing      .ss-card-icon { background: rgba(245,166,35,0.1);   color: #c47a0a; }
.ss-card--cyber        .ss-card-icon { background: rgba(108,52,131,0.08);  color: #6c3483; }
.ss-card--insurance    .ss-card-icon { background: rgba(26,188,156,0.1);   color: #1abc9c; }
.ss-card--property     .ss-card-icon { background: rgba(39,174,96,0.1);    color: #27ae60; }
.ss-card--surveillance .ss-card-icon { background: rgba(44,62,80,0.08);    color: #2c3e50; }
.ss-card--background   .ss-card-icon { background: rgba(52,152,219,0.1);   color: #3498db; }
.ss-card--other        .ss-card-icon { background: rgba(127,140,141,0.1);  color: #7f8c8d; }

.ss-card-title-wrap { flex: 1; min-width: 0; }
.ss-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
    color: var(--primary);
}
.ss-card-loc {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
}
.ss-card-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(26,26,46,0.06);
    color: #555;
    align-self: flex-start;
}

/* ── Card Body ── */
.ss-card-body {
    padding: 16px 20px 12px;
    flex: 1;
}
.ss-card-body p {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 8px;
}
.ss-card-body p:last-child { margin-bottom: 0; }
.ss-card-body strong { color: var(--primary); }

/* ── Card Quote ── */
.ss-card-quote {
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f2f5;
    margin-top: auto;
}
.ss-card-quote p {
    font-size: 13px;
    font-style: italic;
    color: #666;
    margin: 0 0 4px;
    line-height: 1.5;
}
.ss-card-quote cite {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: #999;
}

/* ── Detective Cards ── */
.ss-det-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(26,26,46,0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ss-det-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26,26,46,0.1);
}
.ss-det-card-head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    padding: 22px 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ss-det-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}
.ss-det-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin: 0 0 2px;
}
.ss-det-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.ss-det-body {
    padding: 18px 20px;
    flex: 1;
}
.ss-det-body p {
    font-size: 14px;
    font-style: italic;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
.ss-det-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f2f5;
}
.ss-det-stat {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ss-det-stat i { color: var(--accent); }

@media (max-width: 767px) {
    .ss-hero { padding: 60px 0 52px; }
    .ss-hero .dir-hero-title { font-size: 2rem; }
    .ss-filter-section { position: static; }
    .ss-filter-bar { gap: 6px; }
    .ss-filter-btn { font-size: 12px; padding: 6px 13px; }
    .ss-section { padding: 40px 0 48px; }
}

/* ============================================================
   DASHBOARD FORM SECTION HEADERS
   ============================================================ */
.dash-section-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #f1f3f7;
    margin-bottom: 22px;
}
.dash-section-hd-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}
.dash-section-hd span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.dash-section-hd small {
    font-size: var(--text-xs);
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}

/* ── Upload zone ── */
.dash-upload-zone {
    border: 2px dashed #e2e6ea;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
}
.dash-upload-zone:hover,
.dash-upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.03);
}
.dash-upload-zone i {
    font-size: 1.6rem;
    color: #ccc;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.dash-upload-zone:hover i { color: var(--accent); }
.dash-upload-zone p {
    font-size: var(--text-sm);
    color: #737373;
    margin: 0 0 6px;
}
.dash-upload-zone small { font-size: var(--text-2xs); color: #aaa; }
.dash-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ── Upload zone: file selected state ── */
.dash-upload-zone.has-file {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.04);
}
.dash-upload-zone.has-file i {
    color: var(--accent);
}
.dash-upload-zone .duz-filename {
    display: none;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 4px;
    word-break: break-all;
}
.dash-upload-zone.has-file .duz-filename { display: block; }
.dash-upload-zone.has-file p { display: none; }
.dash-upload-zone.has-file small { color: #888; }

/* ── Uploaded-file chip ── */
.dash-uploaded-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #166534;
    margin-top: 8px;
}
.dash-uploaded-chip i { font-size: 0.72rem; }

/* ============================================================
   POST-CASE FORM — SECTION DIVIDERS
   ============================================================ */
.pc-section-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 24px 0 16px;
}
.pc-section-hd::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eef0f4;
}
.pc-section-hd:first-child { margin-top: 0; }

/* Anonymous toggle — highlight box */
.pc-anon-box {
    background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(26,26,46,0.02));
    border: 1.5px solid rgba(26,26,46,0.1);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.pc-anon-box .form-check-input { flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.pc-anon-box label { cursor: pointer; }
.pc-anon-box-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(230,57,70,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Submit row at bottom of post-case */
.pc-submit-row {
    border-top: 1.5px solid #eef0f4;
    padding-top: 24px;
    margin-top: 4px;
}
.pc-trust-chips {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}
.pc-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #555;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #e9ecef;
}
.pc-trust-chip i { color: #27ae60; font-size: 0.68rem; }

/* ══════════════════════════════════════════════════════════════════════
   ── MOBILE RESPONSIVE FIXES ──
   Comprehensive mobile / tablet fixes for all pages.
   Breakpoints used:
     @media (max-width: 991px)  — tablets / collapsed navbar
     @media (max-width: 767px)  — large phones
     @media (max-width: 575px)  — small phones
   ══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────
   1. GLOBAL BASELINE
   ───────────────────────────────────────────────────────────────────── */
/* BUG FIX: overflow-x:hidden on BOTH html+body breaks position:fixed on Safari iOS.
   Only body gets overflow-x:hidden. html only gets max-width constraint. */
html {
    max-width: 100%;
}
body {
    overflow-x: hidden;
    max-width: 100%;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Prevent any fixed-width element from breaking layout */
* {
    min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   2. TOP BAR — compact on mobile (do NOT hide anything)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .top-bar { padding: 6px 0; font-size: 0.72rem; }
    .top-bar .container {
        flex-wrap: wrap;
        gap: 4px 0;
        justify-content: center;
    }
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .top-bar { padding: 5px 0; font-size: 0.68rem; }
    .top-bar-left span,
    .top-bar-right span,
    .top-bar-right a { font-size: 0.68rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   3. NAVIGATION
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Navbar brand — compact on tablet/mobile */
    .brand-text { font-size: 1.25rem; }
    .brand-logo  { height: 32px; }

    /* Mobile collapsed nav: add spacing between links */
    .main-nav .navbar-collapse .navbar-nav .nav-link {
        padding: 10px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Nav actions row in mobile collapse */
    .main-nav .nav-actions {
        padding: 12px 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Dropdown menus inside collapsed navbar */
    .main-nav .dropdown-menu {
        background: rgba(255,255,255,0.05);
        border: none;
        box-shadow: none;
        padding: 4px 0;
        border-radius: 0;
        margin-left: 16px;
    }
    .main-nav .dropdown-item {
        color: rgba(255,255,255,0.75) !important;
        border-radius: 6px;
        font-size: 0.88rem;
    }
    .main-nav .dropdown-item:hover {
        background: rgba(255,255,255,0.08) !important;
        color: var(--gold) !important;
    }
}

@media (max-width: 480px) {
    .brand-text  { font-size: 1.1rem; }
    .brand-logo  { height: 28px; }

    /* User pill — compact */
    .nav-user-pill         { padding: 4px 10px 4px 4px; gap: 6px; }
    .nav-user-name         { font-size: 0.82rem; }
    .nav-user-label        { font-size: 0.7rem; }
    .nav-avatar-img,
    .nav-avatar-initials   { width: 32px; height: 32px; font-size: 0.72rem; }
    .nav-user-pill-text    { display: none; }   /* hide name/label, keep avatar only */
}

/* ─────────────────────────────────────────────────────────────────────
   4. CITY NOTICE BAR
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .city-notice-inner    { gap: 8px; }
    .city-notice-icon     { display: none; }
    .city-notice-text     { font-size: 0.78rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   5. HERO SECTION (homepage)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 50px;
        min-height: auto;
    }
    .hero-title    { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats    { gap: 20px; }
}

@media (max-width: 767px) {
    .hero-section  { padding: 48px 0 36px; }
    .hero-title    { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; }
    .hero-stats    { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .hero-stat + .hero-stat {
        padding-left: 0;
        border-left: none;
    }
    .hero-stat-number { font-size: 1.7rem; }
    .hero-stat-label  { font-size: 0.72rem; }

    /* Search box inside hero */
    .hero-search  { padding: 16px; margin-top: 18px; }
    .hero-badge   { font-size: 0.75rem; padding: 6px 14px; }

    /* Hero CTA buttons: stack on small screens */
    .hero-content .d-flex.gap-3 {
        flex-direction: column;
    }
    .hero-content .d-flex.gap-3 .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-title        { font-size: 1.55rem; }
    .hero-subtitle     { font-size: 0.88rem; }
    .hero-stat-number  { font-size: 1.5rem; }

    /* Video placeholder — full width, no negative margin */
    .hvp-wrap { max-width: 100%; margin-top: 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   6. TRUST BAR
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .trust-bar     { padding: 16px 0; }
    .trust-item    { gap: 8px; }
    .trust-icon    { width: 40px; height: 40px; font-size: 1.1rem; }
    .trust-text h6 { font-size: 0.82rem; }
    .trust-text p  { font-size: 0.72rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   7. SECTION SPACING & TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .section           { padding: 44px 0; }
    .section-title     { font-size: 1.55rem; }
    .section-subtitle  { font-size: 0.92rem; margin-bottom: 28px; }
    .page-header       { padding: 36px 0; }
    .page-header h1    { font-size: 1.6rem; }
}

@media (max-width: 575px) {
    .section           { padding: 32px 0; }
    .section-title     { font-size: 1.3rem; }
    .section-subtitle  { font-size: 0.88rem; margin-bottom: 22px; }
    .page-header       { padding: 28px 0; }
    .page-header h1    { font-size: 1.4rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   8. CATEGORY CARDS GRID
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .category-card     { padding: 20px 12px; }
    .category-icon     { width: 54px; height: 54px; font-size: 1.2rem; }
    .category-card h5  { font-size: 0.88rem; }
    .category-card p   { font-size: 0.75rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   9. HOW IT WORKS — STEP CARDS
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .step-card      { padding: 20px 14px; }
    .step-number    { width: 56px; height: 56px; font-size: 1.3rem; }
    .step-card h5   { font-size: 0.95rem; }
    .step-card p    { font-size: 0.82rem; }
    /* Steps: 2-per-row is fine, keep col-6 behaviour */
}

/* ─────────────────────────────────────────────────────────────────────
   10. DETECTIVE CARDS
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .det-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .det-view-btn { width: 100%; justify-content: center; }
    .detective-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   11. TESTIMONIALS
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .testi-card       { padding: 18px; }
    .testi-text       { font-size: 0.85rem; }
    .testi-summary    { flex-direction: column; }
    .testi-summary-left { border-right: none; border-bottom: 1px solid #eee; }
}

/* ─────────────────────────────────────────────────────────────────────
   12. STATS SECTION
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .stats-section    { padding: 40px 0; }
    .stat-box .number { font-size: 2.2rem; }
    .stat-box         { border-right: none !important; }
}

@media (max-width: 575px) {
    .stat-box .number { font-size: 1.9rem; }
    .stat-box .label  { font-size: 0.78rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   13. CTA SECTION
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .cta-section    { padding: 48px 0; }
    .cta-section h2 { font-size: 1.65rem; }
    .cta-section p  { font-size: 0.95rem; }
    .btn-cta        { padding: 12px 28px; font-size: 0.95rem; }
}

@media (max-width: 575px) {
    .cta-section h2          { font-size: 1.4rem; }
    .cta-section .d-flex,
    .about-cta .d-flex       { flex-direction: column; align-items: center; }
    .cta-section .d-flex .btn,
    .about-cta .d-flex .btn  { width: 100%; max-width: 280px; }
}

/* ─────────────────────────────────────────────────────────────────────
   14. CITY CHIPS (homepage cities row)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .city-chip { padding: 8px 16px; font-size: 0.82rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   15. AI ADVISOR SECTION
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ai-advisor-form-card { padding: 20px; }
    .ai-advisor-desc      { font-size: 0.9rem; }
}

@media (max-width: 575px) {
    .ai-advisor-form-card { padding: 16px; }
    .ai-advisor-btn       { font-size: 0.9rem; padding: 12px; }
}

/* ─────────────────────────────────────────────────────────────────────
   16. DETECTIVE SEARCH SECTION (homepage)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .detective-search-section { padding: 28px 0 36px; }
    .hero-search .row.g-3 > .col-md-6 { margin-bottom: 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   17. DETECTIVE PROFILE PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .dp-hero { padding: 32px 0 28px; }
    .dp-hero-name { font-size: 1.4rem; }
    .dp-hero-cta  { text-align: left; }
    /* Stack avatar row vertically */
    .dp-hero .d-flex.gap-4 {
        flex-direction: column;
        gap: 16px !important;
    }
    .dp-meta-pills { gap: 10px; }
    .dp-hero-price strong { font-size: 1.3rem; }
}

@media (max-width: 575px) {
    .dp-avatar    { width: 70px; height: 70px; font-size: 1.8rem; }
    .dp-hero-name { font-size: 1.2rem; }
    /* Stats row: 2-col grid */
    .dp-stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .dp-stat-val  { font-size: 1.3rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   18. DETECTIVES LISTING PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Filter sidebar: collapsible, static */
    .det-filter-wrap       { position: static; }
    .det-filter-card       { margin-bottom: 12px; }
    /* Show mobile toggle button */
    .det-filter-toggle     { display: flex !important; }
}

@media (max-width: 767px) {
    .det-hero              { padding: 40px 0 32px; }
    .det-hero-title        { font-size: 1.8rem; }
    .det-hero-sub          { font-size: 0.9rem; }
    .det-hero-trust        { gap: 6px; }
    .det-hero-trust span   { font-size: 0.7rem; padding: 4px 10px; }
    .det-search-wrap       { padding: 5px 5px 5px 14px; }
    .det-search-btn        { padding: 8px 14px; font-size: 0.78rem; }
    .det-results-bar       { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575px) {
    .det-hero-title { font-size: 1.55rem; }
    .det-section    { padding: 20px 0 40px; }
    /* Det card footer: stack */
    .det-card-footer        { flex-direction: column; align-items: flex-start; gap: 8px; }
    .det-view-btn           { width: 100%; justify-content: center; }
    .det-card-stats         { padding: 10px 14px; }
    .det-stat-val           { font-size: 0.9rem; }
    .det-stat-lbl           { font-size: 0.62rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   19. REGISTER / LOGIN — AUTH PAGES
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Left branding panel is already hidden — ensure right panel fills screen */
    .auth-page             { flex-direction: column; }
    .auth-split-right      { padding: 24px 16px 32px; min-height: 100vh; }
    .auth-form-wrap        { max-width: 100%; padding: 24px 18px; border-radius: 12px; }
}

@media (max-width: 575px) {
    .auth-form-header h2   { font-size: 1.4rem; }
    .auth-type-btn         { font-size: 0.78rem; padding: 7px 8px; }
    .auth-type-toggle      { margin-bottom: 12px; }
    /* Social login button */
    .btn-google-auth span  { font-size: 0.82rem; }
    .auth-btn-submit       { padding: 10px; font-size: 0.9rem; }
    /* Mobile trust strip */
    .auth-mobile-trust span { font-size: 0.7rem; padding: 4px 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
   20. CONTACT PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .contact-hero          { padding: 48px 0 36px; }
    .contact-hero-title    { font-size: 2rem; }
    .contact-hero-subtitle { font-size: 0.9rem; }
    .contact-hero-stats    { gap: 8px; }
    .contact-hero-stat     { padding: 6px 12px; font-size: 0.78rem; }
}

@media (max-width: 575px) {
    .contact-hero-title    { font-size: 1.6rem; }
    .contact-hero          { padding: 36px 0 28px; }
    /* Panels: full-width single column (Bootstrap col-12 on xs handles it,
       but ensure padding is comfortable) */
    .contact-panels .card  { margin-bottom: 16px; }
    .contact-info-item     { gap: 12px; }
    .contact-icon-circle   { width: 38px; height: 38px; font-size: 0.9rem; }
    .contact-form-title    { font-size: 1.1rem; }
    .contact-quick-links   { gap: 6px; }
    .contact-quick-link    { padding: 8px 12px; font-size: 0.82rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   21. PRICING PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Pricing featured card: no scale on mobile (already in CSS but reinforce) */
    .pricing-card-featured { transform: none !important; }
}

@media (max-width: 767px) {
    .pc-card-top   { padding: 22px 18px 18px; }
    .pc-card-body  { padding: 18px; }
}

@media (max-width: 575px) {
    .pc-card-top        { padding: 18px 16px 14px; }
    .pc-card-body       { padding: 16px; }
    .pc-popular-badge   { font-size: 0.62rem; padding: 3px 10px; }
    .pc-trust-chips     { gap: 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
   22. POST CASE PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Budget range inputs: stack vertically */
    .pc-budget-row .col-md-6 { margin-bottom: 0; }
}

@media (max-width: 575px) {
    .pc-anon-box         { flex-direction: column; gap: 8px; padding: 12px 14px; }
    .pc-section-hd       { font-size: 0.7rem; }
    .pc-submit-row .btn  { width: 100%; }
    .pc-trust-chips      { gap: 8px; }
    .pc-trust-chip       { font-size: 0.7rem; padding: 4px 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
   23. ABOUT PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .about-timeline-item  { gap: 14px; }
    .about-timeline-dot   { width: 44px; height: 44px; font-size: 0.95rem; }
    .about-timeline::before { left: 22px; }
    .about-timeline-card  { padding: 16px 18px; }
    .about-compare-card   { padding: 20px; }
    .about-service-card,
    .about-trust-card,
    .about-step-card      { padding: 18px 16px; }
}

@media (max-width: 575px) {
    .about-compare-list li { font-size: 0.82rem; }
    .about-stat-num        { font-size: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   24. HOW IT WORKS PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .hiw-hero-stats  { gap: 14px; }
}

@media (max-width: 575px) {
    /* HIW hero stats: wrap */
    .hiw-hero-stats { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ─────────────────────────────────────────────────────────────────────
   25. DIRECTORY PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .directory-header    { padding: 64px 0 56px; }
    .dir-hero-title      { font-size: 2rem; }
    .dir-trust-bar       { gap: 7px; }
    .dir-trust-bar span  { font-size: 0.7rem; padding: 4px 10px; }
}

@media (max-width: 575px) {
    .directory-header    { padding: 44px 0 36px; }
    .dir-hero-title      { font-size: 1.6rem; }
    /* City cards: ensure 2-per-row on tiny screens */
    .directory-city-card { padding: 14px 8px 12px; }
    .city-landmark-svg   { width: 60px; height: 52px; }
    .directory-city-card h5 { font-size: 0.8rem; }
    .directory-city-card p  { font-size: 0.65rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   26. ARTICLES & TUTORIALS PAGES
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .article-content-wrapper { padding: 24px 20px; }
    .art-inner-title          { font-size: 1.5rem; }
    .tutorial-card            { padding: 24px 20px; }
}

@media (max-width: 767px) {
    .articles-header  { padding: 56px 0 48px; }
    .tutorials-header { padding: 56px 0 48px; }
    .art-inner-title  { font-size: 1.3rem; }
    .article-title    { font-size: 1.4rem; }
    .art-section      { padding: 28px 0 48px; }
    .tut-section      { padding: 28px 0 48px; }
    /* Sidebar below main on mobile — handled by Bootstrap col stacking */
}

@media (max-width: 575px) {
    .art-inner-title  { font-size: 1.2rem; }
    .article-body     { font-size: 0.92rem; }
    /* Search in articles sidebar */
    .art-search-wrap .form-control { font-size: 0.82rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   27. HELP PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .help-quicklinks {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .help-quicklinks .nav-link {
        white-space: nowrap;
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   28. SUCCESS STORIES PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ss-hero           { padding: 48px 0 40px; }
    .ss-section        { padding: 36px 0 44px; }
    .ss-card-head      { padding: 16px 16px 12px; gap: 10px; }
    .ss-card-body      { padding: 14px 16px 10px; }
    .ss-card-body p    { font-size: 0.85rem; }
    .ss-card-quote     { padding: 12px 16px 16px; }
}

@media (max-width: 575px) {
    .ss-filter-btn     { font-size: 0.72rem; padding: 5px 11px; }
    /* Story filters: horizontal scroll on tiny phones */
    .ss-filter-bar     {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .ss-filter-bar::-webkit-scrollbar { display: none; }
    .ss-filter-btn     { flex-shrink: 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   29. LIFE MATTERS PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .lm-hero { padding: 44px 0 36px; }
    .lm-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 575px) {
    .lm-hero h1 { font-size: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   30. DASHBOARD — GENERAL
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    /* Sidebar hidden — replaced by offcanvas (handled by existing .dashboard-sidebar { display:none }) */
    .dashboard-wrapper { display: block; }
    .dashboard-main    { padding: 16px; min-height: auto; }

    /* Stat cards: 2-per-row */
    .dashboard-main .row > [class*="col-md-3"],
    .dashboard-main .row > [class*="col-lg-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Ensure dash-mobile-bar shows */
    .dash-mobile-bar   { display: flex; }
}

@media (max-width: 575px) {
    .dashboard-main   { padding: 10px; }

    /* Stat cards: still 2-per-row (readable) */
    .dash-stat-card   { padding: 14px; gap: 10px; }
    .dash-stat-icon   { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
    .dash-stat-info h4 { font-size: 1.25rem; }
    .dash-stat-info p  { font-size: 0.75rem; }

    /* Dashboard heading rows: wrap */
    .dashboard-main > .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 8px;
    }
    .dashboard-main > .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   31. DASHBOARD — TABLES
   ───────────────────────────────────────────────────────────────────── */
/* Ensure all dashboard tables are scrollable on mobile */
.dashboard-main .table-card,
.dashboard-main .card {
    overflow: visible;
}

/* All tables inside dashboard get responsive wrapper behaviour */
.dashboard-main table,
.dashboard-main .table {
    min-width: 580px;  /* force scroll on narrow screens */
}

/* Wrap them in a scrollable div (CSS-only approach) */
.dashboard-main .table-responsive,
.dashboard-main .card-body > .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .table-card .table th { padding: 10px 14px; font-size: 0.78rem; }
    .table-card .table td { padding: 10px 14px; font-size: 0.85rem; }
    .status-badge         { padding: 4px 9px; font-size: 0.7rem; }
}

@media (max-width: 575px) {
    .table-card .table th,
    .table-card .table td { padding: 8px 10px; font-size: 0.78rem; }
    .status-badge         { padding: 3px 8px; font-size: 0.68rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   32. DASHBOARD — MESSAGES / CHAT
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Messages layout: conversation list above chat on mobile */
    .dashboard-main .col-md-4,
    .dashboard-main .col-md-8 {
        /* Bootstrap handles col stacking — just constrain heights */
    }

    /* Chat area: reduce fixed height for small screens */
    .dashboard-main .card-body[style*="height:400px"] {
        height: 300px !important;
    }

    /* Send form: already flex, ensure button is not too small */
    .dashboard-main .card-footer form.d-flex {
        gap: 6px;
    }
    .dashboard-main .card-footer form .btn {
        flex-shrink: 0;
        padding: 8px 14px;
    }
}

@media (max-width: 575px) {
    /* On tiny phones: chat area full width */
    .dashboard-main .card-body[style*="height:400px"] {
        height: 260px !important;
    }

    /* Chat bubbles: allow wrapping */
    .dashboard-main .card-body .d-inline-block {
        max-width: 88% !important;
        font-size: 0.85rem;
    }

    /* Input + button: input shrinks, button stays visible */
    .dashboard-main .card-footer form input[name="message"] {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   33. DASHBOARD — PROFILE PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .profile-avatar-wrap,
    .profile-avatar-img,
    .profile-avatar-initials {
        width: 88px;
        height: 88px;
    }
    .profile-avatar-initials { font-size: 1.8rem; }
}

@media (max-width: 575px) {
    /* Profile header row: stack avatar + info */
    .dashboard-main .d-flex.gap-4.align-items-start {
        flex-direction: column;
        gap: 16px !important;
    }
    .dash-section-hd { margin-bottom: 16px; }
    .dash-upload-zone { padding: 14px 12px; }
}

/* ─────────────────────────────────────────────────────────────────────
   34. DASHBOARD — CASE TRACKER
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .case-tracker {
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
        gap: 6px;
        padding: 20px 0 12px;
        -webkit-overflow-scrolling: touch;
    }
    .case-tracker::before { display: none; }
    .tracker-step         { flex-shrink: 0; min-width: 66px; }
    .tracker-label        { font-size: 0.68rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   35. DASHBOARD — PAYMENTS & EARNINGS
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Payment pending card: stack action button below info */
    .dashboard-main .card-body .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-main .card-body form.d-inline { width: 100%; }
    .dashboard-main .card-body form.d-inline .btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────
   36. FOOTER
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .site-footer    { padding: 44px 0 0; }
    .footer-desc    { max-width: 100%; }
    .footer-bottom  { margin-top: 36px; }
    .footer-heading { font-size: 0.7rem; }
    .footer-links a { font-size: 0.85rem; }
}

@media (max-width: 575px) {
    .site-footer    { padding: 36px 0 0; }
    .footer-brand   { font-size: 1.15rem; }
    .footer-desc    { font-size: 0.82rem; }
    .footer-trust-row { gap: 6px; }
    .footer-badge   { font-size: 0.65rem; padding: 3px 9px; }

    /* Footer bottom bar: stack */
    .footer-bottom .col-md-6:last-child {
        text-align: left !important;
        margin-top: 8px;
    }
    .footer-bottom a {
        display: inline-block;
        margin-bottom: 4px;
        font-size: 0.78rem;
    }
    .footer-bottom a.me-3 { margin-right: 10px !important; }
}

/* ─────────────────────────────────────────────────────────────────────
   37. PANIC BUTTON
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .panic-btn {
        padding: 8px 10px;
        font-size: 0.72rem;
    }
    .panic-btn span { display: none; }  /* hide text, keep icon */
}

@media (max-width: 575px) {
    .panic-btn { padding: 6px 8px; font-size: 0.68rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   38. VIEW LEADS PAGE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .vl-hero     { padding: 56px 0 52px; }
    .vl-hero-title { font-size: 1.8rem; }
    .vl-results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    .lead-footer { flex-wrap: wrap; }
    .lead-btn    { width: 100%; justify-content: center; }
}

@media (max-width: 575px) {
    .vl-hero-title      { font-size: 1.55rem; }
    .vl-hero            { padding: 48px 0 40px; }
    .vl-hero-trust span { font-size: 0.68rem; padding: 4px 10px; }
    .lead-card          { padding: 16px; }
    .lead-title         { font-size: 0.9rem; }
    .lead-desc          { font-size: 0.78rem; }
    .lead-meta          { font-size: 0.72rem; gap: 5px 8px; }
    .lead-card-top      { flex-wrap: wrap; gap: 6px; }
    .lead-btn           { padding: 6px 14px; font-size: 0.78rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   39. LEGAL PAGES (Privacy, Terms, Refund)
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .legal-hero    { padding: 44px 0 36px; }
    .legal-hero h1 { font-size: 2rem; }
}

@media (max-width: 575px) {
    .legal-hero    { padding: 32px 0 28px; }
    .legal-hero h1 { font-size: 1.6rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   40. MISCELLANEOUS OVERFLOWS & UTILITIES
   ───────────────────────────────────────────────────────────────────── */

/* Prevent Bootstrap row negative margins from causing horizontal scroll */
@media (max-width: 575px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .row       { margin-left: -8px; margin-right: -8px; }
    .row > *   { padding-left: 8px; padding-right: 8px; }
}

/* Why-choose cards: ensure they don't overflow on tiny screens */
@media (max-width: 575px) {
    .why-card    { padding: 18px 14px; gap: 12px; }
    .why-icon    { width: 42px; height: 42px; font-size: 1rem; border-radius: 10px; }
    .why-card h5 { font-size: 0.9rem; }
    .why-card p  { font-size: 0.8rem; }
}

/* Feature items */
@media (max-width: 575px) {
    .feature-item { padding: 16px; gap: 12px; }
    .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 11px; }
    .feature-content h5 { font-size: 0.9rem; }
    .feature-content p  { font-size: 0.8rem; }
}

/* Suppress card 3D-hover lift on touch devices (prevents sticky hover) */
@media (hover: none) {
    .card:hover,
    .det-card:hover,
    .detective-card:hover,
    .category-card:hover,
    .step-card:hover,
    .hiw-step-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover,
    .article-card:hover,
    .directory-city-card:hover,
    .why-card:hover,
    .testi-card:hover,
    .about-service-card:hover,
    .about-step-card:hover,
    .about-trust-card:hover {
        transform: none !important;
        box-shadow: var(--card-shadow) !important;
    }
}

/* Ensure modals and offcanvas don't break on mobile */
@media (max-width: 575px) {
    .offcanvas-start { width: min(85vw, 300px) !important; }
    .dash-offcanvas  { width: min(85vw, 280px) !important; }
    .modal-dialog    { margin: 8px; }
    .modal-content   { border-radius: 12px; }
}

/* Forms inside cards: ensure inputs don't overflow */
@media (max-width: 575px) {
    .form-control,
    .form-select    { font-size: 0.9rem !important; padding: 9px 12px !important; }
    .btn            { font-size: 0.88rem; }
    .btn-lg         { font-size: 0.95rem !important; padding: 10px 20px !important; }
}

/* Pagination: smaller on mobile */
@media (max-width: 575px) {
    .pagination .page-link { padding: 6px 10px; font-size: 0.82rem; margin: 0 2px; }
}

/* Empty states */
@media (max-width: 575px) {
    .empty-state       { padding: 44px 16px; }
    .empty-state-icon  { width: 64px; height: 64px; font-size: 1.6rem; }
    .empty-state h5    { font-size: 1rem; }
    .empty-state p     { font-size: 0.82rem; }
}

/* Spec tags / badges: ensure wrapping */
.detective-specializations,
.det-card-specs { flex-wrap: wrap; }

/* Breadcrumb: allow wrapping on small screens */
@media (max-width: 575px) {
    .breadcrumb       { flex-wrap: wrap; }
    .breadcrumb-item  { font-size: 0.78rem; }
}

/* ─────────────────────────────────────────────────────────────────────
   40b. NAV TABS — HORIZONTAL SCROLL ON MOBILE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    /* Dashboard nav tabs: scrollable strip */
    .dashboard-main .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0;
        gap: 0;
    }
    .dashboard-main .nav-tabs::-webkit-scrollbar { display: none; }
    .dashboard-main .nav-tabs .nav-item { flex-shrink: 0; }
    .dashboard-main .nav-tabs .nav-link {
        font-size: 0.82rem;
        padding: 8px 12px !important;
        white-space: nowrap;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   41. DASHBOARD — MY BIDS & AVAILABLE CASES
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Bid cards action buttons: stack */
    .dashboard-main .bid-actions .btn,
    .dashboard-main .d-flex.gap-2 .btn { min-width: 0; }
}

@media (max-width: 575px) {
    .dashboard-main .d-flex.align-items-center.justify-content-between {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   42. DASHBOARD SIDEBAR NAV SCROLLED STATE
   ───────────────────────────────────────────────────────────────────── */
/* Mobile: sticky navbar shrinks — adjust dash-mobile-bar accordingly */
@media (max-width: 991px) {
    .dash-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 1025;
    }
    /* When main navbar is also sticky, prevent overlap */
    .main-nav + .dash-mobile-bar,
    .main-nav ~ * .dash-mobile-bar {
        /* No change needed — Bootstrap handles stacking contexts */
    }
}

/* ─────────────────────────────────────────────────────────────────────
   END — MOBILE RESPONSIVE FIXES
   ───────────────────────────────────────────────────────────────────── */
