/* =====================================================================
   chwilownia.pl — Premium Wedding Gallery
   Kompletny redesign: ivory / champagne / złoto, glassmorphism, animacje
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ── Zmienne ─────────────────────────────────────────────────────────── */
:root {
    --color-bg:           #fdfaf6;
    --color-ivory:        #f7f3ec;
    --color-champagne:    #e8d5b7;
    --color-gold:         #b5955a;
    --color-gold-light:   #c9aa72;
    --color-gold-pale:    rgba(181, 149, 90, 0.12);
    --color-gold-dark:    #987840;
    --color-text:         #2a211a;
    --color-text-med:     #6b5b4e;
    --color-text-light:   #a09080;
    --color-surface:      rgba(255, 255, 255, 0.84);
    --color-surface-solid: #ffffff;
    --color-border:       rgba(181, 149, 90, 0.18);
    --color-border-faint: rgba(0, 0, 0, 0.05);
    --color-error-bg:     #fef5f5;
    --color-error-text:   #8b3a3a;
    --color-error-border: rgba(139, 58, 58, 0.2);
    --color-success-bg:   #f4faf6;
    --color-success-text: #2d6a4f;
    --color-success-border: rgba(45, 106, 79, 0.2);

    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body:    'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-card:  28px;
    --radius-card-inner: 18px;
    --radius-btn:   999px;
    --radius-input: 14px;
    --radius-tag:   8px;

    --shadow-card:  0 4px 40px rgba(0, 0, 0, 0.06), 0 1px 6px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 12px 60px rgba(0, 0, 0, 0.10), 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-btn:   0 4px 20px rgba(181, 149, 90, 0.22);
    --shadow-btn-hover: 0 8px 32px rgba(181, 149, 90, 0.38);

    --blur-card:    blur(24px);
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Warstwa tła (bg.jpg + overlay) ─────────────────────────────────── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center top;
    /* Fallback gradient gdy brak pliku bg.jpg */
    background-color: #f8f4ee;
    filter: saturate(0.7) brightness(1.08);
}

.bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(253, 250, 246, 0.45) 0%,
        rgba(253, 250, 246, 0.28) 50%,
        rgba(253, 250, 246, 0.55) 100%
    );
}

/* bg.jpg względem bieżącej strony (admin/*.php używa '../assets/bg.jpg') */
.bg-layer.from-admin { background-image: url('../assets/bg.jpg'); }
.bg-layer.from-root  { background-image: url('assets/bg.jpg'); }

/* ── Page Loader ─────────────────────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-ivory);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader .loader-logo {
    width: 160px;
    animation: loader-pulse 1.8s ease-in-out infinite;
}

.loader-spinner {
    margin-top: 24px;
    width: 36px;
    height: 36px;
    border: 2.5px solid var(--color-champagne);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(0.97); }
}

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

/* ── Toast Notifications ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 8000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--blur-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    min-width: 260px;
    max-width: 340px;
    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-success { border-left: 3px solid var(--color-success-text); }
.toast-error   { border-left: 3px solid var(--color-error-text); }
.toast-info    { border-left: 3px solid var(--color-gold); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
    to   { opacity: 0; transform: translateY(12px); }
}

/* ── Cookie Banner ───────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7000;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: var(--blur-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.08);
    animation: slide-up 0.4s ease;
}

.cookie-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1 1 260px;
    font-size: 0.85rem;
    color: var(--color-text-med);
    line-height: 1.6;
}

.cookie-text a { color: var(--color-gold); text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: var(--radius-btn);
    font-size: 0.83rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.cookie-btn-accept {
    background: var(--color-gold);
    color: #fff;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--color-text-med);
    border: 1px solid var(--color-border);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold-pale);
    padding: 9px 14px;
}

.cookie-banner.hidden { display: none; }

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── App Wrapper & Layout ────────────────────────────────────────────── */
.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 48px;
}

.app-wrapper.fade-in {
    animation: fade-in 0.5s ease 0.1s both;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.app-main {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-main-wide {
    max-width: 780px;
}

/* ── Site Header / Logo ──────────────────────────────────────────────── */
.app-header {
    width: 100%;
    max-width: 520px;
    padding: 36px 0 20px;
    text-align: center;
}

.site-logo {
    width: 200px;
    max-width: 70%;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.site-logo-sm {
    width: 130px;
    max-width: 50%;
}

/* ── Glass Card ──────────────────────────────────────────────────────── */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--blur-card);
    -webkit-backdrop-filter: var(--blur-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.glass-card-inner {
    padding: 24px;
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h3 { font-size: 1.1rem; }

.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-light); }
.text-center  { text-align: center; }
.text-lead    { font-size: 0.95rem; color: var(--color-text-med); }
.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-med);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    padding: 0 20px;
}

/* ── Welcome Card ────────────────────────────────────────────────────── */
.welcome-card {
    text-align: center;
    padding: 28px 24px 24px;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-med);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Action Rows ─────────────────────────────────────────────────────── */
.action-rows-card .action-row:last-child {
    border-bottom: none;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(181, 149, 90, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition);
    border: none;
    width: 100%;
    font-family: var(--font-body);
}

.action-row:hover,
.action-row:focus {
    background: rgba(181, 149, 90, 0.04);
}

.action-rows-card .action-row {
    border-bottom: 1px solid rgba(181, 149, 90, 0.08);
    border-radius: 0;
}

.action-rows-card .action-row:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.action-rows-card .action-row:last-child  { border-bottom: none; border-radius: 0 0 var(--radius-card) var(--radius-card); }

.action-icon-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--color-gold-pale);
    border: 1px solid rgba(181, 149, 90, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
}

.action-icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.action-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.action-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 1px;
}

.action-chevron {
    color: var(--color-gold-light);
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Stats Grid ──────────────────────────────────────────────────────── */
.stats-card {
    padding: 0;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 20px 8px 18px;
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(181, 149, 90, 0.15);
}

.stat-icon {
    display: block;
    margin: 0 auto 6px;
    color: var(--color-gold-light);
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold-light);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    margin: 0 auto;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #c9aa72 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.06);
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-gold);
    border: 1.5px solid rgba(181, 149, 90, 0.35);
    backdrop-filter: var(--blur-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(181, 149, 90, 0.12);
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-med);
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-ghost:hover { color: var(--color-gold); opacity: 1; }

.btn-danger {
    background: rgba(139, 58, 58, 0.06);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

.btn-danger:hover {
    background: rgba(139, 58, 58, 0.12);
    transform: none;
    opacity: 1;
}

.btn-sm { padding: 8px 16px; font-size: 0.83rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-full { width: 100%; }

.cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Guest action buttons (simple 2-button layout) ───────────────────── */
.guest-action-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guest-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 28px 20px;
    border-radius: 20px;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.1s, box-shadow 0.1s;
    box-sizing: border-box;
}

.guest-action-btn svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.guest-action-btn:active {
    transform: scale(0.97);
}

.guest-action-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #c9a84c 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(180,140,60,0.35);
}

.guest-action-secondary {
    background: #fff;
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border: 2px solid var(--color-champagne);
}

.guest-action-wish {
    background: rgba(255,255,255,0.55);
    color: var(--color-text-med);
    border: 1.5px dashed var(--color-champagne);
    box-shadow: none;
    font-size: 1rem;
    padding: 18px 20px;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
}

.guest-action-wish svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guest-action-wish--active,
.guest-action-wish:hover {
    border-color: var(--color-gold);
    border-style: solid;
    background: var(--color-gold-pale);
    color: var(--color-gold-dark);
}

/* ── Sekcja życzeń inline ── */
.wish-inline-section {
    animation: wish-expand 0.25s ease;
}

@keyframes wish-expand {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Live emoji card ── */
.live-emoji-card {
    padding: 18px 20px;
}

.live-emoji-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.live-emoji-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.live-emoji-preset {
    font-size: 1.7rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid var(--color-border);
    background: var(--color-ivory);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s, border-color 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.live-emoji-preset:active,
.live-emoji-preset.tapped {
    transform: scale(1.3);
    background: var(--color-gold-pale);
    border-color: var(--color-gold);
}

.live-emoji-custom-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.live-emoji-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-input);
    border: 1.5px solid var(--color-border);
    background: rgba(255,255,255,0.7);
    color: var(--color-text);
    font-size: 1.6rem;
    text-align: center;
    outline: none;
    min-width: 0;
    transition: border-color var(--transition);
}

.live-emoji-input:focus {
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.95);
}

.live-emoji-input::placeholder {
    opacity: 0.4;
}

.live-emoji-send {
    padding: 11px 20px;
    border-radius: var(--radius-btn);
    border: none;
    background: linear-gradient(135deg, var(--color-gold) 0%, #c9a84c 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-btn);
    transition: opacity var(--transition);
}

.live-emoji-send:hover { opacity: 0.88; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

label,
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-med);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(181, 149, 90, 0.2);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(181, 149, 90, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b5955a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

textarea { resize: vertical; min-height: 90px; }

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0 4px;
}

.admin-form label { margin-top: 8px; }

.admin-form button[type="submit"] { margin-top: 16px; }

/* ── Status Messages ─────────────────────────────────────────────────── */
.status-message {
    padding: 14px 18px;
    border-radius: var(--radius-input);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    margin-bottom: 12px;
}

.status-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-left-color: var(--color-success-text);
}

.status-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border-left-color: var(--color-error-text);
}

/* ── Trust Footer / Heart Divider ────────────────────────────────────── */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    text-align: center;
}

.trust-bar svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-gold-light);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}

.trust-bar p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.heart-divider {
    text-align: center;
    color: var(--color-champagne);
    font-size: 1.1rem;
    padding: 4px 0 8px;
    letter-spacing: 0.05em;
}

/* ── Site Footer ─────────────────────────────────────────────────────── */
.site-footer {
    width: 100%;
    max-width: 520px;
    padding: 16px 0 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer a {
    font-size: 0.78rem;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
}

.site-footer a:hover { color: var(--color-gold); opacity: 1; }

/* ── Upload Page (index.php?s=slug) ──────────────────────────────────── */
.upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
}

.upload-preview-section { padding: 0 20px 20px; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.caption-label {
    display: block;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-med);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.caption-input {
    width: 100%;
    resize: vertical;
}

.progress-wrap { margin-top: 12px; }

.progress-bar-bg {
    height: 4px;
    background: var(--color-champagne);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
    border-radius: 999px;
    transition: width 0.2s ease;
}

.progress-text {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
}

.hidden-input { display: none; }
.hidden { display: none !important; }

/* ── Gallery Grid ────────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-inner);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.gallery-card-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-ivory);
}

/* Przycisk usuwania zdjęcia (widoczny dla admina) */
.gallery-admin-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    backdrop-filter: blur(4px);
}
.gallery-admin-delete-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
}
.gallery-admin-delete-btn:active { background: rgb(185, 28, 28); }

.gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.04);
}

.gallery-card-body {
    padding: 12px 14px;
}

.gallery-card-caption {
    font-size: 0.85rem;
    color: var(--color-text-med);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.gallery-card-meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.gallery-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-meta-like { color: #c0697a; }
.gallery-meta-like svg { stroke: #c0697a; }
.gallery-meta-like.is-active { font-weight: 700; }

.gallery-card-date {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* ── Skeleton Loader ─────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0ebe4 25%, #e8e1d8 50%, #f0ebe4 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-card-inner);
}

.skeleton-card {
    aspect-ratio: 1;
    border-radius: var(--radius-card-inner);
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Lightbox ────────────────────────────────────────────────────────── */
/*
 * Maksymalnie uproszczony — zero backdrop-filter (psuje iOS fixed),
 * zero flex, procentowe wysokości zakotwiczone w position:fixed.
 */
/* ── Lightbox ───────────────────────────────────────────────────────── */
/*
 * --ph: wysokość obszaru zdjęcia w px, ustawiana przez JS jako
 *        Math.round(window.innerHeight * 0.44) + 'px'
 * Dzięki temu omijamy bug iOS Safari gdzie vh i % nie działają
 * poprawnie w łańcuchu position:fixed → dzieci.
 */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9000;
    background: #1a1208;
    overflow: hidden;
}

.lightbox-overlay { display: none; }

.lightbox-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* X nakłada się na zdjęcie */
.lightbox-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0;
    pointer-events: none;
}

.lightbox-close-btn {
    pointer-events: all;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lightbox-close-btn:active { background: rgba(255,255,255,0.4); }

.lightbox-close-btn svg {
    width: 18px; height: 18px;
    stroke: #fff; stroke-width: 2.5;
    fill: none; stroke-linecap: round;
}

/* Obszar zdjęcia: wysokość = var(--ph) ustawiana przez JS */
.lightbox-img-wrap {
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: var(--ph, 44vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(var(--ph, 44vh) - 16px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Panel komentarzy: top = var(--ph), sięga do samego dołu ekranu */
.lightbox-panel {
    position: absolute;
    top: var(--ph, 44vh);
    left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    /* USUNIĘTO: -webkit-overflow-scrolling: touch — ta właściwość powoduje że iOS
       przechowuje pozycję scroll niezależnie od DOM i ignoruje scrollTop=0 gdy element
       jest ukryty. Nowoczesny iOS (13+) obsługuje momentum scroll bez niej. */
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px calc(90px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.lightbox-panel::-webkit-scrollbar { width: 4px; }
.lightbox-panel::-webkit-scrollbar-track { background: transparent; }
.lightbox-panel::-webkit-scrollbar-thumb { background: var(--color-champagne); border-radius: 2px; }

.lightbox-caption {
    font-size: 0.9rem;
    color: var(--color-text-med);
    margin-bottom: 14px;
    font-style: italic;
}

.lightbox-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lightbox-reactions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-med);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    transition: color var(--transition), transform var(--transition);
}

.reaction-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reaction-btn.is-active { color: #c0697a; }
.reaction-btn.is-active svg { stroke: #c0697a; fill: rgba(192, 105, 122, 0.12); }

.reaction-btn:hover svg { transform: scale(1.2); }

.reaction-btn.is-active:hover svg { transform: scale(1.15); }

@keyframes like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.lightbox-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    color: var(--color-text-med);
}

.lightbox-comment-count svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-gold);
    background: var(--color-gold-pale);
    border: 1px solid rgba(181, 149, 90, 0.2);
    border-radius: var(--radius-btn);
    padding: 7px 14px;
    text-decoration: none;
    transition: background var(--transition);
}

.lightbox-download-btn:hover { background: rgba(181, 149, 90, 0.2); opacity: 1; }

.lightbox-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-btn);
    padding: 7px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background var(--transition);
}
.lightbox-delete-btn:hover { background: rgba(220, 38, 38, 0.15); }
.lightbox-delete-btn svg {
    width: 14px;
    height: 14px;
    stroke: #dc2626;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-download-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Comments (Instagram/Messenger style) ────────────────────────────── */
.comments-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gold-light);
    stroke-width: 1.8;
    fill: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    animation: fade-in 0.25s ease;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-champagne), var(--color-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.comment-bubble {
    background: var(--color-ivory);
    border-radius: 4px 16px 16px 16px;
    padding: 10px 14px;
    max-width: calc(100% - 44px);
}

.comment-author-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 3px;
}

.comment-text {
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.5;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.comments-empty {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
    padding: 16px 0;
    font-style: italic;
}

/* Comment form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 40px;
}

.comment-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: var(--radius-btn);
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #c9aa72 0%, var(--color-gold) 100%);
    box-shadow: var(--shadow-btn);
    transition: all var(--transition);
}

.comment-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.05);
}

.comment-submit-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comment-status {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 4px 0;
}

/* ── Admin Dashboard ─────────────────────────────────────────────────── */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.event-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: var(--color-gold-pale);
    border: 1px solid rgba(181, 149, 90, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
}

.event-badge svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-gold);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border-faint);
    border-top: 1px solid var(--color-border-faint);
}

.dashboard-stat-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 18px 12px;
    text-align: center;
}

.dashboard-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* Admin photo grid */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding: 20px;
}

.admin-photo-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-inner);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.admin-photo-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.admin-photo-card-body {
    padding: 10px 12px;
}

.admin-photo-caption {
    font-size: 0.8rem;
    color: var(--color-text-med);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-photo-date {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.admin-photo-meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.admin-photo-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.admin-photo-meta svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.photo-divider {
    border: none;
    border-top: 1px solid var(--color-border-faint);
    margin: 8px 0;
}

/* Admin comments */
.photo-comments-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-gold);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-comment-item {
    background: var(--color-ivory);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-comment-text {
    font-size: 0.8rem;
    color: var(--color-text-med);
    line-height: 1.4;
}

.admin-comment-text strong { color: var(--color-gold); }

/* Link display */
.link-display-card {
    padding: 16px 20px;
}

.link-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold-light);
    stroke-width: 1.6;
    fill: none;
}

.link-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-value {
    flex: 1 1 auto;
    font-size: 0.83rem;
    color: var(--color-text-med);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--color-ivory);
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid var(--color-border-faint);
}

.copy-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: var(--color-gold);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.copy-btn:hover { background: var(--color-gold-dark); transform: scale(1.05); }

.copy-btn svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Details/settings row */
.settings-section {
    border-top: 1px solid var(--color-border-faint);
}

.settings-row-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border-faint);
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition);
    text-align: left;
}

.settings-row-btn:hover { background: rgba(181, 149, 90, 0.04); }
.settings-row-btn:last-child { border-bottom: none; }

details.settings-detail summary {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: none;
    border-bottom: 1px solid var(--color-border-faint);
    cursor: pointer;
    list-style: none;
    color: var(--color-text);
    transition: background var(--transition);
}

details.settings-detail summary::-webkit-details-marker { display: none; }
details.settings-detail summary:hover { background: rgba(181, 149, 90, 0.04); }
details.settings-detail[open] summary { border-bottom-color: rgba(181, 149, 90, 0.12); }

details.settings-detail .admin-form { padding: 16px 20px; }

.settings-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: var(--color-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-gold);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-label-group { flex: 1 1 auto; }
.settings-title  { font-size: 0.92rem; font-weight: 600; color: var(--color-text); }
.settings-sub    { font-size: 0.78rem; color: var(--color-text-light); margin-top: 1px; }
.settings-chevron { color: var(--color-gold-light); font-size: 1rem; }

/* ── Gallery Header ──────────────────────────────────────────────────── */
.gallery-header {
    padding: 24px 20px 16px;
    text-align: center;
}

.gallery-event-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.gallery-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.gallery-meta-bar svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold-light);
    stroke-width: 1.6;
    fill: none;
    flex-shrink: 0;
}

/* ── Empty State ─────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 40px 24px;
    color: var(--color-text-light);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-champagne);
    stroke-width: 1.2;
    fill: none;
    margin: 0 auto 12px;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

/* ── Misc helpers ────────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--color-border-faint);
    margin: 0;
}

.hint-text {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.6;
    padding: 12px 20px;
}

.hint-text a { color: var(--color-gold); text-decoration: underline; }

.pad { padding: 20px; }

.reaction-count {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Gallery card reaction btn keeps the old data-photo-id attribute hook */
.gallery-photo-link { display: block; }

/* ── Landing Page (no ?s=) ───────────────────────────────────────────── */
.landing-wrapper {
    width: 100%;
    max-width: 480px;
}

.landing-logo-wrap { padding: 40px 0 24px; text-align: center; }

.landing-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.landing-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.landing-feature-row .action-icon-circle { flex-shrink: 0; margin-top: 2px; }

.landing-feature-text { font-size: 0.88rem; color: var(--color-text-med); line-height: 1.6; }

/* ── Register ────────────────────────────────────────────────────────── */
.register-wrapper {
    width: 100%;
    max-width: 480px;
}

/* ── Info Pages (privacy, terms, contact) ────────────────────────────── */
.info-page-content {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-med);
}

.info-page-content h1 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 16px;
}

.info-page-content h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 24px 0 8px;
}

.info-page-content p { margin-bottom: 12px; }

.info-page-content ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }

.info-page-content li { margin-bottom: 6px; }

/* ── Superadmin tweaks ───────────────────────────────────────────────── */
.event-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-inner);
    padding: 18px;
    transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.event-card-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.event-card-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

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

/* paid / unpaid badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-btn);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-paid   { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-unpaid { background: var(--color-error-bg);   color: var(--color-error-text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .cta-row       { grid-template-columns: 1fr; }
    .gallery-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; }
    .admin-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .upload-actions { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; }
    .toast-container { bottom: 80px; right: 12px; left: 12px; }
    .toast { min-width: unset; max-width: 100%; }
    .btn-lg { padding: 14px 24px; }
    .app-header { padding: 24px 0 16px; }
    .site-logo { width: 160px; }
}

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .admin-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 1024px) {
    .app-main-wide { max-width: 960px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .admin-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    /* lightbox-panel bez max-height — scrolluje cały lightbox-box */
}

/* ══════════════════════════════════════════════════════════════════════
   ZADANIA FOTOGRAFICZNE (Photo Quests)
   ══════════════════════════════════════════════════════════════════════ */
.quests-card {
    overflow: hidden;
    padding: 20px;
}

.quests-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.quests-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.quests-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.quests-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    transition: background 0.15s;
}

.quest-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.quest-emoji {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.quest-title-text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
}

.quest-cnt {
    font-size: 0.75rem;
    color: var(--color-text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.quest-go-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: none;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.quest-go-btn:hover {
    background: rgba(99, 102, 241, 0.28);
}

/* Leaderboard */
.quests-leaderboard {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
}

.lb-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.lb-medal { font-size: 1rem; width: 24px; flex-shrink: 0; }
.lb-name  { flex: 1; color: var(--color-text); }
.lb-score {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* ── Modal questa ── */
.quest-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.quest-modal.hidden {
    display: none;
}

.quest-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.quest-modal-box {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    border-radius: 24px 24px 0 0;
    padding: 28px 20px calc(32px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    animation: slide-up 0.25s ease-out;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.quest-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.quest-modal-emoji {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 6px;
}

.quest-modal-title {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: var(--color-text);
}

.quest-modal-sub {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Nick modal — opada z góry ── */
#nickModal {
    align-items: flex-start;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 0;
}

#nickModal .quest-modal-overlay {
    background: rgba(0, 0, 0, 0.55);
}

#nickModal .quest-modal-box {
    border-radius: 22px;
    padding: 28px 22px 24px;
    width: 100%;
    max-width: 480px;
    animation: nick-drop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
}

@keyframes nick-drop {
    from { transform: translateY(-110%); }
    to   { transform: translateY(0); }
}

#nickModal .quest-modal-close {
    top: 14px;
    right: 14px;
}

#nickModal .quest-modal-emoji {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

#nickModal .quest-modal-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

/* Pole nicku */
#nickInput:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(181, 149, 90, 0.15);
    outline: none;
}

/* ══════════════════════════════════════════════════════════════════════
   REAKCJE LIVE — karta w galerii
   ══════════════════════════════════════════════════════════════════════ */
.reactions-card {
    text-align: center;
    padding: 20px;
}

.reactions-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: 0;
}

.reactions-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}

.emoji-btn {
    flex: 1;
    background: none;
    border: none;
    font-size: 2.4rem;
    line-height: 1;
    padding: 12px 8px 12px;
    cursor: pointer;
    border-radius: 14px;
    transition: transform 0.12s, background 0.12s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.emoji-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.emoji-btn:active {
    transform: scale(0.82);
}

/* Ripple po kliknięciu */
.emoji-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.06);
    opacity: 0;
    transition: opacity 0.3s;
}

.emoji-btn.tapped::after {
    opacity: 1;
}

/* Lokalny burst emoji po kliknięciu */
.emoji-burst {
    position: fixed;
    pointer-events: none;
    font-size: 2.2rem;
    animation: emoji-burst 1s ease-out forwards;
    z-index: 9999;
}

@keyframes emoji-burst {
    0%   { transform: translateY(0)    scale(1);    opacity: 1; }
    40%  { transform: translateY(-50px) scale(1.3); opacity: 1; }
    100% { transform: translateY(-130px) scale(0.9); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   RANKING GOŚCI
   ══════════════════════════════════════════════════════════════════════ */
.guest-ranking-card {
    overflow: hidden;
    padding: 20px;
}

.gr-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.gr-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.gr-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.gr-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gr-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    transition: background 0.15s;
}

.gr-item--first {
    background: linear-gradient(135deg, rgba(181,149,90,0.12), rgba(181,149,90,0.06));
    border: 1px solid rgba(181,149,90,0.2);
}

/* Podświetlenie zalogowanego gościa */
.gr-item--me {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
}

.gr-pos {
    font-size: 1rem;
    width: 28px;
    flex-shrink: 0;
    text-align: center;
}

.gr-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-stats {
    display: flex;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.gr-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.gr-nick-hint {
    margin: 4px 0 0;
    text-align: center;
}

.gr-nick-btn {
    background: none;
    border: 1.5px dashed rgba(99,102,241,0.4);
    border-radius: 20px;
    color: #6366f1;
    font-size: 0.82rem;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.gr-nick-btn:hover {
    background: rgba(99,102,241,0.07);
}

/* ── Personalne statystyki — pusty ranking ── */
.gr-personal {
    text-align: center;
    padding: 8px 0 4px;
}

.gr-personal-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.gr-personal-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.gr-personal-badge {
    background: var(--color-gold-pale);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: var(--color-text);
    font-weight: 500;
}

.gr-personal-hint {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ── Personalne podsumowanie — wypełniony ranking ── */
.gr-my-stats {
    margin: 0 0 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.07), rgba(99,102,241,0.03));
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 14px;
    padding: 14px 16px;
}

.gr-my-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gr-my-place {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6366f1;
    min-width: 40px;
    text-align: center;
}

.gr-my-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.gr-my-meta {
    font-size: 0.78rem;
    color: var(--color-text-light);
    flex: 1;
}

/* ══════════════════════════════════════════════════════════════════════
   WYZWANIE GODZINY — karta w galerii
   ══════════════════════════════════════════════════════════════════════ */
.challenge-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-left: 3px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(181,149,90,0.07), rgba(181,149,90,0.02));
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.challenge-clock {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.challenge-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.challenge-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-gold);
}

.challenge-timer {
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-family: var(--font-body);
}

.challenge-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.challenge-emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.challenge-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════
   ŚCIANA ŻYCZEŃ — karta w galerii
   ══════════════════════════════════════════════════════════════════════ */
.wish-card {
    padding: 20px;
}

.wish-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.wish-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
}

.wish-card-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-form input[type="text"],
.wish-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-input);
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.6);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition);
}

.wish-form input[type="text"]:focus,
.wish-form textarea:focus {
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.9);
}

.wish-submit-btn {
    align-self: flex-start;
}

.wish-status {
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: 10px;
    line-height: 1.4;
}

.wish-status--ok {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.wish-status--error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

/* ══════════════════════════════════════════════════════════════════════
   POLAROID — przycisk w lightboxie
   ══════════════════════════════════════════════════════════════════════ */
.lightbox-polaroid-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.7);
    color: var(--color-text-med);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.lightbox-polaroid-btn:hover {
    background: var(--color-gold-pale);
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
    transform: translateY(-1px);
}

.lightbox-polaroid-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   TikTok Viewer — pełnoekranowe przeglądanie zdjęć i filmów
   ═══════════════════════════════════════════════════════════════ */
.tk-viewer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
    touch-action: none;
}
.tk-viewer.hidden { display: none; }

/* Góra */
.tk-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: env(safe-area-inset-top, 12px) 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 12;
    background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 100%);
    pointer-events: none;
}
.tk-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    pointer-events: all;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.tk-counter {
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 600;
    pointer-events: none;
}

/* Media */
.tk-media-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
/* ID selectors — wysoki priorytet, omija globalne img{height:auto} */
#tk-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
    display: block !important;
    user-select: none;
    -webkit-user-drag: none;
}
#tk-video {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    object-position: center;
    display: block !important;
}
#tk-img.tk-hidden,
#tk-video.tk-hidden { display: none !important; }

/* Dół — nick i opis */
.tk-bottom {
    position: absolute;
    bottom: 0; left: 0;
    right: 72px;
    padding: 60px 16px 28px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    z-index: 11;
    pointer-events: none;
}
.tk-uploader {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.tk-caption {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Prawa kolumna — ikony */
.tk-sidebar {
    position: absolute;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 12;
}
.tk-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.6));
    transition: transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.tk-side-btn:active { transform: scale(.84); }
.tk-side-btn span {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.tk-side-btn.tk-liked svg path { fill: #ff3a5c; stroke: #ff3a5c; }
.tk-side-btn.hidden { display: none; }

/* Strzałki nawigacji (desktop) */
.tk-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.14);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    backdrop-filter: blur(4px);
    transition: background .15s;
}
.tk-nav:hover { background: rgba(255,255,255,.28); }
.tk-prev { left: 10px; }
.tk-next { right: 72px; }

/* Panel overlay (ciemne tło za panelem komentarzy) */
.tk-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 19;
    display: none;
    transition: opacity .25s;
    opacity: 0;
}
.tk-panel-overlay.tk-open { opacity: 1; }

/* Panel komentarzy */
.tk-comments-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 62vh;
    min-height: 320px;
    background: var(--color-bg, #fdfaf6);
    border-radius: 20px 20px 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,1,.6,1);
    touch-action: auto;
}
.tk-comments-panel.tk-open { transform: translateY(0); }
.tk-comments-panel.hidden  { display: none; }

.tk-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text, #2a211a);
    flex-shrink: 0;
}
.tk-comments-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light, #a09080);
    padding: 4px;
    line-height: 0;
}
.tk-comments-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 4px;
    -webkit-overflow-scrolling: touch;
}
.tk-comments-empty {
    text-align: center;
    color: var(--color-text-light, #a09080);
    font-size: .88rem;
    margin-top: 24px;
}

/* Formularz komentarza */
.tk-comment-form {
    padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-top: 1px solid rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    background: var(--color-bg, #fdfaf6);
}
.tk-comment-form input,
.tk-comment-form textarea {
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .88rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    resize: none;
    background: #fff;
    color: var(--color-text, #2a211a);
    outline: none;
}
.tk-comment-form input:focus,
.tk-comment-form textarea:focus {
    border-color: var(--color-gold, #b5955a);
}
.tk-comment-form-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.tk-comment-form-row textarea { flex: 1; min-height: 52px; }
.tk-comment-submit {
    background: var(--color-gold, #b5955a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    transition: opacity .15s;
}
.tk-comment-submit:hover { opacity: .88; }
.tk-comment-submit:disabled { opacity: .5; cursor: wait; }

/* Miniaturka wideo w siatce */
.gallery-card-thumb--video { position: relative; }
.gallery-thumb-video {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: #111;
}
.gallery-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.gallery-play-icon {
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,.52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (min-width: 768px) {
    .tk-bottom  { padding-bottom: 36px; }
    .tk-sidebar { right: 24px; bottom: 100px; }
    .tk-next    { right: 80px; }
}
