:root {
  --primary: #2563eb;
  --secondary: #22c55e;
  --dark: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 18px;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

a { text-decoration: none; color: var(--primary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 700; font-size: 1.1rem; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: 0;
}

.btn.secondary { background: var(--secondary); }
.btn.ghost { background: transparent; color: var(--primary); padding: 12px 12px; }

.section { padding: 96px 0; }
.section.muted { background: #ffffff; }
.section.center { text-align: center; }

.hero-grid { display: grid; gap: 64px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
.hero-grid h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0; }
.hero-grid p { font-size: 1.15rem; color: var(--muted); max-width: 520px; }

.hero-mock {
  height: 380px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #9ca3af;
}

.steps { display: grid; gap: 32px; margin-top: 56px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.cards { display: grid; gap: 32px; margin-top: 56px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.pills span { padding: 12px 20px; background: #eef2ff; border-radius: 999px; font-weight: 500; }

.cta-final {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 96px 24px;
}
.cta-final p { color: #c7d2fe; max-width: 620px; margin: 16px auto 40px; }

/* AUTH + FORMS (asta lipsea si ti-a stricat UI) */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-card h1 { margin: 0 0 10px; font-size: 2rem; }
.auth-card p { margin: 0 0 24px; color: var(--muted); }

.form-grid { display: grid; gap: 16px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--dark);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-link { color: inherit; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-head {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.dash-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.dash-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

@media (min-width: 980px) {
  .dash-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title {
  margin: 0;
  font-size: 1.2rem;
}

.form-inline {
  display: grid;
  gap: 14px;
}

@media (min-width: 980px) {
  .form-inline {
    grid-template-columns: 2.2fr 1fr 1fr 0.9fr;
    align-items: end;
  }
}

.form-inline .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-inline .field input,
.form-inline .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--dark);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.table th,
.table td {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.cell-strong { font-weight: 700; }
.cell-actions { width: 1%; white-space: nowrap; text-align: right; }
.muted { color: var(--muted); }

.btn-danger {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .10);
  color: #991b1b;
  font-weight: 700;
  cursor: pointer;
}

.empty {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  color: var(--muted);
}

.hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.dropdown {
  position: relative;
  outline: none;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  z-index: 30;
}

.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--dark);
  font-weight: 600;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown-item.danger {
  color: #991b1b;
}

.provider-hero {
  display: grid;
  gap: 24px;
}

@media (min-width: 980px) {
  .provider-hero {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
    gap: 28px;
  }
}

.provider-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.9rem;
}

.provider-title {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.provider-desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.provider-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-trust {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  flex: 0 0 auto;
}

.trust-text {
  color: var(--muted);
  font-weight: 600;
}

.provider-side .side-card {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0;
  font-size: 1.25rem;
}

.side-text {
  margin: 10px 0 0;
  color: #c7d2fe;
}

.side-steps {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.side-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.side-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.side-step-text {
  color: #e2e8f0;
  font-weight: 700;
  line-height: 1.35;
}

.hero-mock-wrap {
  display: flex;
  justify-content: center;
}

.mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(2,6,23,.04), rgba(2,6,23,.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: mock-float 5.5s ease-in-out infinite;
  overflow: hidden;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 800;
  font-size: 0.92rem;
}

.mockup-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
  font-weight: 700;
  font-size: 0.92rem;
}

.mockup-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 18px;
  position: relative;
  z-index: 2;
}

.mockup-title {
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.mockup-sub {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.mockup-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 520px) {
  .mockup-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .mockup-field-full {
    grid-column: 1 / -1;
  }
}

.mockup-label {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.86);
}

.mockup-select {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.03);
}

.mockup-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, 0.55);
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  transform: rotate(45deg);
  margin-top: -2px;
}

.mockup-calendar {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.03);
}

.cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-head span {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding-bottom: 8px;
}

.cal-num {
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
  background: rgba(2, 6, 23, 0.03);
}

.cal-active {
  background: rgba(37, 99, 235, 0.12);
  color: rgba(30, 64, 175, 1);
  outline: 2px solid rgba(37, 99, 235, 0.22);
  animation: mock-pulse 2.2s ease-in-out infinite;
}

.mockup-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.02);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
}

.time-active {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .10);
  color: rgba(22, 101, 52, 1);
  animation: mock-shimmer 2.6s ease-in-out infinite;
}

.mockup-btn {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.16);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.mockup-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.18);
}

.mockup-arrow {
  font-weight: 900;
  animation: mock-nudge 1.8s ease-in-out infinite;
}

.mockup-trust {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.mockup-glow {
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.18), transparent 42%),
              radial-gradient(circle at 70% 55%, rgba(34,197,94,.14), transparent 42%),
              radial-gradient(circle at 50% 90%, rgba(2,6,23,.08), transparent 55%);
  filter: blur(24px);
  opacity: .9;
  z-index: 1;
  animation: mock-glow 7.5s ease-in-out infinite;
}

@keyframes mock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mock-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: .85; }
  50% { transform: translateY(-10px) scale(1.02); opacity: 1; }
}

@keyframes mock-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes mock-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.07); }
}

@keyframes mock-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup, .cal-active, .time-active, .mockup-arrow, .mockup-glow {
    animation: none !important;
  }
}

.mockup-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.mp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}

.mp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
}

.mp-line {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.06);
  overflow: hidden;
  position: relative;
}

.mp-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.30);
  animation: mp-flow 3.6s ease-in-out infinite;
}

.mp-s1 .mp-dot { background: rgba(37, 99, 235, 0.55); }
.mp-s2 .mp-dot { background: rgba(37, 99, 235, 0.35); }
.mp-s3 .mp-dot { background: rgba(34, 197, 94, 0.35); }

@keyframes mp-flow {
  0% { width: 0%; }
  35% { width: 55%; }
  70% { width: 100%; }
  100% { width: 0%; }
}

.mock-anim-select {
  position: relative;
  overflow: hidden;
}

.mock-anim-select::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.10), transparent);
  animation: mock-sweep 3.2s ease-in-out infinite;
}

@keyframes mock-sweep {
  0%, 45% { transform: translateX(-120%); }
  65% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.mock-anim-cal {
  animation: cal-breathe 4.4s ease-in-out infinite;
}

@keyframes cal-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.time-anim {
  position: relative;
  overflow: hidden;
}

.time-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.12), transparent);
  animation: time-sweep 4.0s ease-in-out infinite;
}

.time-anim.t1 { animation: time-pop 4s ease-in-out infinite; }
.time-anim.t2 { animation: time-pop 4s ease-in-out infinite .6s; }
.time-anim.t3 { animation: time-pop 4s ease-in-out infinite 1.2s; }
.time-anim.t4 { animation: time-pop 4s ease-in-out infinite 1.8s; }

@keyframes time-pop {
  0%, 78%, 100% { transform: translateY(0); }
  82% { transform: translateY(-2px); }
  86% { transform: translateY(0); }
}

@keyframes time-sweep {
  0%, 60% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.mock-anim-btn {
  position: relative;
  overflow: hidden;
}

.mock-anim-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 50%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: btn-glint 4.2s ease-in-out infinite;
}

@keyframes btn-glint {
  0%, 68% { left: -60%; }
  82% { left: 120%; }
  100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-fill,
  .mock-anim-select::after,
  .mock-anim-cal,
  .time-anim,
  .time-anim::after,
  .mock-anim-btn::after {
    animation: none !important;
  }
}

.time-picker {
  position: relative;
}

.time-picker input {
  cursor: pointer;
}

.tp-panel {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  z-index: 50;
}

.tp-hours, .tp-minutes {
  max-height: 220px;
  overflow-y: auto;
}

.tp-item {
  padding: 10px 14px;
  cursor: pointer;
}

.tp-item:hover {
  background: #2563eb;
  color: #fff;
}

.tp {
  position: relative;
}

.tp-input {
  width: 100%;
  cursor: pointer;
}

.tp-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  padding: 12px;
  width: 260px;
  z-index: 100;
}

.tp-hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.tp-minutes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tp-btn {
  padding: 8px 0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  background: #f1f5f9;
}

.tp-btn:hover {
  background: #2563eb;
  color: #fff;
}

.tp-btn.active {
  background: #2563eb;
  color: #fff;
}
.field-time {
  overflow: visible;
}

.tp-wrap {
  position: relative;
  width: 100%;
  min-width: 120px;
}

.tp-input {
  width: 100%;
  min-width: 110px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tp-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  max-width: 90vw;
  z-index: 1000;
}

/* WIDGET EMPTY STATE */

.widget-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.widget-empty {
  margin-top: 16px;
  padding: 26px 22px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,.04),
    rgba(34,197,94,.04)
  );
  border: 1px dashed var(--border);
  text-align: center;
}

.we-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.we-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.we-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.widget-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

