/* SurveyPanel Pro — Futuristic Glass UI */

:root {
    --bg-primary: #060a14;
    --bg-secondary: #0c1222;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.3);
    --violet: #a78bfa;
    --violet-glow: rgba(167, 139, 250, 0.3);
    --emerald: #34d399;
    --emerald-glow: rgba(52, 211, 153, 0.3);
    --amber: #fbbf24;
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', var(--font);
    --nav-height: 64px;
    --sidebar-width: 260px;
    --transition: 0.2s ease;
}

[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background effects */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-orb-1 {
    width: 500px; height: 500px;
    background: var(--cyan);
    top: -200px; right: -100px;
    opacity: 0.15;
}

.bg-orb-2 {
    width: 400px; height: 400px;
    background: var(--violet);
    bottom: -150px; left: -100px;
    opacity: 0.12;
}

.bg-orb-3 {
    width: 300px; height: 300px;
    background: var(--emerald);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.main-content {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    z-index: 1;
}

.main-content.no-nav { padding-top: 0; }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 10, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

[data-theme="light"] .main-nav {
    background: rgba(240, 244, 248, 0.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-icon {
    color: var(--cyan);
    font-size: 1.25rem;
}

.brand-icon.large { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--cyan); }

.nav-credits {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
}

.credit-icon { font-size: 0.75rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px var(--violet-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero / Landing */
.hero {
    padding: 5rem 0 4rem;
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item { display: flex; flex-direction: column; }

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual { display: flex; justify-content: center; }

.hero-card { max-width: 320px; width: 100%; }

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-card-body h4 { margin-bottom: 0.25rem; }
.hero-card-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }

/* Sections */
.section { padding: 4rem 0; position: relative; z-index: 1; }

.section-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card { text-align: center; }

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.feature-icon.cyan { background: var(--cyan-glow); color: var(--cyan); }
.feature-icon.violet { background: var(--violet-glow); color: var(--violet); }
.feature-icon.emerald { background: var(--emerald-glow); color: var(--emerald); }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}

.step-card:hover { border-color: var(--cyan); }

.step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.75rem;
}

.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); font-size: 0.85rem; }

.cta-section { padding-bottom: 5rem; }

.cta-card {
    text-align: center;
    padding: 3rem;
}

.cta-card h2 { margin-bottom: 0.75rem; }
.cta-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Auth */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 4rem);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

.auth-form .form-group { margin-bottom: 1.25rem; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a { color: var(--cyan); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.profile-account {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.profile-account .account-block {
    margin-bottom: 1.25rem;
}

.profile-account .account-email-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.profile-account .account-email-value {
    font-weight: 600;
    margin: 0;
}

.profile-account .account-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    max-width: 480px;
}

.profile-fields-table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.profile-fields-table .checkbox-label {
    justify-content: center;
}

.profile-section-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-progress-bar {
    height: 6px;
    margin-bottom: 1rem;
}

.section-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-credit-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.form-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.form-group-compact label {
    font-size: 0.85rem;
}

.checkbox-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.35rem;
}

.criteria-field-block {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.criteria-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.criteria-include-empty {
    font-size: 0.8rem;
}

.glass-card-sm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.options-builder {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.option-row input[type="text"] {
    flex: 1;
}

.profile-admin-section .btn-group {
    display: flex;
    gap: 0.5rem;
}

.form-section { margin-bottom: 2rem; }

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color var(--transition);
}

.checkbox-label:hover { border-color: var(--cyan); }

.checkbox-label input { width: auto; accent-color: var(--cyan); }

/* Flash messages */
.flash-container { margin-bottom: 1.5rem; }

.flash {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--emerald);
}

.flash-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 { font-size: 1.75rem; }
.page-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.stat-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-card-icon.cyan { background: var(--cyan-glow); color: var(--cyan); }
.stat-card-icon.violet { background: var(--violet-glow); color: var(--violet); }
.stat-card-icon.emerald { background: var(--emerald-glow); color: var(--emerald); }
.stat-card-icon.amber { background: rgba(251, 191, 36, 0.2); color: var(--amber); }

.stat-card-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-card-label { font-size: 0.8rem; color: var(--text-muted); }

.stat-card-link {
    font-size: 0.8rem;
    color: var(--cyan);
    text-decoration: none;
}

.stat-card-link:hover { text-decoration: underline; }

/* Alert banner */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.alert-banner.warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.alert-banner-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-banner strong { display: block; }
.alert-banner p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* Survey cards */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.survey-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.survey-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1rem; }

.survey-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--violet);
    margin-bottom: 0.5rem;
}

.survey-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reward-pill {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    background: var(--emerald-glow);
    color: var(--emerald);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reward-pill.large { font-size: 1rem; padding: 0.4rem 0.85rem; }

.time-pill {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.survey-list { display: flex; flex-direction: column; gap: 1rem; }

.survey-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.survey-list-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.survey-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 160px;
}

.criteria-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Dashboard sections */
.dashboard-section { margin-bottom: 2.5rem; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header h2 { font-size: 1.25rem; }

.link-arrow {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-arrow:hover { text-decoration: underline; }

/* Profile progress */
.profile-progress { padding: 1rem 1.25rem; min-width: 200px; }

.progress-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }

.progress-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Wallet */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
}

.wallet-balance-icon {
    font-size: 2.5rem;
    color: var(--emerald);
}

.wallet-balance-label { display: block; font-size: 0.85rem; color: var(--text-muted); }

.wallet-balance-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald);
}

.wallet-balance-unit { font-size: 0.9rem; color: var(--text-secondary); margin-left: 0.25rem; }

/* Tables */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--bg-card-hover); }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--emerald); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success { background: var(--emerald-glow); color: var(--emerald); }
.badge-warning { background: rgba(251, 191, 36, 0.2); color: var(--amber); }
.badge-danger { background: rgba(248, 113, 113, 0.2); color: var(--danger); }
.badge-neutral { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Completion page */
.completion-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.completion-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
}

.completion-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.completion-icon.success {
    background: var(--emerald-glow);
    color: var(--emerald);
}

.completion-icon.error {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.completion-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.completion-subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }

.credits-earned {
    background: var(--emerald-glow);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.credits-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.25rem; }

.credits-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald);
}

.completion-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.completion-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-help {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.25rem;
}

.error-help h3 { font-size: 0.95rem; margin-bottom: 0.75rem; }
.error-help ul { padding-left: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.error-help li { margin-bottom: 0.5rem; }
.error-help code {
    background: rgba(0,0,0,0.2);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Admin layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: rgba(6, 10, 20, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--transition);
}

[data-theme="light"] .admin-sidebar {
    background: rgba(255, 255, 255, 0.95);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    transition: all var(--transition);
}

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--cyan);
    border: 1px solid var(--border);
}

.sidebar-icon { font-size: 1rem; width: 1.25rem; text-align: center; }

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border);
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

[data-theme="light"] .admin-topbar {
    background: rgba(255, 255, 255, 0.8);
}

.admin-page-title {
    font-size: 1.25rem;
    flex: 1;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.admin-content .main-content {
    padding: 1.5rem;
    min-height: auto;
}

/* Admin stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    text-align: center;
    padding: 1.5rem;
}

.admin-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.admin-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.admin-toolbar { margin-bottom: 1.5rem; }

.admin-form { max-width: 800px; }

.inline-stat {
    display: inline-block;
    margin-bottom: 1.5rem;
    min-width: 200px;
}

.actions-cell {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form { display: inline; }

/* LimeSurvey instructions */
.lime-instructions {
    margin-top: 2rem;
    max-width: 800px;
}

.lime-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lime-badge {
    background: var(--violet-glow);
    color: var(--violet);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lime-steps {
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.lime-steps li { margin-bottom: 0.5rem; }

.code-block {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.code-block code {
    flex: 1;
    font-size: 0.75rem;
    word-break: break-all;
    color: var(--cyan);
}

.btn-copy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-copy:hover { border-color: var(--cyan); color: var(--cyan); }

.criteria-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Language switcher */
.lang-switcher { display: inline-flex; align-items: center; }

.lang-select {
    padding: 0.35rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Translations admin */
.grid-2-admin {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    align-items: start;
}

.add-language-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.add-language-form h3 { font-size: 0.95rem; margin-bottom: 1rem; }

.translations-list {
    max-height: 65vh;
    overflow-y: auto;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.translation-row {
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.translation-row.missing { border-color: rgba(251, 191, 36, 0.4); }

.translation-key { margin-bottom: 0.35rem; }
.translation-key code { font-size: 0.75rem; color: var(--violet); }

.translation-lt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.translation-lt small { display: block; font-size: 0.7rem; }
.translation-lt span { color: var(--text-secondary); }

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.data-table.compact td, .data-table.compact th { padding: 0.5rem 0.75rem; }

/* Shop */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.shop-card { text-align: center; display: flex; flex-direction: column; gap: 0.75rem; }
.shop-card-icon { font-size: 2.5rem; }
.shop-card h3 { font-size: 1.1rem; }
.shop-card-desc { color: var(--text-secondary); font-size: 0.85rem; flex: 1; }
.shop-card-price { align-self: center; }
.shop-redeem-form { margin-top: auto; }

.shop-actions-bar { margin-bottom: 1.5rem; }

.compact-balance {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
}

.wallet-balance-value.small { font-size: 1.5rem; }

/* Orders */
.orders-list, .orders-admin-list { display: flex; flex-direction: column; gap: 1rem; }

.order-card, .order-admin-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

.order-card-header, .order-admin-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

.order-id { font-family: var(--font-display); font-weight: 600; color: var(--violet); }

.order-card-meta { display: flex; flex-direction: column; gap: 0.5rem; min-width: 180px; }
.order-meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 0.75rem; color: var(--text-muted); }
.meta-value { font-size: 0.9rem; font-weight: 500; }

.order-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.order-admin-grid h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; text-transform: uppercase; }

.profile-pre {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-list {
    list-style: none;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.info-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }

.action-form {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.add-block-form .form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.add-block-form input { flex: 1; }

.order-admin-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .grid-3, .survey-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .grid-2-admin { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .order-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    .nav-links.open { display: flex; }
    .grid-3, .survey-grid, .steps-grid { grid-template-columns: 1fr; }
    .stats-grid, .admin-stats-grid { grid-template-columns: 1fr; }
    .survey-list-item { flex-direction: column; align-items: flex-start; }
    .survey-list-side { align-items: flex-start; width: 100%; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .page-header { flex-direction: column; }
}
