:root {
    --primary: #0a192f;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.4);
    --bg-light: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --border: #e5e7eb;
    --success: #10b981;
    --pending: #f59e0b;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --accent-light: rgba(100, 255, 218, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #f8fafc;
        --accent: #64ffda;
        --accent-glow: rgba(100, 255, 218, 0.2);
        --bg-light: #0f172a;
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --white: #1e293b;
        --glass-bg: rgba(30, 41, 59, 0.85);
        --glass-border: rgba(255, 255, 255, 0.05);
        --border: #334155;
        --card-bg: #1e293b;
        --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        --accent-light: rgba(100, 255, 218, 0.04);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    /* Fix hero clip-path on mobile */
    .hero {
        clip-path: none !important;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem !important; line-height: 1.2; }
    .container { padding: 0 12px; }
    .footer-contact-box { padding: 15px; }
}

/* ===== SHARED FOOTER STYLES ===== */
.site-footer {
    padding: 80px 0 40px;
    background: #0a192f;
    color: white;
    margin-top: 120px;
    border-top: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.footer-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(100,255,218,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 6%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
}
.footer-logo {
    font-size: 2.2rem !important;
    color: white !important;
    margin-bottom: 18px;
    display: block;
}
.footer-desc {
    opacity: 0.75;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.98rem;
    max-width: 340px;
}
.footer-contact-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 18px 22px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.footer-contact-box strong {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}
.footer-contact-box span { opacity: 0.65; }
.footer-heading {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
    margin-bottom: 14px;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--accent); }
.footer-payment {
    margin-top: 30px;
}
.footer-payment-label {
    display: block;
    font-size: 0.72rem;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.footer-payment-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 60px;
    padding-top: 28px;
    font-size: 0.88rem;
    opacity: 0.45;
}
.footer-admin-lock {
    opacity: 0.3;
    transition: opacity 0.3s;
    padding: 8px;
    display: inline-block;
}
.footer-admin-lock:hover { opacity: 0.8; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .site-footer { padding: 60px 0 30px; margin-top: 80px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-logo { font-size: 1.8rem !important; }
    .footer-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .footer-contact-box { text-align: left; }
    .footer-contact-item a { justify-content: center; display: inline-flex; padding: 8px 0; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
    .footer-links li { margin-bottom: 0; }
    /* Wygodniejsze obszary dotyku linków stopki na mobile */
    .footer-links a { display: inline-block; padding: 9px 6px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-top: 40px;
    }
    .footer-payment { text-align: center; }
}

/* Responsive helper grids */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 80px;
    padding-top: 40px;
    font-size: 0.95rem;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Glassmorphism System */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--bg-light);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--text-main);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-light);
}

/* ============================================================
   HYPNOZA — DESIGN ENHANCEMENTS (motywy hipnotyczne, addytywne)
   ============================================================ */
:root {
    --spacing-sm: 24px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --spacing-xl: 90px;
    --spacing-xxl: 130px;
}

/* Kojąca poświata tła (statyczna, zawsze za treścią) */
body {
    background:
        radial-gradient(1100px 560px at 82% -8%, rgba(100,255,218,0.07), transparent 60%),
        radial-gradient(820px 460px at -8% 108%, rgba(100,255,218,0.05), transparent 60%),
        var(--bg-light);
    background-attachment: fixed;
}

/* HERO — animacje hipnotyczne */
@keyframes hypnoSpin    { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes hypnoBreathe { 0%,100%{opacity:.3} 50%{opacity:.6} }
@keyframes hypnoGlow    { 0%,100%{opacity:.18} 50%{opacity:.4} }
@keyframes hypnoWave    { from{transform:translateX(0)} to{transform:translateX(-100px)} }
@keyframes hypnoFadeIn  { from{opacity:0; transform:scale(.96) translateY(22px)} to{opacity:1; transform:none} }
@keyframes hypnoGradient{ 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.hypnotic-backdrop { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.hypnotic-backdrop svg { width:100%; height:100%; display:block; }
.hypnotic-spiral { transform-box:fill-box; transform-origin:center; animation: hypnoSpin 26s linear infinite, hypnoBreathe 5s ease-in-out infinite; }
.hypnotic-pulse  { transform-box:fill-box; transform-origin:center; animation: hypnoGlow 4s ease-in-out infinite; }
.hypnotic-waves  { animation: hypnoWave 9s linear infinite; }
.hypnotic-glow   { animation: hypnoGlow 6s ease-in-out infinite; }

.hero-content.hero-title-animated { animation: hypnoFadeIn 1.1s cubic-bezier(.16,1,.3,1) both; }
.hero-content.hero-title-animated h1 {
    background: linear-gradient(110deg,#ffffff 0%,#eafff8 45%,var(--accent) 100%);
    background-size: 220% 220%;
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color:transparent;
    animation: hypnoGradient 7s ease infinite;
    text-shadow: 0 0 34px rgba(100,255,218,.18);
}
.hero-content.hero-title-animated p   { animation: hypnoFadeIn 1.3s cubic-bezier(.16,1,.3,1) .15s both; }
.hero-content.hero-title-animated > div { animation: hypnoFadeIn 1.5s cubic-bezier(.16,1,.3,1) .3s both; }

/* Nagłówki sekcji z ikoną hipnozy + kicker */
.section-kicker { display:block; text-align:center; color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:3px; font-size:.72rem; margin-bottom:10px; }
.section-head   { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:10px; }
.section-head svg { color:var(--accent); opacity:.85; flex-shrink:0; }
.section-head h2 { margin:0; }

/* Falisty dzielnik sekcji */
.wave-divider { width:100%; height:120px; margin:30px 0; display:block; overflow:hidden; pointer-events:none; }
.wave-divider svg { width:100%; height:100%; display:block; }

/* Scroll-reveal (progresywne — ukrywa tylko gdy JS ustawi html.reveal-on) */
html.reveal-on .reveal-init { opacity:0; transform: translateY(34px); }
.reveal-init.revealed { animation: hypnoFadeIn .9s cubic-bezier(.16,1,.3,1) forwards; opacity:1; }

/* Dostępność: widoczny focus */
.btn-primary:focus-visible, .btn-outline:focus-visible, a.btn-primary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .hypnotic-waves { display:none; }
    .wave-divider { height:70px; margin:18px 0; }
    .section-kicker { letter-spacing:2px; }
    /* Ikona nad tytułem (zamiast obok) — tytuł realnie wyśrodkowany na mobile */
    .section-head { flex-direction: column; gap: 8px; text-align: center; }
    .section-head h2 { text-align: center; width: 100%; }
}

/* CTA „Poznajmy się" — przyciski na mobile: pełna szerokość, numer telefonu w jednej linii */
@media (max-width: 600px) {
    #poznajmy-sie > div { padding: 32px 20px !important; }
    #poznajmy-sie a {
        width: 100%; box-sizing: border-box; justify-content: center;
        white-space: nowrap; padding: 15px 18px !important; font-size: 0.95rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hypnotic-spiral, .hypnotic-pulse, .hypnotic-waves, .hypnotic-glow,
    .hero-content.hero-title-animated,
    .hero-content.hero-title-animated h1,
    .hero-content.hero-title-animated p,
    .hero-content.hero-title-animated > div,
    .reveal-init.revealed { animation: none !important; }
    .reveal-init { opacity:1 !important; transform:none !important; }
    body { background: var(--bg-light); }
}

/* Header & Nav */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 40px;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 100;
    transition: var(--transition-smooth);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    position: relative;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.8;
}

.nav-links a.nav-item {
    position: relative;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.nav-links a.nav-item:hover {
    color: var(--primary);
    background: rgba(100, 255, 218, 0.15);
}

.nav-links a.btn-outline::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.8)), url('https://images.unsplash.com/photo-1542314831-c6a420325142?auto=format&fit=crop&q=80&w=2000') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Search Box */
.search-box {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 180px;
    gap: 24px;
    align-items: end;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 35px 45px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    outline: none;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
}

/* Room Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-glow);
}

.service-image-container {
    position: relative;
    overflow: hidden;
}

.service-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.service-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.service-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Dashboard Overrides */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary);
    color: #ffffff;
    padding: 40px 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar h2 {
    color: #ffffff;
    margin-bottom: 50px;
    font-size: 1.5rem;
}

.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li { margin-bottom: 8px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    padding: 14px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    color: #ffffff;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.main-content {
    padding: 50px;
    background: var(--bg-light);
}

/* Stats Cards */
.stats-grid {
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Tables */
table {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

th {
    background: rgba(0,0,0,0.02);
    padding: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

td {
    padding: 20px;
    vertical-align: middle;
}

tr {
    transition: var(--transition-smooth);
}

tr:hover {
    background: rgba(0,0,0,0.01);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Calendar Helper Classes */
.calendar-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 2px solid #f5f5f5;
}

.nav-btn-mobile {
    text-decoration: none;
    background: var(--bg-light);
    padding: 10px 24px;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.nav-btn-mobile:hover {
    background: var(--primary);
    color: var(--white);
}

.calendar-grid-wrapper {
    display: grid;
    grid-template-columns: 220px repeat(var(--cal-days, 31), minmax(38px, 1fr));
    min-width: 900px;
}

.calendar-grid-wrapper > div:nth-child(n) {
    /* Base styles for all cells */
}

/* Room name column sticky */
.cal-service-label {
    position: sticky !important;
    left: 0 !important;
    z-index: 100 !important;
    background-color: var(--white) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .calendar-nav-header {
        padding: 20px;
    }
    .nav-btn-mobile {
        padding: 8px 15px;
    }
    .calendar-grid-wrapper {
        grid-template-columns: 140px repeat(var(--cal-days, 31), minmax(38px, 1fr));
    }
}

/* Modal Helper Classes */
.booking-modal-content {
    width: 1000px;
    max-width: 95%;
    padding: 50px;
    border-radius: 40px;
    position: relative;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .contact-grid, .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .booking-modal-content {
        padding: 30px;
        border-radius: 24px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .booking-modal-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-content-full {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-top: 0 !important;
    }
    .about-photo-main {
        max-width: 280px !important;
        margin: 0 auto;
    }
    .contact-card {
        padding: 30px !important;
        border-radius: 20px !important;
    }
    .contact-grid {
        gap: 30px !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3.5rem; }
    .service-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
}

@media (max-width: 992px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .search-form .btn-primary {
        grid-column: span 2;
    }
    .hero-content h1 { font-size: 3rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 1200px) {
    /* Header — tablet: hamburger pojawia się wcześniej, by uniknąć ściśniętego menu */
    header {
        width: 94%;
    }
    .mobile-menu-toggle { display: flex; }
    nav { flex-direction: row; }

    /* Nav overlay for tablet */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        z-index: 9000;
        gap: 16px !important;
        padding: 40px 30px;
        opacity: 0;
        visibility: hidden;
    }
    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.25rem !important;
        width: auto;
        text-align: center;
        padding: 14px 32px;
        border-radius: 14px;
    }
    .nav-links a:hover,
    .nav-links a:active {
        background: #f1f5f9;
    }
    .nav-links .btn-outline {
        margin-top: 8px;
        padding: 14px 40px;
        font-size: 1.1rem !important;
        width: auto;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    /* Header â€” phone refinements */
    header { 
        padding: 12px 16px; 
        width: 95%;
        top: 12px;
        border-radius: 20px;
    }
    .logo { font-size: 1.4rem !important; white-space: nowrap; }
    /* Na mobile chowamy redundantną pigułkę „Strona Główna" (logo już prowadzi do strony głównej).
       Czysty, standardowy układ: logo po lewej, hamburger po prawej. */
    .home-pill { display: none !important; }
    .brand-row { gap: 0 !important; }
    .brand-row .logo { margin-right: 0 !important; }
    
    /* Hero */
    .hero {
        height: 75vh;
        min-height: 420px;
        max-height: 600px;
        clip-path: none !important;
        /* fixed jest zoomowany/cropowany różnie w przeglądarkach mobilnych (Brave vs Chrome) — wymuszamy scroll */
        background-attachment: scroll !important;
        background-position: center !important;
    }
    .hero-content h1 { font-size: clamp(1.6rem, 7vw, 2rem) !important; line-height: 1.2 !important; padding: 0 16px !important; overflow-wrap: break-word; }
    .hero-content p { font-size: 0.98rem !important; padding: 0 16px; opacity: 0.9; }
    .hero-content a.btn-primary {
        padding: 16px 36px !important;
        font-size: 0.95rem !important;
        letter-spacing: 1px !important;
        width: auto !important;
    }

    /* Search box */
    .search-box { margin-top: -30px; padding: 0 12px; }
    .search-form { 
        grid-template-columns: 1fr; 
        padding: 20px !important;
        gap: 14px;
        border-radius: 20px;
    }
    .search-form .btn-primary { grid-column: span 1; width: 100%; }

    /* Sections spacing */
    section { margin-top: 64px !important; }
    h2 { font-size: 1.75rem !important; margin-bottom: 20px !important; }
    section > p[style*="margin-bottom"] { margin-bottom: 32px !important; }

    /* About section */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .about-grid > div:first-child img {
        max-width: 260px !important;
    }
    .about-grid > div:last-child {
        padding: 28px !important;
    }
    
    /* Service cards */
    .service-card .service-info { padding: 20px; }
    .service-card .service-info h3 { font-size: 1.25rem; }
    .service-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Booking cart bar at bottom */
    #booking-cart {
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
    #booking-cart .container {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 16px !important;
        text-align: center;
    }
    #booking-cart .btn-primary {
        width: 100%;
    }

    /* Footer */
    footer { padding: 60px 0 30px !important; }
    footer > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    footer li a {
        justify-content: center !important;
    }
    footer div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center;
        margin-top: 40px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    .footer-grid li a {
        justify-content: center !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center;
        margin-top: 40px !important;
    }
    
    /* Admin layout (mobile) */
    .admin-layout {
        display: flex;
        flex-direction: column;
    }
    .sidebar {
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 10px 15px;
        overflow-x: auto;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 15px;
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar h2 { display: none; }
    .sidebar-nav { display: flex; gap: 10px; margin: 0; padding: 0; }
    .sidebar-nav li { margin: 0; }
    .sidebar-nav a { padding: 8px 12px; font-size: 0.85rem; }
    .main-content { padding: 20px; }
}

/* ===== SMALL PHONES (â‰¤480px) ===== */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.7rem !important; }
    .search-form { padding: 18px !important; }
    h2 { font-size: 1.5rem !important; }
}

/* ===== MOBILE INLINE-STYLE OVERRIDES ===== */
/* These override inline styles in index.php that break mobile layouts */
@media (max-width: 768px) {
    /* Service card price/button row: stack vertically */
    .service-card div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .service-card div[style*="justify-content: space-between"] .btn-primary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center;
        padding: 14px 24px !important;
    }
    /* Service card padding */
    .service-card div[style*="padding: 35px"] {
        padding: 22px !important;
    }
    /* Card image ratio â€” less tall on mobile */
    .service-card div[style*="aspect-ratio: 1/1"] {
        aspect-ratio: 4/3 !important;
    }
    /* About block â€” reduce padding */
    section#about div[style*="padding: 50px"] {
        padding: 24px !important;
    }
    section#about div[style*="max-width: 780px"] {
        margin: 0 4px !important;
    }
    /* Price font â€” slightly smaller */
    .service-card span[style*="font-size: 1.8rem"] {
        font-size: 1.5rem !important;
    }
    /* Grid containers with minmax(300+) â€” single column */
    div[style*="minmax(350px"],
    div[style*="minmax(320px"],
    div[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    /* Inline footer in index.php */
    footer div[style*="grid-template-columns: 2fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    footer div[style*="grid-template-columns: 2fr 1fr 1fr"] a {
        justify-content: center !important;
    }
    footer h2[style*="font-size: 2.8rem"],
    footer h2[style*="font-size: 3rem"] {
        font-size: 1.8rem !important;
    }
    footer div[style*="padding: 0 8%"] {
        padding: 0 20px !important;
    }
    footer div[style*="margin-top: 100px"] {
        margin-top: 40px !important;
    }
    /* Hero button â€” prevent overflow */
    .hero-content div[style*="margin-top: 50px"] {
        margin-top: 28px !important;
    }
    .hero-content a[style*="padding: 22px 60px"] {
        padding: 14px 32px !important;
        font-size: 0.92rem !important;
    }
    /* Section margins â€” tighten */
    section[style*="margin-top: 150px"] {
        margin-top: 60px !important;
    }
    /* Availability slots â€” smaller padding */
    .hour-slot-btn {
        padding: 10px 8px !important;
        font-size: 0.88rem !important;
        min-height: 44px;
    }
    /* Cookie banner â€” bigger tap targets */
    .cookie-btn-accept,
    .cookie-btn-reject {
        min-height: 44px;
        padding: 12px 24px;
    }
    /* Booking modal */
    .booking-modal-content {
        padding: 22px !important;
        border-radius: 20px !important;
    }
    .modal-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Booking Page Responsiveness */
@media (max-width: 768px) {
    .period-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    .period-row .remove-period {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-bottom: 0;
    }
    .price-total {
        font-size: 1.3rem;
    }
    .glass-panel {
        padding: 25px !important;
    }
    .booking-summary-sidebar {
        position: static !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 600px) {
    .booking-progress-container {
        gap: 10px !important;
    }
    .booking-progress-container div[style*="width: 44px"] {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    .booking-progress-container span {
        font-size: 0.65rem !important;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.cookie-show {
    transform: translateY(0);
    opacity: 1;
}
.cookie-banner.cookie-hide {
    transform: translateY(100%);
    opacity: 0;
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 25px 35px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.15);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 20px;
    margin-right: 20px;
}
.cookie-text h4 {
    color: white;
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}
.cookie-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}
.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn-accept {
    padding: 12px 28px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}
.cookie-btn-reject {
    padding: 12px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.cookie-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        padding: 20px;
        margin: 0 10px 10px;
        gap: 15px;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* â”€â”€ Booking Page Booksy UI â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.booking-progress {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    position: relative;
}
.booking-progress::before {
    content: '';
    position: absolute;
    top: 21px; left: 15%; right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 160px;
    position: relative;
    z-index: 2;
}
.progress-step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.progress-step.active .progress-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.progress-step.done .progress-step-num {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.progress-step-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.progress-step.active .progress-step-label { color: var(--primary); }

.book-main-grid { display:grid; grid-template-columns:1fr 380px; gap:40px; align-items:start; }
@media (max-width: 760px) {
    .book-main-grid { grid-template-columns:1fr; }
    .book-main-grid > div:last-child { position:static !important; }
    .booking-progress { flex-wrap:wrap; }
}

.unavail-banner { background:#fee2e2; color:#991b1b; padding:16px 22px; border-radius:14px; margin-bottom:24px; font-weight:600; border:1px solid #fca5a5; }

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}
.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-group input, .input-group select, .input-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-main);
    transition: var(--transition-smooth);
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
    background: white;
}
/* ──

/* ── Booking Section ─────────────────────────────────────────── */
.booking-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.booking-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(100,255,218,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.booking-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(100,255,218,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Booksy-style Time Picker ────────────────────────────────── */
.booking-wizard {
    background: var(--card-bg);
    border-radius: 28px; /* Zaokrąglenie dostosowane do reszty strony */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: var(--text-main);
}
.booking-steps {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}
.booking-step-tab {
    flex: 1;
    padding: 18px 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.booking-step-tab .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}
.booking-step-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.booking-step-tab.active .step-num {
    background: var(--accent);
    color: var(--primary);
}
.booking-step-tab.done .step-num {
    background: var(--success);
    color: white;
}

.booking-step-content { padding: 36px 40px; display: none; }
.booking-step-content.active { display: block; }

/* Week picker */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.week-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}
.week-nav-btn {
    width: 36px; height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}
.week-nav-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.week-nav-btn:disabled { opacity: 0.3; cursor: default; }

.day-columns {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.day-col { text-align: center; }
.day-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.day-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    width: 38px; height: 44px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.day-date.today { background: var(--accent); color: var(--primary); }
.day-date.selected { background: var(--primary); color: var(--white); }
.day-date.dimmed { opacity: 0.3; cursor: default; }
.day-date:hover:not(.today):not(.selected):not(.dimmed) { background: var(--bg-light); }

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}
.time-slot {
    text-align: center;
    padding: 12px 6px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--card-bg);
}
.time-slot:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}
.time-slot.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Booking bar */
.booking-bar {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.booking-bar-info {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 600;
}
.booking-bar-info strong { color: var(--accent); font-weight: 800; }

/* ── Wizard Grids ── */
.booking-step2-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}
@media (max-width: 760px) {
    .booking-step2-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
@media (max-width: 480px) {
    .booking-step-tab { font-size: 0.72rem; padding: 12px 6px; }
    .booking-step-tab .step-num { width: 22px; height: 22px; font-size: 0.68rem; }
    .day-columns { gap: 4px; }
    .day-date { width: 32px; height: 32px; font-size: 0.8rem; }
    .booking-step-content { padding: 20px 14px; }
    .booking-wizard { border-radius: 16px; }
}
