/* ===== GrowthSurvey Neumorphism Design System ===== */
/* 本物のニューモフィズム：背景と要素が同色、二方向シャドウで立体感を演出 */
/* ポイント：①背景と要素は同色 ②右下に暗い影・左上に明るい影 ③ボーダーなし ④やわらかく浮き上がる */

:root {
    /* Base colors - ニューモフィズム基本色 */
    --neo-bg: #e8e4ef;
    --neo-bg-dark: #d8d4df;
    --neo-shadow-dark: rgba(166, 152, 190, 0.5);
    --neo-shadow-light: rgba(255, 255, 255, 0.95);
    --neo-shadow-dark-strong: rgba(140, 126, 164, 0.6);

    /* ニューモフィズム影の定義 - 浮き上がり効果（凸型） */
    --neo-shadow: 6px 6px 12px rgba(166, 152, 190, 0.5),
                  -6px -6px 12px rgba(255, 255, 255, 0.95);
    --neo-shadow-sm: 3px 3px 6px rgba(166, 152, 190, 0.45),
                     -3px -3px 6px rgba(255, 255, 255, 0.9);
    --neo-shadow-lg: 10px 10px 20px rgba(166, 152, 190, 0.55),
                     -10px -10px 20px rgba(255, 255, 255, 1);

    /* ニューモフィズム影の定義 - 押し込み効果（凹型） */
    --neo-shadow-inset: inset 4px 4px 8px rgba(166, 152, 190, 0.45),
                        inset -4px -4px 8px rgba(255, 255, 255, 0.85);
    --neo-shadow-inset-sm: inset 2px 2px 5px rgba(166, 152, 190, 0.4),
                           inset -2px -2px 5px rgba(255, 255, 255, 0.85);
    --neo-shadow-inset-lg: inset 6px 6px 12px rgba(166, 152, 190, 0.5),
                           inset -6px -6px 12px rgba(255, 255, 255, 0.9);

    /* Border radius - ニューモフィズム用（テスト環境と同一値） */
    --neo-radius: 14px;
    --neo-radius-sm: 10px;
    --neo-radius-lg: 20px;
    --neo-radius-xl: 20px;

    /* Gradient */
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --gradient-primary: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));

    /* Text colors */
    --neo-text: #2d2540;
    --neo-text-secondary: #6b5f7d;
    --neo-text-muted: #9b8fb5;
    --neo-accent: #6B4C9A;
    --text-primary: #2d2540;
    --text-secondary: #6b5f7d;
    --text-muted: #9b8fb5;
    --text-light: #b8aec8;

    /* Status colors */
    --neo-success: #22c55e;
    --neo-warning: #f59e0b;
    --neo-danger: #ef4444;
    --neo-info: #3b82f6;
    --accent-success: #4ade80;
    --accent-warning: #fbbf24;
    --accent-danger: #f87171;
    --accent-info: #60a5fa;

    /* Transition */
    --neo-transition: all 0.3s ease;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border radius (legacy) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions (legacy) */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--neo-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.gradient-text {
    color: var(--neo-accent);
}

/* ===== Neumorphism Cards ===== */
.neo-card {
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--neo-shadow);
    border: none;
    transition: box-shadow 0.3s ease;
}

.neo-card:hover {
    box-shadow: var(--neo-shadow-lg);
}

/* neo-card-outer: テスト環境と同一のカード外枠パターン */
.neo-card-outer {
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    box-shadow: var(--neo-shadow);
    border: none;
    overflow: hidden;
}

.neo-card-flat {
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    padding: var(--space-lg);
    box-shadow: var(--neo-shadow-sm);
}

.neo-card-inset {
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    padding: var(--space-lg);
    box-shadow: var(--neo-shadow-inset);
}

.neo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(166, 152, 190, 0.15);
}

.neo-card-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neo-text);
}

.neo-card-title svg {
    color: var(--neo-accent);
}

/* ===== Buttons ===== */
.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--neo-radius);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    background: var(--neo-bg);
    color: var(--neo-text-secondary);
    box-shadow: var(--neo-shadow-sm);
}

.neo-btn:hover {
    box-shadow: var(--neo-shadow);
}

.neo-btn:active {
    box-shadow: var(--neo-shadow-inset);
}

.neo-btn-primary {
    background: var(--neo-bg);
    color: var(--neo-accent);
    font-weight: 700;
    box-shadow: var(--neo-shadow-sm);
}

.neo-btn-primary:hover {
    box-shadow: var(--neo-shadow);
}

.neo-btn-primary:active {
    box-shadow: var(--neo-shadow-inset);
}

.neo-btn-secondary {
    background: var(--neo-bg);
    color: var(--neo-text-secondary);
}

.neo-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.neo-btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--neo-radius);
}

.neo-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--neo-radius-sm);
}

.neo-btn-danger {
    color: var(--neo-danger);
}

.neo-btn-success {
    color: var(--neo-success);
}

/* ===== Form Elements ===== */
.neo-input-group {
    margin-bottom: var(--space-md);
}

.neo-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neo-text-secondary);
    margin-bottom: var(--space-sm);
}

.neo-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--neo-text);
    background: var(--neo-bg);
    border: none;
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-inset);
    transition: box-shadow 0.3s ease;
}

.neo-input:focus {
    outline: none;
    box-shadow: var(--neo-shadow-inset-lg);
}

.neo-input::placeholder {
    color: var(--neo-text-muted);
}

.neo-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--neo-text);
    background: var(--neo-bg);
    border: none;
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-inset);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b5f7d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: box-shadow 0.3s ease;
}

.neo-select:focus {
    outline: none;
    box-shadow: var(--neo-shadow-inset-lg);
}

.neo-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--neo-bg);
    box-shadow: var(--neo-shadow-inset-sm);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--neo-transition);
}

.neo-checkbox:checked {
    background: var(--neo-bg);
    color: var(--neo-accent);
    box-shadow: var(--neo-shadow-inset);
}

.neo-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid var(--neo-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== Header / Navigation ===== */
.neo-header {
    background: var(--neo-bg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 4px 8px rgba(166, 152, 190, 0.3);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.neo-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neo-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neo-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.neo-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neo-accent);
    box-shadow: var(--neo-shadow-sm);
}

.neo-nav {
    display: flex;
    gap: var(--space-sm);
}

.neo-nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.neo-nav-link:hover {
    background: var(--neo-bg);
    color: var(--text-primary);
    box-shadow: var(--neo-shadow-sm);
}

.neo-nav-link.active {
    background: var(--neo-bg);
    color: var(--neo-accent);
    font-weight: 600;
    box-shadow: var(--neo-shadow-inset-sm);
}

/* ===== Sidebar ===== */
.neo-sidebar {
    width: 260px;
    background: var(--neo-bg);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 12px rgba(166, 152, 190, 0.4);
    transition: transform 0.3s ease;
}

.neo-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(166, 152, 190, 0.2);
}

.neo-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 16px;
}

.neo-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--neo-radius);
    transition: all var(--transition-normal);
}

.neo-sidebar-link:hover {
    background: var(--neo-bg);
    color: var(--text-primary);
    box-shadow: var(--neo-shadow-sm);
}

.neo-sidebar-link.active {
    background: var(--neo-bg);
    color: var(--neo-accent);
    font-weight: 600;
    box-shadow: var(--neo-shadow-inset);
}

.neo-sidebar-link svg {
    width: 20px;
    height: 20px;
}

.neo-sidebar-divider {
    height: 1px;
    background: rgba(166, 152, 190, 0.2);
    margin: 8px 0;
}

.neo-sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--neo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 8px;
}

/* Sidebar overlay for mobile */
.neo-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neo-sidebar-overlay.active,
.neo-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* Header with sidebar offset */
.neo-header-with-sidebar {
    margin-left: 260px;
}

.neo-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--neo-text);
}

.neo-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main content with sidebar offset */
.neo-main-content {
    padding: var(--space-lg);
}

.neo-main-with-sidebar {
    margin-left: 260px;
}

/* Hamburger menu button */
.neo-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--neo-bg);
    border: none;
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.neo-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neo-text-secondary);
    border-radius: 1px;
}

.neo-hamburger:hover {
    box-shadow: var(--neo-shadow);
}

.neo-hamburger:active {
    box-shadow: var(--neo-shadow-inset-sm);
}

/* ===== Tables ===== */
.neo-table-wrapper {
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    padding: var(--space-md);
    box-shadow: var(--neo-shadow);
    overflow-x: auto;
}

.neo-table-container {
    overflow-x: auto;
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-inset-sm);
    padding: 4px;
}

.neo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.neo-table th,
.neo-table td {
    padding: 14px 16px;
    text-align: left;
}

.neo-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neo-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--neo-bg);
    border-bottom: none;
}

.neo-table td {
    font-size: 0.95rem;
    color: var(--neo-text);
    border-bottom: 1px solid rgba(166, 152, 190, 0.15);
}

.neo-table tbody tr {
    transition: background 0.3s ease;
}

.neo-table tbody tr:hover {
    background: rgba(166, 152, 190, 0.08);
}

.neo-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Badges ===== */
.neo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--neo-bg);
    color: var(--neo-text-secondary);
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-primary {
    background: var(--neo-bg);
    color: var(--neo-accent);
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-success {
    background: var(--neo-bg);
    color: #16a34a;
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-warning {
    background: var(--neo-bg);
    color: #d97706;
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-danger {
    background: var(--neo-bg);
    color: #dc2626;
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-info {
    background: var(--neo-bg);
    color: #2563eb;
    box-shadow: var(--neo-shadow-sm);
}

.neo-badge-accent {
    background: linear-gradient(135deg, #f5e6d3, #e8d5c0);
    color: #8b6914;
    box-shadow: var(--neo-shadow-sm);
    font-weight: 600;
}

/* ===== Progress Bars ===== */
.neo-progress {
    height: 10px;
    background: var(--neo-bg);
    border-radius: var(--radius-full);
    box-shadow: var(--neo-shadow-inset-sm);
    overflow: hidden;
}

.neo-progress-bar {
    height: 100%;
    background: var(--neo-bg-dark);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    box-shadow: 1px 1px 3px rgba(166, 152, 190, 0.3);
}

/* ===== Stats Grid & Cards ===== */
.neo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: var(--space-lg);
}

.neo-stat-card {
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--neo-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.3s ease;
}

.neo-stat-card:hover {
    box-shadow: var(--neo-shadow-lg);
}

.neo-stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neo-accent);
    box-shadow: var(--neo-shadow-sm);
}

.neo-stat-icon.purple {
    color: #8b5cf6;
}

.neo-stat-icon.blue {
    color: #3b82f6;
}

.neo-stat-icon.green {
    color: #22c55e;
}

.neo-stat-icon.pink {
    color: #ec4899;
}

.neo-stat-content {
    display: flex;
    flex-direction: column;
}

.neo-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.neo-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== Modal ===== */
.neo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.neo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.neo-modal {
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(45, 37, 64, 0.18);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.neo-modal-overlay.active .neo-modal {
    transform: scale(1);
}

.neo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.neo-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.neo-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--neo-shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.neo-modal-close:hover {
    color: var(--text-primary);
}

.neo-modal-body {
    padding: var(--space-md) 0;
}

.neo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid rgba(166, 152, 190, 0.15);
}

/* ===== Form Groups ===== */
.neo-form-group {
    margin-bottom: var(--space-md);
}

.neo-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neo-text-secondary);
    margin-bottom: var(--space-sm);
}

.neo-form-hint {
    font-size: 0.75rem;
    color: var(--neo-text-muted);
    margin-top: var(--space-xs);
}

.neo-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--neo-text);
    background: var(--neo-bg);
    border: none;
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-inset);
    transition: box-shadow 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.neo-textarea:focus {
    outline: none;
    box-shadow: var(--neo-shadow-inset-lg);
}

.neo-form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--neo-text-secondary);
}

.neo-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--neo-accent);
}

.neo-required {
    color: var(--neo-danger);
}

.neo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .neo-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Empty State ===== */
.neo-empty-state {
    text-align: center;
    color: var(--neo-text-muted);
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* ===== Alerts ===== */
.neo-alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--neo-radius);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--neo-bg);
    box-shadow: var(--neo-shadow-inset-sm);
}

.neo-alert-success {
    color: #166534;
}

.neo-alert-warning {
    color: #92400e;
}

.neo-alert-danger {
    color: #991b1b;
}

.neo-alert-info {
    color: #1e40af;
}

/* ===== Tabs ===== */
.neo-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm);
    background: var(--neo-bg);
    border-radius: var(--neo-radius-lg);
    box-shadow: var(--neo-shadow-inset);
}

.neo-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--neo-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.neo-tab:hover {
    color: var(--text-secondary);
}

.neo-tab.active {
    background: var(--neo-bg);
    color: var(--neo-accent);
    box-shadow: var(--neo-shadow-sm);
}

.neo-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== Loading ===== */
.neo-loading,
.neo-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 228, 239, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.neo-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.neo-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neo-bg);
    box-shadow: var(--neo-shadow);
    position: relative;
    animation: neo-spin 1.2s linear infinite;
}

.neo-spinner::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neo-accent);
    animation: neo-spin 0.8s linear infinite reverse;
}

@keyframes neo-spin {
    to { transform: rotate(360deg); }
}

/* ===== Layout Helpers ===== */
.neo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.neo-page {
    display: flex;
    min-height: calc(100vh - 70px);
}

.neo-main {
    flex: 1;
    padding: var(--space-xl);
}

.neo-grid {
    display: grid;
    gap: var(--space-lg);
}

.neo-grid-2 { grid-template-columns: repeat(2, 1fr); }
.neo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.neo-grid-4 { grid-template-columns: repeat(4, 1fr); }

.neo-flex {
    display: flex;
}

.neo-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neo-gap-sm { gap: var(--space-sm); }
.neo-gap-md { gap: var(--space-md); }
.neo-gap-lg { gap: var(--space-lg); }

.neo-mb-sm { margin-bottom: var(--space-sm); }
.neo-mb-md { margin-bottom: var(--space-md); }
.neo-mb-lg { margin-bottom: var(--space-lg); }
.neo-mb-xl { margin-bottom: var(--space-xl); }

.neo-mt-sm { margin-top: var(--space-sm); }
.neo-mt-md { margin-top: var(--space-md); }
.neo-mt-lg { margin-top: var(--space-lg); }

.neo-text-center { text-align: center; }
.neo-text-right { text-align: right; }
.neo-text-muted { color: var(--text-muted); }
.neo-text-sm { font-size: 0.85rem; }
.neo-text-xs { font-size: 0.75rem; }

/* ===== User Info ===== */
.neo-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    box-shadow: var(--neo-shadow-sm);
}

.neo-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--neo-bg);
    border-radius: var(--neo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neo-accent);
    font-weight: 700;
    box-shadow: var(--neo-shadow-inset-sm);
}

.neo-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.neo-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .neo-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .neo-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .neo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 20px;
        --space-xl: 28px;
    }

    /* Sidebar: slide-in on mobile */
    .neo-sidebar {
        transform: translateX(-100%);
    }

    .neo-sidebar.active,
    .neo-sidebar.open {
        transform: translateX(0);
    }

    /* Remove sidebar offsets on mobile */
    .neo-header-with-sidebar {
        margin-left: 0;
    }

    .neo-main-with-sidebar {
        margin-left: 0;
    }

    /* Show hamburger on mobile */
    .neo-hamburger {
        display: flex;
    }

    .neo-grid-4,
    .neo-grid-3,
    .neo-grid-2 {
        grid-template-columns: 1fr;
    }

    .neo-stats-grid {
        grid-template-columns: 1fr;
    }

    .neo-header-content {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .neo-header-right {
        gap: 8px;
    }

    .neo-user-name {
        display: none;
    }

    .neo-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neo-animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered animation delays */
.neo-animate-delay-1 { animation-delay: 0.1s; }
.neo-animate-delay-2 { animation-delay: 0.2s; }
.neo-animate-delay-3 { animation-delay: 0.3s; }
.neo-animate-delay-4 { animation-delay: 0.4s; }
