/**
 * Ana CSS
 * Profesyonel Hukuk Teması
 * Version: 1.0.0
 */

/* =============================================
   1. CSS DEĞİŞKENLERİ
   ============================================= */
:root {
    /* Ana Renkler - Koyu Mavi (Adalet/Güven) */
    --primary-900: #1e3a5f;
    --primary-800: #264b7a;
    --primary-700: #2e5c95;
    --primary-600: #366db0;
    --primary-500: #4080c4;
    --primary-400: #6699d0;
    --primary-300: #8cb3dc;
    --primary-200: #b3cce8;
    --primary-100: #d9e6f4;
    --primary-50: #ecf3fa;

    /* İkincil Renkler - Altın/Bronz (Prestij) */
    --secondary-600: #9a7209;
    --secondary-500: #b8860b;
    --secondary-400: #daa520;
    --secondary-300: #f0c14b;
    --secondary-200: #f5d78e;
    --secondary-100: #faf0d1;

    /* Nötr Renkler */
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #404060;
    --gray-600: #53537c;
    --gray-500: #6b6b8f;
    --gray-400: #8e8eab;
    --gray-300: #b1b1c7;
    --gray-200: #d4d4e3;
    --gray-100: #ebebf3;
    --gray-50: #f5f5f9;

    /* Durum Renkleri */
    --success-500: #28a745;
    --success-100: #d4edda;
    --warning-500: #ffc107;
    --warning-100: #fff3cd;
    --danger-500: #dc3545;
    --danger-100: #f8d7da;
    --info-500: #17a2b8;
    --info-100: #d1ecf1;

    /* Arka Plan */
    --bg-body: #f8f9fc;
    --bg-white: #ffffff;
    --bg-light: #f5f5f9;
    --bg-dark: #1e3a5f;

    /* Tipografi */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Font Boyutları */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* =============================================
   2. RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Links */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-800);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Forms */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =============================================
   3. LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

/* Grid - Flexbox Based for Better Responsiveness */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}
.grid > * {
    flex: 1 1 100%;
    min-width: 0;
}

/* Flex-based grid columns */
.grid-cols-1 > * { flex: 1 1 100%; }
.grid-cols-2 > * { flex: 1 1 calc(50% - var(--space-6)); min-width: 280px; }
.grid-cols-3 > * { flex: 1 1 calc(33.333% - var(--space-6)); min-width: 250px; }
.grid-cols-4 > * { flex: 1 1 calc(25% - var(--space-6)); min-width: 220px; }
.grid-cols-5 > * { flex: 1 1 calc(20% - var(--space-6)); min-width: 180px; }
.grid-cols-6 > * { flex: 1 1 calc(16.666% - var(--space-6)); min-width: 150px; }

/* Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* =============================================
   4. HEADER & NAVIGATION
   ============================================= */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-top {
    background: var(--primary-900);
    color: white;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.header-top a {
    color: var(--primary-200);
}

.header-top a:hover {
    color: white;
}

.header-main {
    padding: var(--space-4) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-900);
    letter-spacing: -0.3px;
}

.logo-accent {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-text-inline {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-900);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Navigation */
.nav {
    display: flex;
    gap: var(--space-1);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-700);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: var(--space-2);
    color: var(--gray-700);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   5. HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    color: white;
    padding: var(--space-6) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M50 0L100 50L50 100L0 50Z'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: var(--text-5xl);
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

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

.hero-text {
    font-size: var(--text-lg);
    color: var(--primary-200);
    margin-bottom: var(--space-8);
}

/* Search Box */
.search-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    box-shadow: var(--shadow-xl);
}

.search-form {
    display: flex;
    gap: var(--space-2);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-right: 1px solid var(--gray-200);
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-base);
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-select {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-base);
    color: var(--gray-800);
    background: transparent;
    cursor: pointer;
}

/* New Hero Section */
.hero-new {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title-full {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 40px;
    color: white;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    color: white;
    flex: 1 1 400px;
    min-width: 0;
}

.hero-image-wrapper {
    flex: 0 0 auto;
    width: 340px;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.2);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 340px;
    height: 340px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    margin-bottom: 20px;
    opacity: 0.9;
    color: #fbbf24;
}

.placeholder-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.placeholder-subtext {
    font-size: 16px;
    opacity: 0.7;
}

.hero-title-new {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
}

.text-gold {
    color: #fbbf24;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 32px;
}
.hero-feature {
    flex: 1 1 auto;
    min-width: 140px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: white;
}

.hero-feature svg {
    color: #4ade80;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #0284c7;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    color: #0284c7;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.hero-stats-row {
    display: flex;
    gap: 48px;
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Hero Right Panel */
.hero-right {
    position: relative;
}

.hero-panel {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.panel-subtitle {
    font-size: 13px;
    color: #64748b;
}

.panel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-stats > * {
    flex: 1 1 120px;
    min-width: 100px;
}

.panel-stat-card {
    padding: 16px;
    border-radius: 12px;
    color: white;
}

.panel-stat-card.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.panel-stat-card.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.panel-stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.panel-stat-card.green { background: linear-gradient(135deg, #22c55e, #16a34a); }

.panel-stat-card svg {
    margin-bottom: 8px;
    opacity: 0.9;
}

.panel-stat-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.panel-stat-text {
    font-size: 12px;
    opacity: 0.9;
}

.panel-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon.green { background: #22c55e; }
.activity-icon.blue { background: #3b82f6; }

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.activity-sub {
    font-size: 12px;
    color: #64748b;
}

.panel-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
}

.trust-icon {
    color: #f59e0b;
}

.trust-value {
    font-size: 20px;
    font-weight: 800;
    color: #92400e;
}

.trust-label {
    font-size: 12px;
    color: #a16207;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 30px;
    }

    .hero-left {
        flex: 1 1 100%;
    }

    .hero-title-full {
        font-size: 40px;
    }

    .hero-right {
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-image-wrapper,
    .hero-image-placeholder {
        width: 300px;
        height: 300px;
    }

    .hero-title-new {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .hero-new {
        padding: 40px 0 60px;
    }

    .hero-title-full {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .hero-title-new {
        font-size: 28px;
    }

    .hero-image-wrapper,
    .hero-image-placeholder {
        width: 240px;
        height: 240px;
    }

    .placeholder-text {
        font-size: 18px;
    }

    .placeholder-icon svg {
        width: 60px;
        height: 60px;
    }

    .hero-feature {
        flex: 1 1 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        justify-content: center;
    }

    .hero-stats-row {
        gap: 24px;
    }

    .hero-stat-value {
        font-size: 28px;
    }
}

/* =============================================
   6. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 500;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Primary Button */
.btn-primary {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.btn-primary:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: white;
}

/* Secondary Button */
.btn-secondary {
    background: var(--secondary-500);
    color: white;
    border-color: var(--secondary-500);
}

.btn-secondary:hover {
    background: var(--secondary-600);
    border-color: var(--secondary-600);
    color: white;
}

/* Light Button */
.btn-light {
    background: white;
    color: var(--gray-800);
    border-color: white;
    font-weight: 600;
}
.btn-light:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--gray-900);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-600);
}

.btn-outline-primary:hover {
    background: var(--primary-600);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-900);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

/* Success, Danger, etc. */
.btn-success {
    background: var(--success-500);
    color: white;
    border-color: var(--success-500);
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    color: white;
}

.btn-danger {
    background: var(--danger-500);
    color: white;
    border-color: var(--danger-500);
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

/* =============================================
   6.5 TABS
   ============================================= */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--space-6);
}

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-600);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    background: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =============================================
   7. CARDS
   ============================================= */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card-body {
    padding: var(--space-6);
}

.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* Lawyer Card */
.lawyer-card {
    display: flex;
    gap: var(--space-4);
}

.lawyer-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    flex-shrink: 0;
}

.lawyer-card-info {
    flex: 1;
}

.lawyer-card-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.lawyer-card-title {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.lawyer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.lawyer-card-meta svg {
    width: 16px;
    height: 16px;
}

.lawyer-card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--secondary-500);
}

.lawyer-card-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

/* Featured Badge */
.badge-featured {
    background: linear-gradient(135deg, var(--secondary-400), var(--secondary-500));
    color: white;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-verified {
    background: var(--success-500);
    color: white;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* =============================================
   8. TAGS & BADGES
   ============================================= */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--primary-100);
    color: var(--primary-700);
}

.tag-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.tag-secondary {
    background: var(--secondary-100);
    color: var(--secondary-600);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-600);
    color: white;
}

.badge-success {
    background: var(--success-500);
    color: white;
}

.badge-warning {
    background: var(--warning-500);
    color: var(--gray-900);
}

.badge-danger {
    background: var(--danger-500);
    color: white;
}

/* =============================================
   9. FORMS
   ============================================= */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-500);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--gray-800);
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.is-invalid {
    border-color: var(--danger-500);
}

.form-control.is-valid {
    border-color: var(--success-500);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b8f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.form-text {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.form-error {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--danger-500);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-600);
}

.form-check-label {
    font-size: var(--text-base);
    color: var(--gray-700);
}

/* =============================================
   10. SECTIONS
   ============================================= */
.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-4) 0;
}

/* Hero area form controls */
.bg-primary .form-control,
.bg-primary .form-select {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.3);
}
.bg-primary .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}
.bg-primary .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.bg-primary .form-control option {
    background: var(--primary-800);
    color: white;
}

.section-lg {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: var(--text-3xl);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
}

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

.section-dark {
    background: var(--primary-900);
    color: white;
}

/* =============================================
   11. SPECIALIZATION GRID
   ============================================= */
.spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.spec-grid > .spec-card {
    flex: 1 1 200px;
    min-width: 180px;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.spec-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.spec-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.spec-card-icon svg {
    width: 24px;
    height: 24px;
}

.spec-card-name {
    font-weight: 500;
    color: var(--gray-800);
}

.spec-card-count {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* =============================================
   12. CITY GRID
   ============================================= */
.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.city-grid > * {
    flex: 1 1 150px;
    min-width: 130px;
}

.city-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.city-link:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
    background: var(--primary-50);
}

.city-link span {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

/* =============================================
   13. RATING & STARS
   ============================================= */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: var(--gray-300);
    font-size: var(--text-lg);
}

.star.filled {
    color: var(--secondary-400);
}

.star.half {
    color: var(--secondary-400);
    position: relative;
}

.rating-value {
    font-weight: 600;
    color: var(--gray-800);
}

.rating-count {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* =============================================
   14. FOOTER
   ============================================= */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-10);
}
.footer-grid > *:first-child {
    flex: 2 1 280px;
    min-width: 250px;
}
.footer-grid > *:not(:first-child) {
    flex: 1 1 180px;
    min-width: 150px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: white;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: var(--space-12);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.footer-copyright {
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--gray-500);
}

.footer-legal a:hover {
    color: white;
}

/* Footer Newsletter */
.footer-newsletter {
    margin-top: 48px;
    padding: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

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

.footer-newsletter-text h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-newsletter-text p {
    color: #8e8eab;
    font-size: 14px;
    margin: 0;
}

.footer-newsletter-form {
    display: flex;
    gap: 12px;
}

.footer-newsletter-form input {
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    min-width: 280px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-newsletter {
        padding: 24px 20px;
        margin-top: 32px;
    }

    .footer-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter-text h4 {
        font-size: 16px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .footer-newsletter-form input {
        min-width: unset;
        width: 100%;
    }

    .footer-newsletter-form .btn {
        width: 100%;
    }
}

/* =============================================
   15. PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-link:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.page-link.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =============================================
   16. BREADCRUMB
   ============================================= */
.breadcrumb-section {
    padding: 4px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: var(--text-sm);
    padding: 0;
    margin: 0;
}

/* Direct children (a, span) support */
.breadcrumb > a,
.breadcrumb > span {
    color: var(--gray-500);
}

.breadcrumb > a:hover {
    color: var(--primary-600);
}

.breadcrumb > span:last-child {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb > a::after,
.breadcrumb > span:not(:last-child)::after {
    content: '/';
    color: var(--gray-400);
    margin: 0 8px;
    font-weight: 400;
}

/* Legacy .breadcrumb-item support */
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-500);
}

.breadcrumb-item a {
    color: var(--gray-500);
}

.breadcrumb-item a:hover {
    color: var(--primary-600);
}

.breadcrumb-item.active {
    color: var(--gray-800);
    font-weight: 500;
}

.breadcrumb-item::after {
    content: '/';
    color: var(--gray-400);
    margin-left: 8px;
    font-weight: 400;
}

.breadcrumb-item:last-child::after {
    display: none;
}

/* =============================================
   17. ALERTS
   ============================================= */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: var(--space-4);
}

.alert-success {
    background: var(--success-100);
    border-color: var(--success-500);
    color: #155724;
}

.alert-danger {
    background: var(--danger-100);
    border-color: var(--danger-500);
    color: #721c24;
}

.alert-warning {
    background: var(--warning-100);
    border-color: var(--warning-500);
    color: #856404;
}

.alert-info {
    background: var(--info-100);
    border-color: var(--info-500);
    color: #0c5460;
}

/* =============================================
   18. UTILITIES
   ============================================= */
/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--secondary-500); }
.text-success { color: var(--success-500); }
.text-danger { color: var(--danger-500); }
.text-white { color: white; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Background */
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }
.bg-primary { background: var(--primary-600); }
.bg-secondary { background: var(--secondary-500); }
.bg-dark { background: var(--gray-900); }

/* Spacing */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Border */
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* =============================================
   19. RESPONSIVE
   ============================================= */

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--primary-900);
    color: white;
}

.mobile-menu-header .logo-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu-close svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-menu-body {
    padding: 4px 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--gray-800);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-50);
    transition: all 0.2s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.mobile-menu-nav a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-menu-section {
    padding: 8px 14px 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

.mobile-menu-auth {
    padding: 10px 14px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-auth .btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
}

/* Body scroll lock when menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Large Tablets (1024px) */
@media (max-width: 1024px) {
    /* Flexbox layouts handle responsiveness automatically */
    .hero-grid {
        gap: 32px;
    }

    .hero-image-wrapper,
    .hero-image-placeholder {
        width: 280px;
        height: 280px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
        --text-3xl: 1.5rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .header-top {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: var(--space-8) 0;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-grid {
        flex-direction: column;
        gap: 24px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-right {
        order: -1;
    }

    .hero-image-placeholder {
        height: 200px !important;
    }

    .hero-title-full {
        font-size: 1.75rem !important;
        margin-bottom: 20px !important;
    }

    .hero-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px !important;
    }

    .hero-feature {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
    }

    .hero-stats-row {
        gap: 16px !important;
        padding-top: 20px !important;
    }

    .hero-stat-value {
        font-size: 1.5rem !important;
    }

    /* New Hero */
    .hero-new {
        padding: 32px 0 40px !important;
    }

    /* Search Form */
    .search-form {
        flex-direction: column;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .search-input-group:last-of-type {
        border-bottom: none;
    }

    /* Grids - Flexbox handles responsiveness automatically */
    .grid-cols-2 > *,
    .grid-cols-3 > *,
    .grid-cols-4 > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Spec Grid - smaller sizes for mobile */
    .spec-grid { gap: 12px; }
    .spec-grid > * { flex: 1 1 45%; min-width: 140px; }

    .spec-card { padding: 12px; }
    .spec-card-icon { width: 36px; height: 36px; }
    .spec-card-icon svg { width: 18px; height: 18px; }
    .spec-card-name { font-size: 13px; }
    .spec-card-count { font-size: 11px; }

    /* City Grid */
    .city-grid { gap: 8px; }
    .city-link { padding: 10px 12px; font-size: 13px; }

    /* Footer - stack on mobile */
    .footer-grid { gap: var(--space-6); }
    .footer-grid > * { flex: 1 1 100%; min-width: 0; }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    /* Section */
    .section {
        padding: var(--space-8) 0;
    }

    .section-title {
        font-size: var(--text-xl) !important;
    }

    .section-subtitle {
        font-size: var(--text-sm);
    }

    .section-header {
        margin-bottom: var(--space-6);
    }

    /* Cards */
    .card-body {
        padding: var(--space-4);
    }

    .card-body .flex.gap-4 {
        flex-direction: column;
    }

    /* Lawyer Card on List */
    .lawyer-card-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    /* Flex utilities for mobile */
    .flex.gap-8 {
        gap: var(--space-4);
    }

    .flex.gap-6 {
        gap: var(--space-3);
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Section Dark */
    .section-dark .flex {
        flex-direction: column;
        text-align: center;
    }

    .section-dark h2 {
        font-size: var(--text-xl) !important;
    }

    .section-dark p {
        font-size: var(--text-sm) !important;
    }

    /* Lawyer Profile Page */
    .lawyer-profile-hero {
        padding: 16px 0 !important;
    }

    .lawyer-profile-hero .flex.gap-6 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lawyer-profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .lawyer-profile-hero .flex.flex-col.gap-2 {
        min-width: unset !important;
        width: 100%;
    }

    .lawyer-profile-hero .btn {
        width: 100%;
        justify-content: center;
    }

    /* Lawyer List Page Sidebar */
    .section .flex.gap-8 {
        flex-direction: column;
    }

    .section aside {
        width: 100% !important;
        order: 2;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 4px 0;
    }

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Page Title */
    .page-title {
        font-size: var(--text-xl) !important;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 6px !important;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* Forms on Sidebar */
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Tags */
    .tag {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* Badge */
    .badge-featured,
    .badge-verified {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Hide on mobile utility */
    .hide-mobile {
        display: none !important;
    }

    /* Show on mobile utility */
    .show-mobile {
        display: block !important;
    }
}

/* Small Phones (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }

    .card-body {
        padding: 12px;
    }

    /* Grids - full width on small screens */
    .spec-grid > *,
    .city-grid > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Hero */
    .hero-title-full {
        font-size: 1.375rem !important;
    }

    .hero-new {
        padding: 24px 0 32px !important;
    }

    .hero-image-placeholder {
        height: 160px !important;
    }

    .hero-stats-row {
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

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

    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Lawyer card in list */
    .card .flex.gap-4 img {
        width: 70px !important;
        height: 70px !important;
    }

    /* Actions column */
    .flex.flex-col.gap-2[style*="min-width"] {
        min-width: unset !important;
        width: 100%;
    }

    /* Text sizes */
    .text-lg {
        font-size: 1rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important;
    }

    /* CTA Section */
    .section[style*="linear-gradient"] h2 {
        font-size: 1.25rem !important;
    }

    .section[style*="linear-gradient"] p {
        font-size: 0.875rem !important;
    }

    .section[style*="linear-gradient"] .flex {
        flex-direction: column;
        gap: 10px !important;
    }

    .section[style*="linear-gradient"] .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-links a {
        padding: 6px 0;
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: var(--space-4);
        font-size: 12px;
    }

    /* Question card */
    .card .flex.justify-between.items-start.gap-4 {
        flex-direction: column;
    }

    .card .flex.justify-between.items-start.gap-4 > div:last-child {
        align-self: flex-start;
    }

    /* Firm card */
    .card-body.flex.gap-4 img[style*="80px"] {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Extra Small Phones (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-title-full {
        font-size: 1.25rem !important;
    }

    .hero-feature {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    .spec-card {
        padding: 10px !important;
    }

    .spec-card-name {
        font-size: 12px !important;
    }

    .section-title {
        font-size: 1.125rem !important;
    }

    .mobile-menu {
        width: 100%;
        max-width: none;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-new {
        padding: 24px 0 !important;
    }

    .hero-grid {
        flex-direction: row !important;
    }

    .hero-left,
    .hero-right {
        width: 50%;
    }

    .hero-right {
        order: 0;
    }

    .hero-image-placeholder {
        height: 180px !important;
    }

    .mobile-menu {
        width: 60%;
    }
}

/* =============================================
   20. ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal);
}

.animate-slide-up {
    animation: slideUp var(--transition-normal);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   21. COMPREHENSIVE MOBILE RESPONSIVE
   Fixes for all inline styles and layouts
   ============================================= */

/* Tablet Breakpoint - 1024px */
@media (max-width: 1024px) {
    /* Main content + sidebar layout */
    .container > .flex[style*="gap"],
    .section .container > .flex,
    .flex[style*="align-items: flex-start"],
    .flex[style*="align-items:flex-start"] {
        flex-wrap: wrap;
    }

    /* Sidebar width adjustment */
    aside[style*="width:320px"],
    aside[style*="width: 320px"],
    aside[style*="width:280px"],
    aside[style*="width: 280px"] {
        width: 280px !important;
    }
}

/* Hero mobile variants - hidden by default */
.hero-location-short,
.hero-exp-short,
.hero-btn-short { display: none; }

/* Hero avatar - base (desktop) */
.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

/* Mobile Breakpoint - 768px */
@media (max-width: 768px) {
    /* ===== LAYOUT FIXES ===== */

    /* Force ONLY top-level section flex containers to column */
    .section > .container > .flex,
    .section .container > .flex[style*="align-items:flex-start"],
    .section .container > .flex[style*="align-items: flex-start"] {
        flex-direction: column !important;
    }

    /* Override sidebar widths */
    aside,
    aside[style],
    .sidebar,
    .sidebar[style] {
        width: 100% !important;
        flex: 1 1 100% !important;
        flex-shrink: 1 !important;
        order: 2 !important;
        max-width: 100% !important;
    }

    /* Main content area - only direct children of section flex */
    .section .container > .flex > div[style*="flex:1"],
    .section .container > .flex > div[style*="flex: 1"],
    .content {
        width: 100% !important;
        min-width: 0 !important;
        order: 1 !important;
    }

    /* ========= PROFILE HERO - REDESIGN ========= */
    /* Layout: Avatar+Name row, Bio, Meta, Buttons horizontal below */

    section[style*="linear-gradient"] > .container > .flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 10px !important;
    }

    /* Profile avatar - smaller, stays left */
    section[style*="linear-gradient"] > .container > .flex > div[style*="flex-shrink:0"] {
        margin: 0 !important;
    }

    /* Info section: flex column for child reordering */
    section[style*="linear-gradient"] > .container > .flex > div[style*="flex:1"] {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Name+Meta wrapper: transparent (children become flex items of info) */
    section[style*="linear-gradient"] .flex.items-center.gap-6.flex-wrap {
        display: contents !important;
    }

    /* Badges: order 1 */
    section[style*="linear-gradient"] .flex.items-center.gap-3.mb-2 {
        order: 1 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin-bottom: 2px !important;
    }

    /* Name: order 2 */
    section[style*="linear-gradient"] h1[style*="font-size:var(--text-3xl)"] {
        order: 2 !important;
        font-size: 1.15rem !important;
        margin-bottom: 4px !important;
    }

    /* Bio: order 3 */
    section[style*="linear-gradient"] > .container > .flex > div[style*="flex:1"] > p {
        order: 3 !important;
    }

    /* Meta: order 4 (below bio) */
    section[style*="linear-gradient"] .flex.flex-wrap.gap-4[style*="color:var(--primary-200)"] {
        order: 4 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        font-size: 12px !important;
        gap: 8px !important;
    }

    /* Rating: order 5 */
    section[style*="linear-gradient"] .flex.items-center.gap-3.mt-4 {
        order: 5 !important;
        flex-direction: row !important;
    }

    /* Action buttons: full width horizontal row below */
    section[style*="linear-gradient"] > .container > .flex > .flex.flex-col[style*="min-width"] {
        position: static !important;
        flex: 0 0 100% !important;
        flex-direction: row !important;
        gap: 6px !important;
        min-width: auto !important;
        order: 10 !important;
        margin-top: 4px !important;
    }

    section[style*="linear-gradient"] .flex.flex-col[style*="min-width"] .btn {
        flex: 1 !important;
        font-size: 11px !important;
        padding: 8px 4px !important;
        justify-content: center !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    section[style*="linear-gradient"] .flex.flex-col[style*="min-width"] .btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Individual stat boxes */
    div[style*="padding:16px 24px"][style*="background:rgba"] {
        padding: 12px 16px !important;
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }

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

    /* Profile page header avatar - kare */
    .hero-avatar {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        border-width: 3px;
    }
    div[style*="width:150px"][style*="height:150px"],
    div[style*="width: 150px"][style*="height: 150px"],
    img[style*="width:150px"]:not(.hero-avatar),
    img[style*="width: 150px"]:not(.hero-avatar) {
        width: 100px !important;
        height: 100px !important;
        border-radius: 10px !important;
    }

    /* Bar/Institution logo placeholder */
    div[style*="width:120px"][style*="height:120px"] {
        width: 80px !important;
        height: 80px !important;
    }

    div[style*="width:120px"] svg {
        width: 40px !important;
        height: 40px !important;
    }

    /* Header info section - left align */
    section[style*="linear-gradient"] div[style*="flex:1"],
    section[style*="linear-gradient"] div[style*="flex: 1"] {
        text-align: left !important;
    }

    /* Meta item icons stay inline */
    section[style*="linear-gradient"] .flex.flex-wrap.gap-4 .flex.items-center.gap-2,
    section[style*="linear-gradient"] .flex.flex-wrap.gap-4 a.flex.items-center.gap-2 {
        flex-direction: row !important;
    }

    /* Rating stars stay inline */
    section[style*="linear-gradient"] .flex.items-center.gap-3.mt-4 .flex.items-center.gap-1 {
        flex-direction: row !important;
    }

    /* Header title */
    h1[style*="font-size:var(--text-3xl)"] {
        font-size: 1.5rem !important;
    }

    /* ===== TABS ===== */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }

    /* ===== CARDS ===== */

    /* Card with flex content - only direct children */
    .card-body.flex {
        flex-direction: column !important;
    }

    /* Lawyer/Firm card main layout - only top-level flex.gap-4 */
    .card-body > .flex.gap-4 {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    /* Card images */
    .card img[style*="width:80px"],
    .card img[style*="width: 80px"],
    .card-body img[style*="width:80px"],
    .card-body img[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }

    /* ===== GRIDS ===== */

    /* Contact info grid */
    .contact-info-grid {
        flex-direction: column;
        gap: 16px !important;
    }

    /* Lawyer grid on bar page */
    .lawyer-grid-bar {
        flex-direction: column;
    }
    .lawyer-grid-bar > * {
        flex: 1 1 100%;
    }

    /* Specs grid - full width on small screens */
    .specs-grid > * {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    /* Quick actions full width */
    .quick-actions {
        flex-direction: column !important;
    }

    .quick-action-btn {
        width: 100% !important;
    }

    /* ===== TYPOGRAPHY ===== */

    h1, .page-title {
        font-size: 1.5rem !important;
    }

    h2, .card-title {
        font-size: 1.125rem !important;
    }

    /* Large text in headers */
    div[style*="font-size:32px"],
    div[style*="font-size: 32px"] {
        font-size: 24px !important;
    }

    /* ===== BUTTONS ===== */

    /* Full width buttons on mobile */
    .btn-outline-white,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* ===== REVIEW SECTION ===== */

    .review-card {
        padding: 16px !important;
    }

    .review-card .flex.gap-4 {
        flex-direction: column !important;
    }

    /* ===== FILTER SIDEBAR AS COLLAPSIBLE ===== */

    .card[class*="filter"],
    form.card {
        width: 100% !important;
    }

    /* ===== MAP SECTION ===== */

    div[style*="height:300px"][style*="background:var(--gray-100)"] {
        height: 200px !important;
    }

    /* ===== CTA CARDS ===== */

    .cta-card .card-body {
        padding: 24px 16px !important;
    }

    .cta-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .cta-icon svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Small Phone Breakpoint - 480px */
@media (max-width: 480px) {
    /* Even smaller adjustments */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Profile avatar - genel sayfalarda küçült (profil hero'da override edilir) */
    div[style*="width:150px"][style*="height:150px"],
    img[style*="width:150px"]:not(.hero-avatar) {
        width: 120px !important;
        height: 120px !important;
        border-radius: 8px !important;
    }

    /* Hero avatar - 480px: 2x büyük, kare */
    .hero-avatar {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        border-width: 3px;
    }

    /* Stat boxes compact */
    div[style*="padding:16px 24px"][style*="background:rgba"] {
        padding: 10px 12px !important;
        min-width: 100px !important;
    }

    div[style*="font-size:32px"] {
        font-size: 20px !important;
    }

    /* Smaller section padding */
    .section {
        padding: 24px 0 !important;
    }

    .section-sm {
        padding: 16px 0 !important;
    }

    /* Card padding */
    .card-body {
        padding: 12px !important;
    }

    .card-header {
        padding: 12px !important;
    }

    /* Tabs more compact */
    .tab-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Contact items */
    .contact-item {
        gap: 12px !important;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .contact-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Other bar items */
    .other-bar-item {
        padding: 12px !important;
    }

    .other-bar-icon {
        width: 36px !important;
        height: 36px !important;
    }

    /* Lawyer cards on bar page */
    .lawyer-card-bar {
        padding: 12px !important;
        gap: 12px !important;
    }

    .lawyer-card-avatar img {
        width: 50px !important;
        height: 50px !important;
    }

    .lawyer-card-info h3 {
        font-size: 14px !important;
    }

    /* Badge on header */
    span[style*="padding:4px 12px"][style*="border-radius:20px"] {
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
}

/* Extra Small Phones - 360px */
@media (max-width: 360px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    h1, .page-title {
        font-size: 1.25rem !important;
    }

    /* Stats on header */
    .flex.gap-6[style*="flex-shrink"] {
        gap: 8px !important;
    }

    div[style*="padding:16px 24px"][style*="background:rgba"] {
        padding: 8px 10px !important;
        min-width: 80px !important;
    }

    div[style*="font-size:32px"] {
        font-size: 18px !important;
    }

    div[style*="font-size:13px"][style*="opacity:0.8"] {
        font-size: 11px !important;
    }
}

/* =============================================
   22. PRINT
   ============================================= */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================
   23. LAWYER MINI CARD GRID (Ana Sayfa)
   ============================================= */
.lawyer-grid-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.lawyer-grid-5 > * {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: calc(20% - 16px);
}

.lawyer-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.lawyer-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.lawyer-mini-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid var(--primary-100);
}

.lawyer-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-mini-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: var(--text-sm);
    margin-bottom: 6px;
    line-height: 1.3;
}

.lawyer-mini-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gray-500);
    font-size: var(--text-xs);
    margin-bottom: 8px;
}

.lawyer-mini-location svg {
    flex-shrink: 0;
}

.lawyer-mini-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary-500);
}

.lawyer-mini-rating svg {
    color: var(--secondary-400);
}

.lawyer-mini-rating span {
    color: var(--gray-400);
    font-weight: 400;
    font-size: var(--text-xs);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .lawyer-grid-5 {
        gap: 16px;
    }
    .lawyer-grid-5 > * {
        flex: 1 1 calc(25% - 12px);
        min-width: 140px;
    }
}

/* Responsive: Mobile Large */
@media (max-width: 768px) {
    .lawyer-grid-5 {
        gap: 12px;
    }
    .lawyer-grid-5 > * {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 120px;
    }

    .lawyer-mini-card {
        padding: 16px 12px;
    }

    .lawyer-mini-avatar {
        width: 60px;
        height: 60px;
    }

    .lawyer-mini-name {
        font-size: var(--text-xs);
    }
}

/* Responsive: Mobile Small */
@media (max-width: 480px) {
    .lawyer-grid-5 {
        gap: 10px;
    }
    .lawyer-grid-5 > * {
        flex: 1 1 calc(50% - 5px);
        min-width: 100px;
    }

    .lawyer-mini-avatar {
        width: 50px;
        height: 50px;
    }
}

/* =============================================
   24. FIRM LOGO WRAPPER
   ============================================= */
.firm-logo-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
}

.firm-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spec Grid - Flexbox ile responsive */
.spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.spec-grid > * {
    flex: 1 1 160px;
    min-width: 140px;
}

/* =============================================
   WHATSAPP FLOATING DESTEK BUTONU
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: #fff;
    text-decoration: none;
}

.whatsapp-float svg {
    flex-shrink: 0;
}

.whatsapp-float-text {
    white-space: nowrap;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* =============================================
   25. MOBILE-FIRST ENHANCEMENTS
   Compact, tiny, minimal design for phones
   ============================================= */

/* --- 768px: Tablet & below --- */
@media (max-width: 768px) {
    /* Modal dialogs must fit screen */
    .modal-dialog,
    .modal-dialog[style*="max-width"] {
        max-width: calc(100vw - 24px) !important;
        width: calc(100vw - 24px) !important;
        margin: 12px auto !important;
    }

    /* Lawyer card images smaller on mobile */
    .lawyer-card img[style*="width:100px"],
    .card img[style*="width:100px"] {
        width: 70px !important;
        height: 70px !important;
        border-radius: 10px !important;
    }

    /* Badges row - wrap & smaller */
    .flex.items-center.gap-2.mb-1 {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    /* Subscription badges compact */
    .subscription-badge,
    .subscription-badge-lg {
        padding: 2px 6px !important;
        font-size: 0.6rem !important;
        gap: 3px !important;
    }

    .answer-badge {
        padding: 1px 5px !important;
        font-size: 0.55rem !important;
    }

    /* Lawyer meta - hide on mobile */
    .lawyer-meta {
        display: none !important;
    }

    /* Lawyer card specialization tags */
    .lawyer-card-specs {
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
    }

    .lawyer-card-specs .tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* Lawyer badges wrapper - horizontal scroll */
    .lawyer-badges-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-bottom: 4px;
    }

    .lawyer-badge {
        flex-shrink: 0 !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Profile stats grid */
    .profile-stats-grid {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .profile-stat-item {
        padding: 10px !important;
        gap: 10px !important;
    }

    .profile-stat-icon {
        width: 36px !important;
        height: 36px !important;
    }

    /* Contact icon smaller */
    .contact-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .contact-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .contact-item {
        gap: 10px !important;
    }

    /* Rating stars smaller on profile */
    section[style*="linear-gradient"] svg[width="20"] {
        width: 16px !important;
        height: 16px !important;
    }

    /* Bio text compact */
    p[style*="font-size:var(--text-base)"][style*="color:var(--primary-100)"] {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    /* Gallery grid compact */
    .lawyer-gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px !important;
    }
    .lawyer-gallery-grid > * {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 80px;
    }

    /* Booking modal steps compact */
    .booking-steps {
        gap: 4px !important;
        padding: 8px !important;
    }

    .booking-step .step-label {
        display: none !important;
    }

    .booking-step .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    /* Appointment type grid */
    .appointment-type-grid {
        flex-direction: column;
        gap: 8px !important;
    }
    .appointment-type-grid > * {
        flex: 1 1 100%;
    }

    .type-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    /* Review stars bigger touch area */
    .star-input svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* Firm logo */
    .firm-logo-wrapper {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    /* Specialization page hero */
    .spec-hero {
        padding: 32px 0 !important;
    }

    .spec-title {
        font-size: 1.5rem !important;
    }

    .spec-stats {
        gap: 16px !important;
    }

    .spec-stats .stat-value {
        font-size: 1.25rem !important;
    }

    /* City filter */
    .city-filter-item {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

/* --- 480px: Small phones --- */
@media (max-width: 480px) {
    /* Lawyer card images even smaller */
    .lawyer-card img[style*="width:100px"],
    .card img[style*="width:100px"] {
        width: 56px !important;
        height: 56px !important;
        border-radius: 8px !important;
    }

    /* Card title smaller */
    .lawyer-card-link .card-title,
    .card-title[style*="font-size:var(--text-xl)"] {
        font-size: 0.95rem !important;
    }

    /* Subscription badges even more compact */
    .subscription-badge,
    .subscription-badge-lg {
        padding: 1px 5px !important;
        font-size: 0.55rem !important;
    }

    .answer-badge {
        display: none !important;
    }

    .badge-featured {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }

    /* Site header compact at 480px */
    .header-main {
        padding: 6px 0 !important;
    }
    .header-inner {
        gap: 8px !important;
    }
    .logo {
        gap: 6px !important;
    }
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
    }
    .logo-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    .logo-main {
        font-size: 15px !important;
    }
    .logo-accent {
        font-size: 8px !important;
        letter-spacing: 1.5px !important;
    }
    .logo-text-inline {
        font-size: 15px !important;
    }

    /* Profile header compact at 480px */
    section[style*="linear-gradient"] {
        padding: 10px 0 !important;
    }

    section[style*="linear-gradient"] > .container > .flex {
        gap: 10px !important;
    }

    /* Avatar: kare, 2x büyük (class-based) */
    .hero-avatar {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        border-width: 3px;
    }

    section[style*="linear-gradient"] h1 {
        font-size: 1.05rem !important;
    }

    section[style*="linear-gradient"] .flex.items-center.gap-3.mb-2 {
        gap: 3px !important;
        margin-bottom: 2px !important;
    }

    /* Meta: show short variants, hide full */
    .hero-location-full,
    .hero-exp-full,
    .hero-btn-full { display: none !important; }
    .hero-location-short,
    .hero-exp-short,
    .hero-btn-short { display: inline !important; }

    section[style*="linear-gradient"] .flex.flex-wrap.gap-4 {
        font-size: 11px !important;
        gap: 8px !important;
    }

    /* Bio hide on small phones */
    section[style*="linear-gradient"] > .container > .flex > div[style*="flex:1"] > p {
        display: none !important;
    }

    /* Action buttons at 480px - icon + text, equal width */
    section[style*="linear-gradient"] > .container > .flex > .flex.flex-col[style*="min-width"] .btn {
        font-size: 10px !important;
        padding: 8px 6px !important;
        flex: 1 1 0 !important;
        gap: 4px !important;
        border-width: 1.5px !important;
        white-space: nowrap !important;
    }

    section[style*="linear-gradient"] > .container > .flex > .flex.flex-col[style*="min-width"] .btn svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }

    /* Favori button - icon only on mobile */
    .hero-btn-fav {
        flex: 0 0 auto !important;
        padding: 8px !important;
    }
    .hero-btn-fav .hero-btn-full { display: none !important; }

    /* Section padding minimal */
    section[style*="padding:24px"],
    section[style*="padding: 24px"] {
        padding: 12px 0 !important;
    }

    section[style*="padding:16px"],
    section[style*="padding: 16px"] {
        padding: 8px 0 !important;
    }

    /* Card body even more compact */
    .card-body {
        padding: 10px !important;
    }

    .card-header {
        padding: 8px 10px !important;
    }

    .card-header h3 {
        font-size: 13px !important;
    }

    /* About text */
    .card-body p[style*="line-height"] {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* Tags smaller */
    .tag {
        padding: 2px 6px !important;
        font-size: 10px !important;
    }

    /* Gallery 2 cols on tiny screens */
    .lawyer-gallery-grid > * {
        flex: 1 1 calc(50% - 2px) !important;
        min-width: 60px !important;
    }
    .lawyer-gallery-grid {
        gap: 4px !important;
    }

    /* Profile stats compact */
    .profile-stat-item {
        padding: 8px !important;
        gap: 8px !important;
    }

    .profile-stat-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .profile-stat-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Review cards compact */
    .review-card {
        padding: 10px !important;
    }

    /* Tab buttons scrollable & tiny */
    .tab-btn,
    .tab-link {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    /* Breadcrumb tiny */
    .breadcrumb-section {
        padding: 2px 0 !important;
    }

    .breadcrumb {
        font-size: 11px !important;
    }

    /* Page header compact */
    .section-sm.bg-primary {
        padding: 10px 0 !important;
    }

    .page-title {
        font-size: 1.25rem !important;
        margin-bottom: 4px !important;
    }

    /* Specialization hero compact */
    .spec-hero {
        padding: 20px 0 !important;
    }

    .spec-title {
        font-size: 1.25rem !important;
    }

    .spec-subtitle {
        font-size: 13px !important;
    }

    /* Sort dropdown compact */
    .form-select,
    .form-control {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    /* Filter card compact */
    .form-group {
        margin-bottom: 10px !important;
    }

    .form-label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    /* Buttons compact */
    .btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .btn-sm {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Pagination compact */
    .pagination {
        gap: 4px !important;
    }

    .page-link {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    /* Footer compact */
    .footer {
        padding: 24px 0 16px !important;
    }

    .footer-title {
        font-size: 14px !important;
    }

    .footer-links a {
        padding: 4px 0 !important;
        font-size: 12px !important;
    }

    /* WhatsApp button compact */
    .whatsapp-float {
        bottom: 16px !important;
        left: 16px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }

    .whatsapp-float svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Lightbox compact */
    .lightbox-nav {
        width: 36px !important;
        height: 36px !important;
    }

    .lightbox-prev { left: 6px !important; }
    .lightbox-next { right: 6px !important; }

    .lightbox-close {
        font-size: 28px !important;
        top: 8px !important;
        right: 8px !important;
    }
}

/* --- 360px: Extra small phones --- */
@media (max-width: 360px) {
    /* Everything even tighter */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Profile header - 360px */
    .hero-avatar {
        width: 110px;
        height: 110px;
        border-radius: 6px;
        border-width: 2px;
    }

    section[style*="linear-gradient"] h1 {
        font-size: 0.95rem !important;
    }

    section[style*="linear-gradient"] > .container > .flex {
        gap: 6px !important;
    }

    section[style*="linear-gradient"] .flex.flex-wrap.gap-4 {
        font-size: 10px !important;
    }

    /* Action buttons at 360px - smaller text */
    section[style*="linear-gradient"] > .container > .flex > .flex.flex-col[style*="min-width"] .btn {
        padding: 6px 4px !important;
        font-size: 9px !important;
    }

    section[style*="linear-gradient"] > .container > .flex > .flex.flex-col[style*="min-width"] .btn svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Cards minimal padding */
    .card-body {
        padding: 8px !important;
    }

    .card-header {
        padding: 6px 8px !important;
    }

    /* Lawyer card images tiny */
    .lawyer-card img[style*="width:100px"],
    .card img[style*="width:100px"] {
        width: 48px !important;
        height: 48px !important;
    }

    .card-title,
    .lawyer-card-link .card-title {
        font-size: 0.85rem !important;
    }

    /* Spec grid single col */
    .spec-grid {
        flex-direction: column;
        gap: 6px !important;
    }
    .spec-grid > * {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    /* Mini card grid */
    .lawyer-grid-5 {
        gap: 6px !important;
    }
    .lawyer-grid-5 > * {
        flex: 1 1 calc(50% - 3px) !important;
        min-width: 80px !important;
    }

    .lawyer-mini-card {
        padding: 10px 8px !important;
    }

    .lawyer-mini-avatar {
        width: 44px !important;
        height: 44px !important;
    }

    .lawyer-mini-name {
        font-size: 11px !important;
    }

    /* Tabs minimal */
    .tab-btn,
    .tab-link {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }

    /* Buttons tiny */
    .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Footer minimal */
    .footer-grid {
        gap: 16px !important;
    }

    .footer-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .footer-links a {
        font-size: 11px !important;
    }

    .footer-bottom {
        font-size: 10px !important;
    }

    /* Pagination minimal */
    .page-link {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    /* WhatsApp - icon only */
    .whatsapp-float-text {
        display: none !important;
    }

    .whatsapp-float {
        padding: 10px !important;
        border-radius: 50% !important;
    }
}
