/* Admin design system — Private Feedback */

:root {
    --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --sidebar: #0b1220;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(13, 148, 136, 0.18);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #94a3b8;
    --sidebar-text-strong: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-soft: #ccfbf1;
    --accent-glow: rgba(13, 148, 136, 0.22);
    --success: #059669;
    --success-soft: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --warning-border: #fde68a;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --danger-border: #fecaca;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --sidebar-width: 17rem;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.85em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1em 0.4em;
}

/* ── App shell ── */

.admin-app {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f172a 0%, var(--sidebar) 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 1rem;
}

.admin-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.admin-brand-text strong {
    display: block;
    color: var(--sidebar-text-strong);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-brand-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-top: 0.1rem;
}

.admin-tenant {
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-sm);
}

.admin-tenant-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sidebar-text);
    margin-bottom: 0.2rem;
}

.admin-tenant-name {
    display: block;
    color: var(--sidebar-text-strong);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
    word-break: break-word;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.admin-nav a,
.admin-nav button.nav-logout {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-xs);
    color: var(--sidebar-text);
    text-decoration: none;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.admin-nav a:hover,
.admin-nav button.nav-logout:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-strong);
    text-decoration: none;
}

.admin-nav a.active {
    background: var(--sidebar-active);
    color: #5eead4;
}

.admin-nav-icon {
    width: 1.125rem;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--sidebar-border);
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem 0;
    flex-wrap: wrap;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.admin-topbar .subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.admin-content {
    padding: 1.25rem 2rem 2.5rem;
}

/* ── Cards & panels ── */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-padded { padding: 1.25rem 1.35rem; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-header h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.section { margin-bottom: 1.25rem; }

.section-title {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ── Stats ── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
}

.stat-card.accent::before { background: linear-gradient(90deg, var(--accent), #2dd4bf); }
.stat-card.success::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card.warning::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card.danger::before { background: linear-gradient(90deg, #dc2626, #f87171); }

.stat-card-icon {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    opacity: 0.9;
}

.stat-card-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 0.15rem;
    line-height: 1.1;
}

.stat-card.accent .stat-card-value { color: var(--accent-dark); }

/* ── Alerts ── */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }

.alert.success {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    color: #065f46;
}

.alert.warning {
    background: var(--warning-soft);
    border: 1px solid var(--warning-border);
    color: #92400e;
}

.alert.error {
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: #991b1b;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--surface-2);
    text-decoration: none;
    border-color: var(--border-strong);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #14b8a6 0%, var(--accent-dark) 100%);
    color: #fff;
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--accent);
}

.btn-lg {
    padding: 0.8rem 1.35rem;
    font-size: 1rem;
}

.btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.btn-danger {
    color: var(--danger);
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Forms ── */

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { min-height: 5rem; resize: vertical; }

.form-row { margin-bottom: 1rem; }

.form-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-inline .form-field { flex: 1 1 14rem; }

.field-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.color-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-input-row input[type="color"] {
    width: 3rem;
    height: 2.75rem;
    padding: 0.2rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.65rem;
}

.contact-field-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.contact-field-preview li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Analytics ── */

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
}

.chart-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.chart-box canvas { max-height: 15rem; }

.distribution-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.distribution-list li {
    display: grid;
    grid-template-columns: 2.75rem 1fr 3.5rem;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.bar-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 0.5rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.bar-fill.low { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar-fill.mid { background: linear-gradient(90deg, #eab308, #facc15); }
.bar-fill.high { background: linear-gradient(90deg, #059669, #34d399); }

/* ── QR showcase ── */

.qr-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
}

.qr-card {
    background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    min-width: 15rem;
}

.qr-card img {
    display: block;
    width: 11rem;
    height: 11rem;
    margin: 0 auto;
    border-radius: var(--radius-xs);
    background: #fff;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.qr-card-caption {
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0.75rem 0 0.25rem;
    color: var(--text);
}

.url-copy {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0.75rem 0 1rem;
}

.url-copy code {
    flex: 1 1 12rem;
    display: block;
    padding: 0.65rem 0.85rem;
    word-break: break-all;
    font-size: 0.8125rem;
    background: var(--surface-2);
}

/* ── Venue guide ── */

.create-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1rem 0 1.25rem;
    padding: 0;
}

.create-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.create-step.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text);
}

.create-step.done {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    color: var(--text);
}

.create-step-num {
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.75rem;
}

.create-step.active .create-step-num,
.create-step.done .create-step-num {
    background: var(--accent);
    color: #fff;
}

.create-form { margin-top: 0.5rem; }

.create-ready {
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.venue-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.venue-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.venue-type:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-1px);
}

.venue-type.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.venue-type .icon { font-size: 1.625rem; line-height: 1; }
.venue-type .label { font-size: 0.75rem; font-weight: 700; text-align: center; }

.suggestions { display: none; }
.suggestions.visible { display: block; }

.suggestion-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.suggestion:hover { border-color: var(--accent); }
.suggestion.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--accent-soft);
}

.suggestion strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.2rem;
}

.suggestion span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.suggestion em {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: normal;
    margin-top: 0.4rem;
    opacity: 0.85;
}

/* ── Reviews feed ── */

.review-feed { display: grid; gap: 0.75rem; }

.review-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    transition: box-shadow 0.15s;
}

.review-item:hover { box-shadow: var(--shadow-sm); }

.review-item.low-rating {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffafa 0%, var(--surface) 100%);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.review-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.rating-pill.high { background: #dcfce7; color: #166534; }
.rating-pill.mid { background: #fef9c3; color: #854d0e; }
.rating-pill.low { background: #fee2e2; color: #991b1b; }
.rating-pill.neutral { background: var(--surface-2); color: var(--text-muted); }

.response-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.response-list li {
    padding: 0.55rem 0;
    border-top: 1px solid var(--border);
}

.response-list li:first-child { border-top: 0; padding-top: 0; }

.response-q {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.response-a {
    display: block;
    font-size: 0.9375rem;
    color: var(--text);
    white-space: pre-wrap;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.empty-state strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

/* ── Question builder ── */

.question-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}

.question-card.rating {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, var(--surface) 100%);
}

.question-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.badge-rating { color: #92400e; background: #fef3c7; }
.badge-text { color: #1e40af; background: #dbeafe; }

.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* ── Login page ── */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-hero {
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.login-hero-content { position: relative; max-width: 24rem; }

.login-hero .admin-brand-mark {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.login-hero h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.login-hero p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.login-features {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}

.login-feature {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 24rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.login-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-card .subtitle {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.login-card .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.demo-hint {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.demo-hint strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
}

/* ── Public landing + auth pages ── */

.auth-page {
    min-height: 100vh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-back {
    align-self: flex-start;
    max-width: 24rem;
    width: 100%;
    margin: 0 auto 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.auth-brand-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.form-inline-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.auth-footer-hint {
    margin-top: 1rem;
    text-align: center;
}

.landing-page {
    min-height: 100vh;
    background: var(--bg);
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.landing-brand:hover { text-decoration: none; }

.landing-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav-link {
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.45rem 0.65rem;
}

.landing-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.landing-hero {
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
    color: #fff;
    padding: 4rem 1.5rem 5rem;
}

.landing-hero-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.landing-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.landing-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.landing-lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 36rem;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.landing-features {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.landing-section-title {
    margin: 0 0 1.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.landing-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.landing-feature-card h3 {
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.landing-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.landing-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--accent-soft);
    font-size: 1rem;
}

.landing-bottom-cta {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.landing-bottom-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.landing-bottom-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.landing-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Utilities ── */

.meta { font-size: 0.8125rem; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }

.questionnaire-select {
    max-width: 100%;
    width: 22rem;
}

.two-col-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

/* ── Overview nav cards ── */

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.nav-card:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.nav-card strong {
    font-size: 0.98rem;
    color: var(--text);
}

.nav-card span:last-child {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.nav-card-icon {
    font-size: 1.35rem;
}

.custom-venue-panel {
    margin: 0.75rem 0 1rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    max-width: 28rem;
}

.custom-venue-panel.hidden {
    display: none;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: 1fr; }
    .qr-showcase { grid-template-columns: 1fr; }
    .qr-card { max-width: 16rem; margin: 0 auto; }
    .two-col-form { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .admin-app { flex-direction: column; }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-sidebar-footer { display: none; }

    .admin-topbar,
    .admin-content { padding-left: 1rem; padding-right: 1rem; }

    .login-page { grid-template-columns: 1fr; }
    .login-hero { padding: 2rem 1.5rem; min-height: auto; }
    .login-hero h1 { font-size: 1.5rem; }
    .login-features { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
