:root {
  --pp-bg: #f8efe3;
  --pp-surface: rgba(255, 250, 241, .96);
  --pp-text: #231914;
  --pp-muted: #74675c;
  --pp-dark: #10100f;
  --pp-gold: #eda414;
  --pp-gold-dark: #b8750e;
  --pp-gold-soft: #fff0cf;
  --pp-green: #238447;
  --pp-red: #d94b24;
  --pp-border: rgba(97, 61, 28, .14);
  --pp-border-strong: rgba(174, 111, 28, .36);
  --pp-shadow: 0 18px 55px rgba(43, 27, 12, .16);
  --pp-shadow-soft: 0 10px 28px rgba(43, 27, 12, .10);
}

html {
  background: #1d140d !important;
}

body {
  color: var(--pp-text) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(248,239,227,.98) 44%, #f8efe3 100%),
    url('/img/pivniparta-bg-snp13.svg') center top / cover fixed no-repeat !important;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  letter-spacing: -.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 184, .45), transparent 42%),
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.48) 36%, rgba(255,255,255,.16));
}

header,
.navbar,
.topbar,
.pp-topbar,
.app-header,
.site-header,
nav {
  background: linear-gradient(180deg, #191817, #0f0f0e) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.22) !important;
}

header a,
.navbar a,
.topbar a,
.app-header a,
.site-header a,
nav a {
  color: rgba(255,255,255,.88) !important;
}

header a:hover,
.navbar a:hover,
.topbar a:hover,
.app-header a:hover,
.site-header a:hover,
nav a:hover {
  color: #ffd48a !important;
}

main,
.container,
.pp-container,
.page,
.content,
.app-shell {
  position: relative;
}

.card,
.panel,
.box,
.tile,
.stat-card,
.event-card,
.payment-card,
.admin-card,
.form-card,
.login-card,
section,
article,
fieldset {
  background: var(--pp-surface) !important;
  border: 1px solid var(--pp-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--pp-shadow-soft) !important;
  backdrop-filter: blur(10px);
}

.card:hover,
.panel:hover,
.box:hover,
.tile:hover,
.event-card:hover,
.payment-card:hover,
.admin-card:hover {
  border-color: var(--pp-border-strong) !important;
  box-shadow: var(--pp-shadow) !important;
}

button,
.button,
.btn,
input[type="submit"],
input[type="button"],
a.btn,
a.button {
  border-radius: 14px !important;
  font-weight: 800 !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
a.button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.button-primary,
.primary,
button.primary,
input[type="submit"],
button[type="submit"] {
  color: #241500 !important;
  border: 1px solid rgba(142, 83, 0, .18) !important;
  background: linear-gradient(180deg, #ffc45a, #e99a08) !important;
  box-shadow: 0 10px 22px rgba(214, 132, 16, .26) !important;
}

.btn-secondary,
.button-secondary,
.secondary {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(151, 94, 17, .28) !important;
  color: #3a2818 !important;
}

input,
select,
textarea {
  border-radius: 14px !important;
  border: 1px solid rgba(70, 45, 21, .16) !important;
  background: rgba(255,255,255,.78) !important;
  color: var(--pp-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(221, 148, 27, .72) !important;
  box-shadow: 0 0 0 4px rgba(240, 163, 19, .16) !important;
}

h1, h2, h3 {
  color: #1d1713 !important;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: .98;
}

small,
.muted,
.text-muted,
.help,
.hint {
  color: var(--pp-muted) !important;
}

table {
  background: rgba(255,255,255,.76) !important;
  border-radius: 16px !important;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: #5a3d1c !important;
  background: rgba(255, 240, 207, .62) !important;
  font-weight: 800 !important;
}

td,
th {
  border-color: rgba(80, 50, 20, .10) !important;
}

.badge,
.tag,
.pill,
.status {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.success,
.paid,
.zaplaceno {
  background: rgba(35, 132, 71, .12) !important;
  color: #176638 !important;
}

.warning {
  background: rgba(240, 163, 19, .14) !important;
  color: #8a5400 !important;
}

.danger,
.unpaid,
.nezaplaceno {
  background: rgba(217, 75, 36, .12) !important;
  color: #a33718 !important;
}

.toast,
.alert,
.message,
.notification {
  border-radius: 16px !important;
  box-shadow: var(--pp-shadow-soft) !important;
}

img[src*="qr"],
img[alt*="QR"],
img[alt*="qr"] {
  background: white !important;
  padding: 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.09) !important;
}

.admin-menu,
.sidebar,
.side-nav,
.pp-sidebar,
aside {
  background: linear-gradient(180deg, rgba(255,250,241,.96), rgba(255,248,236,.90)) !important;
  border-right: 1px solid var(--pp-border) !important;
}

.snp13-proof {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  background: linear-gradient(180deg, #ffc45a, #e99a08);
  color: #221400;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll !important;
  }

  .card,
  .panel,
  .box,
  .tile,
  .event-card,
  .payment-card,
  .admin-card,
  section,
  article {
    border-radius: 18px !important;
  }
}

/* ===== SNP13B landing / login polish ===== */

body {
  min-height: 100vh;
}

body > main,
main,
.container,
.pp-container,
.content,
.page {
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body > header,
header,
.navbar,
.topbar,
.app-header,
.site-header,
nav {
  max-width: 1180px;
  margin: 18px auto 0 auto !important;
  border-radius: 26px !important;
  padding: 10px 18px !important;
  min-height: 58px;
}

body > header:first-child,
header:first-child,
nav:first-child {
  position: relative;
  z-index: 5;
}

body > main:first-of-type,
main:first-of-type {
  margin-top: 18px !important;
}

/* landing-like first big block */
main > section:first-child,
main > .card:first-child,
main > .panel:first-child,
.container > section:first-child,
.container > .card:first-child,
.container > .panel:first-child {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: clamp(28px, 5vw, 58px) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.82) 48%, rgba(255,255,255,.28)),
    url('/img/pivniparta-bg-snp13.svg') center / cover no-repeat !important;
  box-shadow: 0 24px 70px rgba(43, 27, 12, .20) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
}

main > section:first-child::after,
main > .card:first-child::after,
main > .panel:first-child::after,
.container > section:first-child::after,
.container > .card:first-child::after,
.container > .panel:first-child::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255,250,241,.88));
  pointer-events: none;
}

main > section:first-child h1,
main > .card:first-child h1,
main > .panel:first-child h1,
.container > section:first-child h1,
.container > .card:first-child h1,
.container > .panel:first-child h1 {
  max-width: 560px;
  font-weight: 950 !important;
  color: #15100d !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

main > section:first-child h1 strong,
main > .card:first-child h1 strong,
main > .panel:first-child h1 strong,
.container > section:first-child h1 strong,
.container > .card:first-child h1 strong,
.container > .panel:first-child h1 strong {
  color: #b8750e !important;
}

main > section:first-child p,
main > .card:first-child p,
main > .panel:first-child p,
.container > section:first-child p,
.container > .card:first-child p,
.container > .panel:first-child p {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #4d4035 !important;
}

/* pub cards / lists */
a[href*="/pub/"],
form[action*="/pub/"],
.pub-card,
.pub-tile,
.hospoda-card,
.hospoda,
.list-card,
ul li,
ol li {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pub-card,
.pub-tile,
.hospoda-card,
.hospoda,
.list-card {
  border-radius: 22px !important;
  background: rgba(255,250,241,.94) !important;
  border: 1px solid rgba(174,111,28,.18) !important;
  box-shadow: 0 10px 28px rgba(43,27,12,.10) !important;
}

.pub-card:hover,
.pub-tile:hover,
.hospoda-card:hover,
.hospoda:hover,
.list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(174,111,28,.42) !important;
  box-shadow: 0 18px 46px rgba(43,27,12,.16) !important;
}

/* make search/picker area nicer */
input[type="search"],
input[name*="search" i],
input[placeholder*="hospod" i],
input[placeholder*="Hospod" i],
input[placeholder*="Naj" i],
input[placeholder*="naj" i] {
  min-height: 48px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  background: rgba(255,255,255,.86) !important;
}

/* primary action groups */
.actions,
.action-row,
.button-row,
.btn-row,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* bottom benefit cards if present */
.benefits,
.features,
.footer-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefits > *,
.features > *,
.footer-cards > * {
  border-radius: 20px !important;
  background: rgba(255,250,241,.92) !important;
  border: 1px solid rgba(174,111,28,.16) !important;
  box-shadow: 0 10px 28px rgba(43,27,12,.08) !important;
}

/* mobile app feeling */
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(248,239,227,.98) 34%, #f8efe3 100%),
      url('/img/pivniparta-bg-snp13.svg') center top / auto 360px no-repeat !important;
  }

  body > header,
  header,
  .navbar,
  .topbar,
  .app-header,
  .site-header,
  nav {
    margin: 0 !important;
    border-radius: 0 0 22px 22px !important;
    max-width: none;
  }

  main,
  .container,
  .pp-container,
  .content,
  .page {
    width: auto !important;
    max-width: none !important;
    margin: 12px 10px 28px 10px !important;
  }

  main > section:first-child,
  main > .card:first-child,
  main > .panel:first-child,
  .container > section:first-child,
  .container > .card:first-child,
  .container > .panel:first-child {
    min-height: 230px;
    padding: 26px 20px !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
      url('/img/pivniparta-bg-snp13.svg') center / cover no-repeat !important;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }

  .benefits,
  .features,
  .footer-cards {
    grid-template-columns: 1fr;
  }

  button,
  .button,
  .btn,
  input[type="submit"],
  a.btn,
  a.button {
    min-height: 46px;
  }
}

/* ===== SNP13C visible design layer ===== */

/* reset bland app feel */
body {
  margin: 0 !important;
  min-height: 100vh !important;
  color: #211711 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(248,239,227,.96) 42%, #f8efe3 100%),
    url('/img/pivniparta-bg-snp13.svg') center top / cover fixed no-repeat !important;
}

/* centered app shell */
body > * {
  box-sizing: border-box;
}

body > header,
body > nav,
header,
nav {
  max-width: 1180px !important;
  margin: 18px auto 0 auto !important;
  border-radius: 28px !important;
  min-height: 62px !important;
  padding: 10px 20px !important;
  background: linear-gradient(180deg, #191817, #0e0d0c) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.28) !important;
}

/* main page container */
main,
body > .container,
body > .content,
body > .page,
.container,
.content,
.page {
  max-width: 1180px !important;
  margin: 20px auto 44px auto !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* turn first visible block into hero */
main > *:first-child,
.container > *:first-child,
.content > *:first-child,
.page > *:first-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 34px !important;
  min-height: 330px !important;
  padding: clamp(30px, 5vw, 64px) !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.84) 48%, rgba(255,255,255,.22)),
    url('/img/pivniparta-bg-snp13.svg') center / cover no-repeat !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 28px 80px rgba(43, 27, 12, .24) !important;
}

/* add warm glass overlay to hero */
main > *:first-child::before,
.container > *:first-child::before,
.content > *:first-child::before,
.page > *:first-child::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,196,90,.32), transparent 28%),
    linear-gradient(180deg, transparent, rgba(255,250,241,.64)) !important;
}

/* keep hero content above overlay */
main > *:first-child > *,
.container > *:first-child > *,
.content > *:first-child > *,
.page > *:first-child > * {
  position: relative !important;
  z-index: 1 !important;
}

/* headline */
h1 {
  max-width: 680px !important;
  font-size: clamp(2.5rem, 5vw, 5.2rem) !important;
  line-height: .95 !important;
  font-weight: 950 !important;
  letter-spacing: -.06em !important;
  color: #17110d !important;
  margin-bottom: 18px !important;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
}

p {
  color: #57483b !important;
  line-height: 1.65 !important;
}

/* cards everywhere */
.card,
.panel,
.box,
.tile,
section,
article,
form,
fieldset,
div[class*="card" i],
div[class*="box" i],
div[class*="panel" i],
div[class*="tile" i] {
  border-radius: 26px !important;
  background: rgba(255,250,241,.96) !important;
  border: 1px solid rgba(174,111,28,.18) !important;
  box-shadow: 0 16px 42px rgba(43,27,12,.13) !important;
  backdrop-filter: blur(10px) !important;
}

/* important: don't make nested forms ugly */
form {
  padding: 18px !important;
}

/* buttons */
button,
.btn,
.button,
a.btn,
a.button,
input[type="submit"],
input[type="button"] {
  border-radius: 16px !important;
  min-height: 46px !important;
  padding: 11px 18px !important;
  font-weight: 900 !important;
  border: 1px solid rgba(142,83,0,.20) !important;
  background: linear-gradient(180deg, #ffc95f, #e99a08) !important;
  color: #241500 !important;
  box-shadow: 0 12px 28px rgba(214,132,16,.28) !important;
}

button:hover,
.btn:hover,
.button:hover,
a.btn:hover,
a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 38px rgba(214,132,16,.36) !important;
}

/* secondary links should look like clean pills */
a:not(.btn):not(.button) {
  color: #8b5709 !important;
  font-weight: 700;
}

/* inputs */
input,
select,
textarea {
  min-height: 46px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(70,45,21,.16) !important;
  background: rgba(255,255,255,.86) !important;
  color: #241a14 !important;
  padding: 10px 14px !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(237,164,20,.76) !important;
  box-shadow: 0 0 0 5px rgba(237,164,20,.18) !important;
}

/* lists of pubs/options */
ul,
ol {
  padding-left: 0 !important;
}

li {
  list-style-position: inside;
}

ul > li,
ol > li {
  margin: 10px 0 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: rgba(255,250,241,.88) !important;
  border: 1px solid rgba(174,111,28,.13) !important;
}

/* tables */
table {
  width: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: rgba(255,250,241,.92) !important;
  box-shadow: 0 12px 32px rgba(43,27,12,.10) !important;
}

th {
  background: #fff0cf !important;
  color: #5b3a10 !important;
  font-weight: 900 !important;
}

/* bottom visual signature - subtle, not test badge */
body::after {
  content: "" !important;
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 74px !important;
  height: 74px !important;
  border-radius: 24px !important;
  pointer-events: none !important;
  opacity: .22 !important;
  background:
    radial-gradient(circle at 50% 36%, #ffd486 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(237,164,20,.45)) !important;
  box-shadow: 0 16px 38px rgba(43,27,12,.20) !important;
}

/* mobile */
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(248,239,227,.98) 32%, #f8efe3 100%),
      url('/img/pivniparta-bg-snp13.svg') center top / auto 380px no-repeat !important;
  }

  header,
  nav,
  body > header,
  body > nav {
    margin: 0 !important;
    border-radius: 0 0 24px 24px !important;
  }

  main,
  .container,
  .content,
  .page {
    margin: 12px 10px 30px 10px !important;
    padding: 0 !important;
  }

  main > *:first-child,
  .container > *:first-child,
  .content > *:first-child,
  .page > *:first-child {
    min-height: 260px !important;
    border-radius: 26px !important;
    padding: 28px 22px !important;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem) !important;
  }

  button,
  .btn,
  .button,
  a.btn,
  a.button,
  input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}
