/**
 * ============================================================================
 * AgendaTop - Public Site Stylesheet
 * Comprehensive CSS for the client/customer-facing platform.
 * Palette: Indigo / Slate — professional, gender-neutral.
 * ============================================================================
 */

/* ============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================ */
:root {
    /* Primary palette */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --primary-200: #C7D2FE;
    --primary-500: #6366F1;
    --primary-600: #4F46E5;
    --primary-700: #4338CA;
    --primary-800: #3730A3;
    --primary-900: #312E81;

    /* Text */
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --text-muted: #CBD5E1;

    /* Backgrounds */
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --bg-dark: #0F172A;
    --white: #FFFFFF;

    /* Borders */
    --border: #E2E8F0;
    --border-dark: #CBD5E1;

    /* Semantic */
    --success: #059669;
    --success-light: #ECFDF5;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --info: #0284C7;
    --info-light: #F0F9FF;

    /* Layout */
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-xl: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);

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

    /* Navbar */
    --navbar-height: 64px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 20px;

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

::selection {
    background-color: var(--primary-200);
    color: var(--primary-900);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

.main-content {
    min-height: calc(100vh - var(--navbar-height));
    padding-top: var(--navbar-height);
}

.section {
    padding: 60px 0;
}

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

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   4. NAVBAR
   ============================================================================ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    height: var(--navbar-height);
    transition: box-shadow var(--transition);
}

.navbar--scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Logo */
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.35rem;
    flex-shrink: 0;
    z-index: 1001;
}

.navbar__logo:hover {
    color: var(--primary);
}

.navbar__logo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.navbar__logo-text {
    letter-spacing: -0.02em;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    z-index: 1001;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.navbar__hamburger:hover {
    background-color: var(--bg-gray);
}

.navbar__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

/* Hamburger active state */
.navbar__hamburger.active .navbar__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active .navbar__hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active .navbar__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu */
.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nav links */
.navbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.navbar__link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.navbar__link svg {
    flex-shrink: 0;
}

/* Auth buttons in nav */
.navbar__auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Client dropdown */
.navbar__dropdown {
    position: relative;
}

.navbar__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
}

.navbar__dropdown-toggle:hover {
    border-color: var(--primary-200);
    background: var(--primary-light);
}

.navbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.navbar__client-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar__chevron {
    color: var(--text-light);
    transition: transform var(--transition);
}

.navbar__dropdown.open .navbar__chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.navbar__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-slow);
    z-index: 1002;
    overflow: hidden;
}

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

.navbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}

.navbar__dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.navbar__dropdown-item--danger {
    border-top: 1px solid var(--border);
}

.navbar__dropdown-item--danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.navbar__logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
}

/* ============================================================================
   5. HERO SECTION
   ============================================================================ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-500) 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(49, 46, 129, 0.92) 0%,
        rgba(67, 56, 202, 0.85) 50%,
        rgba(99, 102, 241, 0.78) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 80px var(--container-padding);
}

.hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero__cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.hero__stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ============================================================================
   6. SEARCH BAR
   ============================================================================ */
.search-section {
    margin-top: -32px;
    position: relative;
    z-index: 10;
    padding: 0 var(--container-padding);
}

.search-bar {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 900px;
    margin: 0 auto;
}

.search-bar__location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: all var(--transition);
}

.search-bar__location:hover {
    background: var(--primary-100);
}

.search-bar__location svg {
    flex-shrink: 0;
}

.search-bar__input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.search-bar__input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.search-bar__input::placeholder {
    color: var(--text-light);
}

.search-bar__filter {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-bar__select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text-medium);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.search-bar__select:focus {
    border-color: var(--primary);
}

.search-bar__btn {
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}

.search-bar__btn:hover {
    background: var(--primary-hover);
}

/* ============================================================================
   7. COMPANY CARDS
   ============================================================================ */
.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.company-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

/* Card image area */
.company-card__image {
    position: relative;
    height: 180px;
    background: var(--bg-gray);
    overflow: hidden;
    flex-shrink: 0;
}

.company-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.company-card:hover .company-card__image img {
    transform: scale(1.05);
}

/* Favorite heart on card */
.company-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    z-index: 2;
    color: var(--text-light);
}

.company-card__favorite:hover {
    background: var(--white);
    transform: scale(1.1);
}

.company-card__favorite.active {
    color: var(--danger);
    animation: heartPulse 0.3s ease;
}

.company-card__favorite svg {
    width: 18px;
    height: 18px;
}

/* Category badge */
.company-card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    z-index: 2;
}

/* Card body */
.company-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.company-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.company-card__location svg {
    flex-shrink: 0;
}

/* Rating */
.company-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-star {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1;
}

.rating-star.filled {
    color: #F59E0B;
}

.rating-star.half {
    position: relative;
    color: var(--text-muted);
}

.rating-count {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Card footer */
.company-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.company-card__distance {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn--agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn--agenda:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ============================================================================
   8. BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn--ghost {
    background: transparent;
    color: var(--text-medium);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

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

.btn--white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* Sizes */
.btn--xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn--sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn--xl {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Icon only button */
.btn--icon {
    padding: 8px;
    border-radius: var(--radius-full);
}

.btn--icon svg {
    width: 18px;
    height: 18px;
}

/* Full width */
.btn--block {
    width: 100%;
}

/* Disabled */
.btn:disabled,
.btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button loading state */
.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================================
   9. BADGES
   ============================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge--primary {
    background: var(--primary-light);
    color: var(--primary-700);
}

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

.badge--warning {
    background: var(--warning-light);
    color: var(--warning);
}

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

.badge--info {
    background: var(--info-light);
    color: var(--info);
}

.badge--gray {
    background: var(--bg-gray);
    color: var(--text-medium);
}

/* Category-specific badge colors */
.badge--category-saude { background: #FEF2F2; color: #DC2626; }
.badge--category-beleza { background: #FDF2F8; color: #DB2777; }
.badge--category-educacao { background: #EFF6FF; color: #2563EB; }
.badge--category-tecnologia { background: #F0FDF4; color: #16A34A; }
.badge--category-alimentacao { background: #FFF7ED; color: #EA580C; }
.badge--category-servicos { background: #F5F3FF; color: #7C3AED; }
.badge--category-eventos { background: #FEF9C3; color: #CA8A04; }
.badge--category-imobiliaria { background: #F0FDFA; color: #0D9488; }

/* ============================================================================
   10. FORMS
   ============================================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input--error,
.form-select--error,
.form-textarea--error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-light);
}

.form-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

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

.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Input with icon */
.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-left: 40px;
}

.form-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input-wrapper .form-input:focus ~ .form-input-icon,
.form-input-wrapper .form-input:focus + .form-input-icon {
    color: var(--primary);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    cursor: pointer;
}

/* Password strength meter */
.password-strength {
    margin-top: 8px;
}

.password-strength__bar {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength__fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: all var(--transition-slow);
}

.password-strength__fill--weak { width: 25%; background: var(--danger); }
.password-strength__fill--fair { width: 50%; background: var(--warning); }
.password-strength__fill--good { width: 75%; background: #0EA5E9; }
.password-strength__fill--strong { width: 100%; background: var(--success); }

.password-strength__text {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================================================
   11. MODAL
   ============================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-slow);
}

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

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal__close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.modal__close:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.modal__body {
    padding: 24px;
}

.modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Booking modal specifics */
.booking-modal__company {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.booking-modal__company-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-gray);
    overflow: hidden;
    flex-shrink: 0;
}

.booking-modal__company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-modal__company-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.booking-modal__company-cat {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Service selection in modal */
.service-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 8px;
}

.service-option:hover {
    border-color: var(--primary-200);
    background: var(--primary-light);
}

.service-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-option__name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.service-option__duration {
    font-size: 0.78rem;
    color: var(--text-light);
}

.service-option__price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.time-slot {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-medium);
    background: var(--white);
}

.time-slot:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

/* ============================================================================
   12. APPOINTMENT CARDS
   ============================================================================ */
.appointments-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.appointments-tab {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: transparent;
}

.appointments-tab:hover {
    color: var(--text-dark);
}

.appointments-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.appointment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.appointment-card:hover {
    box-shadow: var(--shadow-md);
}

/* Future appointment */
.appointment-card--upcoming {
    border-left: 4px solid var(--primary);
}

/* Past appointment */
.appointment-card--past {
    border-left: 4px solid var(--text-muted);
    opacity: 0.75;
}

.appointment-card--past:hover {
    opacity: 1;
}

/* Cancelled appointment */
.appointment-card--cancelled {
    border-left: 4px solid var(--danger);
    opacity: 0.6;
}

/* Completed appointment */
.appointment-card--completed {
    border-left: 4px solid var(--success);
}

.appointment-card__date {
    text-align: center;
    flex-shrink: 0;
    width: 60px;
}

.appointment-card__day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.appointment-card__month {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.appointment-card__info {
    flex: 1;
    min-width: 0;
}

.appointment-card__company {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.appointment-card__service {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.appointment-card__time {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.appointment-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* ============================================================================
   13. FAVORITES
   ============================================================================ */
.favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.favorite-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.favorite-btn.active {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-light);
    animation: heartPulse 0.3s ease;
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
}

/* Heart filled state via CSS */
.favorite-btn.active svg {
    fill: var(--danger);
    stroke: var(--danger);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================================================
   14. RATING STARS
   ============================================================================ */
.rating-stars {
    display: inline-flex;
    gap: 1px;
}

.rating-star {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
}

.rating-star.filled {
    color: #F59E0B;
}

.rating-star svg {
    width: 16px;
    height: 16px;
}

.rating-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rating-count {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-left: 4px;
}

/* ============================================================================
   15. TOAST NOTIFICATIONS
   ============================================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 380px;
    width: 100%;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: toastSlideIn 0.35s ease;
    transition: all var(--transition);
}

.toast--removing {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.toast--success .toast__icon { background: var(--success-light); color: var(--success); }
.toast--error .toast__icon { background: var(--danger-light); color: var(--danger); }
.toast--warning .toast__icon { background: var(--warning-light); color: var(--warning); }
.toast--info .toast__icon { background: var(--info-light); color: var(--info); }

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.toast__message {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.4;
}

.toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.toast__close:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

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

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

/* ============================================================================
   16. PAGINATION
   ============================================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.pagination__btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination__btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination__btn svg {
    width: 16px;
    height: 16px;
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================================================
   17. EMPTY STATE
   ============================================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.6;
}

.empty-state__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state__description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================================
   18. CLIENT DASHBOARD LAYOUT
   ============================================================================ */
.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
}

.dashboard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.dashboard__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.dashboard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.dashboard-stat:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-stat__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.dashboard-stat__label {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.dashboard__section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.dashboard__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.dashboard__section-body {
    padding: 20px;
}

/* ============================================================================
   19. MAP PLACEHOLDER
   ============================================================================ */
.map-area {
    width: 100%;
    height: 300px;
    background: var(--bg-gray);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 12px;
    margin-top: 24px;
}

.map-area svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.map-area__text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================================================
   20. PROFILE PAGE
   ============================================================================ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-info__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-info__email {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.profile-info__member-since {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 0;
}

/* ============================================================================
   21. AUTH PAGES (LOGIN / REGISTER)
   ============================================================================ */
.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-light);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card__header {
    text-align: center;
    padding: 36px 32px 0;
}

.auth-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card__subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.auth-card__body {
    padding: 28px 32px 32px;
}

.auth-card__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.82rem;
}

.auth-card__divider::before,
.auth-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-card__footer {
    text-align: center;
    padding: 0 32px 28px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-card__footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================================
   22. LOADING & SKELETON
   ============================================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--border) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton--circle {
    border-radius: var(--radius-full);
}

.skeleton--text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton--title {
    height: 20px;
    margin-bottom: 12px;
    width: 70%;
}

.skeleton--card {
    height: 300px;
}

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

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner--sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.spinner--lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay__text {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }

/* Slide up */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease forwards;
}

/* Scale in */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* Lazy load reveal */
.lazy-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   24. FOOTER
   ============================================================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer__logo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

.footer__links-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links-list a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer__links-list a:hover {
    color: var(--white);
}

.footer__links-list--contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.footer__links-list--contact svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer__legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.footer__legal-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer__legal-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer__separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   25. UTILITY CLASSES
   ============================================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-light); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none !important; }
.visible { display: block; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================================
   26. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__stats {
        gap: 32px;
    }

    .search-bar {
        flex-wrap: wrap;
    }

    .search-bar__filter {
        width: 100%;
        justify-content: space-between;
    }

    .search-bar__select {
        flex: 1;
    }
}

/* Mobile: <768px */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
        --container-padding: 16px;
    }

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

    /* Navbar mobile */
    .navbar__hamburger {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 32px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar__menu.open {
        right: 0;
    }

    .navbar__link {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }

    .navbar__auth {
        flex-direction: column;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

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

    .navbar__dropdown {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .navbar__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 8px;
        border-radius: var(--radius);
        background: var(--bg-light);
    }

    .navbar__dropdown.open .navbar__dropdown-menu {
        display: block;
    }

    .navbar__dropdown:not(.open) .navbar__dropdown-menu {
        display: none;
    }

    /* Mobile overlay when menu is open */
    .navbar__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }

    .navbar__overlay.active {
        display: block;
    }

    /* Hero mobile */
    .hero {
        min-height: 420px;
    }

    .hero__content {
        padding: 48px var(--container-padding);
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 20px 32px;
    }

    .hero__stat-number {
        font-size: 1.4rem;
    }

    /* Search bar mobile */
    .search-section {
        margin-top: -24px;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 6px;
    }

    .search-bar__location {
        justify-content: center;
        width: 100%;
        border-radius: var(--radius);
    }

    .search-bar__input-wrapper {
        width: 100%;
    }

    .search-bar__filter {
        flex-direction: column;
        width: 100%;
    }

    .search-bar__select {
        width: 100%;
    }

    .search-bar__btn {
        width: 100%;
        justify-content: center;
    }

    /* Company cards mobile */
    .company-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .company-card__image {
        height: 160px;
    }

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

    .section__title {
        font-size: 1.5rem;
    }

    .section__header {
        margin-bottom: 32px;
    }

    /* Appointment cards */
    .appointment-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .appointment-card__actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }

    /* Auth pages */
    .auth-card__header {
        padding: 28px 24px 0;
    }

    .auth-card__body {
        padding: 24px;
    }

    .auth-card__footer {
        padding: 0 24px 24px;
    }

    /* Profile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    /* Dashboard stats */
    .dashboard__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Modal */
    .modal {
        margin: 10px;
        max-height: 95vh;
    }

    .modal__header,
    .modal__body,
    .modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Toast */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    /* Footer mobile */
    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0 28px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer__legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .pagination__btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* Small mobile: <380px */
@media (max-width: 380px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__cta-group {
        flex-direction: column;
    }

    .hero__cta-group .btn {
        width: 100%;
    }

    .dashboard__stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   27. PRINT STYLES
   ============================================================================ */
@media print {
    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .navbar,
    .navbar__hamburger,
    .toast-container,
    .btn,
    .modal-overlay,
    .footer,
    .search-bar,
    .search-section,
    .hero__cta-group {
        display: none !important;
    }

    .main-content {
        padding-top: 0;
        min-height: auto;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

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

    .appointment-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .section {
        padding: 16px 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================================================
   28. DARK MODE (optional, via class on html)
   ============================================================================ */
@media (prefers-color-scheme: dark) {
    html.dark {
        --text-dark: #F1F5F9;
        --text-medium: #CBD5E1;
        --text-light: #64748B;
        --text-muted: #475569;
        --bg-light: #1E293B;
        --bg-gray: #0F172A;
        --bg-dark: #020617;
        --white: #1E293B;
        --border: #334155;
        --border-dark: #475569;
        --shadow: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 2px 6px rgba(0,0,0,0.25);
        --shadow-lg: 0 4px 12px rgba(0,0,0,0.3);
        --shadow-xl: 0 10px 30px rgba(0,0,0,0.35);
        --primary-light: #312E81;
    }

    html.dark body {
        background-color: var(--bg-dark);
    }

    html.dark .navbar {
        background: var(--white);
    }

    html.dark .company-card {
        background: var(--white);
        border-color: var(--border);
    }

    html.dark .auth-card {
        background: var(--white);
    }

    html.dark .modal {
        background: var(--white);
    }

    html.dark .form-input,
    html.dark .form-select,
    html.dark .form-textarea {
        background: var(--bg-gray);
        border-color: var(--border);
        color: var(--text-dark);
    }

    html.dark .toast {
        background: var(--white);
        border-color: var(--border);
    }
}

/* ============================================================================
   29. ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .lazy-reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #1E293B;
        --text-light: #475569;
    }

    .btn--outline {
        border-width: 2px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
}
