:root {
  --bg: #0b0f19;
  --card: #121826;
  --text: #e8eefc;
  --muted: #a9b3c9;
  --accent: #60a5fa;
  --warning: #f59e0b;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  -webkit-text-size-adjust: 100%; /* sprječava iOS auto-zoom */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  background: radial-gradient(1000px 600px at 10% -10%, #1e293b 0%, transparent 60%),
              radial-gradient(1000px 500px at 110% 10%, #0ea5e9 0%, transparent 40%),
              var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  line-height: 1.5;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: color-mix(in oklab, var(--card) 85%, #000 15%);
  border: 1px solid color-mix(in oklab, #334155 60%, #0b0f19 40%);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.04) inset;
  padding: clamp(20px, 4vw, 36px);
}

.price-info {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, #000);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 14px;
  color: var(--text);
  font-size: 1rem;
}

h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px;
}

.lead {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1.05rem;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2d3748;
  background: #1e2535;
  color: var(--text);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37,99,235,.4);
  transition: transform .06s ease;
  display: inline-block;
  text-align: center;
  margin-top: 14px;
}

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

.notice {
  background: color-mix(in oklab, var(--warning) 18%, transparent);
  border: 1px dashed color-mix(in oklab, var(--warning) 60%, #000);
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  margin: 10px 0 20px;
}

.qr-wrap {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  justify-items: center;
}

.qr {
  width: min(320px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  padding: 10px;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.or {
  color: var(--muted);
  font-weight: 600;
}

.details p {
  margin: 4px 0;
}

footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

input, select, button {
  font-size: 16px;               /* minimalno za sprječavanje zumiranja */
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2d3748;
  background: #1e2535;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

input:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent);
}

/* --- Na manjim ekranima dodatno centriraj card i smanji margine --- */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 20px;
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  button, .btn {
    width: 100%;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.logo {
  height: 64px;
  width: auto;
  border-radius: 8px;
  user-select: none;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

@media (max-width: 600px) {
  .logo {
    height: 40px;
  }
  h1 {
    font-size: 1.3rem;
  }
}

.phone-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.phone-link:hover {
  text-decoration: underline;
}

.btn-mini {
  background: none;
  border: 1px solid #475569;
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mini:hover {
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  color: white;
}

/* CARDS */
.reservations {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.res-card {
  background: color-mix(in oklab, var(--card) 85%, #000 15%);
  border: 1px solid color-mix(in oklab, #334155 60%, #0b0f19 40%);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.res-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.res-head strong {
  font-size: 1.1rem;
  color: var(--text);
}

.res-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.res-body p {
  margin: 3px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.paid.yes { color: #22c55e; font-weight: 600; }
.paid.no  { color: #f87171; font-weight: 600; }

.res-action {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 700px) {
  .reservations {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}
