*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #5b5ef7;
  --primary-dark: #4347e8;
  --primary-light: #eef0ff;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e8ecf4;
  --shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  --shadow-lg: 0 12px 40px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-page {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 35%, #faf5ff 100%);
  background-attachment: fixed;
}

.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-balance {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-balance strong {
  color: var(--danger);
  font-size: 16px;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.main-content-full {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.orders-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.order-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  align-items: center;
}

.reward-text {
  color: var(--success);
  font-weight: 600;
}

.notice-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #92400e;
}

.success-card {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-area:hover {
  border-color: var(--primary);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: white;
}

.status-badge.warning {
  background: #fef3c7;
  color: #d97706;
}

.status-badge.success,
.status-badge.active {
  background: #d1fae5;
  color: #059669;
}

.status-badge.danger,
.status-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.chat-panel {
  width: 380px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--card);
  flex-shrink: 0;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 15px;
}

.task-filters {
  display: flex;
  gap: 10px;
  padding: 4px 0 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.task-filters::-webkit-scrollbar {
  display: none;
}

.filter-scroll-wrap {
  margin: 0 -4px 20px;
  padding: 0 4px;
}

.filter-btn {
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.filter-icon {
  font-size: 15px;
}

.filter-btn:hover {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.task-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.task-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.task-card--download .task-card-accent { background: linear-gradient(180deg, #3b82f6, #60a5fa); }
.task-card--writing .task-card-accent { background: linear-gradient(180deg, #ec4899, #f472b6); }
.task-card--watch .task-card-accent { background: linear-gradient(180deg, #10b981, #34d399); }
.task-card--comment .task-card-accent { background: linear-gradient(180deg, #f59e0b, #fbbf24); }

.task-card-body {
  padding: 18px 18px 18px 22px;
  display: flex;
  flex-direction: column;
}

.task-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.task-type-badge.download { background: #eff6ff; color: #2563eb; }
.task-type-badge.writing { background: #fdf2f8; color: #db2777; }
.task-type-badge.watch { background: #ecfdf5; color: #059669; }
.task-type-badge.comment { background: #fffbeb; color: #d97706; }

.task-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #0f172a;
}

.task-card .description {
  color: var(--text-secondary);
  font-size: 13px;
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.55;
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.task-reward-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-reward-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.task-reward {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-accept {
  padding: 10px 22px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}

.btn-accept:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-accept--muted {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-accept--done {
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.chat-header .info h3 {
  font-size: 15px;
  font-weight: 600;
}

.chat-header .status {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.status-dot.online {
  background: var(--success);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.message.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.admin {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.message .time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.chat-welcome {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.chat-welcome .icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

.chat-input-area button {
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background: var(--primary-dark);
}

.chat-input-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-layout {
  display: flex;
  height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #1e293b;
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  padding: 0 20px 20px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #334155;
}

.admin-nav {
  padding: 12px 0;
}

.admin-nav a {
  display: block;
  padding: 10px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: #334155;
  color: white;
}

.admin-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.data-table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-collapse: collapse;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.data-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.active {
  background: #d1fae5;
  color: #059669;
}

.status-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.admin-chat-layout {
  display: flex;
  height: calc(100vh - 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.session-list {
  width: 280px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.session-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.session-item:hover,
.session-item.active {
  background: var(--primary-light);
}

.session-item .name {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.session-item .preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.admin-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
}

@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
  }
}

.action-btns {
  display: flex;
  gap: 6px;
}

/* Bottom Navigation */
.has-bottom-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

/* Hero Header */
.hero-header {
  position: relative;
  padding: 48px 24px 32px;
  overflow: hidden;
}

.hero-header--compact {
  padding: 40px 24px 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: -60px;
  right: -40px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -30px;
  left: 20px;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.main-content-full {
  flex: 1;
  padding: 0 20px 24px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* Profile Hero */
.profile-hero {
  position: relative;
  padding: 48px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
}

.profile-hero-bg::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  top: -50px;
  right: -30px;
}

.profile-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.profile-hero-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-balance-hero {
  font-size: 14px;
  opacity: 0.9;
}

.profile-balance-hero strong {
  font-size: 28px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
}

.profile-body {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.stats-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.9);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.invite-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.9);
}

.invite-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.invite-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.invite-copy-btn {
  border: none;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.invite-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--primary);
  text-align: center;
  padding: 8px 0;
}

.invite-tip {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

.menu-list {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.9);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  width: 100%;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #f8fafc;
}

.menu-item--danger .menu-text {
  color: var(--danger);
}

.menu-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.menu-text {
  flex: 1;
  font-weight: 500;
}

.menu-arrow {
  color: #cbd5e1;
  font-size: 20px;
}

/* Order Cards */
.order-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.order-icon {
  font-size: 24px;
  line-height: 1;
}

.order-card-title {
  flex: 1;
}

.order-card-title strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.order-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.order-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

/* Login Page */
.login-page {
  background: var(--primary-gradient);
  min-height: 100vh;
}

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-brand {
  text-align: center;
  color: white;
  margin-bottom: 32px;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}

.login-brand h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-brand p {
  font-size: 14px;
  opacity: 0.85;
}

.login-card {
  background: white;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-error {
  color: var(--danger);
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  display: none;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.profile-detail h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.profile-balance-large {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-balance-large strong {
  font-size: 24px;
  color: var(--danger);
}

.task-detail-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.9);
  margin: 16px 0 20px;
}

.review-status-card {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.notice-card {
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #92400e;
}

.success-card {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.upload-area {
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #fafbff;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.25s;
}

.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #1e293b;
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 1000;
  animation: toastIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.back-link-light {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .task-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .main-content-full {
    max-width: 900px;
    padding: 0 32px 32px;
  }
}

@media (max-width: 768px) {
  .main-content-full {
    padding: 0 16px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
