:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --wash: #f8fafc;
  --blue: #3b82f6;
  --green: #10b981;
  --yellow: #f59e0b;
  --shadow: 0 18px 50px rgba(18, 45, 92, 0.08);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --font-display: 'Comfortaa', cursive;
  --font-main: 'Baloo 2', 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  background: var(--wash);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 70px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }
  .brand { font-size: 20px; }
  .brand-mark { width: 28px; height: 28px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
}

.brand strong {
  color: var(--blue);
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .brand-logo { width: 28px; height: 28px; }
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, #3b82f6 0 25%, transparent 26%),
    radial-gradient(ellipse at 30% 68%, #22c55e 0 26%, transparent 27%),
    radial-gradient(ellipse at 70% 68%, #22c55e 0 26%, transparent 27%),
    linear-gradient(160deg, #ecfdf5, #ffffff);
  box-shadow: inset 0 0 0 1px #d1fae5;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-weight: 650;
}

.status-pill,
.freshness {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #c7e7d5;
  border-radius: 8px;
  background: #ecf9f2;
  color: #115f34;
  font-weight: 750;
}

.status-pill span,
.freshness::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px #bdeccc;
}

.shell {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto;
  --parallax-offset: 0px;
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
}

.shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 70% 20%, #e0f2fe 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  transform: translateY(var(--parallax-offset));
  transition: transform 0.1s ease-out;
}

.hero-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 62px 0 42px;
  transition: min-height 0.5s ease-out, padding 0.5s ease-out;
}

.hero-band.hero-compact {
  min-height: 0;
  padding: 40px 0 30px;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 84px 28% auto 35%;
  height: 190px;
  background: url("arad-watercolor.png") center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.hero-centered .hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(32px, 8vw, 76px);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
}

.hero-copy h1::first-line {
  color: var(--ink);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.searchbar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 860px;
}

@media (min-width: 768px) {
  .searchbar { flex-direction: row; align-items: stretch; }
}

.pin {
  position: absolute;
  left: 20px;
  z-index: 1;
  color: var(--blue);
  font-weight: 900;
}

.search-input-group {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid #2b6df6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

@media (min-width: 640px) {
  .search-input-group { flex-direction: row; align-items: center; height: 66px; }
}

.inline-filter {
  height: 54px;
  padding: 0 12px 0 48px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 750;
  outline: none;
  cursor: pointer;
  appearance: none;
  width: 100%;
}

@media (min-width: 640px) {
  .inline-filter { height: 100%; width: auto; min-width: 180px; border-bottom: 0; border-right: 1px solid #e2e8f0; }
}

.search-input-group input {
  flex: 1;
  height: 100%;
  padding: 0 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.searchbar button,
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.searchbar button,
.button.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
}

.filter-row select {
  min-width: 250px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 80;
  width: min(620px, calc(100vw - 48px));
  margin-top: 4px;
  max-height: 340px;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-results button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.week-card,
.calendar-panel,
.next-card,
.upcoming-panel,
.source-panel,
.result-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.week-card {
  position: relative;
  z-index: 1;
  padding: 28px 34px;
}

.week-card-head,
.calendar-head,
.result-head,
.upcoming-row,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.week-card-head {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 800;
}

.ghost-buttons {
  display: flex;
  gap: 8px;
}

.ghost-buttons span,
.calendar-head button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.week-day {
  min-height: 106px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.week-day:last-child {
  border-right: 0;
}

.week-label {
  color: var(--muted);
  font-weight: 800;
}

.week-number {
  font-size: 28px;
  font-weight: 850;
}

.dots {
  display: flex;
  gap: 5px;
  min-height: 14px;
}

.dot,
.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
}

.mini-legend,
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 22px;
  color: #263553;
}

.program-flow {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 70px;
}

.main-column {
  min-width: 0;
}

.result-head {
  padding: 26px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
}

.result-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.result-head p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.next-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
  padding: 34px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid var(--line);
  overflow: hidden;
}

.next-card h3 {
  margin: 0 0 8px;
  font-size: 42px;
  color: #0f172a;
}

.next-card p {
  margin: 8px 0;
  font-size: 20px;
}

.next-content {
  display: flex;
  flex-direction: column;
}

.next-type {
  font-size: 24px !important;
}

.next-time {
  color: #64748b;
  font-size: 16px !important;
}

.bin-visual {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bin-visual img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
  mix-blend-mode: multiply;
}

.calendar-panel {
  padding: 24px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button.sm {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 14px;
}

.source-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.source-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.source-actions {
  display: flex;
  gap: 8px;
}

.calendar-head h3 {
  min-width: 220px;
  margin: 0;
  text-align: center;
  font-size: 24px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--line);
  gap: 1px;
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 100px);
  }
}

.weekday-cell,
.day-cell {
  min-height: 88px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday-cell {
  min-height: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.day-cell {
  display: grid;
  align-content: start;
  gap: 8px;
  font-weight: 800;
  background: #fff;
  min-height: 110px;
}

.day-cell.muted {
  color: #a9b4c7;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .day-cell { min-height: 90px; padding: 8px; }
  .weekday-cell { padding: 8px; font-size: 11px; }
}

.event-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef5ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

a.event-chip:hover,
.source-arrow:hover,
.source-panel a:hover,
.site-footer a:hover,
.print-notes a:hover {
  text-decoration: underline;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.upcoming-panel,
.source-panel {
  padding: 24px;
}

.upcoming-panel h3,
.source-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.upcoming-list {
  display: grid;
  gap: 10px;
}

.upcoming-row {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.date-badge {
  width: 58px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
}

.date-badge small {
  color: var(--muted);
}

.waste-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.upcoming-copy {
  flex: 1;
  min-width: 0;
}

.upcoming-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.upcoming-copy span,
.source-panel p {
  color: var(--muted);
}

.source-arrow {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

.source-panel {
  background: #edf9f3;
  border-color: #ccefdc;
}

.print-body {
  background: #eef4fb;
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.print-toolbar a,
.print-toolbar button,
.back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.print-toolbar button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.paper {
  width: 297mm;
  height: 210mm;
  margin: 32px auto;
  padding: 12mm 15mm;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  color: #203150;
  font-weight: 800;
}

.print-brand {
  font-size: 22px;
}

.paper h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.paper h2 {
  margin: 0 0 24px;
  color: var(--blue);
}

.print-calendar {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 12px;
}

.print-weekday,
.print-day {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.print-weekday {
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
  color: #273754;
  font-size: 12px;
  font-weight: 850;
}

.print-day {
  padding: 8px;
  font-weight: 850;
  display: flex;
  flex-direction: column;
}

.print-day.muted {
  color: #b4bfd2;
  background: #f9fbff;
}

.print-event {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 11px;
}

.print-event i,
.print-legend i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.print-legend {
  display: flex;
  gap: 34px;
  margin: 22px 0;
}

.print-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.print-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.print-notes div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcff;
}

.print-notes h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.print-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.print-credit,
.site-footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  padding: 40px 0 64px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0;
}

.developer-credit {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dev-credit-left {
  font-size: 14px;
  color: #64748b;
}

.dev-credit-left a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dev-credit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dev-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.dev-action-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.dev-action-btn--support {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.dev-action-btn--support:hover {
  background: #a7f3d0;
}

.dev-version {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.site-footer a,
.source-panel a,
.print-notes a {
  color: var(--blue);
  font-weight: 800;
}

.text-page,
.map-page {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.text-page h1,
.map-copy h1 {
  max-width: 900px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.text-page h2 {
  margin-top: 36px;
}

.text-page p,
.text-page li,
.map-copy p {
  max-width: 840px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.credit-line {
  padding: 18px;
  border: 1px solid #ccefdc;
  border-radius: 8px;
  background: #edf9f3;
}

.map-page {
  width: min(1500px, calc(100% - 48px));
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.map-frame,
.map-panel,
.map-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-frame {
  overflow: hidden;
  height: 600px;
  z-index: 1;
}

.map-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.map-panel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.map-panel select,
.map-panel input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.map-results {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.map-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  box-shadow: none;
}

.map-result strong,
.map-result span {
  display: block;
}

.map-result span,
.quiet {
  color: var(--muted);
}

.map-result a {
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 24px 18px;
  }

  .topnav {
    display: none;
  }

  .status-pill {
    display: none;
  }

  .shell {
    width: min(100% - 32px, 720px);
  }

  .hero-band,
  .program-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    gap: 28px;
    padding: 44px 0 34px;
  }

  .hero-band::before {
    inset: 140px 0 auto 0;
  }

  .searchbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .searchbar input {
    grid-column: auto;
    height: 58px;
  }

  .search-results {
    position: static;
    width: 100%;
    max-height: 260px;
    margin-top: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.04;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .filter-row {
    align-items: stretch;
  }

  .filter-row select,
  .filter-row span {
    width: 100%;
  }

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

  .bin-visual {
    width: 120px;
    margin: 0 auto;
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.day-cell {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  min-height: 110px;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 640px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 100px);
    gap: 8px;
  }
  .day-cell {
    padding: 8px;
    min-height: 90px;
  }
}

  .print-toolbar {
    position: static;
    flex-direction: column;
  }

.paper {
  background: #fffef5;
  width: 297mm;
  height: 210mm;
  padding: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-sizing: border-box;
  font-family: 'Baloo 2', 'Comfortaa', sans-serif;
  border: 3px solid #a7f3d0;
}

/* Rainbow top stripe */
.paper::before {
  content: '';
  display: block;
  height: 6mm;
  background: linear-gradient(90deg,#f87171,#fb923c,#fbbf24,#34d399,#60a5fa,#a78bfa,#f472b6);
  flex-shrink: 0;
}

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3mm 10mm 3mm;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border-bottom: 2px dashed #a7f3d0;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

/* Floating decorative emojis */
.deco-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-stars span {
  position: absolute;
  line-height: 1;
  animation: none;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  font-family: 'Comfortaa', cursive;
}

.brand-name strong {
  color: #059669;
}

.brand-tagline {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
  margin-top: 2px;
}

.print-address-block {
  text-align: right;
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1.5px solid #d1fae5;
}

.print-street {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.print-district {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.print-month-label {
  font-size: 18px;
  font-weight: 900;
  color: #059669;
  font-family: 'Comfortaa', cursive;
}

.print-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  flex: 1;
  overflow: hidden;
}

.print-weekday {
  background: #059669;
  padding: 5px 6px;
  text-align: center;
  font-weight: 900;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.print-day {
  background: #fff;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.print-day.weekend {
  background: #fafff8;
}

.print-day.muted {
  background: #f9fafb;
  opacity: 0.5;
}

.day-num {
  font-weight: 900;
  font-size: 13px;
  color: #334155;
  line-height: 1;
  margin-bottom: 2px;
  font-family: 'Comfortaa', cursive;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.print-event {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 8px;
  font-weight: 800;
}

.event-emoji {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.event-label {
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.2;
}

.print-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10mm;
  background: #f8fffe;
  border-bottom: 1px solid #d1fae5;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.print-legend-row::before {
  content: "Legendă:";
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
  white-space: nowrap;
}

.legend-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.cute-footer {
  padding: 3mm 10mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  background: linear-gradient(90deg, #ecfdf5, #eff6ff, #fdf4ff);
  border-top: 2px dashed #a7f3d0;
  flex-shrink: 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-credit-main {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e293b;
}

.footer-credit-sub {
  font-size: 9px;
  font-weight: 500;
  color: #94a3b8;
}

.footer-legend {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  body {
    background: #fff;
    padding: 0;
  }

  .print-toolbar {
    display: none;
  }

  .paper {
    width: 100%;
    height: 100vh;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

  .paper::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.map-pin-btn { background: #e0e0e0; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.9em; }
.map-pin-btn:hover { background: #d0d0d0; }

.next-content .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: #e2e8f0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #64748b;
  margin-bottom: 12px;
}

/* Modal & Premium Form */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay[hidden],
[hidden] {
  display: none !important;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.modal-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group input[readonly] {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.price-tag {
  margin: 0;
  font-size: 15px;
}

.price-tag strong {
  font-size: 20px;
  color: var(--ink);
}

.modal-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-content { padding: 32px 24px; }
}

.payment-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 750;
}

.payment-radio:has(input:checked),
.delivery-option:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.payment-radio input,
.delivery-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-option .opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delivery-option strong {
  font-size: 14px;
}

.delivery-option span {
  font-size: 12px;
  color: var(--muted);
}

#order-quantity {
  width: 100%;
  text-align: center;
  font-weight: 750;
}
