/* ============================================================
   AL KATALOG — Design System
   Premium light-mode UI inspired by Apple / Stripe / Linear
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── TOKENS ── */
:root {
  --white:      #ffffff;
  --off-white:  #fafaf9;
  --cream:      #f5f3ef;
  --stone-100:  #f1ede8;
  --stone-200:  #e2dbd4;
  --stone-300:  #c8bfb5;
  --stone-500:  #8c7d70;
  --stone-700:  #4a3f35;
  --ink:        #1a1410;
  --accent:     #c9683a;
  --accent-lt:  #f3ede8;
  --accent-dk:  #a3501f;
  --gold:       #d4a853;
  --green:      #3a7d44;
  --green-lt:   #eaf3ec;
  --red:        #c03a3a;
  --red-lt:     #fdf0f0;
  --blue:       #3a5fc9;
  --blue-lt:    #eef1fb;

  --shadow-xs:  0 1px 2px rgba(26,20,16,0.05);
  --shadow-sm:  0 2px 8px rgba(26,20,16,0.08);
  --shadow-md:  0 4px 24px rgba(26,20,16,0.10);
  --shadow-lg:  0 12px 48px rgba(26,20,16,0.12);
  --shadow-xl:  0 24px 80px rgba(26,20,16,0.15);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}
.text-lg  { font-size: 1.125rem; line-height: 1.7; }
.text-md  { font-size: 1rem;     line-height: 1.7; }
.text-sm  { font-size: 0.875rem; line-height: 1.6; }
.text-xs  { font-size: 0.75rem;  line-height: 1.5; }
.text-muted  { color: var(--stone-500); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.font-display { font-family: var(--font-display); }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── GRID ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── FLEX ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(26,20,16,0.25);
}
.btn-primary:hover {
  background: var(--stone-700);
  box-shadow: 0 4px 20px rgba(26,20,16,0.30);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(201,104,58,0.30);
}
.btn-accent:hover {
  background: var(--accent-dk);
  box-shadow: 0 4px 20px rgba(201,104,58,0.40);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--stone-200);
}
.btn-outline:hover {
  border-color: var(--stone-300);
  background: var(--stone-100);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--stone-700);
  padding: 12px 20px;
}
.btn-ghost:hover { background: var(--stone-100); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-ink    { background: var(--ink); color: var(--white); }
.badge-accent { background: var(--accent-lt); color: var(--accent); }
.badge-green  { background: var(--green-lt); color: var(--green); }
.badge-blue   { background: var(--blue-lt); color: var(--blue); }
.badge-stone  { background: var(--stone-100); color: var(--stone-700); }
.badge-red    { background: var(--red-lt); color: var(--red); }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  overflow: hidden;
  transition: all var(--transition-slow);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--stone-300);
}
.card-pad { padding: 28px; }

/* ── PROVIDER CARD ── */
.provider-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(200,191,181,0.5);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.provider-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px) scale(1.01);
}
.provider-card .cover {
  height: 220px;
  object-fit: cover;
  width: 100%;
  background: var(--cream);
}
.provider-card .cover-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--stone-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.provider-card .card-body { padding: 20px; }
.provider-card .avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.provider-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  background: var(--stone-200);
}
.provider-card .avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stone-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-700);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  appearance: none;
}
.form-control::placeholder { color: var(--stone-300); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,104,58,0.12);
}
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c7d70' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.form-hint { font-size: 0.8125rem; color: var(--stone-500); margin-top: 5px; }
.form-error { font-size: 0.8125rem; color: var(--red); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── NAV ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,219,212,0.6);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--stone-700);
  transition: all var(--transition);
}
.nav-link:hover { background: var(--stone-100); color: var(--ink); }
.nav-link.active { color: var(--accent); }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,104,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,83,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-lt);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  border: 1px solid rgba(201,104,58,0.15);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--stone-500);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--ink);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-item .number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-item .label { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── CATEGORY CARDS ── */
.category-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--stone-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(201,104,58,0.04) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
}
.category-card p { font-size: 0.9375rem; color: var(--stone-500); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-xs);
}
.testimonial-stars { color: var(--gold); font-size: 0.875rem; margin-bottom: 16px; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--stone-700);
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--stone-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

/* ── AUTH PAGE ── */
.auth-page {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--stone-200);
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}
.auth-logo span { color: var(--accent); }
.auth-subtitle { font-size: 0.9375rem; color: var(--stone-500); margin-bottom: 36px; }

/* ── ROLE TOGGLE ── */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--stone-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}
.role-tab {
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--stone-500);
  cursor: pointer;
  transition: all var(--transition);
}
.role-tab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── ALERT ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-error { background: var(--red-lt); color: var(--red); border: 1px solid rgba(192,58,58,0.15); }
.alert-success { background: var(--green-lt); color: var(--green); border: 1px solid rgba(58,125,68,0.15); }
.alert-info { background: var(--blue-lt); color: var(--blue); border: 1px solid rgba(58,95,201,0.15); }

/* ── DASHBOARD ── */
.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--off-white);
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--stone-200);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 12px;
}
.sidebar-logo .logo { font-size: 1.25rem; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--stone-500);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav-item:hover {
  background: var(--stone-100);
  color: var(--ink);
}
.sidebar-nav-item.active {
  color: var(--accent);
  background: var(--accent-lt);
  border-left-color: var(--accent);
}
.sidebar-nav-item .icon { font-size: 1.125rem; width: 20px; text-align: center; }
.sidebar-section-label {
  padding: 16px 24px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-300);
}
.dashboard-main { padding: 36px 40px; overflow-x: hidden; }
.dashboard-header { margin-bottom: 36px; }
.dashboard-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.dashboard-subtitle { font-size: 1rem; color: var(--stone-500); margin-top: 4px; }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-xs);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card .stat-label { font-size: 0.875rem; color: var(--stone-500); }
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* ── TABLE ── */
.table-wrap { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--stone-200); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--stone-100); }
th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-500);
}
td {
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--stone-700);
  border-top: 1px solid var(--stone-100);
}
tbody tr:hover { background: var(--off-white); }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--stone-200);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-lt);
}
.upload-zone .icon { font-size: 2rem; margin-bottom: 12px; color: var(--stone-300); }

/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.portfolio-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--stone-100);
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,20,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.portfolio-item:hover .overlay { background: rgba(26,20,16,0.3); }
.portfolio-item .delete-btn {
  background: var(--white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.875rem;
}
.portfolio-item:hover .delete-btn { opacity: 1; }

/* ── CALENDAR ── */
.calendar {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--stone-200);
  overflow: hidden;
}
.calendar-header {
  padding: 16px 20px;
  background: var(--stone-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--stone-200);
}
.calendar-day-name {
  background: var(--stone-100);
  text-align: center;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-500);
}
.calendar-day {
  background: var(--white);
  padding: 8px;
  min-height: 40px;
  text-align: center;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
}
.calendar-day:hover { background: var(--stone-100); }
.calendar-day.today { font-weight: 600; color: var(--accent); }
.calendar-day.booked { background: var(--red-lt); color: var(--red); cursor: not-allowed; }
.calendar-day.selected { background: var(--accent); color: var(--white); border-radius: 4px; }
.calendar-day.other-month { color: var(--stone-300); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--stone-500);
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--stone-200); color: var(--ink); }

/* ── RATING STARS ── */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--stone-200);
  margin: 24px 0;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--stone-500);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.125rem; color: var(--stone-700); margin-bottom: 8px; }

/* ── SPINNER ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up { animation: fadeUp 0.5s ease both; }
.anim-fade-up-1 { animation: fadeUp 0.5s 0.1s ease both; }
.anim-fade-up-2 { animation: fadeUp 0.5s 0.2s ease both; }
.anim-fade-up-3 { animation: fadeUp 0.5s 0.3s ease both; }

/* ── MOBILE MENU ── */
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--stone-200);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile-toggle { display: flex; }
  .hero { padding: 60px 0 48px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .dashboard-main { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── UTILITY ── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-relative { position: relative; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.no-shrink { flex-shrink: 0; }


/* ================= MOBILE BASE ================= */
@media (max-width: 768px) {

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-headline {
    font-size: 2.2rem !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn-lg {
    width: 100%;
  }

}



/* ================= MOBILE NAV ================= */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateX(100%);
    transition: 0.3s ease;
    z-index: 200;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

}


/* ================= DASHBOARD MOBILE ================= */
@media (max-width: 768px) {

  .dashboard-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 16px;
  }

  #mobile-nav {
    display: flex !important;
  }

}


/* ================= TABLE FIX ================= */
@media (max-width: 768px) {

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }

}


/* ================= CARDS MOBILE ================= */
@media (max-width: 768px) {

  .provider-card .cover {
    height: 160px;
  }

  .provider-card {
    border-radius: 16px;
  }

}



/* ================= APP FEEL ================= */
@media (max-width: 768px) {

  body {
    background: #f7f7f7;
  }

  .card,
  .provider-card,
  .auth-card {
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  }

  .navbar {
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

}
