/* ==========================================================================
   安验 官网 / 会员中心 — 与管理后台一致的 iOS 极简高级视觉语言
   ========================================================================== */

:root {
  --bg: #f4f4f7;
  --bg-elevated: #ffffff;
  --bg-soft: #f2f2f7;
  --border: rgba(60, 60, 67, 0.12);
  --border-soft: rgba(60, 60, 67, 0.08);
  --text: #1c1c1e;
  --text-dim: #6e6e73;
  --text-faint: #b5b5ba;

  --primary: #007aff;
  --primary-dim: #0064d1;
  --primary-tint: rgba(0, 122, 255, 0.1);
  --success: #34c759;
  --success-tint: rgba(52, 199, 89, 0.12);
  --warning: #ff9f0a;
  --warning-tint: rgba(255, 159, 10, 0.14);
  --danger: #ff3b30;
  --danger-tint: rgba(255, 59, 48, 0.12);
  --gray-tint: rgba(142, 142, 147, 0.14);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
::selection { background: var(--primary-tint); color: var(--primary-dim); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.16); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

/* ---------------- Navbar ---------------- */

.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(244, 244, 247, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out), padding 0.3s var(--ease-out);
  animation: navDrop 0.6s var(--ease-out);
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
.navbar.scrolled {
  padding: 10px 6vw;
  background: rgba(244, 244, 247, 0.92);
  border-color: var(--border-soft);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
/* ---------------- 品牌标识（图形徽标 + 中英文双语字标） ---------------- */

.brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #5856d6);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.28);
}
.brand-mark svg { width: 17px; height: 17px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .en { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-text .en b { color: var(--primary); font-weight: 800; }
.brand-text .cn { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; color: var(--text-faint); margin-top: 2px; }

.brand-lockup.lg .brand-mark { width: 46px; height: 46px; border-radius: 13px; }
.brand-lockup.lg .brand-mark svg { width: 26px; height: 26px; }
.brand-lockup.lg .brand-text .en { font-size: 27px; }
.brand-lockup.lg .brand-text .cn { font-size: 12px; }
.navbar nav { display: flex; gap: 26px; align-items: center; }
.navbar nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.15s; padding-bottom: 3px; }
.navbar nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--primary); transition: right 0.28s var(--ease-out);
}
.navbar nav a:hover { color: var(--text); }
.navbar nav a:hover::after { right: 0; }
.navbar .actions { display: flex; gap: 10px; align-items: center; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; border-radius: 12px; cursor: pointer; font-size: 14px;
  font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.15s var(--ease-spring), background 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.25);
}
.btn:hover { background: var(--primary-dim); }
.btn:active { transform: scale(0.96); }
.btn.secondary { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: var(--bg-soft); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; padding: 10px 16px; }
.btn.ghost:hover { background: rgba(0,0,0,0.05); }
.btn.danger { background: var(--danger); box-shadow: 0 2px 10px rgba(255,59,48,0.25); }
.btn.block { width: 100%; padding: 12px; font-size: 14.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative; overflow: hidden;
  padding: 90px 6vw 100px;
  text-align: center;
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(0, 122, 255, 0.12), transparent 60%),
    radial-gradient(900px 480px at 90% 10%, rgba(88, 86, 214, 0.1), transparent 60%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; pointer-events: none;
  animation: heroFloat 9s ease-in-out infinite;
}
.hero::before { width: 280px; height: 280px; background: rgba(0, 122, 255, 0.16); top: -60px; left: 6%; }
.hero::after { width: 220px; height: 220px; background: rgba(88, 86, 214, 0.14); bottom: -40px; right: 10%; animation-delay: -4.5s; animation-duration: 11s; }
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
}
.hero > * { position: relative; z-index: 1; }

.hero .badge-pill, .hero h1, .hero p.sub, .hero .cta-row, .hero .stat-strip {
  opacity: 0; animation: heroUp 0.85s var(--ease-out) forwards;
}
.hero .badge-pill { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.16s; }
.hero p.sub { animation-delay: 0.3s; }
.hero .cta-row { animation-delay: 0.44s; }
.hero .stat-strip { animation-delay: 0.58s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-tint); color: var(--primary-dim);
  padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 22px;
  animation-name: heroUp, badgePulse; animation-duration: 0.85s, 2.4s; animation-delay: 0.05s, 1.2s;
  animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none;
}
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,122,255,0.18); } 50% { box-shadow: 0 0 0 6px rgba(0,122,255,0); } }
.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px); font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 20px; line-height: 1.1;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), #5856d6, var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }
.hero p.sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-dim); max-width: 620px; margin: 0 auto 34px; line-height: 1.7; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero .cta-row .btn { padding: 13px 30px; font-size: 15px; }

.stat-strip { display: flex; justify-content: center; gap: clamp(24px, 6vw, 70px); flex-wrap: wrap; }
.stat-strip .item { text-align: center; }
.stat-strip .item .num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-strip .item .lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

/* ---------------- Scroll reveal ---------------- */

.reveal, .reveal-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view, .reveal-item.in-view { opacity: 1; transform: translateY(0); }

/* 数字滚动使用 tabular-nums 避免抖动 */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------------- Sections ---------------- */

.section { padding: 80px 6vw; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--text-dim); line-height: 1.7; margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-tint); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px; background: var(--primary-tint);
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}
.feature-card:hover .icon { transform: scale(1.15) rotate(-8deg); background: var(--primary); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; margin: 0; }

.apps-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.apps-strip .chip {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}
.apps-strip .chip:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow); }
.apps-strip .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: dotBlink 2s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.download-card {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.download-card .name { font-weight: 700; font-size: 15px; }
.download-card .meta { font-size: 12px; color: var(--text-dim); }
.download-card .desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; flex: 1; }

.card-status-box {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
  transition: box-shadow 0.3s var(--ease-out);
}
.card-status-box:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px var(--primary-tint); }
.card-status-box .row { display: flex; gap: 10px; }
.card-status-box input { flex: 1; }
.status-result { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); font-size: 13.5px; line-height: 1.9; animation: statusIn 0.4s var(--ease-spring); }
@keyframes statusIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.status-result .kv { display: flex; justify-content: space-between; }
.status-result .kv b { font-weight: 600; }

footer.site-footer {
  padding: 40px 6vw; text-align: center; color: var(--text-faint); font-size: 12.5px;
  border-top: 1px solid var(--border-soft);
}
footer.site-footer .links { display: flex; gap: 20px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
footer.site-footer .links a { color: var(--text-dim); font-weight: 500; }
footer.site-footer .links a:hover { color: var(--primary); }

/* ---------------- Auth pages (login/register) ---------------- */

.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(0, 122, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 90%, rgba(88, 86, 214, 0.1), transparent 60%),
    var(--bg);
  padding: 20px;
}
.auth-box {
  width: 380px; max-width: 100%; background: var(--bg-elevated);
  border-radius: var(--radius-xl); padding: 40px 34px; box-shadow: var(--shadow-lg);
  animation: authIn 0.5s var(--ease-spring);
}
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-box .logo { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-box .sub { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.auth-box .switch-link { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.auth-box .switch-link a { color: var(--primary); font-weight: 600; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: 12.5px; font-weight: 500; }
input, select, textarea {
  background: var(--bg-soft); border: 1px solid transparent; color: var(--text);
  padding: 10px 13px; border-radius: 10px; font-size: 14px; width: 100%; font-family: inherit;
  transition: box-shadow 0.15s var(--ease-out), background 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--primary-tint), 0 0 0 1px var(--primary);
}

/* ---------------- Member dashboard ---------------- */

.member-layout { display: flex; min-height: 100vh; }
.member-sidebar {
  width: 230px; background: rgba(255,255,255,0.72); backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--border-soft); padding: 18px 14px; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.member-sidebar .brand { padding: 10px 10px 20px; }
.member-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.member-sidebar nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; opacity: 0.72; cursor: pointer;
  transition: background 0.2s var(--ease-out), opacity 0.2s;
}
.member-sidebar nav a .nav-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--gray-tint); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.member-sidebar nav a:hover { background: rgba(0,0,0,0.04); opacity: 1; }
.member-sidebar nav a.active { background: var(--bg-elevated); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-soft); opacity: 1; font-weight: 600; }
.member-sidebar nav a.active .nav-icon { background: var(--primary); color: #fff; }
.member-main { flex: 1; min-width: 0; }
.member-topbar {
  height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  border-bottom: 1px solid var(--border-soft); background: rgba(244,244,247,0.75);
  backdrop-filter: saturate(180%) blur(20px); position: sticky; top: 0; z-index: 40;
  font-size: 18px; font-weight: 700;
}
.member-content { padding: 26px 28px 60px; max-width: 1000px; margin: 0 auto; }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  animation: cardIn 0.45s var(--ease-out);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; white-space: nowrap; }
th { color: var(--text-dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.green { background: var(--success-tint); color: #1a9c40; }
.badge.red { background: var(--danger-tint); color: #d92c22; }
.badge.yellow { background: var(--warning-tint); color: #b5750a; }
.badge.gray { background: var(--gray-tint); color: var(--text-dim); }
.badge.blue { background: var(--primary-tint); color: var(--primary-dim); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.mono { font-family: "SF Mono", Consolas, monospace; }
.dim { color: var(--text-dim); }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }

/* ---------------- Toast / Modal (shared with admin) ---------------- */

.toast-stack { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: rgba(28,28,30,0.94); color: #fff;
  backdrop-filter: blur(16px) saturate(140%); padding: 12px 14px 14px; border-radius: 15px; min-width: 220px; max-width: 380px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-18px) scale(0.92);
  transition: opacity 0.32s var(--ease-spring), transform 0.32s var(--ease-spring);
  position: relative; overflow: hidden;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.hide { opacity: 0; transform: translateY(-12px) scale(0.95); transition-duration: 0.22s; }
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); color: #fff;
  animation: toastIconPop 0.4s var(--ease-spring) 0.05s backwards;
}
.toast-icon svg { width: 12px; height: 12px; }
@keyframes toastIconPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--danger); }
.toast.info .toast-icon { background: var(--primary); }
.toast-msg { flex: 1; line-height: 1.5; }
.toast-close {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.toast-close svg { width: 9px; height: 9px; }
.toast-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
.toast-bar {
  position: absolute; left: 0; bottom: 0; height: 2.5px; width: 100%;
  background: rgba(255, 255, 255, 0.3); transform-origin: left;
  animation: toastShrink 3.4s linear forwards;
}
.toast.success .toast-bar { background: var(--success); }
.toast.error .toast-bar { background: var(--danger); }
.toast.info .toast-bar { background: var(--primary); }
@keyframes toastShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.28); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; transition: opacity 0.22s var(--ease-out);
}
.modal-mask.show { opacity: 1; }
.modal-mask.closing { opacity: 0; }
.modal-box {
  background: var(--bg-elevated); border-radius: var(--radius-xl); padding: 26px; width: 420px; max-width: 92vw;
  box-shadow: var(--shadow-lg); transform: scale(0.9) translateY(10px); opacity: 0;
  transition: transform 0.28s var(--ease-spring), opacity 0.22s var(--ease-out);
}
.modal-mask.show .modal-box { transform: scale(1) translateY(0); opacity: 1; }
.modal-box h3 { margin-top: 0; font-size: 17px; font-weight: 700; }
.modal-box.narrow { width: 360px; padding: 30px 24px 24px; }
.modal-box.wide { width: 560px; }

.confirm-modal { text-align: center; }
.confirm-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: inline-flex; align-items: center; justify-content: center;
  animation: confirmIconIn 0.42s var(--ease-spring);
}
.confirm-icon svg { width: 27px; height: 27px; }
.confirm-icon.warn { background: var(--warning-tint); color: var(--warning); }
.confirm-icon.danger { background: var(--danger-tint); color: var(--danger); }
@keyframes confirmIconIn { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
.confirm-modal h3 { text-align: center; font-size: 16.5px; }
.confirm-msg { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; margin: 0 0 22px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; justify-content: center; }

.role-switch {
  display: flex; gap: 4px; background: var(--bg-soft); border-radius: 11px; padding: 4px;
  margin: 14px 0 12px;
}
.role-switch .tab {
  flex: 1; border: none; background: transparent; padding: 9px 0; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s, box-shadow 0.2s;
}
.role-switch .tab.active { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------- Mobile ---------------- */

.hamburger {
  display: none; background: var(--bg-soft); border: none; border-radius: 9px;
  width: 36px; height: 36px; font-size: 17px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center; flex-shrink: 0;
}
.member-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 59; opacity: 0; transition: opacity 0.25s var(--ease-out); }

@media (max-width: 860px) {
  .navbar { padding: 12px 16px; }
  .navbar nav { display: none; }
  .hero { padding: 60px 5vw 70px; }
  .section { padding: 56px 5vw; }
  .card-status-box { padding: 22px; }
  .card-status-box .row { flex-direction: column; }

  .hamburger { display: inline-flex; }
  .member-topbar { padding: 0 14px; height: 54px; font-size: 16px; }
  .member-content { padding: 16px 14px 40px; }
  .member-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 60; width: 78vw; max-width: 300px;
    transform: translateX(-100%); transition: transform 0.3s var(--ease-out); box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .member-sidebar { transform: translateX(0); }
  body.sidebar-open .member-sidebar-overlay { display: block; opacity: 1; }
  body.sidebar-open { overflow: hidden; }

  .card { padding: 16px; }
  .card table { display: block; overflow-x: auto; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
