:root {
    --primary-color: #4051B3;
    --primary-hover: #3543a0;
    --primary-light: rgba(64, 81, 179, 0.10);
    --primary-gradient: linear-gradient(135deg, #4051B3, #8A7CF9);
    --accent-purple: #8A7CF9;
    --accent-purple-light: rgba(138, 124, 249, 0.12);
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --danger-color: #ef4444;
    --info-color: #4051B3;

    --sidebar-width: 240px;
    --header-height: 64px;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 暗色主题（默认） ===== */
[data-theme="dark"] {
    --bg-body: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #222638;
    --bg-elevated: #161922;
    --bg-input: rgba(255,255,255,0.06);
    --bg-hover: rgba(255,255,255,0.06);

    --text-primary: #f1f1f6;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    --border-color: #2a2d3a;
    --border-hover: #3d4055;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ===== 亮色主题 ===== */
[data-theme="light"] {
    --bg-body: #F0F2F5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-elevated: #ffffff;
    --bg-input: rgba(0,0,0,0.02);
    --bg-hover: rgba(64, 81, 179, 0.06);

    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --text-muted: #999999;

    --border-color: #e8e8e8;
    --border-hover: #d0d0dd;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Layout ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s ease;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

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

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.15s;
}

.menu-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

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

.header-nav-item {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.header-nav-item:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none;
}

.header-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav-item:hover::after {
    width: 80%;
}

.header-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    font-size: 16px;
}

.header-action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.header-action .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* ===== User Dropdown ===== */
.dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.user-info:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.15s ease;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s;
    font-size: 13px;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 8px;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
    flex: 1;
}

.page-content {
    flex: 1;
    padding: 28px 32px;
    max-width: 1400px;
    width: 100%;
}

/* ===== Components ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
}

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

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

.card-title {
    font-size: 15px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

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

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

.btn-warning {
    background: var(--warning-color);
    color: white;
}

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

.btn-outline:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* Stat Cards (Home Dashboard) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.ozon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.stat-icon.wb {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.stat-icon.orders {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.stat-icon.products {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.stat-icon.revenue {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up {
    color: var(--success-color);
}

.stat-change.down {
    color: var(--danger-color);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Tutorial / Steps */
.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tutorial-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.tutorial-item:hover {
    background: var(--bg-hover);
}

.tutorial-number {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.tutorial-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.tutorial-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

/* Steps */
.steps-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.steps-title {
    font-size: 15px;
    font-weight: 600;
}

.steps-list {
    display: flex;
    gap: 12px;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.step-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    font-weight: 700;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.step-arrow {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 18px;
}

/* Chart */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
}

.chart-body {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-color);
}

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

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info-color);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

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

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-elevated);
}

tr:last-child td {
    border-bottom: none;
}

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

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b7b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s;
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.pagination .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

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

.modal-body {
    padding: 20px 24px 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px;
}

/* Alert / Toast */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 13px;
}

/* Progress */
.progress {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #9f8cff);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Utility */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }
.text-center { text-align: center; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.grid {
    display: grid;
    gap: 20px;
}

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

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 16px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* ===== Dashboard Styles ===== */

/* Stat Cards Grid */
.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    transition: all 0.2s;
}
.dash-stat-card:hover {
    box-shadow: var(--shadow-sm);
}
.dash-stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.dash-stat-card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ===== 3-Step Process Cards ===== */
.dash-process-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-process-card2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
    cursor: default;
}
.dash-process-card2:hover {
    border-color: rgba(64,81,179,0.3);
}
.dash-process-card2-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.dash-process-card2-body {
    flex: 1;
    min-width: 0;
}
.dash-process-card2-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.dash-process-card2-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}
.dash-process-card2-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.dash-process-card2-link:hover {
    text-decoration: underline;
}

/* ===== Banner (Rotating Carousel) ===== */
.dash-banner {
    position: relative;
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.dash-banner-slides {
    position: relative;
    height: 100%;
}
.dash-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    padding: 0 48px;
    overflow: hidden;
}
.dash-banner-slide.active {
    opacity: 1;
    z-index: 1;
}
.dash-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.dash-banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.dash-banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.dash-banner-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.dash-banner-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.dash-banner-btn {
    display: inline-block;
    padding: 8px 24px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.dash-banner-btn:hover {
    transform: scale(1.05);
}
.dash-banner-icon {
    position: relative;
    z-index: 1;
    font-size: 64px;
    flex-shrink: 0;
    margin-left: 24px;
}
.dash-banner-dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.dash-banner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}
.dash-banner-dots span.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ===== Bottom Card ===== */
.dash-bottom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* ===== Tutorial List ===== */
.dash-tut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
}
.dash-tut-item:hover {
    background: var(--bg-hover);
}
.dash-tut-item:last-child {
    border-bottom: none;
}
.dash-tut-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.dash-tut-q {
    font-size: 13px;
    color: var(--text-primary);
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-tut-item:hover .dash-tut-q {
    color: var(--primary-color);
}
.dash-tut-arrow {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}
.dash-tut-answer {
    display: none;
    padding: 0 16px 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}
.dash-tut-answer.show {
    display: block;
}

/* ===== Quick Path List ===== */
.dash-quick-path-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dash-quick-path-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.15s;
}
.dash-quick-path-item:last-child {
    border-bottom: none;
}
.dash-quick-path-item:hover {
    opacity: 0.8;
}
.dash-quick-path-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.dash-quick-path-item:hover .dash-quick-path-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.dash-quick-path-body {
    flex: 1;
    min-width: 0;
}
.dash-quick-path-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.dash-quick-path-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}
.dash-quick-path-arrow {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Floating Action Buttons ===== */
.dash-floating-bar {
    position: fixed;
    right: 24px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}
.dash-floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}
.dash-floating-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.dash-floating-btn .tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: var(--text-primary);
    color: var(--bg-body);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
}
.dash-floating-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--text-primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.dash-floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== Dashboard Responsive ===== */
@media (max-width: 1200px) {
    .dash-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-process-row {
        grid-template-columns: 1fr;
    }
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .dash-stat-grid {
        grid-template-columns: 1fr;
    }
    .dash-process-card2 {
        padding: 16px;
    }
    .dash-banner {
        height: 180px;
    }
    .dash-banner-slide {
        padding: 0 24px;
    }
    .dash-banner-content h2 {
        font-size: 20px;
    }
    .dash-banner-content p {
        font-size: 12px;
    }
    .dash-banner-icon {
        display: none;
    }
    .dash-banner-dots {
        right: 50%;
        transform: translateX(50%);
    }
    .dash-floating-bar {
        right: 12px;
        bottom: 80px;
    }
    .dash-floating-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .dash-floating-btn .tooltip {
        display: none;
    }
}
