:root {
    --bg-deep: #0a0a0f;
    --bg-primary: #0f0f18;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #1f1f2d;
    --bg-input: #15151f;
    --border: #2a2a3a;
    --border-light: #33334a;
    --text: #e0e0e8;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --accent-glow-strong: rgba(245, 158, 11, 0.45);
    --accent-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --accent-gradient-bright: linear-gradient(135deg, #fbbf24, #f59e0b);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
    --sidebar-width: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #3a3a4a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a5a; }

/* ============ Container ============ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ============ Sidebar ============ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
    font-weight: 700;
}

.sidebar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.sidebar-logo-text span {
    background: var(--accent-gradient-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.sidebar-nav-section {
    margin-bottom: 0.25rem;
}

.sidebar-nav-section-title {
    padding: 0.5rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    margin: 0 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    background: none;
    width: calc(100% - 1rem);
    text-align: left;
    position: relative;
}

.sidebar-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.sidebar-nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-light);
    font-weight: 500;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-footer-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.sidebar-footer-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ============ Main Content ============ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    background: var(--bg-deep);
    overflow-x: hidden;
}

.page-content { display: none; }
.page-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Page Header ============ */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ============ Cards ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: #3a3a4a;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card-body { }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.stat-card:hover::before {
    opacity: 0.5;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Chart container */
.chart-wrap {
    position: relative;
    width: 100%;
    height: 350px;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ============ Tables ============ */
.table-wrap {
    overflow-x: auto;
}

/* Records page styles */
#page-records .card {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Quick filter card */
.quick-filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.quick-filter-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.quick-filter-card .card-header span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.quick-filter-buttons {
    display: flex;
    gap: 0.5rem;
}
.quick-filter-buttons .btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-filter-buttons .btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}
.quick-filter-buttons .btn-accent {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: #000;
}
.quick-filter-buttons .btn-accent:hover {
    background: var(--accent-dark);
}

/* Stats summary cards */
.stats-summary-card .card-body {
    padding: 0;
}
.stats-summary {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}
.stats-summary .stat-item {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 200px;
}
.stats-summary .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.stats-summary .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.stats-summary .stat-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Search results stats */
.search-stats {
    display: flex;
    gap: 1rem;
    padding: 0;
}
.search-stats .stat-item {
    flex: 1;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 180px;
}
.search-stats .stat-blue {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.search-stats .stat-purple {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.search-stats .stat-blue .stat-label,
.search-stats .stat-blue .stat-value,
.search-stats .stat-blue .stat-date {
    color: var(--text-secondary);
}
.search-stats .stat-purple .stat-label,
.search-stats .stat-purple .stat-value,
.search-stats .stat-purple .stat-date {
    color: var(--text-secondary);
}

/* Search filters */
.search-filters-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}
.search-filters-card .card-header h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}
.card-actions {
    display: flex;
    gap: 0.4rem;
}
.card-actions .btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
}
.card-actions .btn-primary {
    background: var(--accent);
    color: #000;
}
.card-actions .btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.search-filters .filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.search-filters .filter-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 80px;
}
.search-filters .filter-row span {
    color: var(--text-muted);
}
.filter-input-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    min-width: 120px;
}
.filter-input-sm:focus {
    outline: none;
    border-color: var(--accent);
}

/* Collapsed state for cards */
.card.collapsed .card-body {
    display: none;
}

/* Table container - simple and clean */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: block;
}
.data-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.data-table th {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    min-width: 120px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.data-table th.sortable:hover {
    background: var(--bg-hover);
}
.data-table th.sortable.asc {
    background: var(--bg-hover);
}
.data-table th.sortable.desc {
    background: var(--bg-hover);
}
.data-table th.sortable::after {
    content: ' ↕';
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 4px;
}
.data-table th.sortable.asc::after {
    content: ' ↑';
    color: var(--accent);
    font-weight: bold;
}
.data-table th.sortable.desc::after {
    content: ' ↓';
    color: var(--accent);
    font-weight: bold;
}
.data-table td {
    padding: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    min-width: 120px;
}
.data-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Table scrollbar */
.table-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}
.table-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.table-container::-webkit-scrollbar-thumb {
    background: #4a4a5a;
    border-radius: 5px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: #5a5a6a;
}

/* Empty row styling */
.empty-row {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: var(--bg-card);
}
.empty-cell {
    color: var(--text-muted);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table td {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
    white-space: nowrap;
}

table tbody tr {
    transition: background var(--transition);
}

table tbody tr:nth-child(even) {
    background: rgba(26, 26, 36, 0.5);
}

table tbody tr:hover {
    background: var(--bg-hover);
}

.empty-row {
    text-align: center !important;
    color: var(--text-muted) !important;
    padding: 2rem !important;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-gradient-bright);
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

.btn-success {
    background: var(--success);
    color: #000;
    font-weight: 600;
}

.btn-success:hover {
    box-shadow: 0 2px 12px var(--success-glow);
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-glow);
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ============ 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[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.filter-select,
.filter-date,
.filter-input {
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.filter-date::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
    opacity: 0.8;
}

.filter-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-input-sm[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
    opacity: 0.8;
}

.filter-input-sm[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.filter-select:focus,
.filter-date:focus,
.filter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.submit-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--accent-gradient-bright);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ============ Modals ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.modal-body {
    padding: 1.5rem;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.close-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-glow);
}

/* ============ Wizard ============ */
.wizard-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    align-items: center;
    justify-content: center;
}

.wizard-modal.show {
    display: flex;
}

.wizard-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.wizard-dialog {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.wizard-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    gap: 0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0;
}

.wizard-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    flex-shrink: 0;
}

.wizard-step.completed .wizard-step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.wizard-step.active .wizard-step-circle {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-glow);
}

.wizard-step-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    transition: background var(--transition);
}

.wizard-step.completed .wizard-step-line {
    background: var(--accent);
}

.wizard-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-align: center;
    transition: color var(--transition);
}

.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
    color: var(--accent-light);
}

.wizard-body {
    padding: 0 1.5rem 1.5rem;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ============ Quick Start Template Cards ============ */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.template-card {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.template-card:hover {
    border-color: var(--accent-dark);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.template-card.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow);
}

.template-card.selected::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.template-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.template-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============ Editable Field List ============ */
.field-list { }

.field-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: all var(--transition);
}

.field-item:hover {
    border-color: var(--accent-dark);
}

.field-item input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    font-size: 0.85rem;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    flex: 1;
}

.field-item input:focus {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.field-item input.field-sort {
    width: 40px;
    flex: none;
    text-align: center;
}

.field-item .field-delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.field-item .field-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-glow);
}

.field-add-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

/* ============ Completion Page ============ */
.completion-page {
    text-align: center;
    padding: 2rem 1rem;
}

.completion-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.completion-page h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.completion-page p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.completion-command {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.completion-command code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--accent-light);
    word-break: break-all;
    line-height: 1.6;
    display: block;
    padding-right: 60px;
}

.completion-command .copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.completion-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.completion-link {
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.completion-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ============ Token Display ============ */
.token-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.token-display code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    background: var(--bg-deep);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--accent-light);
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

/* ============ Docs Content ============ */
.docs-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 1.25rem 0 0.5rem;
}

.docs-content h4:first-child {
    margin-top: 0;
}

.docs-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.docs-content pre {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.docs-content pre code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--accent-light);
    line-height: 1.7;
}

.docs-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.docs-content ul li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.docs-content ul li::before {
    content: '▸ ';
    color: var(--accent);
}

.docs-content ul li code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-light);
}

/* ============ Stats Row ============ */
.stats-row {
    display: flex;
    gap: 1.5rem;
}

.stats-row .card {
    flex: 1;
}

/* ============ Quick Links ============ */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.quick-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ============ Hero Section ============ */
.hero-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(120, 119, 198, 0.05) 50%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    width: fit-content;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.hero-illustration {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.illustration-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.illustration-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.illustration-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============ Enhanced Stats Grid ============ */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-icon-bg {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.stat-trend {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 100px;
}

.stat-card-success .stat-trend {
    color: var(--success);
}

.stat-card-primary .stat-trend {
    color: #667eea;
}

.stat-card-warning .stat-trend {
    color: #f093fb;
}

.stat-card-info .stat-trend {
    color: #4facfe;
}

/* ============ Feature Grid ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============ Record Data Display ============ */
.record-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 300px;
}

.record-data-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.record-data-item strong {
    color: var(--accent-light);
    font-weight: 500;
}

/* ============ Pagination ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-light);
}

.pagination button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* ============ Toast ============ */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow);
    min-width: 250px;
    max-width: 400px;
}

.toast.success {
    background: var(--success);
    color: #000;
}

.toast.error {
    background: var(--danger);
    color: #fff;
}

.toast.info {
    background: var(--info);
    color: #fff;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ Status Badge ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: var(--success-glow);
    color: var(--success);
}

.status-badge.inactive {
    background: var(--danger-glow);
    color: var(--danger);
}

.status-badge.expired {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ============ Tag ============ */
.tag {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent-glow);
    color: var(--accent-light);
}

.tag-insert { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-update { background: rgba(168, 85, 247, 0.15); color: #a78bfa; }
.tag-accumulate { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* ============ Loading ============ */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* ============ Confirm Dialog ============ */
.confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.confirm-dialog-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.confirm-dialog-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.confirm-dialog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.confirm-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ============ Switch Toggle ============ */
.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.switch-track {
    width: 40px;
    height: 22px;
    background: var(--border);
    border-radius: 11px;
    position: relative;
    transition: background var(--transition);
}

.switch-track.on {
    background: var(--accent);
}

.switch-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left var(--transition);
}

.switch-track.on .switch-thumb {
    left: 20px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .template-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        min-width: 60px;
    }
    .sidebar-logo-text,
    .sidebar-user-info,
    .sidebar-nav-item span:not(.sidebar-nav-icon),
    .sidebar-nav-section-title,
    .sidebar-nav-badge,
    .sidebar-footer-btn span {
        display: none;
    }
    .sidebar-nav-item {
        justify-content: center;
        padding: 0.6rem;
    }
    .sidebar-nav-icon {
        font-size: 1.2rem;
    }
    .main-content {
        margin-left: 60px;
        padding: 1rem;
    }
    :root {
        --sidebar-width: 60px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-links {
        grid-template-columns: 1fr;
    }
    .header-actions {
        flex-direction: column;
    }
    .completion-links {
        grid-template-columns: 1fr;
    }
}

/* ============ New Landing Page ============ */
.landing-page {
    min-height: 100vh;
    background: var(--bg-deep);
}

.landing-nav {
    background: rgba(15, 15, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    font-weight: 700;
}

.landing-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.landing-brand-text span {
    background: var(--accent-gradient-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.landing-nav-links a:hover {
    color: var(--text);
}

.landing-login-btn {
    padding: 0.55rem 1.4rem;
    background: var(--accent-gradient);
    color: #000 !important;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    transition: all var(--transition) !important;
}

.landing-login-btn:hover {
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
    transform: translateY(-1px);
}

/* New Hero Section */
.landing-hero {
    padding: 5.5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-bg-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-decoration-2 {
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(120,119,198,0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
}

.hero-title-line {
    font-size: 3.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #7839e7 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-btn-primary {
    padding: 0.95rem 2rem;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-btn-primary:hover {
    box-shadow: 0 6px 28px rgba(245,158,11,0.4);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    padding: 0.95rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    height: 380px;
}

.visual-card {
    position: absolute;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visual-card-1 {
    width: 260px;
    height: 190px;
    top: 0;
    right: 0;
    animation: float-1 6s ease-in-out infinite;
}

.visual-card-2 {
    width: 230px;
    height: 160px;
    bottom: 20px;
    left: 0;
    animation: float-2 7s ease-in-out infinite;
}

@keyframes float-1 {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-2 {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.visual-card-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.visual-dots {
    display: flex;
    gap: 6px;
}

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

.visual-dots span:first-child { background: #ef4444; }
.visual-dots span:nth-child(2) { background: #f59e0b; }
.visual-dots span:last-child { background: #10b981; }

.visual-card-body {
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: calc(100% - 40px);
}

.visual-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.visual-bar {
    width: 18px;
    background: linear-gradient(180deg, #f59e0b 0%, #7839e7 100%);
    border-radius: 4px 4px 0 0;
    animation: bar-pulse 2s ease-in-out infinite;
}

@keyframes bar-pulse {
    0%,100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.visual-line {
    width: 100%;
    height: 100%;
}

.visual-line svg {
    width: 100%;
    height: 100%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* New Features Section */
.landing-features {
    padding: 4rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.landing-feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all var(--transition);
}

.landing-feature-card:hover {
    border-color: rgba(245,158,11,0.25);
    transform: translateY(-4px);
    background: rgba(255,255,255,0.035);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.landing-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.landing-feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Workflow Section */
.landing-workflow {
    padding: 3rem 1.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    margin-left: 1rem;
}

.workflow-step:last-child .step-arrow {
    display: none;
}

/* CTA Section */
.landing-cta-section {
    padding: 1rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(120,119,198,0.1) 100%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    box-shadow: 0 6px 28px rgba(245,158,11,0.4);
    transform: translateY(-2px);
}

/* Footer */
.landing-footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
}

.landing-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.landing-admin-qq {
    color: var(--accent-light) !important;
    font-weight: 500;
}

/* Landing Form Footer */
.landing-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.landing-form-footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition);
}

.landing-form-footer a:hover {
    color: var(--accent);
}

.landing-form-footer span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        display: none;
    }
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    .step-arrow {
        display: none;
    }
    .cta-card {
        flex-direction: column;
        text-align: center;
    }
    .hero-title-line {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .landing-features-grid {
        grid-template-columns: 1fr;
    }
    .hero-title-line {
        font-size: 2.1rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* ============ Alert Box ============ */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.error {
    background: var(--danger-glow);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-box.success {
    background: var(--success-glow);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

/* ============ Inline Form Row ============ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* ============ Settings Page ============ */
.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

/* ============ Help / Docs Page ============ */
.help-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.help-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.help-section p,
.help-section li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section ul li::before {
    content: '▸ ';
    color: var(--accent);
}

.help-section code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-light);
}

.help-section pre {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.help-section pre code {
    background: none;
    padding: 0;
    display: block;
    line-height: 1.7;
}

/* ============ Notification Rules ============ */
.rule-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all var(--transition);
}

.rule-card:hover {
    border-color: var(--accent-dark);
}

.rule-info {
    flex: 1;
    min-width: 0;
}

.rule-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.rule-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rule-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}