:root {
    --bg: #f5f7fb;
    --paper: #ffffff;
    --card: #f8fafc;
    --card-2: #eef4ff;
    --text: #18212f;
    --muted: #667085;
    --line: #e5eaf2;
    --accent: #36a56d;
    --accent-dark: #278657;
    --accent-soft: #ebf8f1;
    --success: #208b5d;
    --warning: #d9901a;
    --danger: #d14343;
    --info: #2563eb;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
    --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
    --radius: 20px;
}
* { box-sizing: border-box; }
html, body { font-family: 'Inter', Arial, Helvetica, sans-serif; background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { padding: 18px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 22px; text-decoration: none; }
.text-menu { display: flex; gap: 8px; flex-wrap: wrap; }
.text-menu a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.text-menu a.active, .text-menu a:hover { color: var(--text); background: var(--card); }
.hero, .panel, .card, .auth-box, .dashboard-shell { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero { padding: 42px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; }
.hero p { color: var(--muted); margin: 0 0 14px; }
.hero-side { background: linear-gradient(180deg, var(--card), var(--card-2)); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--card); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.btn, button, .btn-secondary, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 18px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn, button { background: var(--accent); color: #fff; }
.btn:hover, button:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-link { padding: 0; background: none; color: var(--accent-dark); }
.section { margin: 24px 0 36px; }
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .panel { padding: 22px; }
.card h3, .panel h2, .panel h3 { margin-top: 0; }
.muted { color: var(--muted); }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.required { color: var(--danger); }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 15px; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.flash { border-radius: 16px; padding: 14px 16px; margin: 18px 0; border: 1px solid transparent; }
.flash.success { background: rgba(62,132,95,.1); color: var(--success); border-color: rgba(62,132,95,.2); }
.flash.error { background: rgba(178,76,66,.1); color: var(--danger); border-color: rgba(178,76,66,.2); }
.flash.info { background: rgba(197,137,45,.12); color: #8b5c0a; border-color: rgba(197,137,45,.2); }
.auth-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 24px 0 40px; }
.auth-box { width: min(620px, 100%); padding: 28px; }
.dashboard-shell { display: grid; grid-template-columns: 250px 1fr; gap: 0; overflow: hidden; margin: 18px 0 36px; }
.sidebar { background: #f1e7d8; border-right: 1px solid var(--line); padding: 20px 14px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar a { text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.sidebar a.active, .sidebar a:hover { background: #fff; color: var(--text); }
.main-panel { padding: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border-radius: 18px; padding: 18px; }
.kpi .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee2d1; vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.confirmed { background: rgba(62,132,95,.12); color: var(--success); }
.status.pending { background: rgba(197,137,45,.14); color: #9a6706; }
.status.manual { background: rgba(80,90,190,.12); color: #4b52b5; }
.status.full { background: rgba(178,76,66,.12); color: var(--danger); }
.small { font-size: 13px; }
.footer { padding: 24px 0 36px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.inline-form { display: inline-block; margin: 0; }
.code-pill { display: inline-flex; font-weight: 800; letter-spacing: .08em; background: var(--card); padding: 7px 10px; border-radius: 10px; }
.small-btn { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.stack-small { display: flex; flex-direction: column; gap: 8px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.reserve-search-panel, .reserve-event-panel { background: var(--paper); }
.reserve-event-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.reserve-slot-box { min-width: 180px; background: var(--card); border-radius: 18px; padding: 16px; }
.reserve-slot-box.is-full { background: rgba(178,76,66,.12); }
.reserve-slot-label, .reserve-info-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.reserve-event-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 18px; }
.reserve-info-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.reserve-description { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.event-list { display: grid; gap: 16px; }
.event-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--card); color: var(--text); }
@media (max-width: 900px) { .hero, .grid-2, .grid-3, .form-grid.cols-2, .form-grid.cols-3, .dashboard-shell, .kpis, .reserve-event-grid { grid-template-columns: 1fr; } .dashboard-shell { display: block; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .event-item, .reserve-event-head { grid-template-columns: 1fr; } }


.legal-page{max-width:900px;margin:0 auto;}
.legal-text{white-space:normal;line-height:1.7;color:#1f2937;}
textarea{min-height:140px;resize:vertical;}


.kpi-login .value { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.compact-card { padding: 18px; }
.dashboard-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.stats-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee2d1; }
.stats-row:last-child { border-bottom: 0; }
.stats-list { margin: 0; padding-left: 20px; color: var(--muted); }
.stats-list li { margin-bottom: 8px; }
.kpi .value { overflow-wrap: anywhere; }
@media (max-width: 900px) { .dashboard-intro-grid { grid-template-columns: 1fr; } }


.btn-danger{background:#a33131;color:#fff;border:none;}
.wrap-anywhere{overflow-wrap:anywhere;word-break:break-word;}
.stack-mobile{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
textarea{min-height:140px;}


.desktop-only { display: block; }
.mobile-only { display: none; }

.event-item-stack { align-items: flex-start; gap: 16px; }
.event-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 210px; }
.question-link { font-weight: 700; }
.reserve-secondary-actions { margin-top: 16px; }
.inquiry-event-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0 20px;
}

.mobile-card-list { display: grid; gap: 14px; }
.mobile-data-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(88, 62, 37, 0.06);
}
.mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.mobile-card-head h3,
.mobile-data-card h3 {
    margin: 0;
    font-size: 18px;
}
.mobile-data-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mobile-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 860px) {
    .desktop-only { display: none; }
    .mobile-only { display: grid; }
    .event-item-stack { flex-direction: column; }
    .event-item-actions { align-items: flex-start; min-width: 0; width: 100%; }
    .mobile-data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .auth-box[style] { width: 100% !important; }
    .mobile-card-head { flex-direction: column; align-items: flex-start; }
    .mobile-actions > * { width: 100%; }
}


/* FIX: ensure correct visibility handling */
.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

@media (max-width: 860px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}



/* ===== v23 Modern Redesign ===== */
.container { width: min(1180px, calc(100% - 32px)); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 16px 0;
    background: rgba(245, 247, 251, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 234, 242, 0.9);
}
.topbar-inner { gap: 20px; }
.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.text-menu { gap: 10px; }
.text-menu a {
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 600;
    border-radius: 999px;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.text-menu a.active,
.text-menu a:hover {
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.hero, .panel, .card, .auth-box, .dashboard-shell {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.hero {
    padding: 48px;
    gap: 28px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(54,165,109,0.08), transparent 24%),
        rgba(255,255,255,0.96);
}
.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero p { font-size: 16px; color: var(--muted); max-width: 60ch; }
.hero-side {
    background: linear-gradient(180deg, #f8fbff 0%, #eef7f2 100%);
    border: 1px solid #e7eef8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.badge {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
    border: 1px solid rgba(54,165,109,0.14);
    box-shadow: 0 6px 18px rgba(54,165,109,0.08);
}

.section { margin: 26px 0 38px; }
.card, .panel { padding: 26px; }
.card, .panel, .auth-box, .kpi, .mobile-data-card, .event-item, .reserve-info-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover, .panel:hover, .mobile-data-card:hover, .event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.08);
}
h1, h2, h3 {
    letter-spacing: -0.03em;
    line-height: 1.15;
}
h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
    letter-spacing: 0.01em;
}
.required { color: var(--danger); }

input, textarea, select {
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
textarea { min-height: 128px; }

.btn, button, .btn-secondary, .btn-link {
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn, button {
    background: linear-gradient(180deg, #3bb879 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(54,165,109,0.20);
}
.btn:hover, button:hover {
    background: linear-gradient(180deg, #33a86d 0%, var(--accent-dark) 100%);
    transform: translateY(-1px);
}
.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(17,24,39,0.05);
}
.btn-secondary:hover {
    background: #f8fbff;
    border-color: #d8e2f0;
    transform: translateY(-1px);
}
.btn-link {
    color: var(--info);
    font-weight: 700;
}
.btn-link:hover {
    color: #1d4ed8;
    transform: none;
}

.flash {
    border-radius: 18px;
    padding: 16px 18px;
    border-width: 1px;
    box-shadow: var(--shadow-soft);
}
.flash.success { background: #ecfdf3; color: #157347; border-color: #c7eed5; }
.flash.error { background: #fff2f2; color: #b42318; border-color: #f2c0bc; }
.flash.info { background: #eef4ff; color: #1d4ed8; border-color: #cfdbff; }

.auth-wrap { padding: 30px 0 46px; }
.auth-box { width: min(680px, 100%); padding: 32px; }

.dashboard-shell {
    grid-template-columns: 260px 1fr;
    margin: 22px 0 40px;
    overflow: hidden;
    background: rgba(255,255,255,0.94);
}
.sidebar {
    background:
        radial-gradient(circle at top left, rgba(54,165,109,0.10), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%);
    border-right: 1px solid var(--line);
    padding: 22px 16px;
}
.sidebar nav {
    display: grid;
    gap: 10px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sidebar a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-soft);
    transform: translateX(2px);
}
.sidebar a.active {
    color: var(--accent-dark);
    background: linear-gradient(180deg, #ffffff 0%, #eef9f2 100%);
    border: 1px solid #d4eedf;
    box-shadow: 0 10px 20px rgba(54,165,109,0.10);
}
.main-panel {
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,0.04), transparent 24%),
        transparent;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}
.kpi {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
}
.kpi .value {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-top: 8px;
}
.kpi .muted.small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.kpi-login .value {
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
}
.compact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    text-align: left;
}
.table tbody td {
    padding: 18px;
    vertical-align: top;
    border-bottom: 1px solid #edf1f6;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }

.code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f4efe5;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.03em;
}
.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.status.confirmed {
    color: #177245;
    background: #ebf8f1;
}
.status.pending {
    color: #a16207;
    background: #fff7e6;
}
.status.manual {
    color: #1d4ed8;
    background: #eef4ff;
}

.inline-form, .stack-small, .stack-mobile, .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.small-btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}
.btn-danger {
    background: linear-gradient(180deg, #e15d5d 0%, #cf3d3d 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(207,61,61,0.18);
}
.btn-danger:hover { background: linear-gradient(180deg, #d44d4d 0%, #ba2d2d 100%) !important; }

.note {
    padding: 16px;
    border: 1px solid var(--line);
    background: #f8fbff;
    border-radius: 18px;
}

.event-list {
    display: grid;
    gap: 14px;
}
.event-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: var(--shadow-soft);
}
.event-item strong { font-size: 18px; }
.event-item-actions { gap: 12px; }

.reserve-event-panel {
    background:
        radial-gradient(circle at top right, rgba(54,165,109,0.07), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}
.reserve-event-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.reserve-slot-box {
    min-width: 180px;
    border-radius: 18px;
    padding: 18px;
    background: #f3fbf6;
    border: 1px solid #d9f0e2;
    box-shadow: var(--shadow-soft);
}
.reserve-slot-box.is-full {
    background: #fff4f4;
    border-color: #f4c4c4;
}
.reserve-slot-label, .reserve-info-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.reserve-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.reserve-info-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.reserve-description {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    padding: 18px 0 34px;
}
.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}
.footer-links a:hover { color: var(--text); }

.wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mobile-data-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}
.mobile-card-head {
    margin-bottom: 14px;
}
.mobile-data-grid {
    gap: 14px;
}
.mobile-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #e8edf4;
}
.stats-row:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; padding: 34px; }
    .dashboard-shell { grid-template-columns: 220px 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reserve-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .container { width: min(100%, calc(100% - 24px)); }
    .topbar { position: static; }
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .text-menu { width: 100%; }
    .hero { padding: 24px; }
    .dashboard-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px;
    }
    .sidebar nav {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .main-panel { padding: 22px 18px; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3, .form-grid.cols-2, .form-grid.cols-3, .form-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    .reserve-event-head, .event-item {
        flex-direction: column;
    }
    .reserve-event-grid { grid-template-columns: 1fr; }
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    .sidebar nav { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr; }
    .card, .panel, .auth-box { padding: 20px; }
    .text-menu a { padding: 9px 12px; }
    .brand { font-size: 18px; }
}
/* ===== end v23 Modern Redesign ===== */


/* ===== v25 Burger menu for logged-in areas ===== */
.app-toolbar {
    display: none;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}
.app-toolbar-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}
.burger-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin: 2px 0;
}
.role-admin .dashboard-shell,
.role-organizer .dashboard-shell {
    position: relative;
}

@media (min-width: 861px) {
    .role-admin .dashboard-shell,
    .role-organizer .dashboard-shell {
        grid-template-columns: 88px 1fr;
    }
    .role-admin .sidebar,
    .role-organizer .sidebar {
        padding: 16px 10px;
        overflow: hidden;
    }
    .role-admin .sidebar nav,
    .role-organizer .sidebar nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .role-admin .sidebar a,
    .role-organizer .sidebar a {
        justify-content: center;
        padding: 14px 10px;
        min-height: 48px;
        position: relative;
        font-size: 0;
    }
    .role-admin .sidebar a::after,
    .role-organizer .sidebar a::after {
        content: attr(data-label);
        position: absolute;
        left: calc(100% + 14px);
        top: 50%;
        transform: translateY(-50%);
        background: var(--text);
        color: #fff;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        box-shadow: var(--shadow-soft);
    }
    .role-admin .sidebar a:hover::after,
    .role-organizer .sidebar a:hover::after {
        opacity: 1;
    }
    .role-admin .sidebar a,
    .role-organizer .sidebar a {
        gap: 0;
    }
    .role-admin .sidebar a:not(.active),
    .role-organizer .sidebar a:not(.active) {
        color: var(--muted);
    }
    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        display: flex;
    }
    .role-admin .burger-btn,
    .role-organizer .burger-btn {
        display: inline-flex;
    }
    .role-admin .dashboard-shell .sidebar,
    .role-organizer .dashboard-shell .sidebar {
        transition: width .2s ease, transform .2s ease, padding .2s ease;
        width: 88px;
    }
    .role-admin .dashboard-shell.sidebar-open,
    .role-organizer .dashboard-shell.sidebar-open {
        grid-template-columns: 260px 1fr;
    }
    .role-admin .dashboard-shell.sidebar-open .sidebar,
    .role-organizer .dashboard-shell.sidebar-open .sidebar {
        width: 260px;
        padding: 22px 16px;
    }
    .role-admin .dashboard-shell.sidebar-open .sidebar a,
    .role-organizer .dashboard-shell.sidebar-open .sidebar a {
        justify-content: flex-start;
        gap: 10px;
        font-size: 14px;
    }
    .role-admin .dashboard-shell.sidebar-open .sidebar a::after,
    .role-organizer .dashboard-shell.sidebar-open .sidebar a::after {
        display: none;
    }
}

@media (max-width: 860px) {
    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        display: flex;
    }
    .role-admin .dashboard-shell,
    .role-organizer .dashboard-shell {
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .role-admin .sidebar,
    .role-organizer .sidebar {
        position: absolute;
        left: 0;
        top: 72px;
        width: min(280px, calc(100vw - 40px));
        z-index: 25;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(17,24,39,0.16);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        padding: 14px;
    }
    .role-admin .dashboard-shell.sidebar-open .sidebar,
    .role-organizer .dashboard-shell.sidebar-open .sidebar {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .role-admin .sidebar nav,
    .role-organizer .sidebar nav {
        grid-template-columns: 1fr;
    }
    .role-admin .sidebar a,
    .role-organizer .sidebar a {
        font-size: 14px;
        justify-content: flex-start;
    }
}
/* ===== end v25 ===== */


/* ===== v26 fix burger behaviour ===== */
@media (min-width: 861px) {
    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        display: none !important;
    }

    .role-admin .dashboard-shell,
    .role-organizer .dashboard-shell {
        grid-template-columns: 88px 1fr !important;
    }

    .role-admin .dashboard-shell.sidebar-open,
    .role-organizer .dashboard-shell.sidebar-open {
        grid-template-columns: 260px 1fr !important;
    }
}

@media (max-width: 860px) {
    .role-admin .dashboard-shell,
    .role-organizer .dashboard-shell {
        position: relative;
        grid-template-columns: 1fr !important;
    }

    .role-admin .sidebar,
    .role-organizer .sidebar {
        display: none !important;
    }

    .role-admin .dashboard-shell.sidebar-open .sidebar,
    .role-organizer .dashboard-shell.sidebar-open .sidebar {
        display: block !important;
    }

    .role-admin .main-panel,
    .role-organizer .main-panel {
        padding-top: 18px !important;
    }
}
/* ===== end v26 ===== */



/* ===== v28 sidebar reset: real burger drawer ===== */
.role-admin .dashboard-shell,
.role-organizer .dashboard-shell {
    position: relative !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
}

.role-admin .app-toolbar,
.role-organizer .app-toolbar {
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    position: sticky;
    top: 84px;
    z-index: 20;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
}

.role-admin .sidebar,
.role-organizer .sidebar {
    position: fixed !important;
    left: 16px !important;
    top: 96px !important;
    bottom: 16px !important;
    width: min(290px, calc(100vw - 32px)) !important;
    padding: 18px !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at top left, rgba(54,165,109,0.10), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%) !important;
    box-shadow: 0 30px 80px rgba(17,24,39,0.22) !important;
    transform: translateX(-120%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    z-index: 60 !important;
}

.role-admin .dashboard-shell.sidebar-open .sidebar,
.role-organizer .dashboard-shell.sidebar-open .sidebar {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.role-admin .sidebar nav,
.role-organizer .sidebar nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.role-admin .sidebar a,
.role-organizer .sidebar a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    color: var(--muted) !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.role-admin .sidebar a:hover,
.role-organizer .sidebar a:hover {
    background: rgba(255,255,255,0.88) !important;
    color: var(--text) !important;
    transform: none !important;
    box-shadow: var(--shadow-soft) !important;
}

.role-admin .sidebar a.active,
.role-organizer .sidebar a.active {
    background: linear-gradient(180deg, #ffffff 0%, #eef9f2 100%) !important;
    border: 1px solid #d4eedf !important;
    color: var(--accent-dark) !important;
    box-shadow: 0 10px 20px rgba(54,165,109,0.10) !important;
}

.role-admin .sidebar a::after,
.role-organizer .sidebar a::after {
    display: none !important;
}

.role-admin.sidebar-open::before,
.role-organizer.sidebar-open::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.32) !important;
    z-index: 50 !important;
}

.role-admin .burger-btn,
.role-organizer .burger-btn {
    display: inline-flex !important;
    position: relative;
    z-index: 61;
}

@media (max-width: 860px) {
    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        top: 0 !important;
    }

    .role-admin .sidebar,
    .role-organizer .sidebar {
        left: 12px !important;
        top: 74px !important;
        bottom: 12px !important;
        width: min(300px, calc(100vw - 24px)) !important;
    }

    .role-admin .main-panel,
    .role-organizer .main-panel {
        padding: 20px 16px !important;
    }
}
/* ===== end v28 ===== */



/* ===== v29 desktop visible sidebar + improved menu icon ===== */
.burger-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%) !important;
    border: 1px solid #dbe5f1 !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.10), 0 6px 14px rgba(17,24,39,0.06) !important;
    padding: 0 !important;
}
.burger-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%) !important;
}
.burger-icon {
    position: relative;
    width: 22px;
    height: 18px;
    display: inline-block;
}
.burger-icon span {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f2937 0%, #334155 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.65);
}
.burger-icon span:nth-child(1) { top: 1px; width: 22px; }
.burger-icon span:nth-child(2) { top: 8px; width: 16px; left: 3px; }
.burger-icon span:nth-child(3) { top: 15px; width: 22px; }

@media (min-width: 861px) {
    .role-admin .dashboard-shell,
    .role-organizer .dashboard-shell {
        grid-template-columns: 260px 1fr !important;
        overflow: hidden !important;
    }

    .role-admin .sidebar,
    .role-organizer .sidebar {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: auto !important;
        min-height: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border: 0 !important;
        border-right: 1px solid var(--line) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 22px 16px !important;
        background:
            radial-gradient(circle at top left, rgba(54,165,109,0.10), transparent 30%),
            linear-gradient(180deg, #f8fbff 0%, #f1f6fb 100%) !important;
    }

    .role-admin .sidebar nav,
    .role-organizer .sidebar nav {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .role-admin .sidebar a,
    .role-organizer .sidebar a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        min-height: 48px !important;
        padding: 12px 14px !important;
        font-size: 15px !important;
        color: var(--muted) !important;
        background: transparent !important;
    }

    .role-admin .sidebar a::after,
    .role-organizer .sidebar a::after {
        display: none !important;
    }

    .role-admin .sidebar a:hover,
    .role-organizer .sidebar a:hover {
        background: rgba(255,255,255,0.88) !important;
        color: var(--text) !important;
        transform: none !important;
        box-shadow: var(--shadow-soft) !important;
    }

    .role-admin .sidebar a.active,
    .role-organizer .sidebar a.active {
        background: linear-gradient(180deg, #ffffff 0%, #eef9f2 100%) !important;
        border: 1px solid #d4eedf !important;
        color: var(--accent-dark) !important;
        box-shadow: 0 10px 20px rgba(54,165,109,0.10) !important;
    }

    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        display: none !important;
    }

    .role-admin.sidebar-open::before,
    .role-organizer.sidebar-open::before {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .role-admin .app-toolbar,
    .role-organizer .app-toolbar {
        display: flex !important;
    }
}
/* ===== end v29 ===== */


/* ===== v34 SVG Burger Icon ===== */
.burger-svg {
    width: 22px;
    height: 22px;
    color: #1f2937;
    transition: all 0.2s ease;
}

.burger-btn:hover .burger-svg {
    color: var(--accent);
    transform: scale(1.05);
}

.burger-svg path {
    transition: all 0.25s ease;
    transform-origin: center;
}

.burger-btn.open .burger-svg path:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.burger-btn.open .burger-svg path:nth-child(2) {
    opacity: 0;
}

.burger-btn.open .burger-svg path:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}
/* ===== end v34 ===== */
