/* ============================================
   ZS9 云平台 - 统一样式表
   配色：主色 #2563eb / 辅助色 #10b981 / 强调色 #f59e0b
   背景 #f8fafc / 卡片 #ffffff / 字体 #1e293b
   ============================================ */

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1d4ed8;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Navbar (毛玻璃效果) === */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b !important;
  letter-spacing: -0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}

.logo:hover {
  color: #2563eb !important;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
  align-items: center;
}

.nav-links a {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.nav-links a.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Nav Hamburger (纯CSS实现) === */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #2563eb;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: #fff !important;
}

.btn-secondary {
  background: #ffffff;
  color: #475569 !important;
  border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b !important;
}

.btn-accent {
  background: #f59e0b;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  color: #fff !important;
}

.btn-success {
  background: #10b981;
  color: #fff !important;
}

.btn-success:hover {
  background: #059669;
  color: #fff !important;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-sm-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-sm-secondary:hover {
  background: #e2e8f0;
}

/* === Login Button === */
.btn-login {
  background: #2563eb;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-login:hover {
  background: #1d4ed8;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* === Container === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: calc(100vh - 64px - 100px);
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.subtitle {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Page Header === */
.page-header {
  text-align: center;
  padding: 48px 24px 40px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.page-header p {
  color: #64748b;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* === Feature Cards === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* === Download Section === */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.download-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.25s;
}

.download-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.download-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.download-card p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.dl-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px !important;
}

/* === Pricing Plans === */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: #2563eb;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
  transform: scale(1.03);
  z-index: 1;
}

.plan-card.featured::before {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.plan-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.price {
  margin-bottom: 24px;
}

.amount {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
}

.discount {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.plan-features li:last-child {
  border-bottom: none;
}

/* === Admin/Dashboard Layout === */
.admin-body {
  background: #f8fafc;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #1e293b;
  border-right: 1px solid #334155;
  padding: 24px 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  padding: 0 20px;
  margin-bottom: 24px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.15s;
}

.sidebar nav a:hover {
  background: #334155;
  color: #fff;
}

.sidebar nav a.active {
  background: #334155;
  color: #38bdf8;
}

.admin-content {
  flex: 1;
  padding: 32px;
  max-width: calc(100vw - 240px);
}

.admin-header {
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.admin-header p {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.admin-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-number {
  font-size: 32px;
  font-weight: 800;
  color: #2563eb;
}

/* === Tables === */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  color: #475569;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.admin-table code {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
}

/* === Form Elements === */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sm-input {
  padding: 6px 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  color: #1e293b;
  font-size: 13px;
  transition: border-color 0.2s;
}

.sm-input:focus {
  outline: none;
  border-color: #2563eb;
}

/* === Toggle === */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}

/* === Login Page === */
.login-box {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
}

.login-box h1 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 32px;
}

.login-box form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.login-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

.login-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.login-box input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box button:hover {
  background: #1d4ed8;
}

/* === Messages === */
.msg {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.msg.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.msg.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 32px 24px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.footer-inner {
  max-width: 750px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #64748b;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-copy {
  color: #94a3b8;
  font-size: 13px;
}

.footer-copy a {
  color: #64748b;
  font-size: 13px;
}

.footer-copy a:hover {
  color: #2563eb;
}

.footer-social {
  margin: 10px 0;
  text-align: center;
}

.footer-social .btn-chat {
  display: inline-block;
  padding: 6px 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}

.footer-social .btn-chat:hover {
  background: #1d4ed8;
}

/* === Trace Page === */
.trace-page {
  max-width: 960px;
  margin: 0 auto;
}

.trace-page .page-header {
  padding: 20px 0 32px;
}

/* Upload Zone */
.upload-zone {
  background: #ffffff;
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 24px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.03);
}

.upload-zone .upload-icon {
  color: #2563eb;
  margin-bottom: 16px;
}

.upload-zone h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.upload-hint {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.upload-note {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 12px;
}

/* Loading */
.trace-loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.trace-loading p {
  color: #64748b;
  font-size: 14px;
}

/* Error */
.trace-error {
  margin-bottom: 24px;
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.result-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 10px 0;
  font-size: 14px;
  vertical-align: top;
}

.info-label {
  color: #64748b;
  width: 100px;
  white-space: nowrap;
}

.info-value {
  color: #1e293b;
  word-break: break-all;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ok {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-warn {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Chain Status */
.chain-status {
  margin-bottom: 12px;
}

/* Viewer Warning */
.viewer-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
}

.viewer-warning .warning-icon {
  font-size: 16px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #2563eb;
}

.timeline-item.latest .timeline-dot {
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.tl-time {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.tl-detail {
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tl-sep {
  color: #cbd5e1;
}

.tl-op {
  font-weight: 600;
  color: #2563eb;
}

.tl-user {
  color: #475569;
}

.tl-device {
  color: #64748b;
  font-family: monospace;
  font-size: 12px;
}

/* Chain Empty */
.chain-empty {
  text-align: center;
  padding: 20px 0;
  color: #94a3b8;
  font-size: 14px;
}

/* Disclaimer */
.trace-disclaimer {
  margin-top: 16px;
}

.disclaimer-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 28px;
}

.disclaimer-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: #d97706;
  margin-bottom: 8px;
}

.disclaimer-box p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* === OAuth Login === */
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px;
  color: #94a3b8;
  font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.oauth-divider span {
  padding: 0 12px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.oauth-btn {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.oauth-btn:hover {
  transform: translateY(-1px);
}

.oauth-github {
  background: #24292e;
  color: #fff !important;
  border-color: #444d56;
}

.oauth-github:hover {
  background: #2f363d;
}

.oauth-wechat {
  background: #07c160;
  color: #fff !important;
  border-color: #06ad56;
}

.oauth-wechat:hover {
  background: #06ad56;
}

.oauth-qq {
  background: #12b7f5;
  color: #fff !important;
  border-color: #0fa5dd;
}

.oauth-qq:hover {
  background: #0fa5dd;
}

/* === OAuth Bind/Manage === */
.oauth-manage {
  margin-top: 24px;
}

.oauth-manage h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.oauth-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.oauth-item .provider-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.oauth-item .provider-status {
  font-size: 12px;
  color: #64748b;
}

.oauth-item .provider-bind {
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
}

.oauth-item .provider-unbind {
  font-size: 12px;
  color: #dc2626;
  cursor: pointer;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-primary {
  color: #2563eb;
}

.text-secondary {
  color: #10b981;
}

.text-accent {
  color: #f59e0b;
}

.bg-primary-light {
  background: #eff6ff;
}

.bg-secondary-light {
  background: #ecfdf5;
}

.bg-accent-light {
  background: #fffbeb;
}

/* === Section Wrapper (for index.html) ===
   Kept compatible with the homepage inline styles */
.section-wrap {
  max-width: 750px;
  margin: 50px auto;
}

.section-wrap h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.section-wrap .sub {
  text-align: center;
  color: #64748b;
  font-size: 15px;
  margin-bottom: 28px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 32px 16px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 12px 0;
  }

  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 12px;
    gap: 4px;
  }

  .sidebar nav a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  .admin-content {
    padding: 20px 16px;
    max-width: 100vw;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 24px;
  }

  .login-box {
    margin: 40px 16px;
  }

  .login-box form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* === Print Styles === */
@media print {
  .navbar {
    position: static;
    backdrop-filter: none;
  }
  footer {
    break-inside: avoid;
  }
}
