@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #050505;
    --bg-layer-1: radial-gradient(circle at 18% 12%, rgba(204, 255, 0, 0.12), transparent 55%);
    --bg-layer-2: radial-gradient(circle at 80% 8%, rgba(255, 0, 60, 0.18), transparent 45%);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --text: #f3f3f0;
    --muted: rgba(243, 243, 240, 0.64);
    --accent-lime: #ccff00;
    --accent-red: #ff003c;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(204, 255, 0, 0.3);
    --shadow-card: 0 35px 80px rgba(0, 0, 0, 0.55);
    --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.4);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --header-h: 96px;
    --transition: 0.3s ease;
}

@media (max-width: 900px) {
    :root {
        --header-h: 112px;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    background-image: var(--bg-layer-1), var(--bg-layer-2);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
}

.page-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent-lime);
    outline-offset: 4px;
}

.container {
    width: min(1180px, 100% - 48px);
    margin: 0 auto;
}

main {
    flex: 1 1 auto;
    margin-bottom: 50px;
}

/* HEADER */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(5, 5, 5, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 30;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(204, 255, 0, 0.08), transparent 35%, rgba(255, 0, 60, 0.08));
}

.nav-row {
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: 0.35em;
}

.nav-brand .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    object-fit: cover;
}

.nav-brand .mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    font-size: 13px;
    letter-spacing: 0.2em;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), transparent);
}

.nav-links {
    display: flex;
    gap: 18px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    align-items: center;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.tag-chip {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-lime);
    color: #050505;
    box-shadow: 0 18px 35px rgba(204, 255, 0, 0.35);
}

.btn-secondary {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
}

.labyrinth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.35em;
    font-size: 14px;
    text-transform: uppercase;
}

.labyrinth-logo span {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    font-size: 11px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* HERO */
.section {
    padding: 80px 0;
}

.hero {
    padding: 120px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 12px;
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(48px, 7vw, 78px);
    line-height: 0.95;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--accent-red);
}

.hero p {
    margin-top: 18px;
    color: var(--muted);
    max-width: 540px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.hero-metric strong {
    font-size: 34px;
}

/* SECTION HEADINGS */
.section-heading {
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.section-heading p {
    color: var(--muted);
    margin-top: 12px;
    max-width: 540px;
}

/* QUESTS GRID */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.quest-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
}

.quest-media {
    position: relative;
    height: 220px;
    background: linear-gradient(145deg, rgba(204, 255, 0, 0.25), rgba(255, 0, 60, 0.35));
}

.quest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quest-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quest-title {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.difficulty {
    display: inline-flex;
    gap: 4px;
}

.difficulty span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.difficulty span.is-active {
    background: var(--accent-red);
}

.quest-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.quest-footer strong {
    color: var(--accent-lime);
    font-size: 18px;
}

.quest-footer .btn {
    flex-shrink: 0;
}

/* RATING & REVIEWS */
.rating-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.panel-card {
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* TABLES / ADMIN */
.panel-shell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.panel-shell table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.panel-shell__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-shell__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-shell__body.no-padding {
    padding: 0;
}

.panel-shell thead {
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
}

.panel-shell th,
.panel-shell td {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-chip--pending {
    background: rgba(255, 0, 60, 0.18);
    color: var(--accent-red);
}

.status-chip--approved {
    background: rgba(204, 255, 0, 0.18);
    color: var(--accent-lime);
}

.status-chip--done {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

.status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-form select {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
}

/* AUTH / FORMS */
.auth-main {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 100px 16px;
}

.auth-card,
.booking-card {
    width: min(480px, 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(5, 5, 5, 0.9));
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-card h1,
.booking-card h1,
.booking-card h2 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.auth-card p,
.booking-card p {
    color: var(--muted);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.char-counter {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.booking-layout {
    display: grid;
    gap: 28px;
}

.booking-layout .panel-card {
    padding: 28px;
}

.form-dialog,
.booking-card {
    width: 100%;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 15px;
    padding: 14px 18px;
    transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
    background: rgba(204, 255, 0, 0.04);
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-pill {
    position: relative;
}

.choice-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-pill span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: border var(--transition), background var(--transition), color var(--transition);
}

.choice-pill input:checked + span {
    border-color: var(--accent-lime);
    color: var(--text);
    background: rgba(204, 255, 0, 0.08);
}

.profile-stack {
    gap: 20px;
  display: flex;
  flex-direction: column;
}
.profile-panels{
    gap: 20px;
  display: flex;
  flex-direction: column;
}

/* PASSPORT / PROFILE */
.passport-hero {
    text-align: center;
    padding: 80px 0 30px;
}

.passport-hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

.passport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.passport-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

/* UTILITIES */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.empty-state {
    padding: 32px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    color: var(--muted);
}

/* FOOTER */
.site-footer {
    background: #030303;
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.footer-grid h3 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--muted);
}

