/* ============================================================
   GLENTI – Main Stylesheet
   Mobile-first, event marketplace Cyprus
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #7C3AED;
  --primary-dark:  #5B21B6;
  --primary-light: #EDE9FE;
  --accent:        #F59E0B;
  --accent-dark:   #D97706;
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-800:      #1F2937;
  --gray-900:      #111827;
  --white:         #FFFFFF;
  --bg:            #F9FAFB;
  --text:          #111827;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --transition:    .2s ease;
  --font:          'Inter', -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-accent  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.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(--gray-600); border-color: var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: .4rem; color: var(--gray-700); }
.form-control {
  width: 100%; padding: .65rem .9rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-size: .95rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.form-hint { font-size: .8rem; color: var(--gray-400); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-size: .9rem;
  display: flex; align-items: flex-start; gap: .75rem; border-left: 4px solid;
}
.alert-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.2rem; opacity: .6; }
.alert-success { background: #D1FAE5; color: #065F46; border-color: var(--success); }
.alert-error   { background: #FEE2E2; color: #991B1B; border-color: var(--danger); }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }
.alert-warning { background: #FEF3C7; color: #92400E; border-color: var(--warning); }
.flash-container { position: fixed; top: 80px; right: 1rem; z-index: 9999; width: min(400px, calc(100vw - 2rem)); }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--gray-100); border-radius: 0 0 var(--radius) var(--radius); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-gray     { background: var(--gray-200); color: var(--gray-600); }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-accent   { background: #FEF3C7; color: #92400E; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner { display: flex; align-items: center; height: 64px; gap: 1rem; }
.navbar-brand { display: flex; align-items: center; gap: .5rem; }
.brand-icon   { font-size: 1.5rem; }
.brand-name   { font-size: 1.3rem; font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.nav-links    { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.nav-links a  { padding: .4rem .8rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .9rem; color: var(--gray-600); transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-toggle   { display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gray-600); border-radius: 2px; transition: all var(--transition); display: block; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links  { display: flex; }
}
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #9333EA 100%);
  color: var(--white); padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; }
.hero h1 { color: var(--white); margin-bottom: .75rem; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-search {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .75rem;
  max-width: 700px; margin: 0 auto;
}
.hero-search select, .hero-search input { flex: 1; }
@media (min-width: 640px) {
  .hero-search { flex-direction: row; align-items: center; padding: .75rem; }
  .hero-search .btn { white-space: nowrap; }
}

.section { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: .5rem; }

/* Categories grid */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 480px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .categories-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(10, 1fr); } }

.category-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem .5rem; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--white); cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: var(--text); text-align: center;
}
.category-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.category-card .cat-icon { font-size: 1.6rem; }
.category-card .cat-name { font-size: .75rem; font-weight: 600; color: var(--gray-600); }

/* Vendor cards grid */
.vendors-grid { display: grid; gap: 1.25rem; }
@media (min-width: 480px)  { .vendors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .vendors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .vendors-grid { grid-template-columns: repeat(4, 1fr); } }

.vendor-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
}
.vendor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.vendor-card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--gray-100); position: relative; overflow: hidden; }
.vendor-card-img img { width: 100%; height: 100%; object-fit: cover; }
.vendor-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--primary-light); }
.vendor-card-body { padding: 1rem; flex: 1; }
.vendor-card-cat  { font-size: .75rem; color: var(--primary); font-weight: 600; margin-bottom: .3rem; }
.vendor-card-name { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: var(--gray-800); }
.vendor-card-city { font-size: .82rem; color: var(--gray-500); display: flex; align-items: center; gap: .25rem; }
.vendor-card-avail{ padding: .6rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.avail-dot { display:inline-block; width: 8px; height: 8px; min-width:8px; min-height:8px; border-radius: 50%; flex-shrink: 0; }
.avail-dot.available { background: var(--success); }
.avail-dot.booked { background: var(--danger); }
.avail-dot.closed { background: var(--gray-400); }
.avail-dot.unavailable{ background: var(--danger); }
.vendor-card .badge-accent { position: absolute; top: .5rem; right: .5rem; }

/* ══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════════════════════════ */
.search-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 280px 1fr; align-items: start; } }

.search-filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.filter-title { font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; color: var(--gray-800); }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { font-weight: 600; font-size: .85rem; color: var(--gray-600); margin-bottom: .5rem; display: block; }

.search-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem; }
.search-count  { font-size: .9rem; color: var(--gray-500); }

/* ══════════════════════════════════════════════════════════════
   VENDOR PUBLIC PROFILE
   ══════════════════════════════════════════════════════════════ */
.vendor-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.vendor-hero-inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .vendor-hero-inner { flex-direction: row; align-items: flex-start; gap: 2rem; } }
.vendor-cover { flex-shrink: 0; }
.vendor-cover img { width: 100%; max-width: 220px; height: 160px; object-fit: cover; border-radius: var(--radius); }
.vendor-info h1 { margin-bottom: .5rem; }
.vendor-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: .75rem 0; }
.vendor-meta span { display: flex; align-items: center; gap: .3rem; font-size: .88rem; color: var(--gray-500); }

.vendor-layout { display: grid; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 1024px) { .vendor-layout { grid-template-columns: 1fr 380px; align-items: start; } }

.vendor-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.vendor-section h3 { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

/* Working hours display */
.hours-grid { display: grid; gap: .4rem; }
.hours-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; border-bottom: 1px dashed var(--gray-200); }
.hours-row:last-child { border: none; }
.hours-day { font-weight: 600; color: var(--gray-700); }
.hours-time { color: var(--gray-500); }
.hours-closed { color: var(--danger); font-style: italic; }

/* Next available banner */
.avail-banner {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border: 1px solid #6EE7B7; border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.avail-banner.unavailable { background: linear-gradient(135deg, #FEE2E2, #FECACA); border-color: #FCA5A5; }
.avail-banner-icon { font-size: 1.5rem; }
.avail-banner-text strong { display: block; font-weight: 700; color: #065F46; }
.avail-banner.unavailable .avail-banner-text strong { color: #991B1B; }
.avail-banner-text span { font-size: .85rem; color: #047857; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ══════════════════════════════════════════════════════════════
   CALENDAR (shared between dashboard & public)
   ══════════════════════════════════════════════════════════════ */
.calendar-wrap { user-select: none; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-header h4 { font-size: 1rem; font-weight: 700; }
.cal-nav { background: none; border: none; cursor: pointer; padding: .4rem; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 1.1rem; transition: all var(--transition); }
.cal-nav:hover { background: var(--gray-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-label { text-align: center; font-size: .72rem; font-weight: 700; color: var(--gray-400); padding: .3rem 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition); position: relative;
}
.cal-day.empty { cursor: default; }
.cal-day.past  { color: var(--gray-300); cursor: default; }
.cal-day.today { font-weight: 800; border: 2px solid var(--primary); }
.cal-day.neutral { background: #fff; color: var(--gray-400); border-color: var(--gray-200); }
.cal-day.available { background: #D1FAE5; color: #065F46; }
.cal-day.available:hover { background: #6EE7B7; }
.cal-day.booked   { background: #FEE2E2; color: #991B1B; cursor: default; }
.cal-day.blocked  { background: var(--gray-200); color: var(--gray-400); cursor: default; }
.cal-day.working  { background: var(--primary-light); color: var(--primary); }
.cal-day.working:hover { background: #C4B5FD; }
.cal-day.no-hours { color: var(--gray-300); }

/* Dashboard calendar (clickable) */
.cal-day.dash-neutral { background: #fff; color: var(--gray-400); border-color: var(--gray-200); cursor: pointer; }
.cal-day.dash-neutral:hover { background: #F5F3FF; border-color: #C4B5FD; }
.cal-day.dash-avail { background: #D1FAE5; color: #065F46; cursor: pointer; }
.cal-day.dash-avail:hover { background: #6EE7B7; }
.cal-day.dash-booked  { background: #FEE2E2; color: #991B1B; cursor: pointer; }
.cal-day.dash-blocked { background: var(--gray-200); color: var(--gray-500); cursor: pointer; }
.cal-day.dash-working { background: var(--primary-light); color: var(--primary); cursor: pointer; }
.cal-day.dash-working:hover { background: #C4B5FD; }

.cal-legend { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.cal-legend-item { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--gray-600); }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend-dot.available { background: #D1FAE5; border: 1px solid #6EE7B7; }
.cal-legend-dot.booked    { background: #FEE2E2; border: 1px solid #FCA5A5; }
.cal-legend-dot.blocked   { background: var(--gray-200); border: 1px solid var(--gray-300); }
.cal-legend-dot.working   { background: var(--primary-light); border: 1px solid #C4B5FD; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%); }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-card h2 { margin-bottom: .25rem; }
.auth-card .subtitle { color: var(--gray-500); margin-bottom: 2rem; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-size: 2.5rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: .9rem; color: var(--gray-500); }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════ */
.dash-layout { display: grid; min-height: calc(100vh - 64px); }
@media (min-width: 1024px) { .dash-layout { grid-template-columns: 260px 1fr; } }

.dash-sidebar {
  background: var(--gray-800); color: var(--white);
  padding: 1.5rem 0;
}
.dash-sidebar-brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 1rem; }
.dash-sidebar-brand .brand-name { color: var(--white); }
.dash-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; color: rgba(255,255,255,.7); font-size: .9rem;
  font-weight: 500; transition: all var(--transition); text-decoration: none;
}
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.1); color: var(--white); border-right: 3px solid var(--accent); }
.dash-nav .nav-icon { font-size: 1.1rem; width: 1.1rem; flex-shrink: 0; }
.dash-sidebar-footer { padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: auto; }

.dash-content { padding: 2rem 1rem; }
@media (min-width: 640px) { .dash-content { padding: 2rem; } }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.dash-header p { color: var(--gray-500); font-size: .9rem; }

.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: .5rem; }
.stat-card .stat-val  { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label{ font-size: .8rem; color: var(--gray-500); font-weight: 500; }

/* Working hours editor */
.hours-editor { }
.day-block { background: var(--gray-100); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; }
.day-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.day-block-name  { font-weight: 600; color: var(--gray-800); }
.day-closed-toggle { display: flex; align-items: center; gap: .5rem; font-size: .85rem; cursor: pointer; }
.day-closed-toggle input[type=checkbox] { accent-color: var(--primary); }
.slots-container { display: flex; flex-direction: column; gap: .5rem; }
.slot-row { display: flex; align-items: center; gap: .5rem; }
.slot-row .form-control { flex: 1; }
.slot-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; padding: .25rem; }
.add-slot-btn { font-size: .82rem; margin-top: .4rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform var(--transition); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal h3 { margin-bottom: 1rem; }
.modal-btns { display: flex; gap: .75rem; margin-top: 1.5rem; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════════ */
.admin-layout { display: grid; min-height: calc(100vh - 64px); }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 240px 1fr; } }
.admin-sidebar { background: #1A1A2E; color: var(--white); padding: 1.5rem 0; }
.admin-nav a { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.25rem; color: rgba(255,255,255,.65); font-size: .88rem; font-weight: 500; transition: all var(--transition); text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(124,58,237,.3); color: var(--white); border-left: 3px solid var(--primary); padding-left: calc(1.25rem - 3px); }
.admin-content { padding: 2rem; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background: var(--gray-50, #F9FAFB); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }
.actions { display: flex; gap: .4rem; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: .4rem; justify-content: center; padding: 1.5rem 0; }
.page-btn { padding: .4rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; color: var(--gray-600); background: var(--white); cursor: pointer; transition: all var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer { background: var(--gray-800); color: var(--white); padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; } }
.footer-brand .brand-name { color: var(--white); font-size: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: .25rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy p { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-400); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Image uploader ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--gray-100);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: .5rem; }
.images-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .75rem; margin-top: 1rem; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .del-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: white; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

/* ── Plan badge ────────────────────────────────────────────── */
.plan-tag { display: inline-flex; align-items: center; gap: .3rem; }
.plan-basic    { color: var(--gray-500); }
.plan-premium  { color: var(--accent-dark); }
.plan-unlimited{ color: var(--primary); }

/* ══════════════════════════════════════════════════════════════
   SOCIAL MEDIA BAR
   ══════════════════════════════════════════════════════════════ */
.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .5rem 0;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--sbg);
  color: #var(--sc);
  border: 1.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.social-btn svg { flex-shrink: 0; }
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  border-color: rgba(0,0,0,.08);
}
/* Per-network colors via inline --sc var */
.social-btn { color: var(--sc, #333); }

/* Calendar day icon overlay */
.cal-day { position: relative; }
.cal-day-icon { position: absolute; bottom: 1px; right: 1px; font-size: .55rem; line-height: 1; }
.dash-neutral { background: #fff; color: var(--gray-400); border-color: var(--gray-200); cursor: pointer; }
.dash-neutral:hover { background: #F5F3FF; border-color: #C4B5FD; }
.dash-avail { background: #D1FAE5; color: #065F46; cursor: pointer; }
.dash-avail:hover { background: #6EE7B7; }
.dash-booked { background: #FEE2E2; color: #991B1B; cursor: pointer; }
.dash-blocked { background: var(--gray-200); color: var(--gray-500); cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   POPULAR CATEGORIES (homepage)
   ══════════════════════════════════════════════════════════════ */
.pop-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 480px)  { .pop-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .pop-cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .pop-cats-grid { grid-template-columns: repeat(6, 1fr); } }

.pop-cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    transition: all .2s; text-align: center;
    position: relative; overflow: hidden;
}
.pop-cat-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0; transition: opacity .2s;
}
.pop-cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pop-cat-card:hover::before { opacity: 1; }
.pop-cat-icon { font-size: 2.2rem; position: relative; }
.pop-cat-name { font-weight: 700; font-size: .92rem; color: var(--gray-700); position: relative; }
.pop-cat-count { font-size: .75rem; color: var(--gray-400); position: relative; }

/* ══════════════════════════════════════════════════════════════

/* ══════════════════════════════════════════════════════════════
   DASHBOARD — MOBILE/DESKTOP RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Mobile bottom nav ───────────────────────────────────────── */
.mob-nav {
    display: none; /* hidden by default (desktop) */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--gray-400);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .02em;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
}
.mob-nav-icon { font-size: 1.4rem; line-height: 1; }
.mob-nav-item.mob-active { color: var(--primary); }
.mob-nav-item.mob-active .mob-nav-icon { transform: translateY(-1px); }

/* ── mob-only / desk-only helpers ────────────────────────────── */
.mob-only  { display: none; }
.desk-only { display: block; }
.mob-padded { padding-bottom: 0; }

/* ── Mobile homepage components ──────────────────────────────── */
.mob-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1.4rem 1rem 1.6rem;
}
.mob-hero-sub  { font-size: .8rem; opacity: .7; margin-bottom: .15rem; }
.mob-hero-name { font-size: 1.35rem; font-weight: 800; margin-bottom: .75rem; }
.mob-avail-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(255,255,255,.15);
    border-radius: 100px; padding: .3rem .8rem;
    font-size: .8rem; font-weight: 600;
}
.mob-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    padding: .75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.mob-qa {
    display: flex; flex-direction: column;
    align-items: center; gap: .3rem;
    padding: .7rem .25rem;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    text-decoration: none;
    color: var(--gray-600);
    font-size: .65rem; font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
}
.mob-qa:active { background: var(--primary-light); color: var(--primary); transform: scale(.93); }
.mob-qa-icon { font-size: 1.4rem; }
.mob-next-booking {
    margin: .75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--primary-light);
    overflow: hidden;
    color: var(--text);
}
.mob-next-label {
    background: var(--primary-light);
    padding: .4rem 1rem;
    font-size: .7rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: .06em;
}
.mob-next-body {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem;
}
.mob-next-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 46px; height: 50px;
    background: var(--primary); border-radius: var(--radius-sm);
    color: white; font-weight: 800; flex-shrink: 0;
}
.mob-date-day { font-size: 1.2rem; line-height: 1; }
.mob-date-mon { font-size: .62rem; opacity: .85; text-transform: uppercase; }
.mob-next-info { flex: 1; min-width: 0; }
.mob-next-title { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-next-sub   { font-size: .76rem; color: var(--gray-400); }
.mob-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: .75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.mob-stat {
    padding: 1rem .5rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.mob-stat:last-child { border-right: none; }
.mob-stat-v { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.mob-stat-l { font-size: .68rem; color: var(--gray-400); font-weight: 500; margin-top: .2rem; }
.mob-progress-card {
    margin: .75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: .9rem 1rem;
}
.mob-prog-top { display: flex; justify-content: space-between; font-size: .78rem; color: var(--gray-500); margin-bottom: .4rem; font-weight: 600; }
.mob-prog-bg  { height: 8px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.mob-prog-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #9333EA); border-radius: 100px; transition: width .5s; }
.mob-prog-hint { display: block; margin-top: .5rem; font-size: .78rem; color: var(--primary); font-weight: 600; text-decoration: none; }

/* ── Availability calendar (mobile) ─────────────────────────── */
.avail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.avail-month-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
}
.month-nav-btn {
    width: 40px; height: 40px;
    border: none; background: var(--gray-100);
    border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--gray-600); transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.month-nav-btn:active { background: var(--primary-light); color: var(--primary); }
.month-nav-title { font-size: 1.05rem; font-weight: 800; color: var(--gray-800); }
.avail-day-labels { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: .3rem; }
.avail-day-labels span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--gray-400); padding: .2rem 0; }
.avail-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.avail-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: .82rem; font-weight: 600;
    cursor: pointer; position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: 38px;
    transition: transform .1s;
}
.avail-day:active:not(.past):not(.empty) { transform: scale(.85); }
.avail-day.empty   { cursor: default; }
.avail-day.past    { color: var(--gray-200); cursor: default; font-weight: 400; }
.avail-day.today   { box-shadow: 0 0 0 2px var(--primary); font-weight: 800; }
.avail-day.free    { color: var(--gray-700); }
.avail-day.free:hover { background: var(--gray-100); }
.avail-day.booked  { background: #FEE2E2; color: #991B1B; }
.avail-day.blocked { background: var(--gray-100); color: var(--gray-400); }
.avail-legend { display: flex; gap: 1rem; justify-content: center; margin-top: .75rem; flex-wrap: wrap; }
.avail-legend-item { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; color: var(--gray-500); }
.avail-legend-item::before { content:''; width:10px; height:10px; border-radius:50%; }
.avail-free::before  { background: var(--gray-200); }
.avail-book::before  { background: #FEE2E2; border: 1.5px solid #FCA5A5; }
.avail-clos::before  { background: var(--gray-100); border: 1.5px solid var(--gray-200); }
.avail-section-title {
    font-size: .72rem; font-weight: 700; color: var(--gray-400);
    text-transform: uppercase; letter-spacing: .06em;
    padding: 1rem 1rem .4rem;
}
/* Bottom sheet */
.bottom-sheet-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2000;
    align-items: flex-end;
}
.bottom-sheet-overlay.open { display: flex; }
.bottom-sheet {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-sheet-overlay.open .bottom-sheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; background: var(--gray-200); border-radius: 2px; margin: 12px auto 0; }
.sheet-header { padding: 1rem 1.25rem .75rem; border-bottom: 1px solid var(--border); }
.sheet-header h3 { font-size: 1.1rem; margin: 0; }
.sheet-body { padding: 1.25rem; }
.status-btn-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; margin-bottom: 1.25rem; }
.status-btn-big {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem; padding: .9rem .5rem; min-height: 80px;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
    font-size: .8rem; font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
    width: 100%;
}
.status-btn-big .sbb-icon { font-size: 1.6rem; }
.status-btn-big:active { transform: scale(.95); }
.status-btn-big.active[data-status=""]        { border-color:#10B981; background:#D1FAE5; color:#065F46; }
.status-btn-big.active[data-status="booked"]  { border-color:#EF4444; background:#FEE2E2; color:#991B1B; }
.status-btn-big.active[data-status="blocked"] { border-color:#6B7280; background:#F3F4F6; color:#374151; }
/* Upcoming cards */
.upcoming-mobile-list { display: flex; flex-direction: column; gap: .6rem; }
.upcoming-mobile-card {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .9rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.upcoming-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 44px; height: 48px;
    background: var(--primary-light); border-radius: var(--radius-sm);
    font-weight: 800; color: var(--primary); flex-shrink: 0;
}
.upcoming-mobile-card.booked  .upcoming-date-badge { background:#FEE2E2; color:#991B1B; }
.upcoming-mobile-card.blocked .upcoming-date-badge { background:var(--gray-100); color:var(--gray-500); }
.day-num     { font-size: 1.2rem; line-height: 1; }
.month-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.upcoming-info { flex: 1; min-width: 0; }
.ui-title { font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.ui-meta  { font-size: .78rem; color: var(--gray-500); display: flex; flex-direction: column; gap: .1rem; }
.mob-padded { padding-bottom: 72px; }

/* ── MEDIA QUERY: Apply mobile styles ────────────────────────── */
@media (max-width: 767px) {
    /* Show mobile nav */
    .mob-nav {
        display: flex;
        height: 60px;
    }
    /* Hide desktop sidebar */
    .dash-sidebar { display: none !important; }
    /* Full width */
    .dash-layout { grid-template-columns: 1fr; }
    /* Content areas */
    .mob-only  { display: block; }
    .desk-only { display: none !important; }
    .dash-content { padding: 0; }
}

/* ── MEDIA QUERY: Desktop ────────────────────────────────────── */
@media (min-width: 768px) {
    .mob-nav   { display: none !important; }
    .mob-only  { display: none !important; }
    .desk-only { display: block; }
    .mob-padded { padding-bottom: 0; }
    .dash-sidebar { display: flex !important; flex-direction: column; }
}

/* ── Popular categories (homepage) ──────────────────────────── */
.pop-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 480px)  { .pop-cats-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px)  { .pop-cats-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .pop-cats-grid { grid-template-columns: repeat(6,1fr); } }
.pop-cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1.5rem 1rem;
    background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text); transition: all .2s; text-align: center;
}
.pop-cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pop-cat-icon  { font-size: 2.2rem; }
.pop-cat-name  { font-weight: 700; font-size: .92rem; color: var(--gray-700); }
.pop-cat-count { font-size: .75rem; color: var(--gray-400); }

/* ── Calendar day icon ───────────────────────────────────────── */
.cal-day { position: relative; }
.cal-day-icon { position: absolute; bottom: 1px; right: 1px; font-size: .55rem; }
.dash-neutral { background: #fff; color: var(--gray-400); border-color: var(--gray-200); cursor: pointer; }
.dash-neutral:hover { background: #F5F3FF; border-color: #C4B5FD; }
.dash-avail  { background: #D1FAE5; color: #065F46; cursor: pointer; }
.dash-avail:hover { background: #6EE7B7; }
.dash-booked  { background: #FEE2E2; color: #991B1B; cursor: pointer; }
.dash-blocked { background: var(--gray-200); color: var(--gray-500); cursor: pointer; }

/* ── Social bar ──────────────────────────────────────────────── */
.social-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0; }
.social-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem 1rem; border-radius: 100px;
    font-size: .82rem; font-weight: 600; text-decoration: none;
    background: var(--sbg); color: var(--sc);
    border: 1.5px solid transparent; transition: all .2s; white-space: nowrap;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.social-btn { color: var(--sc, #333); }
/* ============================================================
   Senior UX responsive fixes — mobile + desktop
   ============================================================ */
:root { --tap: 44px; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.form-control, .btn, button { min-height: var(--tap); }
input, select, textarea { font-size: 16px; }
.table-responsive, .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
.badge { display:inline-flex; align-items:center; gap:.25rem; border-radius:999px; padding:.25rem .55rem; font-size:.78rem; font-weight:600; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.hero-search-v2 { display:grid; gap:.75rem; }
.hs-divider { display:none; }
.vendor-grid, .categories-grid, .stats-grid, .dashboard-grid { display:grid; gap:1rem; }
.vendor-card, .category-card { min-width:0; }
.nav-toggle { min-width:44px; min-height:44px; }
@media (max-width: 767px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .navbar { position: sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid var(--border); }
  .navbar-inner { min-height:64px; }
  .nav-links { position: fixed; top:64px; left:0; right:0; display:none; flex-direction:column; background:#fff; padding:1rem; border-bottom:1px solid var(--border); box-shadow:var(--shadow); }
  .nav-links.active { display:flex; }
  .nav-links a { display:flex; min-height:44px; align-items:center; }
  .hero { padding: 2rem 0; }
  .hero-content h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-search-wrap { margin-top:1.25rem; }
  .hero-search-v2 { background:#fff; border:1px solid var(--border); border-radius:20px; padding:1rem; box-shadow:var(--shadow); }
  .hs-field label { display:block; font-size:.8rem; font-weight:700; margin-bottom:.25rem; color:var(--gray-700); }
  .vendor-hero-inner, .auth-container, .footer-inner { display:grid !important; grid-template-columns:1fr !important; gap:1rem; }
  .vendor-cover img, .vendor-cover > div { width:100% !important; height:auto !important; aspect-ratio: 4 / 3; object-fit:cover; }
  .card-body, .card-header { padding:1rem; }
  .admin-sidebar { position:relative !important; width:100% !important; min-height:auto !important; }
  .admin-main { margin-left:0 !important; padding:1rem !important; }
}
@media (min-width: 768px) {
  .hero-search-v2 { grid-template-columns: 1.1fr 1fr 1fr 1fr auto; align-items:end; background:#fff; border-radius:24px; padding:1rem; box-shadow:var(--shadow-lg); }
  .hs-field label { display:block; font-size:.8rem; font-weight:700; margin-bottom:.25rem; color:var(--gray-700); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .vendor-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1120px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .vendor-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Add this at the end of your existing style.css */

@media (max-width: 768px) {
  .vendor-hero h1,
  .vendor-title,
  .vendor-name {
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin-bottom: 8px;
  }
}


/* ============================================================
   GLENTI – Professional Hero + Header polish (safe overrides)
   Keeps all existing search/form functionality unchanged
   ============================================================ */
.main-header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.hero {
  isolation: isolate;
  min-height: 560px;
  padding: 3.7rem 0 4.1rem;
  background:
    radial-gradient(circle at 18% 16%, rgba(245,158,11,.20) 0 11%, transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(255,255,255,.18) 0 9%, transparent 28%),
    linear-gradient(135deg, #4c1d95 0%, #6d28d9 42%, #8b5cf6 100%);
}

.hero::before {
  opacity: .82;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1.5px, transparent 0);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.78));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.78));
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -7% -30% -7%;
  height: 48%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(15,23,42,.18), transparent 64%);
  pointer-events: none;
}

.hero-content {
  max-width: 1120px;
}

.hero-logo-mark {
  width: 88px !important;
  height: 88px !important;
  margin-bottom: .9rem !important;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 55px rgba(31, 18, 76, .26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-logo-mark img {
  width: 74% !important;
  height: 74% !important;
}

.hero h1 {
  margin: 0 auto .75rem;
  max-width: 780px;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-shadow: 0 15px 40px rgba(15,23,42,.22);
}

.hero p {
  margin-bottom: 2.15rem;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 600;
}

.hero-search-wrap {
  max-width: 1085px !important;
}

.hero-search-v2 {
  border-radius: 24px !important;
  padding: .72rem !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(17,24,39,.22), 0 8px 18px rgba(76,29,149,.16) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hs-field {
  border-radius: 16px;
  transition: background .18s ease, box-shadow .18s ease;
}

.hs-field:hover {
  background: #f8fafc;
}

.hs-field label:first-child {
  color: #64748b !important;
  font-weight: 900 !important;
  letter-spacing: .075em !important;
}

.hs-control,
.hero-date-field::before {
  color: #111827 !important;
  font-weight: 700 !important;
}

.hs-divider {
  background: #e2e8f0 !important;
}

.weekend-pill {
  min-height: 40px !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 800 !important;
  background: #fff;
}

.weekend-toggle input:checked + .weekend-pill {
  background: #5b21b6 !important;
  border-color: #5b21b6 !important;
  color: #fff !important;
}

.hs-btn,
.mobile-hero-btn {
  min-height: 48px;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(245,158,11,.28);
  font-weight: 900 !important;
}

.hs-btn:hover,
.mobile-hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(245,158,11,.34);
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding: 2.4rem 0 3rem;
  }
  .hero-logo-mark {
    width: 72px !important;
    height: 72px !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    letter-spacing: -.035em;
  }
  .hero p {
    margin-bottom: 1.45rem;
    font-size: .98rem;
  }
  .hero-search-v2,
  .hero-search-mobile {
    border-radius: 22px !important;
  }
}

.cal-legend-dot.neutral{background:#e5e7eb;}
