@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;600;700&display=swap');

:root, [data-theme="light"] {
--color-primary: #635BFF;
--color-primary-hover: #7A73FF;
--gradient-primary: linear-gradient(135deg, #635BFF 0%, #805AD5 50%, #7C3AED 100%);
--gradient-accent: linear-gradient(135deg, #80E9FF 0%, #635BFF 100%);
--color-accent: #80E9FF;
--color-bg: #F8FAFC;
--color-surface: #FFFFFF;
--color-surface-elevated: #FFFFFF;
--color-surface-subtle: #F1F5F9;
--color-border: #E2E8F0;
--color-border-subtle: #F1F5F9;
--color-text-primary: #0F172A;
--color-text-secondary: #475569;
--color-text-tertiary: #94A3B8;
--color-success: #10B981;
--color-warning: #F59E0B;
--color-error: #EF4444;
--color-info: #3B82F6;
--color-shadow: rgba(15, 23, 42, 0.06);
--color-shadow-strong: rgba(15, 23, 42, 0.12);
--color-shadow-glow: rgba(99, 91, 255, 0.25);

--space-1: 4px;
--space-2: 8px;
--space-3: 16px;
--space-4: 24px;
--space-5: 32px;
--space-6: 48px;
--space-7: 64px;
--space-8: 96px;

--font-family-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--font-family-zh-cn: 'Inter', 'Noto Sans SC', 'PingFang SC', sans-serif;
--font-family-zh-tw: 'Inter', 'Noto Sans TC', 'PingFang TC', sans-serif;
}

[data-theme="dark"] {
--color-primary: #635BFF;
--color-primary-hover: #7A73FF;
--gradient-primary: linear-gradient(135deg, #635BFF 0%, #80E9FF 100%);
--gradient-accent: linear-gradient(135deg, #A855F7 0%, #635BFF 100%);
--color-accent: #80E9FF;
--color-bg: #090D16;
--color-surface: #111726;
--color-surface-elevated: #182032;
--color-surface-subtle: #1E293B;
--color-border: #232D42;
--color-border-subtle: #192234;
--color-text-primary: #F8FAFC;
--color-text-secondary: #94A3B8;
--color-text-tertiary: #64748B;
--color-success: #34D399;
--color-warning: #FBBF24;
--color-error: #F87171;
--color-info: #60A5FA;
--color-shadow: rgba(0, 0, 0, 0.35);
--color-shadow-strong: rgba(0, 0, 0, 0.6);
--color-shadow-glow: rgba(99, 91, 255, 0.35);
}

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

body {
background-color: var(--color-bg);
color: var(--color-text-primary);
font-family: var(--font-family-zh-cn);
font-weight: 300;
font-size: 14px;
line-height: 1.7;
letter-spacing: -0.01em;
transition: background-color 250ms ease, color 250ms ease;
-webkit-font-smoothing: antialiased;
}

body[lang="en"] {
font-family: var(--font-family-en);
line-height: 1.6;
}

body[lang="zh-TW"] {
font-family: var(--font-family-zh-tw);
line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
color: var(--color-text-primary);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.25;
}

h1 { font-size: 30px;}
h2 { font-size: 24px;}
h3 { font-size: 18px; font-weight: 600;}

a {
color: var(--color-primary);
text-decoration: none;
transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.admin-layout {
display: flex;
min-height: 100vh;
}

.sidebar {
width: 250px;
background-color: var(--color-surface);
border-right: 1px solid var(--color-border);
display: flex;
flex-direction: column;
flex-shrink: 0;
transition: width 250ms ease;
box-shadow: 2px 0 16px var(--color-shadow);
z-index: 100;
}

.sidebar-header {
height: 64px;
padding: 0 var(--space-4);
display: flex;
align-items: center;
gap: var(--space-3);
border-bottom: 1px solid var(--color-border-subtle);
}

.brand-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: var(--gradient-primary);
display: flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
font-weight: 800;
font-size: 18px;
box-shadow: 0 4px 12px var(--color-shadow-glow);
}

.brand-title {
font-size: 17px;
font-weight: 800;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.02em;
}

.sidebar-nav {
padding: var(--space-4) var(--space-2);
flex: 1;
overflow-y: auto;
}

.nav-group-title {
padding: var(--space-3) var(--space-3) var(--space-1);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: var(--color-text-tertiary);
letter-spacing: 0.08em;
}

.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
margin: 3px 6px;
border-radius: 10px;
color: var(--color-text-secondary);
font-weight: 400;
font-size: 14px;
transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}

.nav-item:hover {
background: rgba(99, 91, 255, 0.08);
color: var(--color-text-primary);
transform: translateX(3px);
}

.nav-item.active {
background: var(--gradient-primary);
color: #FFFFFF;
font-weight: 600;
box-shadow: 0 4px 14px var(--color-shadow-glow);
}

.nav-item.active svg {
stroke: #FFFFFF;
}

.main-content {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}

.topbar {
height: 64px;
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
padding: 0 var(--space-5);
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 8px var(--color-shadow);
backdrop-filter: blur(12px);
}

.breadcrumbs {
display: flex;
align-items: center;
gap: var(--space-2);
color: var(--color-text-secondary);
font-size: 13px;
font-weight: 500;
}

.breadcrumbs span:last-child {
color: var(--color-text-primary);
font-weight: 600;
}

.topbar-actions {
display: flex;
align-items: center;
gap: var(--space-3);
}

.card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 16px;
padding: var(--space-5);
box-shadow: 0 4px 20px var(--color-shadow);
transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-sizing: border-box;
max-width: 100%;
}

.card:hover {
border-color: rgba(99, 91, 255, 0.4);
box-shadow: 0 8px 30px var(--color-shadow-strong);
}

.stat-card {
display: flex;
align-items: flex-start;
justify-content: space-between;
}

.stat-icon {
width: 48px;
height: 48px;
border-radius: 14px;
background: rgba(99, 91, 255, 0.1);
color: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
}

.stat-value {
font-size: 32px;
font-weight: 800;
letter-spacing: -0.03em;
margin-top: 4px;
color: var(--color-text-primary);
}

.stat-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
margin-top: 6px;
}

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

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 16px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
border: 1px solid transparent;
transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
letter-spacing: -0.01em;
white-space: nowrap;
box-sizing: border-box;
max-width: 100%;
flex-shrink: 0;
line-height: 1.4;
vertical-align: middle;
}

.btn:active {
transform: scale(0.98);
}

.btn-primary {
background: var(--gradient-primary);
color: #FFFFFF;
border: none;
box-shadow: 0 4px 14px var(--color-shadow-glow);
}

.btn-primary:hover {
opacity: 0.94;
color: #FFFFFF;
transform: translateY(-1px);
box-shadow: 0 6px 20px var(--color-shadow-glow);
}

.btn-secondary {
background: var(--color-surface);
color: var(--color-text-primary);
border-color: var(--color-border);
box-shadow: 0 2px 6px var(--color-shadow);
}

.btn-secondary:hover {
background: var(--color-surface-subtle);
border-color: var(--color-text-tertiary);
transform: translateY(-1px);
}

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

.btn-ghost:hover {
background: rgba(99, 91, 255, 0.08);
}

.btn-danger {
background: var(--color-error);
color: #FFFFFF;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
filter: brightness(1.08);
transform: translateY(-1px);
}

.btn-sm {
padding: 5px 10px;
font-size: 12px;
border-radius: 8px;
height: 32px;
line-height: 1;
}

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

.btn-group, .action-buttons {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
max-width: 100%;
}

.card-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-top: var(--space-4);
width: 100%;
}

.card-actions .btn {
flex: 1;
min-width: 100px;
}

.form-group {
margin-bottom: var(--space-4);
}

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

.form-input, .form-select, .form-textarea {
width: 100%;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: 10px;
padding: 10px 14px;
font-size: 14px;
font-weight: 400;
color: var(--color-text-primary);
outline: none;
transition: all 180ms ease;
box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.15);
background: var(--color-surface);
}

.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.01em;
white-space: nowrap;
}

.badge-dot {
width: 7px;
height: 7px;
border-radius: 50%;
display: inline-block;
}

.badge-success {
background: rgba(16, 185, 129, 0.12);
color: var(--color-success);
}
.badge-success .badge-dot {
background: var(--color-success);
box-shadow: 0 0 8px var(--color-success);
}

.badge-warning {
background: rgba(245, 158, 11, 0.12);
color: var(--color-warning);
}
.badge-warning .badge-dot {
background: var(--color-warning);
box-shadow: 0 0 8px var(--color-warning);
}

.badge-draft {
background: rgba(99, 91, 255, 0.12);
color: var(--color-primary);
}
.badge-draft .badge-dot {
background: var(--color-primary);
box-shadow: 0 0 8px var(--color-primary);
}

.data-table-wrapper {
overflow-x: auto;
border-radius: 12px;
border: 1px solid var(--color-border);
max-width: 100%;
}

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

.data-table th {
text-align: left;
padding: 14px 16px;
background: var(--color-surface-subtle);
border-bottom: 1px solid var(--color-border);
color: var(--color-text-secondary);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}

.data-table td {
padding: 14px 16px;
border-bottom: 1px solid var(--color-border-subtle);
color: var(--color-text-primary);
font-weight: 400;
transition: background-color 150ms ease;
vertical-align: middle;
}

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

.data-table tr:hover td {
background: rgba(99, 91, 255, 0.03);
}

.data-table td form {
display: inline-block;
margin: 0;
}

.lang-tabs {
display: inline-flex;
background: var(--color-surface-subtle);
padding: 4px;
border-radius: 12px;
gap: 4px;
margin-bottom: var(--space-5);
border: 1px solid var(--color-border);
max-width: 100%;
flex-wrap: wrap;
}

.lang-tab {
padding: 8px 18px;
font-size: 13px;
font-weight: 600;
color: var(--color-text-secondary);
cursor: pointer;
border-radius: 8px;
transition: all 180ms ease;
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}

.lang-tab:hover {
color: var(--color-text-primary);
}

.lang-tab.active {
background: var(--color-surface);
color: var(--color-primary);
box-shadow: 0 2px 8px var(--color-shadow);
}

.lang-tab-content {
display: none;
}

.lang-tab-content.active {
display: block;
}

.page-container {
padding: var(--space-6);
max-width: 1360px;
box-sizing: border-box;
}

.dropdown {
position: relative;
display: inline-block;
}

.dropdown-menu {
position: absolute;
right: 0;
top: 100%;
margin-top: 8px;
background: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: 14px;
padding: 8px 0;
box-shadow: 0 12px 36px var(--color-shadow-strong);
min-width: 200px;
z-index: 300;
display: none;
animation: dropdownFade 180ms ease-out forwards;
}

@keyframes dropdownFade {
from { opacity: 0; transform: translateY(-6px) scale(0.97);}
to { opacity: 1; transform: translateY(0) scale(1);}
}

.dropdown.open .dropdown-menu {
display: block;
}

.dropdown-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 18px;
color: var(--color-text-secondary);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 150ms ease;
}

.dropdown-item:hover {
background: rgba(99, 91, 255, 0.08);
color: var(--color-primary);
}

.grid-cols-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--space-5);
}

.grid-cols-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-5);
}

.grid-cols-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space-5);
}

nav[role="navigation"] {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
width: 100%;
}

nav[role="navigation"] svg {
width: 14px;
height: 14px;
}

nav[role="navigation"] a, nav[role="navigation"] span {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 12px;
border-radius: 8px;
font-size: 13px;
border: 1px solid var(--color-border);
background: var(--color-surface);
color: var(--color-text-primary);
text-decoration: none;
}

.ql-toolbar.ql-snow {
background: var(--color-surface-subtle);
border-color: var(--color-border) !important;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
padding: 12px !important;
}

.ql-container.ql-snow {
background: var(--color-bg);
color: var(--color-text-primary);
border-color: var(--color-border) !important;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
font-family: inherit;
font-size: 14px;
}

.ql-snow .ql-stroke {
stroke: var(--color-text-secondary) !important;
}

.ql-snow .ql-fill {
fill: var(--color-text-secondary) !important;
}

.ql-snow .ql-picker {
color: var(--color-text-secondary) !important;
}

.ql-snow .ql-picker-options {
background-color: var(--color-surface-elevated) !important;
border-color: var(--color-border) !important;
border-radius: 8px;
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
color: var(--color-primary) !important;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
stroke: var(--color-primary) !important;
}

@media (max-width: 1024px) {
.grid-cols-4 { grid-template-columns: repeat(2, 1fr);}
.sidebar { width: 68px;}
.sidebar .nav-text, .sidebar .brand-title, .sidebar .nav-group-title { display: none;}
}

@media (max-width: 640px) {
.grid-cols-4 { grid-template-columns: 1fr;}
}

.admin-layout::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 20% 50%, rgba(99, 91, 255, 0.04) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
radial-gradient(circle at 40% 20%, rgba(128, 233, 255, 0.02) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}

[data-theme="dark"] .admin-layout::before {
background-image:
radial-gradient(circle at 20% 50%, rgba(99, 91, 255, 0.08) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
radial-gradient(circle at 40% 20%, rgba(128, 233, 255, 0.04) 0%, transparent 50%);
}

.tech-grid-bg {
position: relative;
}
.tech-grid-bg::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
z-index: 0;
}

[data-theme="dark"] .tech-grid-bg::after {
background-image:
linear-gradient(rgba(99, 91, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(99, 91, 255, 0.05) 1px, transparent 1px);
}

::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(99, 91, 255, 0.2);
border-radius: 999px;
transition: background 200ms ease;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(99, 91, 255, 0.4);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: rgba(99, 91, 255, 0.3);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
background: rgba(99, 91, 255, 0.5);
}

.tech-progress-bar {
position: fixed;
top: 0;
left: 0;
height: 3px;
background: var(--gradient-primary);
z-index: 9999;
border-radius: 0 999px 999px 0;
box-shadow: 0 0 10px var(--color-shadow-glow), 0 0 20px var(--color-shadow-glow);
transition: width 300ms ease-out, opacity 300ms ease;
opacity: 0;
}
.tech-progress-bar.active {
opacity: 1;
}

.glass {
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
}
[data-theme="dark"] .glass {
background: rgba(17, 23, 38, 0.72);
}

.card {
position: relative;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 16px;
padding: 1px;
background: linear-gradient(135deg, transparent 30%, rgba(99, 91, 255, 0.3) 50%, transparent 70%);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity 300ms ease;
pointer-events: none;
}
.card:hover::before {
opacity: 1;
}

.stat-card-glow {
position: relative;
overflow: hidden;
}
.stat-card-glow::after {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(99, 91, 255, 0.06) 0%, transparent 60%);
opacity: 0;
transition: opacity 400ms ease;
pointer-events: none;
}
.stat-card-glow:hover::after {
opacity: 1;
}

.btn-primary {
position: relative;
overflow: hidden;
}
.btn-primary::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
transition: left 600ms ease;
}
.btn-primary:hover::after {
left: 100%;
}

.badge-dot {
position: relative;
}
.badge-dot::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
border-radius: 50%;
background: inherit;
opacity: 0.4;
animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4;}
100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0;}
}

.nav-item.active {
box-shadow: 0 4px 14px var(--color-shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.nav-item.active::before {
content: '';
position: absolute;
left: -6px;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 60%;
background: #FFFFFF;
border-radius: 0 999px 999px 0;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.brand-title {
background-size: 200% auto;
animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
0%, 100% { background-position: 0% center;}
50% { background-position: 100% center;}
}

.brand-icon {
animation: brand-glow 3s ease-in-out infinite;
}
@keyframes brand-glow {
0%, 100% { box-shadow: 0 4px 12px var(--color-shadow-glow);}
50% { box-shadow: 0 4px 20px var(--color-shadow-glow), 0 0 30px rgba(99, 91, 255, 0.15);}
}

@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px);}
to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInScale {
from { opacity: 0; transform: scale(0.96);}
to { opacity: 1; transform: scale(1);}
}
@keyframes slideInLeft {
from { opacity: 0; transform: translateX(-20px);}
to { opacity: 1; transform: translateX(0);}
}
@keyframes slideInRight {
from { opacity: 0; transform: translateX(20px);}
to { opacity: 1; transform: translateX(0);}
}

.animate-in {
animation: fadeInUp 500ms ease-out forwards;
opacity: 0;
}
.animate-in-scale {
animation: fadeInScale 400ms ease-out forwards;
opacity: 0;
}
.animate-slide-left {
animation: slideInLeft 400ms ease-out forwards;
opacity: 0;
}
.animate-slide-right {
animation: slideInRight 400ms ease-out forwards;
opacity: 0;
}

.delay-1 { animation-delay: 80ms;}
.delay-2 { animation-delay: 160ms;}
.delay-3 { animation-delay: 240ms;}
.delay-4 { animation-delay: 320ms;}
.delay-5 { animation-delay: 400ms;}
.delay-6 { animation-delay: 480ms;}

.data-table tbody tr {
animation: fadeInUp 300ms ease-out forwards;
opacity: 0;
}
.data-table tbody tr:nth-child(1) { animation-delay: 50ms;}
.data-table tbody tr:nth-child(2) { animation-delay: 80ms;}
.data-table tbody tr:nth-child(3) { animation-delay: 110ms;}
.data-table tbody tr:nth-child(4) { animation-delay: 140ms;}
.data-table tbody tr:nth-child(5) { animation-delay: 170ms;}
.data-table tbody tr:nth-child(6) { animation-delay: 200ms;}
.data-table tbody tr:nth-child(7) { animation-delay: 230ms;}
.data-table tbody tr:nth-child(8) { animation-delay: 260ms;}
.data-table tbody tr:nth-child(n+9) { animation-delay: 290ms;}

.aurora-hero {
position: relative;
overflow: hidden;
}
.aurora-hero::before {
content: '';
position: absolute;
top: -50%;
left: -20%;
width: 140%;
height: 200%;
background:
radial-gradient(ellipse 60% 50% at 30% 40%, rgba(99, 91, 255, 0.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 70% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
radial-gradient(ellipse 40% 30% at 50% 20%, rgba(128, 233, 255, 0.08) 0%, transparent 60%);
animation: aurora-drift 15s ease-in-out infinite alternate;
pointer-events: none;
z-index: 0;
}
[data-theme="dark"] .aurora-hero::before {
background:
radial-gradient(ellipse 60% 50% at 30% 40%, rgba(99, 91, 255, 0.2) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 70% 60%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
radial-gradient(ellipse 40% 30% at 50% 20%, rgba(128, 233, 255, 0.1) 0%, transparent 60%);
}
@keyframes aurora-drift {
0% { transform: translate(0, 0) rotate(0deg);}
100% { transform: translate(5%, -3%) rotate(2deg);}
}

.text-gradient {
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
background-size: 200% auto;
animation: gradient-shift 4s ease infinite;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12), 0 0 16px rgba(99, 91, 255, 0.08);
}

.sidebar-nav::-webkit-scrollbar {
width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
background: rgba(99, 91, 255, 0.15);
border-radius: 999px;
}

.tech-toast {
position: fixed;
top: 80px;
right: 24px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.tech-toast-item {
background: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 12px 20px;
box-shadow: 0 8px 24px var(--color-shadow-strong);
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
font-weight: 500;
color: var(--color-text-primary);
pointer-events: auto;
animation: toast-in 300ms ease-out forwards;
backdrop-filter: blur(12px);
max-width: 360px;
}
.tech-toast-item.success { border-left: 3px solid var(--color-success);}
.tech-toast-item.error { border-left: 3px solid var(--color-error);}
.tech-toast-item.info { border-left: 3px solid var(--color-info);}
.tech-toast-item.fade-out { animation: toast-out 300ms ease-in forwards;}

@keyframes toast-in {
from { opacity: 0; transform: translateX(100px);}
to { opacity: 1; transform: translateX(0);}
}
@keyframes toast-out {
from { opacity: 1; transform: translateX(0);}
to { opacity: 0; transform: translateX(100px);}
}

*, *::before, *::after {
transition-property: background-color, border-color, color, fill, stroke, box-shadow;
transition-duration: 200ms;
transition-timing-function: ease;
}

.nav-item:hover {
transform: translateX(3px);
}
.btn:hover {
transform: translateY(-1px);
}
.card:hover {
transform: translateY(-2px);
}

.counter-value {
font-variant-numeric: tabular-nums;
font-feature-settings: 'tnum';
}

.chart-point-group circle:nth-child(1) {
animation: point-pulse 2s ease-in-out infinite;
}
@keyframes point-pulse {
0%, 100% { opacity: 0.2; r: 6;}
50% { opacity: 0.35; r: 8;}
}

@media (max-width: 1024px) {
.admin-layout::before { display: none;}
.tech-grid-bg::after { background-size: 24px 24px;}
}

@media (max-width: 640px) {
.tech-toast { top: auto; bottom: 16px; right: 16px; left: 16px;}
.tech-toast-item { max-width: 100%;}
}

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}