/* ─── GR8WAY – panel rezerwacji ─── */
:root {
    --black: #0a0a08;
    --dark: #111110;
    --surface: #1a1a17;
    --surface2: #222220;
    --gold: #c5a059;
    --gold-light: #d4b06e;
    --gold-dim: rgba(197, 160, 89, 0.15);
    --white: #f5f0e8;
    --muted: #8f8f86;
    --border: rgba(197, 160, 89, 0.22);
    --border-dim: rgba(255, 255, 255, 0.07);
    --danger: #e0705a;
    --success: #7fb37a;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Barlow', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-variant-numeric: lining-nums tabular-nums;
    -webkit-font-smoothing: antialiased;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 26px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: var(--gold-light);
    color: var(--black);
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 0.62rem;
}

.btn-danger {
    border-color: rgba(224, 112, 90, 0.4);
    color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(224, 112, 90, 0.08);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    min-width: 44px;
    padding: 8px 12px;
    font-size: 1.1rem;
    letter-spacing: 0;
    border-color: transparent;
}

/* ─── LOGIN ─── */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--black);
    overflow-y: auto;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.055) 1px, transparent 1px),
        linear-gradient(135deg, rgba(197, 160, 89, 0.18), transparent 34%, rgba(255, 255, 255, 0.035) 64%, transparent);
    background-size: 74px 74px, 74px 74px, 100% 100%;
    opacity: 0.75;
    pointer-events: none;
}

.login-shell {
    position: relative;
    width: min(980px, 100%);
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 400px;
    background: rgba(17, 17, 16, 0.92);
    border: 1px solid var(--border);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.login-visual {
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    border-right: 1px solid var(--border-dim);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.08), transparent 45%), rgba(255, 255, 255, 0.018);
}

.mini-label {
    font-size: 0.62rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
}

.login-title {
    max-width: 540px;
    margin-top: 32px;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 300;
    line-height: 0.98;
}

.login-title em,
.section-title em,
.hero-title em {
    color: var(--gold);
    font-style: italic;
}

.login-lead {
    max-width: 480px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.login-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.login-proof {
    border: 1px solid var(--border-dim);
    padding: 16px;
    background: rgba(10, 10, 8, 0.5);
}

.login-proof strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.login-proof span {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

.login-card {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 8, 0.62);
}

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

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand span {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.login-card .brand {
    margin-bottom: 36px;
}

.login-card h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-card p {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.login-form {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    line-height: 1.5;
}

.login-note {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dim);
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.6;
}

/* ─── TOP BAR ─── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 10, 8, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dim);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar nav {
    display: flex;
    gap: 28px;
}

.topbar nav a {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar nav a:hover {
    color: var(--gold);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

.topbar-user strong {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    padding: 110px 40px 90px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(197, 160, 89, 0.1) 0%, transparent 70%),
        var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

.hero > * {
    position: relative;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.05rem, 2.5vw, 1.5rem);
    color: var(--muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── INFO STRIP ─── */
.info-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

.info-value {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
}

.info-note {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ─── SECTIONS ─── */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px;
}

.section + .section {
    border-top: 1px solid var(--border-dim);
}

.section-head {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.section-tag {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-lead {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 580px;
}

/* ─── CALENDAR + TOURS ─── */
.tours-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: start;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.calendar-month {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.day {
    position: relative;
    aspect-ratio: 1 / 0.82;
    display: grid;
    place-items: center;
    background: var(--surface2);
    border: 1px solid var(--border-dim);
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--muted);
    opacity: 0.55;
}

.day.empty {
    background: transparent;
    border-color: transparent;
}

.day.today {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.25);
}

button.day {
    cursor: pointer;
    opacity: 1;
    transition: background 0.25s, color 0.25s;
}

.day.available {
    background: var(--surface);
    border-color: var(--gold);
    color: var(--gold);
}

.day.available:hover {
    background: var(--gold-dim);
}

.day.full {
    color: var(--muted);
    border-color: var(--border);
    text-decoration: line-through;
}

.day.selected {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--muted);
}

.calendar-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border: 1px solid var(--gold);
    vertical-align: -1px;
}

.calendar-legend i.full {
    border-color: var(--border);
    background: var(--surface2);
}

.tour-list {
    margin-top: 36px;
    display: grid;
    gap: 2px;
}

.tour-card {
    position: relative;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-dim);
    background: transparent;
    padding: 28px 30px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.tour-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.35s ease;
}

.tour-card:hover:not(:disabled),
.tour-card.active {
    background: var(--surface);
    border-color: var(--border);
}

.tour-card:hover:not(:disabled)::before,
.tour-card.active::before {
    transform: scaleY(1);
}

.tour-card:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tour-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.tour-time {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.tour-meta {
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.tour-price {
    color: var(--gold);
}

.tour-slots {
    text-align: right;
}

.slots-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
}

.slots-label {
    margin-top: 6px;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.empty-state {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
}

/* ─── BOOKING PANEL ─── */
.booking-panel {
    position: sticky;
    top: 90px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px;
}

.panel-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 6px;
}

.panel-selected {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    min-height: 1.2em;
}

.booking-placeholder {
    border: 1px solid var(--border-dim);
    background: rgba(10, 10, 8, 0.42);
    padding: 24px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.booking-placeholder strong {
    display: block;
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 8px;
}

.field {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.field-label .req {
    color: var(--gold);
}

.input {
    width: 100%;
    min-height: 48px;
    background: var(--black);
    border: 1px solid var(--border-dim);
    color: var(--white);
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 300;
    outline: none;
    border-radius: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.input::placeholder {
    color: var(--muted);
}

.input[readonly] {
    color: var(--gold);
    border-color: var(--border);
    background: var(--surface2);
    font-weight: 500;
}

select.input {
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

textarea.input {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

.input[type=number]::-webkit-inner-spin-button,
.input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.phone-group {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 10px;
}

.stepper {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
}

.stepper .input {
    text-align: center;
    font-weight: 500;
    font-size: 1.05rem;
}

.stepper button {
    border: 1px solid var(--border-dim);
    background: var(--surface2);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
}

.stepper button:hover {
    border-color: var(--gold);
}

.participants {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.participant-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
}

.participant-num {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--gold);
}

.option-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    cursor: pointer;
}

.option-row input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--gold);
    cursor: pointer;
}

.option-row strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.option-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    margin: 6px 0 14px;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.8rem;
    color: var(--muted);
}

.price-summary strong {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gold);
}

.fine-print {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── TABLES ─── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-dim);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

thead th {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--dark);
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-dim);
    vertical-align: top;
    line-height: 1.5;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr.is-past td {
    opacity: 0.55;
}

td.nowrap {
    white-space: nowrap;
}

td .sub {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

td.num {
    font-weight: 500;
    color: var(--gold);
}

.td-names {
    max-width: 320px;
    color: var(--white);
}

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

.code {
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.badge-paid {
    color: var(--success);
}

.badge-unpaid {
    color: var(--gold);
}

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

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 16px !important;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toolbar .input {
    max-width: 320px;
    min-height: 40px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

/* ─── ADMIN ─── */
.admin-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    padding: 4px 10px;
    font-weight: 600;
    margin-bottom: 14px;
}

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-dim);
    overflow-x: auto;
}

.tab {
    padding: 14px 22px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.tab[aria-selected="true"] {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border-dim);
    padding: 28px;
    margin-bottom: 28px;
}

.admin-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
}

.form-grid .field {
    margin: 0;
}

/* ─── DIALOG ─── */
dialog {
    margin: auto;
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    background: var(--surface);
    color: var(--white);
    border: 1px solid var(--border);
    padding: 34px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.dialog-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 6px;
}

.dialog-sub {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.dialog-actions .btn {
    flex: 1;
}

.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-row .input {
    font-size: 0.78rem;
}

.voucher-hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    margin-bottom: 18px;
    background: var(--black);
    border: 1px solid var(--border-dim);
}

.voucher-hero .qr {
    background: #fff;
    padding: 6px;
}

.voucher-hero .qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.voucher-hero .big-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.voucher-hero p {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
}

.notice {
    padding: 12px 14px;
    border-left: 2px solid var(--gold);
    background: var(--gold-dim);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--white);
    margin-top: 14px;
}

/* ─── CONTACT / FOOTER ─── */
.contact-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 80px 40px;
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-type {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-value {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--gold);
    text-decoration: none;
}

.contact-value:hover {
    color: var(--gold-light);
}

footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ─── TOAST ─── */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--gold);
    padding: 18px 24px;
    font-size: 0.85rem;
    line-height: 1.5;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
}

.toast[data-type="error"] {
    border-color: var(--danger);
}

.toast[data-type="error"] .toast-title {
    color: var(--danger);
}

.toast.show {
    transform: none;
    opacity: 1;
}

.toast-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 2px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-row {
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
    .tours-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-panel {
        position: static;
    }

    .topbar nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        padding: 36px;
        border-right: 0;
        border-bottom: 1px solid var(--border-dim);
    }

    .login-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .login-overlay {
        padding: 16px;
        align-items: flex-start;
    }

    .login-visual,
    .login-card {
        padding: 28px 22px;
    }

    .login-proof-grid {
        display: none;
    }

    .topbar-inner,
    .section,
    .info-strip-inner,
    footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding: 70px 16px 60px;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .contact-strip {
        padding: 60px 16px;
    }

    .booking-panel,
    .admin-card {
        padding: 22px 16px;
    }

    .phone-group {
        grid-template-columns: 1fr;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 4px;
    }

    .day {
        font-size: 1rem;
    }

    .tour-card {
        padding: 22px 18px;
    }

    .topbar-user .who {
        display: none;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    dialog {
        padding: 24px 18px;
    }

    .voucher-hero {
        grid-template-columns: 96px 1fr;
        gap: 14px;
    }

    .share-grid {
        grid-template-columns: 1fr;
    }
}
