/* ===========================================================
   Page Compat Layer — 为旧页面结构提供现代化样式覆盖
   配合 design-system.css 使用
   =========================================================== */

/* ===========================================================
   0. RemixIcon 图标全局样式
   =========================================================== */

[class^="ri-"], [class*=" ri-"] {
  display: inline-block;
  font-style: normal;
  vertical-align: middle;
  line-height: 1;
}

/* 标题旁的图标 */
h1 [class^="ri-"], h1 [class*=" ri-"],
h2 [class^="ri-"], h2 [class*=" ri-"],
h3 [class^="ri-"], h3 [class*=" ri-"] {
  font-size: 1.1em;
  margin-right: 0.4em;
  vertical-align: -0.1em;
}

/* 导航按钮中的图标 */
.nav [class^="ri-"], .nav [class*=" ri-"],
.module-nav [class^="ri-"], .module-nav [class*=" ri-"] {
  font-size: 16px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* 表格操作按钮中的图标 */
.action-btn [class^="ri-"], .action-btn [class*=" ri-"],
.btn [class^="ri-"], .btn [class*=" ri-"] {
  font-size: 14px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* 状态标签中的图标 */
.status-badge [class^="ri-"], .status-badge [class*=" ri-"] {
  font-size: 13px;
  margin-right: 3px;
  vertical-align: -1px;
}

/* 卡片/统计中的图标 */
.stat-card [class^="ri-"], .stat-card [class*=" ri-"],
.card [class^="ri-"], .card [class*=" ri-"] {
  font-size: 20px;
}

/* 用户头像/头像占位图标 */
.user-avatar [class^="ri-"], .user-avatar [class*=" ri-"],
.header-avatar [class^="ri-"], .header-avatar [class*=" ri-"] {
  font-size: 18px;
}

/* 移动端图标 */
.tab-item [class^="ri-"], .tab-item [class*=" ri-"] {
  font-size: 22px;
  display: block;
  margin: 0 auto 4px;
}

/* ===========================================================
   1. 通用无侧边栏页面布局 (dashboard.html, register.html 等)
   =========================================================== */

body {
  font-family: var(--font-sans);
  background: var(--bg);
  padding: 0;
}

.page-wrapper {
  min-height: 100vh;
}

/* dashboard.html 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
  padding: 28px;
  border-radius: 0;
  box-shadow: none;
}

/* 顶部标题栏 */
h1 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

/* ===========================================================
   2. 顶部导航栏兼容 (.nav) 映射到 module-nav
   =========================================================== */

.nav {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.nav button {
  padding: 9px 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.nav button:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.nav button.active {
  background: var(--color-primary);
  color: var(--text-on-primary);
}

/* ===========================================================
   3. 统计卡片兼容
   =========================================================== */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

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

.stat-card.blue  { border-left: 4px solid var(--color-primary); }
.stat-card.green { border-left: 4px solid var(--color-success); }
.stat-card.orange{ border-left: 4px solid var(--color-warning); }
.stat-card.purple{ border-left: 4px solid #7c3aed; }

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

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ===========================================================
   4. 表格兼容
   =========================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

th {
  background: var(--bg-muted);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

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

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

.table-header {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text);
}

.table-header .table-title {
  font-size: 15px;
}

/* ===========================================================
   5. 按钮兼容
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  font-family: var(--font-sans);
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-secondary {
  background: var(--bg-muted);
  color: var(--text);
}

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

.btn-danger {
  background: var(--color-danger);
  color: var(--text-on-primary);
}

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

.btn-success {
  background: var(--color-success);
  color: var(--text-on-primary);
}

.btn-success:hover {
  background: #059669;
}

/* ===========================================================
   6. 操作按钮兼容
   =========================================================== */

.action-btn {
  padding: 5px 12px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.action-btn.edit {
  background: var(--bg-primary);
  color: var(--color-primary);
}

.action-btn.edit:hover {
  background: var(--color-primary);
  color: var(--text-on-primary);
}

.action-btn.delete {
  background: #fce4ec;
  color: var(--color-danger);
}

.action-btn.delete:hover {
  background: var(--color-danger);
  color: var(--text-on-primary);
}

/* ===========================================================
   7. 状态标签兼容
   =========================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: #e8f5e9;
  color: var(--color-success);
  border: 1px solid #c8e6c9;
}

.status-inactive {
  background: #fce4ec;
  color: var(--color-danger);
  border: 1px solid #ffcdd2;
}

.status-warning {
  background: #fff3e0;
  color: var(--color-warning);
  border: 1px solid #ffe0b2;
}

/* ===========================================================
   8. 模态框兼容
   =========================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 540px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

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

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.modal-header button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-header button:hover {
  background: var(--color-danger);
  color: var(--text-on-primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ===========================================================
   9. 表单兼容
   =========================================================== */

.form-group {
  margin-bottom: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===========================================================
   10. 钱包卡片兼容
   =========================================================== */

.wallet-card {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: var(--text-on-primary);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
}

.wallet-card .balance {
  font-size: 36px;
  font-weight: 700;
  margin: 8px 0;
}

.wallet-card .label {
  font-size: 14px;
  opacity: 0.85;
}

/* ===========================================================
   11. 分页兼容
   =========================================================== */

.pagination-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.pagination-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===========================================================
   12. Tab 按钮兼容 (dashboard.html)
   =========================================================== */

.tab-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

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

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* ===========================================================
   13. 加载态兼容
   =========================================================== */

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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

/* ===========================================================
   14. 总部管理页面兼容 (headquarters-management.html)
   =========================================================== */

/* 覆盖渐变背景为白色头部 */
.headquarters-page .header,
.hq-page .header {
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}

.headquarters-page .header h1,
.hq-page .header h1 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
}

.headquarters-page .main-content,
.hq-page .main-content {
  padding: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* tabs 映射 */
.headquarters-page .tabs,
.hq-page .tabs,
.courier-page .tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding: 0;
}

.headquarters-page .tab,
.hq-page .tab,
.courier-page .tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-sans);
  border-radius: 0;
}

.headquarters-page .tab:hover,
.hq-page .tab:hover,
.courier-page .tab:hover {
  background: transparent;
  color: var(--text);
}

.headquarters-page .tab.active,
.hq-page .tab.active,
.courier-page .tab.active {
  background: transparent;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* template/toolbar */
.headquarters-page .toolbar,
.hq-page .toolbar {
  padding: 16px 20px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.headquarters-page .template-management,
.hq-page .template-management {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===========================================================
   15. 快递员面板兼容 (courier-dashboard.html)
   =========================================================== */

.courier-page .header {
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  box-shadow: none;
}

.courier-page .header h1 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.courier-page .header-content {
  max-width: 1280px;
  margin: 0 auto;
}

.courier-page .user-info {
  background: var(--bg-muted);
  color: var(--text);
}

.courier-page .user-avatar {
  background: var(--bg-primary);
  color: var(--color-primary);
}

.courier-page .main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

/* ===========================================================
   16. 注册页面兼容 (register.html)
   =========================================================== */

.register-page body {
  background: var(--bg);
}

.register-page .container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.register-page .header {
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.register-page .header h1 {
  color: var(--text);
}

.register-page .form-step {
  background: var(--bg-card);
}

/* ===========================================================
   17. 移动端兼容 (mobile-station.html)
   =========================================================== */

.mobile-page body {
  background: var(--bg);
}

.mobile-page .app-header {
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-page .tab-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.mobile-page .tab-item.active {
  color: var(--color-primary);
}

/* ===========================================================
   18. 收件人中心兼容 (recipient-center.html)
   =========================================================== */

.recipient-page body {
  background: var(--bg);
}

.recipient-page .header {
  background: var(--bg-card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.recipient-page .card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===========================================================
   19. Card 组件兼容
   =========================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

/* ===========================================================
   20. 按钮变体兼容
   =========================================================== */

.btn-green {
  background: var(--color-success);
  color: white;
}
.btn-green:hover {
  background: #059669;
}

.btn-orange {
  background: var(--color-warning);
  color: white;
}
.btn-orange:hover {
  background: #d97706;
}

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--bg-primary);
}

/* ===========================================================
   21. 表单组件兼容
   =========================================================== */

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

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

.form-section {
  margin-bottom: 24px;
}

.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ===========================================================
   22. 移动端 Tab Bar 兼容
   =========================================================== */

.tab-bar {
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-item.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===========================================================
   23. Filter 按钮兼容
   =========================================================== */

.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

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

/* ===========================================================
   24. 装饰元素兼容
   =========================================================== */

.register-page .bg-orb-1,
.register-page .bg-orb-2 {
  background: var(--bg-primary);
  opacity: 0.5;
}

/* ===========================================================
   25. 通用输入框全局覆盖
   =========================================================== */

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ===========================================================
   20. 响应式
   =========================================================== */

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}


/* ===========================================================
   Restored styles from original pages (auto-extracted)
   =========================================================== */

/* from dashboard.html */
.module { display: none; }
/* from dashboard.html */
.module.active { display: block; }
/* from headquarters-management.html */
.tab-content {
            display: none;
        }
/* from headquarters-management.html */
.tab-content.active {
            display: block;
        }
/* from headquarters-management.html */
.filters {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
/* from headquarters-management.html */
.select {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: white;
            font-size: 14px;
            min-width: 150px;
        }
/* from headquarters-management.html */
.search-input {
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
            min-width: 200px;
        }
/* from headquarters-management.html */
.templates-list {
            padding: 20px;
        }
/* from headquarters-management.html */
.template-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 24px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }
/* from headquarters-management.html */
.template-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
/* from headquarters-management.html */
.template-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }
/* from headquarters-management.html */
.template-title {
            font-size: 18px;
            font-weight: 600;
            color: #1e293b;
        }
/* from headquarters-management.html */
.template-badges {
            display: flex;
            gap: 8px;
        }
/* from headquarters-management.html */
.badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
/* from headquarters-management.html */
.badge-sms {
            background: #dbeafe;
            color: #1d4ed8;
        }
/* from headquarters-management.html */
.badge-wechat {
            background: #dcfce7;
            color: #166534;
        }
/* from headquarters-management.html */
.badge-default {
            background: #fef3c7;
            color: #92400e;
        }
/* from headquarters-management.html */
.badge-enabled {
            background: #d1fae5;
            color: #065f46;
        }
/* from headquarters-management.html */
.badge-disabled {
            background: #fee2e2;
            color: #991b1b;
        }
/* from headquarters-management.html */
.template-content {
            color: #64748b;
            line-height: 1.6;
            margin-bottom: 16px;
            padding: 12px;
            background: #f8fafc;
            border-radius: 8px;
            white-space: pre-wrap;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 14px;
        }
/* from headquarters-management.html */
.template-variables {
            background: #f0f9ff;
            border: 1px dashed #7dd3fc;
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 16px;
        }
/* from headquarters-management.html */
.template-variables h4 {
            color: #0369a1;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
        }
/* from headquarters-management.html */
.variables-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
/* from headquarters-management.html */
.variable-tag {
            padding: 4px 8px;
            background: white;
            border: 1px solid #7dd3fc;
            border-radius: 4px;
            font-size: 12px;
            color: #0369a1;
        }
/* from headquarters-management.html */
.template-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
        }
/* from headquarters-management.html */
.template-actions {
            display: flex;
            gap: 8px;
        }
/* from headquarters-management.html */
.modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
        }
/* from headquarters-management.html */
.modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #1e293b;
        }
/* from headquarters-management.html */
.modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #64748b;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
/* from headquarters-management.html */
.modal-close:hover {
            background: #f1f5f9;
            color: #1e293b;
        }
/* from headquarters-management.html */
.form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
        }
/* from headquarters-management.html */
.form-input, .form-textarea, .form-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.2s ease;
        }
/* from headquarters-management.html */
.form-input:focus, .form-textarea:focus, .form-select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
/* from headquarters-management.html */
.form-textarea {
            min-height: 120px;
            resize: vertical;
            font-family: inherit;
        }
/* from headquarters-management.html */
.form-checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 8px;
        }
/* from headquarters-management.html */
.checkbox-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
/* from headquarters-management.html */
.checkbox-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }
/* from headquarters-management.html */
.empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #64748b;
        }
/* from headquarters-management.html */
.empty-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
/* from headquarters-management.html */
.empty-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #374151;
        }
/* from courier-dashboard.html */
.header-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }
/* from courier-dashboard.html */
.logout-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }
/* from courier-dashboard.html */
.logout-btn:hover {
            background: rgba(255,255,255,0.3);
        }
/* from courier-dashboard.html */
.wallet-actions {
            display: flex;
            gap: 12px;
        }
/* from courier-dashboard.html */
.wallet-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
/* from courier-dashboard.html */
.wallet-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }
/* from courier-dashboard.html */
.nav-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            background: white;
            padding: 8px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
/* from courier-dashboard.html */
.nav-tab {
            flex: 1;
            padding: 12px 16px;
            text-align: center;
            border: none;
            background: transparent;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-secondary);
            border-radius: 8px;
            transition: all 0.3s ease;
        }
/* from courier-dashboard.html */
.nav-tab:hover {
            background: var(--bg);
        }
/* from courier-dashboard.html */
.nav-tab.active {
            background: var(--primary);
            color: white;
        }
/* from courier-dashboard.html */
.table {
            width: 100%;
            border-collapse: collapse;
        }
/* from courier-dashboard.html */
.table th, .table td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }
/* from courier-dashboard.html */
.table th {
            background: var(--bg);
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 13px;
            text-transform: uppercase;
        }
/* from courier-dashboard.html */
.table tr:hover {
            background: var(--bg);
        }
/* from courier-dashboard.html */
.status-pending {
            background: #fef3c7;
            color: #92400e;
        }
/* from courier-dashboard.html */
.status-approved {
            background: #d1fae5;
            color: #065f46;
        }
/* from courier-dashboard.html */
.status-rejected {
            background: #fee2e2;
            color: #991b1b;
        }
/* from courier-dashboard.html */
.modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
/* from courier-dashboard.html */
.modal-overlay.active {
            display: flex;
        }
/* from courier-dashboard.html */
.modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-secondary);
        }
/* from courier-dashboard.html */
.empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }
/* from courier-dashboard.html */
.empty-icon {
            font-size: 64px;
            margin-bottom: 16px;
        }
/* from courier-dashboard.html */
.empty-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text);
        }
/* from register.html */
body .bg-orb-1, body .bg-orb-2, body .bg-orb-3 {
                position: fixed;
                border-radius: 50%;
                pointer-events: none;
                filter: blur(80px);
                opacity: 0.25;
            }
/* from register.html */
body .bg-orb-3 {
                width: 300px; height: 300px;
                top: 40%; left: 50%;
                background: radial-gradient(circle, #8b5cf644 0%, transparent 70%);
                animation: orbFloat3 18s ease-in-out infinite;
            }
/* from register.html */
body .grid-overlay {
                position: fixed;
                inset: 0;
                background-image:
                    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
                background-size: 60px 60px;
                pointer-events: none;
            }
/* from register.html */
.header .header-icon {
                width: 64px;
                height: 64px;
                background: rgba(255,255,255,0.2);
                border-radius: 16px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto 16px;
                font-size: 30px;
                backdrop-filter: blur(4px);
                border: 1px solid rgba(255,255,255,0.3);
            }
/* from register.html */
.form-group .required::after {
                content: " *";
                color: #dc2626;
            }
/* from register.html */
.form-control.error {
                border-color: #dc2626;
                background: #fef2f2;
            }
/* from register.html */
.error-message {
                color: #dc2626;
                font-size: 12px;
                margin-top: 4px;
                display: none;
            }
/* from register.html */
.password-strength {
                margin-top: 6px;
                display: flex;
                align-items: center;
                gap: 8px;
            }
/* from register.html */
.strength-bar {
                flex: 1;
                height: 4px;
                background: #e5e7eb;
                border-radius: 2px;
                transition: all 0.3s ease;
                max-width: 120px;
            }
/* from register.html */
.strength-text {
                font-size: 12px;
                min-width: 70px;
                transition: color 0.3s ease;
            }
/* from register.html */
.upload-area {
                border: 2px dashed #c4b5fd;
                border-radius: 12px;
                padding: 28px 20px;
                text-align: center;
                background: #faf5ff;
                cursor: pointer;
                transition: all 0.25s ease;
            }
/* from register.html */
.upload-area:hover {
                background: #ede9fe;
                border-color: #7c3aed;
            }
/* from register.html */
.upload-area .icon {
                font-size: 40px;
                color: #7c3aed;
                margin-bottom: 8px;
            }
/* from register.html */
.upload-area p {
                color: #555;
                font-size: 14px;
                margin-bottom: 6px;
            }
/* from register.html */
.upload-area .hint {
                font-size: 12px;
                color: #999;
            }
/* from register.html */
.preview-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 12px;
                margin-top: 16px;
            }
/* from register.html */
.preview-item {
                position: relative;
                border: 1px solid #e2e8f0;
                border-radius: 10px;
                overflow: hidden;
                height: 130px;
            }
/* from register.html */
.preview-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
/* from register.html */
.preview-item .remove-btn {
                position: absolute;
                top: 6px;
                right: 6px;
                background: rgba(220,38,38,0.9);
                color: white;
                border: none;
                border-radius: 50%;
                width: 22px;
                height: 22px;
                font-size: 14px;
                cursor: pointer;
                display: none;
                line-height: 22px;
                text-align: center;
            }
/* from register.html */
.preview-item:hover .remove-btn {
                display: block;
            }
/* from register.html */
.preview-label {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                background: rgba(0,0,0,0.65);
                color: white;
                padding: 4px 8px;
                font-size: 11px;
                text-align: center;
            }
/* from register.html */
.user-type-selector {
                display: flex;
                gap: 16px;
                margin-bottom: 16px;
            }
/* from register.html */
.user-type-option {
                flex: 1;
                text-align: center;
                padding: 22px 16px;
                border: 2px solid #e2e8f0;
                border-radius: 14px;
                cursor: pointer;
                transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
                background: #fafafa;
            }
/* from register.html */
.user-type-option:hover {
                border-color: #c4b5fd;
                background: #faf5ff;
                transform: translateY(-2px);
            }
/* from register.html */
.user-type-option.selected {
                border-color: #7c3aed;
                background: linear-gradient(135deg, #ede9fe, #faf5ff);
                box-shadow: 0 4px 16px rgba(124,58,237,0.15);
            }
/* from register.html */
.user-type-option .icon {
                font-size: 28px;
                margin-bottom: 8px;
                color: #888;
                transition: transform 0.25s;
            }
/* from register.html */
.user-type-option.selected .icon {
                color: #7c3aed;
                transform: scale(1.1);
            }
/* from register.html */
.user-type-option h3 {
                color: #333;
                font-size: 15px;
                margin-bottom: 4px;
                font-weight: 600;
            }
/* from register.html */
.user-type-option p {
                color: #888;
                font-size: 13px;
            }
/* from register.html */
.station-fields {
                display: none;
                margin-top: 16px;
                padding: 24px;
                background: #faf5ff;
                border-radius: 12px;
                border-left: 4px solid #7c3aed;
            }
/* from register.html */
.station-fields.show {
                display: block;
                animation: fadeIn 0.3s ease;
            }
/* from register.html */
.form-footer {
                margin-top: 28px;
                text-align: center;
            }
/* from register.html */
.form-footer a {
                color: #7c3aed;
                text-decoration: none;
                font-weight: 500;
            }
/* from register.html */
.form-footer a:hover {
                text-decoration: underline;
            }
/* from register.html */
.alert {
                padding: 14px 18px;
                border-radius: 12px;
                margin-bottom: 20px;
                display: none;
                font-size: 14px;
                line-height: 1.5;
            }
/* from register.html */
.alert-success {
                background: #f0fdf4;
                color: #15803d;
                border: 1px solid #bbf7d0;
            }
/* from register.html */
.alert-error {
                background: #fef2f2;
                color: #dc2626;
                border: 1px solid #fecaca;
            }
/* from mobile-station.html */
#loginPage .logo {font-size:48px;margin-bottom:10px}
/* from mobile-station.html */
#loginPage .sub {color:#888;font-size:13px;margin-bottom:20px}
/* from mobile-station.html */
.tab-content {display:none;padding:12px}
/* from mobile-station.html */
.tab-content.active {display:block}
/* from mobile-station.html */
.header .badge {background:#1677ff;color:#fff;padding:4px 10px;border-radius:20px;font-size:12px}
/* from mobile-station.html */
.field {margin-bottom:10px}
/* from mobile-station.html */
.field label {font-size:12px;color:#888;display:block;margin-bottom:4px}
/* from mobile-station.html */
.field input,.field select {width:100%;padding:12px 14px;border:1px solid #e8e8e8;border-radius:8px;font-size:15px;background:#fafafa}
/* from mobile-station.html */
.field input:focus,.field select:focus {border-color:#1677ff;outline:none;background:#fff}
/* from mobile-station.html */
.scan-hint {text-align:center;color:#888;font-size:13px;margin:8px 0}
/* from mobile-station.html */
.photo-btn {display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:2px dashed #ddd;border-radius:10px;margin:8px 0;cursor:pointer;background:#fafafa;font-size:14px;color:#888}
/* from mobile-station.html */
.photo-preview {width:100%;max-height:200px;object-fit:cover;border-radius:8px;border:2px dashed #ddd;margin-top:8px}
/* from mobile-station.html */
.stats-bar {display:flex;gap:8px;margin-bottom:12px}
/* from mobile-station.html */
.stat-item {flex:1;background:#fff;border-radius:10px;padding:10px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,0.06)}
/* from mobile-station.html */
.stat-item .num {font-size:22px;font-weight:700}
/* from mobile-station.html */
.stat-item .lbl {font-size:11px;color:#888;margin-top:2px}
/* from mobile-station.html */
.stat-blue .num {color:#1677ff}
/* from mobile-station.html */
.stat-orange .num {color:#fa8c16}
/* from mobile-station.html */
.stat-green .num {color:#52c41a}
/* from mobile-station.html */
.filter-bar {display:flex;gap:6px;margin-bottom:10px;overflow-x:auto;padding-bottom:4px}
/* from mobile-station.html */
.filter-bar .filter-btn {white-space:nowrap;padding:6px 14px;border:1px solid #ddd;border-radius:20px;font-size:12px;cursor:pointer;background:#fff}
/* from mobile-station.html */
.filter-bar .filter-btn.active {background:#1677ff;color:#fff;border-color:#1677ff}
/* from mobile-station.html */
.pkg-item {display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #f0f0f0;gap:10px}
/* from mobile-station.html */
.pkg-item:last-child {border-bottom:none}
/* from mobile-station.html */
.pkg-info {flex:1;min-width:0}
/* from mobile-station.html */
.pkg-info .waybill {font-weight:600;font-size:14px}
/* from mobile-station.html */
.pkg-info .meta {font-size:12px;color:#888;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* from mobile-station.html */
.empty {text-align:center;padding:40px 20px;color:#bbb;font-size:14px}
/* from mobile-station.html */
.empty .icon {font-size:48px;margin-bottom:8px}
/* from mobile-station.html */
.setting-row {display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0f0f0}
/* from mobile-station.html */
.setting-row:last-child {border:none}
/* from mobile-station.html */
.setting-row .label {font-size:14px}
/* from mobile-station.html */
.setting-row .value {font-size:13px;color:#888}
/* from recipient-center.html */
.header .avatar { width:64px; height:64px; border-radius:50%; margin:0 auto 12px; background:var(--primary-bg); display:flex; align-items:center; justify-content:center; font-size:28px; overflow:hidden; }
/* from recipient-center.html */
.header .avatar img { width:100%; height:100%; object-fit:cover; }
/* from recipient-center.html */
.status-ready_for_pickup { background:#fef3c7; color:#d97706; }
/* from recipient-center.html */
.status-picked_up { background:#dcfce7; color:#16a34a; }
/* from recipient-center.html */
.status-arrived { background:#dbeafe; color:#2563eb; }
/* from recipient-center.html */
.status-pending { background:#f1f5f9; color:#64748b; }
/* from recipient-center.html */
.pkg-item { padding:12px 0; border-bottom:1px solid var(--border); }
/* from recipient-center.html */
.pkg-item:last-child { border-bottom:none; }
/* from recipient-center.html */
.pkg-item .top { display:flex; justify-content:space-between; align-items:flex-start; }
/* from recipient-center.html */
.pkg-item .company { font-weight:600; font-size:14px; }
/* from recipient-center.html */
.pkg-item .tracking { font-size:12px; color:var(--text-secondary); margin-top:2px; }
/* from recipient-center.html */
.pkg-item .meta { display:flex; gap:12px; margin-top:6px; font-size:12px; color:var(--text-secondary); }
/* from recipient-center.html */
.pkg-item .code { display:inline-block; background:#fef3c7; color:#d97706; padding:2px 10px; border-radius:6px; font-weight:700; font-size:16px; letter-spacing:2px; }
/* from recipient-center.html */
.pkg-empty { text-align:center; padding:40px 0; color:var(--text-secondary); }
/* from recipient-center.html */
.pkg-empty .icon { font-size:48px; margin-bottom:12px; }
/* from recipient-center.html */
.pkg-empty p { font-size:14px; }
/* from recipient-center.html */
.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:100; align-items:center; justify-content:center; padding:16px; }
/* from recipient-center.html */
.modal-overlay.active { display:flex; }
/* from recipient-center.html */
.modal-box { background:var(--card); border-radius:var(--radius); padding:20px; width:100%; max-width:360px; }
/* from recipient-center.html */
.modal-box h3 { font-size:16px; font-weight:600; margin-bottom:16px; }
/* from recipient-center.html */
.modal-box .btn-group { display:flex; gap:8px; margin-top:16px; }
/* from recipient-center.html */
.modal-box .btn-group .btn { flex:1; }
/* from recipient-center.html */
.toast { display:none; position:fixed; top:20px; left:50%; transform:translateX(-50%); background:#1e293b; color:#fff; padding:12px 24px; border-radius:8px; font-size:14px; z-index:200; white-space:nowrap; }
/* from recipient-center.html */
.toast.show { display:block; animation:slideDown .3s ease; }
/* from recipient-center.html */
.spinner { width:20px; height:20px; border:2px solid rgba(255,255,255,0.3); border-top-color:#fff; border-radius:50%; animation:spin .6s linear infinite; display:inline-block; vertical-align:middle; }
/* from recipient-center.html */
.bind-banner { background:linear-gradient(135deg,#fef3c7,#fde68a); border-radius:var(--radius); padding:16px; margin-bottom:12px; display:flex; align-items:center; gap:12px; }
/* from recipient-center.html */
.bind-banner .text { flex:1; }
/* from recipient-center.html */
.bind-banner .text h3 { font-size:14px; font-weight:600; color:#92400e; }
/* from recipient-center.html */
.bind-banner .text p { font-size:12px; color:#a16207; margin-top:2px; }
/* from recipient-center.html */
.bind-banner button { background:#d97706; color:#fff; border:none; border-radius:8px; padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
/* from recipient-center.html */
.station-info { background:var(--primary-bg); border-radius:8px; padding:10px 12px; font-size:12px; color:var(--text-secondary); margin-top:6px; display:flex; gap:8px; flex-wrap:wrap; }
