:root {
    --primary: #7d3cff;
    --secondary: #111827;
    --accent: #f3f4f6;
    --success: #166534;
    --danger: #b91c1c;
    --warning: #92400e;
    --text: #111827;
    --muted: #6b7280;
    --bg: #ffffff;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(125, 60, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #faf7ff 0%, #ffffff 30%);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    border-color: rgba(125, 60, 255, 0.20);
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-weight: 700; cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
    box-shadow: 0 14px 24px rgba(125, 60, 255, 0.22);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: var(--secondary); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.badge {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px;
    background: rgba(125, 60, 255, 0.1); color: var(--primary); font-size: .9rem; font-weight: 700;
}
.hero { padding: 32px 0 56px; }
.hero-shell {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch;
}
.hero-copy { padding: 24px 0; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 4.4rem); line-height: 1.02; margin: 18px 0; }
.hero-copy p { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.hero-image {
    overflow: hidden; min-height: 420px;
    background: radial-gradient(circle at top right, rgba(125, 60, 255, .22), transparent 35%), #111827;
    position: relative;
}
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,0.02), rgba(17,24,39,0.24));
    pointer-events: none;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.topbar {
    padding: 18px 0; position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(229,231,235,.6);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; }
.brand-logo {
    width: 52px; height: 52px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: white;
}
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 600; }
.info-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { padding: 24px; }
.info-card h3 { margin-top: 0; }
.booking-wrap { grid-template-columns: 1.15fr .85fr; align-items: start; }
.slot-groups { display: grid; gap: 18px; }
.slot-day { padding: 22px; }
.slot-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.slot-button {
    padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer;
    font-weight: 700; transition: all .15s ease;
}
.slot-button:hover, .slot-button.active { background: var(--secondary); color: white; border-color: var(--secondary); }
.form-card { padding: 28px; position: sticky; top: 92px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], textarea, select {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); outline: none; background: #fff;
    font: inherit;
}
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 56px;
}
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 6px;
    color: var(--muted);
}
.password-toggle-btn:hover {
    color: var(--secondary);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(125, 60, 255, 0.12); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.checkbox input { margin-top: 4px; }
.notice {
    padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; margin: 18px 0;
}
.notice.info { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.notice.success { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.notice.error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.notice.warning { background: #fffbeb; border-color: #fde68a; color: var(--warning); }
.step-number {
    width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
    background: var(--secondary); color: white; font-weight: 800; margin-bottom: 14px;
}
.cta-band {
    padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer { padding: 26px 0 50px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.cookie-banner {
    position: fixed; inset: auto 16px 16px 16px; z-index: 60; max-width: 760px; margin: auto;
    padding: 18px; display: none;
}
.cookie-banner.show { display: block; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { padding: 28px 20px; background: #0f172a; color: white; }
.admin-sidebar a { color: rgba(255,255,255,.86); display: block; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-main { padding: 32px; background: #f8fafc; }
.admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-card { padding: 24px; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small { color: var(--muted); font-size: .94rem; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .85rem; font-weight: 700; }
.tag.cancelled { background: #fee2e2; color: #991b1b; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, #f5f3ff, #eef2ff); }
.login-card { width: min(460px, 100%); padding: 32px; }
.kpi { font-size: 2rem; font-weight: 800; margin: 8px 0; }
@media (max-width: 980px) {
    .hero-shell, .booking-wrap, .grid-2, .info-cards, .stats { grid-template-columns: 1fr; }
    .form-card { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: sticky; top: 0; z-index: 50; }
}
@media (max-width: 640px) {
    .container { width: min(100% - 20px, 1120px); }
    .form-row { grid-template-columns: 1fr; }
    .topbar-inner { align-items: flex-start; flex-direction: column; }
    .nav { font-size: .95rem; }
    .hero-copy h1 { font-size: 2.4rem; }
}
