:root {
  --primary: #5865F2;
  --primary-hover: #4752C4;
  --primary-light: #EEF1FF;
  --primary-soft: #F5F6FF;
  --success: #22C55E;
  --success-light: #F0FDF4;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --bg: #F1F5F9;
  --card-bg: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #EEF2FF 0%, var(--bg) 30%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

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

.card-header {
  padding: 28px 28px 18px;
  text-align: center;
}

.card-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.card-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========== Form Sections ========== */
.form-section {
  padding: 18px 28px;
}

.form-section + .form-section {
  border-top: 1px solid var(--border-light);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 10px;
}

/* ========== Upload Area ========== */
.upload-area {
  position: relative;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: #F8FAFC;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  border-style: solid;
  transform: scale(1.01);
}

.upload-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.upload-zone:hover .upload-icon {
  color: var(--primary);
}

.upload-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Preview ========== */
.preview-area {
  margin-top: 10px;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.preview-content:hover {
  border-color: var(--primary);
}

.preview-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.preview-video {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
  border: 1px solid var(--border);
}

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

.preview-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.preview-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 16px;
  line-height: 1;
}

.preview-remove:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* ========== Input ========== */
.input-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  background: #F8FAFC;
  color: var(--text);
}

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

.form-input:hover {
  border-color: #CBD5E1;
}

.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.form-input.error {
  border-color: var(--danger);
  background: #FFF5F5;
}

.input-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  padding-left: 2px;
}

/* ========== Radio Cards ========== */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: #F8FAFC;
}

.radio-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-card input:checked ~ .radio-indicator {
  border-color: var(--primary);
}

.radio-card input:checked ~ .radio-indicator::after {
  transform: scale(1);
}

.radio-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.radio-content {
  display: flex;
  flex-direction: column;
}

.radio-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.radio-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ========== Submit Button ========== */
.form-submit-area {
  padding: 16px 28px 24px;
}

.submit-btn {
  width: 100%;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6C72F5);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), #585FE0);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.submit-btn:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading span,
.submit-btn.loading svg {
  opacity: 0;
}

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

/* ========== Success Message ========== */
.success-card {
  padding: 52px 28px;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--success);
}

.success-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.success-tracking {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary) !important;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  letter-spacing: 2px;
  background: var(--primary-light);
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-xs);
  margin-bottom: 20px !important;
}

.btn-secondary {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Table (Admin) ========== */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: #F8FAFC;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.3px;
  text-transform: none;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  font-size: 13px;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: #F8FAFC;
}

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.type-badge.replacement {
  background: var(--primary-light);
  color: var(--primary);
}

.type-badge.refund {
  background: var(--warning-light);
  color: #D97706;
}

.btn-sm-danger {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--danger-light);
  color: var(--danger);
}

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

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== Admin Panel ========== */
.admin-actions {
  display: flex;
  gap: 12px;
  padding: 16px 28px 24px;
  justify-content: center;
}

.btn-danger {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--danger);
  background: var(--danger-light);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

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

/* ========== Footer ========== */
.footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.2px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 14px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.toast.success {
  background: var(--success);
  color: #fff;
}

.toast.error {
  background: var(--danger);
  color: #fff;
}

.toast.warning {
  background: var(--warning);
  color: #fff;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ========== Confirm Dialog ========== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}

.dialog-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dialog-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dialog-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== Tab Bar ========== */
.tab-bar {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.2px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--card-bg);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ========== Announcement Modal ========== */
#announcement-modal {
  z-index: 190;
}

.announcement-dialog {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: #fff;
}

.announcement-modal-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.announcement-modal-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.announcement-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.announcement-modal-body {
  padding: 24px 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  text-align: center;
}

/* ========== Status Badges ========== */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.status-pending {
  background: var(--primary-light);
  color: var(--primary);
}

.status-completed {
  background: var(--success-light);
  color: #16A34A;
}

.status-rejected {
  background: var(--danger-light);
  color: #DC2626;
}

/* ========== Query Result ========== */
.query-result {
  padding: 0 28px 28px;
  animation: fadeIn 0.3s ease;
}

.result-card {
  background: #F8FAFC;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.result-item + .result-item {
  border-top: 1px solid var(--border-light);
}

.result-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  max-width: 55%;
  word-break: break-word;
}

.query-empty {
  text-align: center;
  padding: 40px 20px;
}

.query-empty svg {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.6;
}

.query-empty p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Form Textarea ========== */
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  background: #F8FAFC;
  color: var(--text);
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

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

.form-textarea:hover {
  border-color: #CBD5E1;
}

.form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

/* ========== Toggle Switch ========== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #CBD5E1;
  border-radius: 24px;
  transition: background var(--transition);
}

.toggle-track::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(22px);
}

/* ========== Contact Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  padding-right: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(90deg);
}

.modal-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========== Footer Links ========== */
.footer-links {
  text-align: center;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* ========== Admin Header ========== */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 14px;
}

.admin-header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card-bg);
  color: var(--text-secondary);
}

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

.tab-subtitle {
  padding: 12px 28px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== Status Select ========== */
.status-select {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  appearance: auto;
}

.status-select:hover {
  border-color: var(--primary);
}

.status-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

/* ========== Section title without bar ========== */
.section-title-plain {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .container {
    padding: 16px 10px 40px;
  }

  .card-header {
    padding: 22px 18px 14px;
  }

  .card-header h1 {
    font-size: 20px;
  }

  .form-section {
    padding: 14px 18px;
  }

  .section-title {
    font-size: 13px;
  }

  .upload-zone {
    padding: 22px 14px;
  }

  .upload-text {
    font-size: 13px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .form-submit-area {
    padding: 12px 18px 20px;
  }

  .submit-btn {
    padding: 14px 20px;
    font-size: 14px;
  }

  .success-card {
    padding: 36px 20px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .admin-actions {
    flex-direction: column;
    padding: 12px 18px 20px;
  }

  .admin-actions button {
    width: 100%;
  }

  .tab-btn {
    padding: 12px 10px;
    font-size: 13px;
  }

  .result-card {
    padding: 14px;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .result-value {
    text-align: left;
    max-width: 100%;
  }

  .modal-box {
    padding: 24px 18px;
  }

  .admin-header {
    padding: 14px 18px 10px;
  }

  .admin-header h1 {
    font-size: 18px;
  }

  .tab-subtitle {
    padding: 10px 18px 0;
  }

  .query-result {
    padding: 0 18px 20px;
  }

  .announcement-dialog {
    width: 92%;
  }

  .announcement-header {
    padding: 14px 16px;
  }

  .announcement-modal-body {
    padding: 20px 16px;
  }
}

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

  .card {
    box-shadow: var(--shadow-md);
  }
}

/* ========== Upload Loading ========== */
.upload-loading {
  text-align: center;
  padding: 24px 0 8px;
}

.upload-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.upload-status-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== Reply Timeline ========== */
.reply-section {
  margin-top: 14px;
}

.reply-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 2px;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

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

.reply-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.reply-type-reject {
  background: var(--danger-light);
  color: #DC2626;
}

.reply-type-support {
  background: var(--primary-light);
  color: var(--primary);
}

.reply-type-process {
  background: var(--success-light);
  color: #16A34A;
}

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

.reply-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-none {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 0;
}

/* ========== Reply Button (Admin) ========== */
.btn-sm-reply {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--primary-light);
  color: var(--primary);
  margin-right: 4px;
}

.btn-sm-reply:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== Reply Modal (Admin) ========== */
.reply-modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.reply-modal-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reply-modal-box .modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.reply-type-radios {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.reply-type-radio {
  flex: 1;
  min-width: 80px;
}

.reply-type-radio input {
  display: none;
}

.reply-type-radio-label {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: #F8FAFC;
  color: var(--text-secondary);
}

.reply-type-radio input:checked + .reply-type-radio-label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.reply-type-radio-label:hover {
  border-color: var(--primary);
}

/* ========== Responsive additions ========== */
@media (max-width: 480px) {
  .reply-item {
    padding: 10px 12px;
  }

  .reply-type-radios {
    flex-direction: column;
  }

  .reply-modal-box {
    padding: 22px 18px;
  }
}

/* ========== Utility ========== */
.hidden {
  display: none !important;
}
