/* ==========================================================================
   USTABUL - MODERN STYLESHEET
   Design: Modern Clean Slate with Warm Craftsman Amber & Energetic Indigo Accents
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-light: #fef3c7;
  
  --emerald: #10b981;
  --emerald-light: #ecfdf5;

  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.logo-icon.small {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: block;
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent-amber);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-alt);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-outline-amber {
  background: transparent;
  color: var(--accent-amber-hover);
  border: 1.5px solid var(--accent-amber);
}

.btn-outline-amber:hover {
  background: var(--accent-amber-light);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1eb855;
}

.btn-call {
  background: #0284c7;
  color: white;
}

.btn-call:hover {
  background: #0369a1;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
  color: white;
  padding: 64px 24px 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Main Search Box Card */
.search-box-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  margin-bottom: 36px;
}

.search-input-group {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr auto;
  gap: 8px;
  align-items: center;
}

.input-with-icon, .select-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon input,
.select-with-icon select {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  background: var(--bg-card-alt);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.input-with-icon input:focus,
.select-with-icon select:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Quick Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.hero-stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
  padding: 32px 0 16px;
  background: white;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.category-scroll-controls {
  display: flex;
  gap: 8px;
}

.scroll-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.scroll-arrow-btn:hover {
  background: var(--bg-card-alt);
  color: var(--text-primary);
}

.categories-pill-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.categories-pill-wrapper::-webkit-scrollbar {
  height: 6px;
}

.categories-pill-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  user-select: none;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--dark-bg);
  color: white;
  border-color: var(--dark-bg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.category-pill .pill-emoji {
  font-size: 1.15rem;
}

.category-pill .pill-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-weight: 700;
}

.category-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
}

/* ==========================================================================
   RESULTS TOOLBAR & GRID
   ========================================================================== */
.main-content {
  padding: 36px 0 64px;
  flex: 1;
}

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

.active-category-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--primary);
}

/* Active Filters Tag Bar */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tag-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.filter-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #93c5fd;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.filter-tag-remove {
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
  font-weight: bold;
  padding: 0 2px;
}

.btn-clear-filters {
  border: none;
  background: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  text-decoration: underline;
}

/* Ustalar Cards Grid */
.ustalar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 24px;
}

/* Usta Card Component */
.usta-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.usta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.usta-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.usta-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 2px solid white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  position: relative;
}

.status-badge-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid white;
}

.usta-card-meta {
  flex: 1;
  min-width: 0;
}

.usta-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.usta-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.usta-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.usta-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Rating Box inside Card */
.usta-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-amber-light);
  border: 1px solid #fde68a;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.stars-visual {
  color: var(--accent-amber);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.rating-number {
  font-weight: 800;
  color: #92400e;
  font-size: 0.95rem;
}

.rating-count {
  font-size: 0.8rem;
  color: #b45309;
  margin-left: auto;
  font-weight: 600;
}

.usta-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.usta-specialties-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.specialty-tag {
  font-size: 0.75rem;
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Card Experience & Action Row */
.usta-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-experience-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.experience-tag {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-rate-open {
  grid-column: span 2;
  background: var(--accent-amber-light);
  color: #92400e;
  border: 1px dashed var(--accent-amber);
  font-weight: 700;
  padding: 8px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-rate-open:hover {
  background: #fde68a;
  border-style: solid;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-medium);
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
  padding: 0 0 64px;
}

.cta-banner-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.cta-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.cta-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
}

.cta-features span {
  color: #34d399;
}

.cta-action {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.platform-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL / DIALOG COMPONENT
   ========================================================================== */
.modal-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 600px;
  width: 90vw;
  margin: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.modal-icon-badge.star-badge-glow {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card-alt);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-form {
  padding: 28px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  background: white;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Avatar Picker in Registration */
.avatar-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.avatar-choice-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-medium);
  background: var(--bg-card-alt);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.avatar-choice-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.avatar-choice-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   STAR RATING COMPONENT (INTERACTIVE)
   ========================================================================== */
.rating-picker-section {
  background: var(--bg-card-alt);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.stars-interactive-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 8px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2.8rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0 4px;
}

.star-btn.active {
  color: #f59e0b;
}

.star-btn:hover {
  transform: scale(1.2);
}

.rating-feedback-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b45309;
  min-height: 24px;
}

.usta-mini-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.usta-mini-avatar {
  font-size: 1.8rem;
}

.usta-mini-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.usta-mini-cat {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PROFILE DETAILS MODAL STYLING
   ========================================================================== */
.profile-modal-body {
  padding: 0 28px 28px;
  overflow-y: auto;
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.profile-large-avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 3px solid white;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.profile-hero-details h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat-box {
  background: var(--bg-card-alt);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-light);
}

.profile-stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-actions-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item-card {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-job-tag {
  display: inline-block;
  background: white;
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-bg);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.92rem;
  font-weight: 600;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 380px;
  border-left: 4px solid var(--emerald);
}

.toast.toast-warning {
  border-left-color: var(--accent-amber);
}

.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 960px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .search-input-group {
    grid-template-columns: 1fr;
  }

  .search-action-btn {
    width: 100%;
  }

  .cta-banner-card {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .cta-features {
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .d-none-mobile {
    display: none;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

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

  .col-span-2 {
    grid-column: span 1;
  }

  .card-actions-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

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

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


/* ==========================================================================
   DÜZELTMELER (2026-11-04): HTML/JS'te kullanılıp tanımlı olmayan yardımcı sınıflar
   ========================================================================== */
.text-center { text-align: center; display: block; }
.border-bottom-0 { border-bottom: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.flex-1 { flex: 1; }

/* Klavye ile gezinmede odak görünür olsun */
.star-btn:focus-visible,
.category-pill:focus-visible,
.btn:focus-visible,
.avatar-choice-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* type="search" tarayıcı varsayılan görünümünü sıfırla */
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   ÜYELİK & YÖNETİCİ ONAYI (2026-11-04)
   ========================================================================== */
.auth-area { display: flex; align-items: center; gap: 8px; }

.user-menu { position: relative; }
.user-chip { padding: 6px 12px 6px 6px; }
.user-avatar-mini {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px; background: #fff;
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); padding: 6px; z-index: 200;
}
.user-dropdown[hidden] { display: none; }
.user-dropdown-head {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px;
}
.user-dropdown-head strong { font-size: 0.92rem; color: var(--text-primary); }
.user-dropdown-head span { font-size: 0.78rem; color: var(--text-muted); word-break: break-all; }
.user-dropdown button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
}
.user-dropdown button:hover { background: var(--bg-card-alt); color: var(--text-primary); }

.btn-admin-chip { position: relative; }
.pending-count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.auth-tabs {
  display: flex; gap: 6px; margin: 0 28px; padding: 4px;
  background: var(--bg-card-alt); border-radius: var(--radius-md);
}
.auth-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  padding: 10px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--text-secondary);
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.modal-form[hidden] { display: none; }

.review-approval-note {
  margin: 16px 0 4px; padding: 10px 14px;
  background: var(--primary-light); color: var(--primary-dark);
  border: 1px solid #bfdbfe; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
}
input.form-control[readonly] { background: var(--bg-card-alt); color: var(--text-secondary); cursor: default; }

.footer-admin-link {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted) !important;
}

/* Yönetici paneli */
.admin-modal-body { overflow-y: auto; }
.admin-panel { padding: 20px 28px 28px; }
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tab {
  border: 1px solid var(--border-light); background: #fff; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-tab.active { background: var(--dark-bg); border-color: var(--dark-bg); color: #fff; }
.admin-tab-count {
  background: rgba(148, 163, 184, 0.25); border-radius: 999px;
  padding: 1px 8px; font-size: 0.75rem;
}
.admin-review-list { display: flex; flex-direction: column; gap: 12px; }
.admin-review-item {
  border: 1px solid var(--border-light); border-left: 4px solid var(--border-medium);
  border-radius: var(--radius-md); padding: 14px 16px; background: #fff;
}
.admin-review-item.status-pending { border-left-color: var(--accent-amber); }
.admin-review-item.status-approved { border-left-color: var(--emerald); }
.admin-review-item.status-rejected { border-left-color: #ef4444; opacity: 0.85; }
.admin-review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.admin-review-usta { font-weight: 800; color: var(--text-primary); font-size: 0.95rem; }
.admin-review-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.admin-muted { color: var(--text-muted); font-weight: 500; }
.admin-rating-num { color: #92400e; font-weight: 700; font-size: 0.8rem; letter-spacing: 0; }
.admin-review-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.admin-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-approve { background: var(--emerald); color: #fff; }
.btn-approve:hover { background: #059669; }
.btn-reject { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-reject:hover { background: #fef2f2; }
.status-pill {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.status-pill.status-pending { background: var(--accent-amber-light); color: #92400e; }
.status-pill.status-approved { background: var(--emerald-light); color: #047857; }
.status-pill.status-rejected { background: #fef2f2; color: #b91c1c; }
.admin-info-box {
  background: var(--accent-amber-light); color: #92400e;
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; line-height: 1.5;
}
.admin-empty { text-align: center; padding: 32px 12px; color: var(--text-secondary); font-size: 0.92rem; }
.admin-empty .empty-icon { font-size: 2.2rem; margin-bottom: 8px; }

@media (max-width: 640px) {
  .header-container { padding: 12px 14px; gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 9px 11px; }
  .brand-tagline { display: none; }
  .auth-tabs { margin: 0 16px; }
  .admin-panel { padding: 16px; }
  .admin-review-top { flex-direction: column; }
}


/* ==========================================================================
   MOBİL / TELEFON UYUMU & PWA (2026-11-04)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }

/* Açık pencere varken arka sayfa kaymasın */
body:has(dialog[open]) { overflow: hidden; }

/* Izgara içindeki form alanları ve açılır listeler sütunu taşırmasın */
.form-grid > * { min-width: 0; }
select, .form-control { max-width: 100%; min-width: 0; }

/* Çentikli telefonlarda (uygulama modunda) üst/alt güvenli alan */
.app-header { padding-top: env(safe-area-inset-top); }
.app-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Dokunmatik ekranlarda üzerine gelme efektleri takılı kalmasın */
@media (hover: none) {
  .usta-card:hover, .btn:hover, .category-pill:hover { transform: none; }
  .star-btn:hover { transform: none; }
}

/* Ana ekrana ekle bandı */
.install-banner {
  position: fixed; z-index: 900;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-bg); color: #fff;
  border-radius: var(--radius-lg); padding: 12px 12px 12px 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  max-width: 520px; margin: 0 auto;
}
.install-banner[hidden] { display: none; }
.install-banner-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.install-banner-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.install-banner-text strong { font-size: 0.92rem; }
.install-banner-text span { font-size: 0.78rem; color: #cbd5e1; line-height: 1.35; }
.install-banner-close {
  background: none; border: none; color: #94a3b8; font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 4px 6px;
}
body.has-install-banner .toast-container { bottom: calc(96px + env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  /* iPhone, 16px altındaki kutulara dokununca sayfayı yakınlaştırıyordu */
  input, select, textarea, .form-control, .sort-select { font-size: 16px !important; }

  .section-container { padding: 0 16px; }
  .hero-section { padding: 36px 16px 44px; }
  .hero-badge { font-size: 0.78rem; }
  .hero-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .hero-stat-sep { display: none; }
  .search-box-card { padding: 12px; }

  /* Kategoriler: parmakla kaydırılıyor, ok butonlarına gerek yok */
  .category-scroll-controls { display: none; }
  .categories-pill-wrapper { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .categories-pill-wrapper::-webkit-scrollbar { display: none; }

  .results-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar-sort { justify-content: space-between; }
  .sort-select { flex: 1; }

  .ustalar-grid { gap: 16px; }
  .usta-card { padding: 18px; border-radius: 18px; }
  .card-actions-grid { grid-template-columns: 1fr 1fr; }
  .card-actions-grid .btn { min-height: 44px; }
  .btn-rate-open { min-height: 44px; }
  .card-experience-row { flex-wrap: wrap; gap: 8px; }

  /* Pencereler alttan açılan tam genişlik panel olsun */
  .modal-dialog,
  .modal-dialog.modal-lg {
    width: 100%; max-width: 100%;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    max-height: 94vh; max-height: 94dvh;
  }
  .modal-card {
    border-radius: 22px 22px 0 0;
    max-height: 94vh; max-height: 94dvh;
  }
  .modal-dialog[open] { animation: sheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
  .modal-header { padding: 18px 16px 14px; }
  .modal-title { font-size: 1.1rem; }
  .modal-subtitle { font-size: 0.82rem; }
  .modal-form { padding: 18px 16px 0; }
  .modal-form.admin-review-list { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .modal-footer { position: sticky; bottom: 0; z-index: 2; background: #fff; margin-top: 20px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    flex-direction: column-reverse; gap: 8px; }
  .modal-footer .btn { width: 100%; min-height: 46px; }
  .avatar-picker { flex-wrap: wrap; }

  /* Profil penceresi */
  .profile-modal-body { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
  .profile-hero-card { flex-direction: column; text-align: center; gap: 12px; }
  .profile-hero-card .usta-name-row { justify-content: center; }
  .profile-hero-card h2 { font-size: 1.35rem; }
  .profile-hero-card .usta-location { justify-content: center; }
  .profile-large-avatar { width: 84px; height: 84px; font-size: 2.6rem; }
  .profile-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .profile-stat-box { padding: 12px 6px; }
  .profile-stat-val { font-size: 1.05rem; }
  .profile-stat-label { font-size: 0.7rem; }
  .profile-actions-bar { flex-wrap: wrap; gap: 8px; }
  .profile-actions-bar .btn { flex: 1 1 100%; min-height: 46px; }

  /* Bildirimler tam genişlik */
  .toast-container { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { width: 100%; }

  .user-dropdown { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 12px; right: 12px; min-width: 0; }
}

@keyframes sheetUp {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

/* Uygulama olarak (ana ekrandan) açıldığında */
@media (display-mode: standalone) {
  .install-banner { display: none !important; }
}

/* Kart içeriği dar ekranda taşmasın */
.ustalar-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .btn-rate-open { white-space: normal; text-align: center; }
  .usta-rating-summary { flex-wrap: wrap; row-gap: 2px; }
  .card-experience-row .btn { white-space: normal; }
}
