/* ========== Admin Layout ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f7fb;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 240px;
  background: #1a1d2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.admin-sidebar-logo svg { width: 28px; height: 28px; }
.admin-sidebar-logo span { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.admin-nav {
  flex: 1; padding: 12px 0;
}
.admin-nav-group {
  font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.35);
  padding: 16px 20px 6px; font-weight: 600; letter-spacing: 1px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  color: rgba(255,255,255,0.65); font-size: 14px;
  transition: all 0.2s; text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-nav-item.active {
  color: #fff; background: rgba(102,126,234,0.15);
  border-left-color: #667eea;
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar-footer {
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.08);
}

/* Admin Main */
.admin-main {
  flex: 1; margin-left: 240px; padding: 0;
  min-height: 100vh;
}
.admin-page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 32px 20px;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
}
.admin-page-header h1 {
  font-size: 24px; font-weight: 700; color: var(--text-primary); margin: 0;
}
.admin-page-header p {
  font-size: 13px; color: var(--text-secondary); margin: 4px 0 0;
}
.admin-header-actions {
  display: flex; gap: 8px; align-items: center;
}

/* Admin Stats */
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 24px 32px;
}
.admin-stat-card {
  background: #fff; border-radius: 12px; padding: 20px;
  border: 1px solid #e8ecf1; border-left: 4px solid #667eea;
  display: flex; gap: 16px; align-items: flex-start;
  transition: box-shadow 0.2s;
}
.admin-stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.admin-stat-card.mini {
  flex-direction: column; gap: 4px; padding: 16px 20px;
  border-left-width: 3px;
}
.admin-stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.admin-stat-content { flex: 1; }
.admin-stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.admin-stat-card.mini .admin-stat-value { font-size: 22px; }
.admin-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.admin-stat-trend {
  font-size: 12px; margin-top: 6px; font-weight: 500;
}
.admin-stat-trend.up { color: #10b981; }
.admin-stat-trend.down { color: #ef4444; }

/* Admin Charts */
.admin-charts-row {
  display: flex; gap: 20px; padding: 0 32px 20px;
}
.admin-chart-card {
  background: #fff; border-radius: 12px; border: 1px solid #e8ecf1;
  flex: 1; overflow: hidden;
}
.admin-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #f0f2f5;
}
.admin-card-header h3 { font-size: 15px; font-weight: 600; margin: 0; }
.admin-bottom-row {
  display: flex; gap: 20px; padding: 0 32px 32px;
}
.admin-bottom-row > * { flex: 1; }

/* Bar Chart */
.admin-bar-chart {
  display: flex; align-items: flex-end; justify-content: space-around;
  height: 160px; padding: 20px 20px 0;
}
.admin-bar-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.admin-bars { display: flex; gap: 4px; align-items: flex-end; height: 120px; }
.admin-bar { width: 20px; border-radius: 4px 4px 0 0; transition: height 0.3s; min-height: 4px; }
.admin-bar.tasks { background: linear-gradient(180deg, #667eea, #764ba2); }
.admin-bar.cost { background: linear-gradient(180deg, #f59e0b, #f97316); }
.admin-bar.income { background: linear-gradient(180deg, #10b981, #059669); }
.admin-bar-label { font-size: 11px; color: var(--text-secondary); }
.chart-legend { padding: 12px 20px; font-size: 12px; color: var(--text-secondary); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }

/* Health Ring */
.health-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  padding: 24px;
}
.health-item { text-align: center; }
.health-ring {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.health-ring::after {
  content: ''; position: absolute; width: 68px; height: 68px;
  border-radius: 50%; background: #fff;
}
.health-ring-value {
  position: relative; z-index: 1; font-size: 14px; font-weight: 700;
}
.health-label { font-size: 13px; color: var(--text-secondary); }

/* Pending List */
.pending-list { padding: 12px 20px; }
.pending-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f5;
}
.pending-item:last-child { border-bottom: none; }
.pending-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.pending-dot.error { background: #ef4444; }
.pending-dot.warning { background: #f59e0b; }
.pending-dot.info { background: #667eea; }
.pending-info { flex: 1; }
.pending-title { font-size: 13px; font-weight: 500; }
.pending-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* Admin Badge */
.admin-badge {
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px 16px; gap: 16px; flex-wrap: wrap;
}
.admin-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-filter-tab {
  padding: 6px 14px; border-radius: 6px; font-size: 13px;
  cursor: pointer; color: var(--text-secondary); background: #fff;
  border: 1px solid #e8ecf1; transition: all 0.2s;
}
.admin-filter-tab:hover { border-color: #667eea; color: #667eea; }
.admin-filter-tab.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border-color: transparent;
}
.admin-search-input {
  padding: 8px 14px; border-radius: 8px; border: 1px solid #e8ecf1;
  font-size: 13px; width: 240px; outline: none;
  transition: border-color 0.2s;
}
.admin-search-input:focus { border-color: #667eea; }

/* Admin Table */
.admin-table-wrap {
  padding: 0 32px; overflow-x: auto;
}
.admin-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #e8ecf1;
}
.admin-table th {
  padding: 12px 16px; text-align: left; font-size: 12px;
  font-weight: 600; color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.5px; background: #f8f9fc;
  border-bottom: 1px solid #e8ecf1;
}
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { color: #667eea; }
.admin-table td {
  padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f0f2f5;
  color: var(--text-primary);
}
.admin-table tr:hover td { background: #f8f9fc; }
.admin-table tr:last-child td { border-bottom: none; }
.price-cell { font-weight: 600; color: var(--danger); }
.action-cell { display: flex; gap: 4px; }

/* Status & Role Badges */
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.status-badge.status-online { background: rgba(16,185,129,0.1); color: #10b981; }
.status-badge.status-offline { background: rgba(239,68,68,0.1); color: #ef4444; }
.status-badge.status-active { background: rgba(16,185,129,0.1); color: #10b981; }
.status-badge.status-disabled { background: rgba(239,68,68,0.1); color: #ef4444; }
.status-badge.status-building { background: rgba(245,158,11,0.1); color: #f59e0b; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; background: rgba(102,126,234,0.1); color: #667eea;
  font-weight: 500;
}
.gpu-tag {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; background: rgba(139,92,246,0.1); color: #8b5cf6;
}
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.role-badge.role-admin { background: rgba(239,68,68,0.1); color: #ef4444; }
.role-badge.role-vip { background: rgba(245,158,11,0.1); color: #f59e0b; }
.role-badge.role-user { background: rgba(102,126,234,0.1); color: #667eea; }

/* Pagination */
.admin-pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 32px; font-size: 13px; color: var(--text-secondary);
}
.admin-pagination button {
  padding: 6px 14px; border-radius: 6px; border: 1px solid #e8ecf1;
  background: #fff; cursor: pointer; font-size: 13px;
  transition: all 0.2s;
}
.admin-pagination button:hover:not(:disabled) { border-color: #667eea; color: #667eea; }
.admin-pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Buttons */
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 4px; border: 1px solid #e8ecf1; background: #fff; cursor: pointer; }
.btn-xs:hover { border-color: #667eea; color: #667eea; }
.btn-ghost { background: transparent !important; border: 1px solid #e8ecf1; color: var(--text-secondary) !important; }
.btn-ghost:hover { border-color: #667eea !important; color: #667eea !important; }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); display: flex; align-items: center;
  justify-content: center; z-index: 1000;
}
.modal-card {
  background: #fff; border-radius: 16px; width: 560px; max-height: 80vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid #f0f2f5;
}
.modal-header h3 { font-size: 17px; font-weight: 700; margin: 0; }
.modal-close { cursor: pointer; font-size: 18px; color: var(--text-secondary); padding: 4px 8px; border-radius: 4px; }
.modal-close:hover { background: #f0f2f5; }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid #f0f2f5;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0f2f5;
}
.detail-row span { font-size: 13px; color: var(--text-secondary); }
.detail-row strong { font-size: 13px; }
.user-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

/* Image Cards */
.image-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; padding: 0 32px 24px;
}
.image-card {
  background: #fff; border-radius: 12px; border: 1px solid #e8ecf1;
  padding: 20px; cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.image-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.image-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.image-icon { font-size: 32px; }
.image-card-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; font-family: monospace; }
.image-card-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.4; }
.image-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.image-meta-row { display: flex; justify-content: space-between; font-size: 12px; }
.image-meta-row span { color: var(--text-secondary); }
.image-meta-row strong { font-size: 12px; }
.image-card-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f2f5; font-size: 11px; color: var(--text-secondary); }
.image-progress {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: #f59e0b; font-weight: 600;
}
.image-progress-bar { flex: 1; height: 6px; background: #e8ecf1; border-radius: 3px; }
.image-progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #f97316); border-radius: 3px; }

/* Server Monitor */
.server-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 0 20px 16px; border-bottom: 1px solid #f0f2f5;
}
.server-info-item {
  display: flex; flex-direction: column; gap: 2px;
}
.server-info-item span { font-size: 11px; color: var(--text-secondary); }
.server-info-item strong { font-size: 13px; }
.resource-bars { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.resource-bar-item {}
.resource-bar-header {
  display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px;
}
.resource-bar-header strong { font-weight: 700; }
.resource-bar-header strong.normal { color: #10b981; }
.resource-bar-header strong.warning { color: #f59e0b; }
.resource-bar-header strong.danger { color: #ef4444; }
.resource-bar {
  height: 8px; background: #e8ecf1; border-radius: 4px; overflow: hidden;
}
.resource-bar-fill {
  height: 100%; border-radius: 4px; transition: width 0.5s;
}
.resource-bar-fill.normal { background: linear-gradient(90deg, #10b981, #059669); }
.resource-bar-fill.warning { background: linear-gradient(90deg, #f59e0b, #f97316); }
.resource-bar-fill.danger { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Services List */
.services-list { padding: 12px 20px; }
.service-item {
  padding: 12px 0; border-bottom: 1px solid #f0f2f5;
}
.service-item:last-child { border-bottom: none; }
.service-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.service-dot { width: 8px; height: 8px; border-radius: 50%; }
.service-dot.status-running { background: #10b981; }
.service-details {
  display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap;
}

/* FRP List */
.frp-list {
  max-height: 400px; overflow-y: auto; padding: 8px 20px;
}
.frp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f5f7fa;
  font-size: 13px;
}
.frp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.frp-dot.status-online { background: #10b981; }
.frp-dot.status-offline { background: #ef4444; }
.frp-info { flex: 1; }
.frp-info strong { font-size: 12px; display: block; }
.frp-info span { font-size: 11px; color: var(--text-secondary); font-family: monospace; }
.frp-traffic { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* Alerts */
.alerts-list { padding: 12px 20px; }
.alert-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}
.alert-item:last-child { border-bottom: none; }
.alert-level { font-size: 16px; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-msg { font-size: 13px; line-height: 1.4; }
.alert-time { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* Live Indicator */
.live-indicator-sm {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}

/* ========== Enhanced TopNav ========== */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px; z-index: 1000;
}
.nav-dropdown-menu a {
  display: block; padding: 8px 14px; font-size: 13px;
  color: var(--text-primary); cursor: pointer; border-radius: 6px;
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: rgba(102,126,234,0.08); color: #667eea; }

.nav-search {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border-radius: 8px;
  padding: 6px 12px; transition: all 0.3s;
  width: 180px;
}
.nav-search.expanded { width: 260px; background: rgba(255,255,255,0.25); }
.nav-search input {
  border: none; background: transparent; color: #fff;
  font-size: 13px; outline: none; width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }

.nav-bell {
  position: relative; cursor: pointer; padding: 4px;
}
.bell-badge {
  position: absolute; top: -2px; right: -2px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notification-panel {
  position: absolute; top: 100%; right: 0; width: 320px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000; overflow: hidden;
}
.notification-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #f0f2f5;
}
.notification-header span { font-size: 12px; color: #667eea; cursor: pointer; }
.notification-item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid #f5f7fa; align-items: flex-start;
}
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notif-dot.warning { background: #f59e0b; }
.notif-dot.info { background: #667eea; }
.notif-dot.error { background: #ef4444; }
.notif-text { flex: 1; font-size: 13px; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* ========== Enhanced Footer ========== */
.footer-enhanced {
  background: #1a1d2e; color: rgba(255,255,255,0.7);
  padding: 48px 24px 20px;
}
.footer-inner-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo span { font-size: 18px; font-weight: 700; color: #fff; }
.footer-slogan { font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  font-size: 16px; transition: background 0.2s;
}
.social-icon:hover { background: rgba(102,126,234,0.3); }
.footer-col h4 {
  color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #667eea; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-divider { margin: 0 8px; }

/* ========== Home Enhancements ========== */
.live-status-bar {
  background: #fff; border-bottom: 1px solid #e8ecf1;
  padding: 12px 24px;
}
.live-status-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.live-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-stat {
  display: flex; flex-direction: column; align-items: center;
}
.live-stat-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.live-stat-label { font-size: 11px; color: var(--text-secondary); }
.live-time { margin-left: auto; font-size: 11px; color: var(--text-secondary); font-family: monospace; }

.home-section-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* Announcements */
.home-announcements { background: #fff; padding: 32px 0; }
.announcement-list {
  display: flex; flex-direction: column; gap: 0;
}
.announcement-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}
.announcement-item:hover { background: #f8f9fc; }
.announcement-item:last-child { border-bottom: none; }
.announcement-tag {
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.announcement-tag.update { background: rgba(102,126,234,0.1); color: #667eea; }
.announcement-tag.maintenance { background: rgba(245,158,11,0.1); color: #f59e0b; }
.announcement-tag.promo { background: rgba(239,68,68,0.1); color: #ef4444; }
.announcement-tag.info { background: rgba(16,185,129,0.1); color: #10b981; }
.announcement-title { flex: 1; font-size: 14px; }
.announcement-time { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* Timeline */
.home-timeline-section { padding: 40px 0; background: #f8f9fc; }
.activity-timeline {
  padding: 0; margin-top: 20px;
}
.timeline-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-left: 2px solid #e8ecf1; margin-left: 10px; padding-left: 24px;
  position: relative;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  position: absolute; left: -7px; top: 18px;
}
.timeline-dot.success { background: #10b981; }
.timeline-dot.info { background: #667eea; }
.timeline-dot.promo { background: #ef4444; }
.timeline-dot.milestone { background: #f59e0b; }
.timeline-content {}
.timeline-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.timeline-time { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Recharge Button */
.recharge-btn {
  padding: 10px; border-radius: 8px; border: 1px solid #e8ecf1;
  background: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.recharge-btn.active, .recharge-btn:hover {
  border-color: #667eea; background: rgba(102,126,234,0.08); color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .admin-charts-row { flex-direction: column; padding: 0 16px 16px; }
  .admin-bottom-row { flex-direction: column; }
  .admin-toolbar { padding: 0 16px 12px; }
  .admin-table-wrap { padding: 0 16px; }
  .footer-inner-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .image-grid { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .nav-search { display: none; }
}
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* Hamburger Menu */
.user-menu-wrap { position: relative; }
.hamburger-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); cursor: pointer;
  transition: all 0.2s; color: #99a0ad;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 260px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  z-index: 1000; overflow: hidden; animation: dropdownIn 0.2s ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}
.dropdown-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.dropdown-info { flex: 1; min-width: 0; }
.dropdown-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.dropdown-balance { font-size: 12px; color: #667eea; margin-top: 2px; }
.dropdown-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; cursor: pointer; transition: all 0.15s;
  font-size: 14px; color: #444;
}
.dropdown-item:hover { background: #f8f9ff; color: #667eea; }
.dropdown-item.logout { color: #e74c3c; }
.dropdown-item.logout:hover { background: #fef2f2; }
.dropdown-item svg { flex-shrink: 0; color: #99a0ad; }
.dropdown-item:hover svg { color: #667eea; }
.dropdown-item.logout svg { color: #e74c3c; }

/* ========== 增强节点市场样式 ========== */
.node-gpu-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.node-gpu-specs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.spec-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(102,126,234,0.08);
  color: #667eea;
  border: 1px solid rgba(102,126,234,0.15);
}
.node-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.spec-item {
  text-align: center;
}
.spec-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.spec-value {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.node-owner-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-online { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.4); }
.dot-busy { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.dot-pending { background: #94a3b8; }
.dot-offline { background: #6b7280; }
.node-price-tag {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
}
.filter-search-input {
  flex: 1;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.filter-search-input:focus {
  border-color: var(--primary);
}
.status-pending { background: rgba(148,163,184,0.1); color: #94a3b8; }

/* ========== 增强我的任务样式 ========== */
.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.task-type-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.task-status-tag {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.tag-completed { background: rgba(16,185,129,0.1); color: #10b981; }
.tag-processing { background: rgba(59,130,246,0.1); color: #3b82f6; }
.tag-pending { background: rgba(148,163,184,0.1); color: #94a3b8; }
.tag-failed { background: rgba(239,68,68,0.1); color: #ef4444; }
.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 10px;
  color: var(--text-secondary);
}
.meta-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.task-card-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.task-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.task-btn-primary {
  background: var(--primary);
  color: #fff;
}
.task-btn-primary:hover {
  background: var(--primary-dark, #5a6fd6);
}
.task-btn-secondary {
  background: rgba(102,126,234,0.08);
  color: var(--primary);
  border: 1px solid rgba(102,126,234,0.2);
}
.task-btn-secondary:hover {
  background: rgba(102,126,234,0.15);
}

/* ========== 价格显示面板 ========== */
.price-display {
  padding: 8px 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.price-row:last-child { border-bottom: none; }
.price-value {
  font-weight: 600;
  color: var(--text);
}
.price-row.total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}
.price-row.total .price-value {
  color: #f59e0b;
  font-size: 15px;
}
