/* ============================================================
   BayPay Point Gateway — Design Stylesheet  v2 (Glass Edition)
   ============================================================
   Sections:
     1. Reset & CSS Variables
     2. Base & Background
     3. Topbar
     4. Buttons
     5. Form Elements
     6. Filter Chips & Summary Bar
     7. Record Lists (Points & Transactions)
     8. Page: Login
     9. Page: Auth Transition
    10. Page: Home (Points Hero, Quick Actions, Announcements)
    11. Page: QR Code Payment
   ============================================================ */


/* ── 1. Reset & CSS Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Blues */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  /* Grays */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --green-50:  #ECFDF5;
  --green-100: #D1FAE5;
  --green-500: #10B981;
  --green-600: #059669;
  --red-50:    #FEF2F2;
  --red-100:   #FEE2E2;
  --red-500:   #EF4444;
  --red-600:   #DC2626;
  --orange-50: #FFF7ED;
  --orange-500:#F97316;
  --yellow-50: #FFFBEB;
  --yellow-500:#F59E0B;
  --purple-50: #F5F3FF;
  --white:     #FFFFFF;

  /* Border radius */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  22px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Glass surfaces */
  --glass-bg:      rgba(255, 255, 255, 0.72);
  --glass-bg-dark: rgba(255, 255, 255, 0.55);
  --glass-border:  rgba(255, 255, 255, 0.65);
  --glass-blur:    blur(20px) saturate(180%);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 2px 8px rgba(37, 99, 235, .06), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md:   0 8px 24px rgba(37, 99, 235, .10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:   0 16px 40px rgba(37, 99, 235, .14), 0 4px 12px rgba(0,0,0,.06);
  --shadow-card: 0 8px 32px rgba(37, 99, 235, .09), 0 2px 8px rgba(0,0,0,.05);
  --shadow-btn:  0 4px 16px rgba(37, 99, 235, .40);
  --shadow-btn-hover: 0 8px 24px rgba(37, 99, 235, .50);
}


/* ── 2. Base & Background ── */
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans TC",
               "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #EEF2FF;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(99, 102, 241, .18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%,  rgba(59, 130, 246, .16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(167, 139, 250, .12) 0%, transparent 60%);
  background-attachment: fixed;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

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


/* ── 3. Topbar ── */
.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0 18px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 16px rgba(37,99,235,.05);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-800));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.5px;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: -.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 7px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.icon-btn:hover {
  color: var(--blue-600);
  background: rgba(37, 99, 235, .08);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -.2px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 2px;
  transition: opacity .15s;
}
.back-btn:hover { opacity: .75; }


/* ── 4. Buttons ── */
.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.2,.64,1), box-shadow .2s;
  box-shadow: var(--shadow-btn);
  margin-top: 20px;
  -webkit-appearance: none;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}
.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,.8);
  color: var(--blue-600);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(37,99,235,.25);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.95);
  border-color: var(--blue-400);
  box-shadow: 0 4px 12px rgba(37,99,235,.12);
  transform: translateY(-1px);
}

.btn-ghost-text {
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--gray-400);
  cursor: pointer;
  margin-top: 8px;
  transition: color .15s;
}
.btn-ghost-text:hover { color: var(--gray-600); }


/* ── 5. Form Elements ── */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--r-sm);
  color: var(--gray-900);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), inset 0 1px 2px rgba(0,0,0,.03);
}
.form-input::placeholder { color: var(--gray-300); }
.form-input:focus {
  border-color: rgba(37,99,235,.5);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 3.5px rgba(37,99,235,.12), 0 1px 3px rgba(0,0,0,.04);
}
.form-input.error {
  border-color: rgba(239,68,68,.5);
}
.form-input.error:focus {
  box-shadow: 0 0 0 3.5px rgba(239,68,68,.12);
}

.error-text {
  font-size: 12px;
  color: var(--red-500);
  margin-top: 6px;
  display: none;
}
.error-text.show { display: block; }

.hint-text {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}


/* ── 6. Filter Chips & Summary Bar ── */
.list-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

.summary-row { display: flex; gap: 10px; }

.summary-chip {
  flex: 1;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s;
}
.summary-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.chip-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -.5px;
}
.chip-val.pos { color: var(--green-600); }
.chip-val.neg { color: var(--red-500); }

.chip-key {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
  font-weight: 500;
}

.filter-row {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.filter-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid rgba(0,0,0,.07);
  background: rgba(255,255,255,.7);
  color: var(--gray-500);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  letter-spacing: .1px;
}
.chip:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  background: rgba(255,255,255,.9);
}
.chip.active {
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37,99,235,.30);
}


/* ── 7. Record Lists ── */
.record-list { padding: 0 16px 32px; }

.month-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 18px 2px 8px;
}

/* Points record item */
.record-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.2,.64,1), box-shadow .2s;
}
.record-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.record-item:active { transform: translateY(0); }

.record-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.record-body { flex: 1; min-width: 0; }

.record-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.1px;
}

.record-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 3px;
}

.record-right { text-align: right; flex-shrink: 0; }

.record-amount { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.record-amount.pos  { color: var(--green-600); }
.record-amount.neg  { color: var(--red-500); }
.record-amount.warn { color: var(--yellow-500); }

.record-balance {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
}

/* Transaction item */
.txn-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
  transition: transform .2s cubic-bezier(.34,1.2,.64,1), box-shadow .2s;
}
.txn-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.txn-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.txn-body { flex: 1; min-width: 0; }
.txn-name { font-size: 14px; font-weight: 600; color: var(--gray-800); letter-spacing: -.1px; }
.txn-sub  { font-size: 12px; color: var(--gray-400); margin-top: 3px; }

.txn-tags {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.txn-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: .1px;
}
.tag-earn {
  background: rgba(37,99,235,.09);
  color: var(--blue-700);
  border: 1px solid rgba(37,99,235,.12);
}
.tag-use  {
  background: rgba(239,68,68,.08);
  color: var(--red-600);
  border: 1px solid rgba(239,68,68,.12);
}

.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -.3px;
}
.txn-date { font-size: 11px; color: var(--gray-400); margin-top: 3px; }


/* ── 8. Page: Login ── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
}

.login-hero {
  text-align: center;
  margin-bottom: 32px;
  animation: slideUp .5s cubic-bezier(.34,1.2,.64,1) both;
}

.login-logo-big {
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-800));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow:
    0 12px 32px rgba(37,99,235,.40),
    0 4px 8px rgba(37,99,235,.20),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.login-logo-big span {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -.6px;
}

.login-sub {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  animation: slideUp .5s .1s cubic-bezier(.34,1.2,.64,1) both;
}

/* Sent state */
.sent-card {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.sent-card.show {
  display: block;
  animation: slideUp .35s cubic-bezier(.34,1.2,.64,1) both;
}

.sent-icon {
  width: 66px;
  height: 66px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sent-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.sent-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sent-desc strong { color: var(--blue-600); font-weight: 700; }

.sent-note {
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.1);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 16px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
  animation: fadeIn .5s .2s both;
}
.login-footer a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.login-footer a:hover { text-decoration: underline; }

@media (min-width: 480px) {
  .login-card,
  .sent-card { padding: 36px 36px; }
}


/* ── 9. Page: Auth Transition ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1D3DB8, #1A3AA8 40%, #2D1B8A);
  background-attachment: fixed;
}

.spinner-wrap { text-align: center; color: #fff; }

.spinner {
  width: 56px;
  height: 56px;
  border: 2.5px solid rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.9);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-text {
  font-size: 16px;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.spinner-sub { font-size: 13px; opacity: .5; }

.auth-success-wrap {
  text-align: center;
  color: #fff;
  display: none;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.check-circle {
  width: 84px;
  height: 84px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 0 0 24px rgba(255,255,255,.03);
}

.auth-success-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.auth-success-sub { font-size: 14px; opacity: .6; }


/* ── 10. Page: Home ── */
.home-content { padding-bottom: 36px; }

/* Points hero */
.points-hero {
  background: linear-gradient(145deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%);
  margin: 16px;
  border-radius: var(--r-2xl);
  padding: 24px 24px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(29,78,216,.40),
    0 4px 12px rgba(29,78,216,.25),
    inset 0 1px 0 rgba(255,255,255,.20);
}
/* Decorative orbs */
.points-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.points-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Noise texture overlay */
.points-hero-inner {
  position: relative;
  z-index: 1;
}

.member-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 8px;
}
.member-greeting {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
  line-height: 1.4;
}
.member-badge {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.4;
}

.points-label {
  font-size: 11px;
  font-weight: 700;
  opacity: .65;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.points-value {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}
.points-value span {
  font-size: 18px;
  font-weight: 600;
  margin-left: 4px;
  opacity: .75;
  letter-spacing: 0;
}

.points-sub {
  font-size: 13px;
  opacity: .6;
  margin-bottom: 20px;
}

.points-meta {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,.12);
  border-radius: var(--r-md);
  overflow: hidden;
}
.points-meta > div {
  flex: 1;
  padding: 10px 14px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.points-meta > div:last-child { border-right: none; }
.meta-item-val {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.meta-item-key {
  font-size: 10px;
  opacity: .55;
  margin-top: 2px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Section */
.section { margin-bottom: 20px; }
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  padding: 0 18px;
  margin-bottom: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.action-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.2,.64,1), box-shadow .2s;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.action-btn:active { transform: translateY(0); }

.action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  letter-spacing: -.1px;
}

/* Announcements */
.announce-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.announce-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--blue-500);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.2,.64,1), box-shadow .2s;
}
.announce-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.announce-item.new     { border-left-color: var(--orange-500); }
.announce-item.promo   { border-left-color: var(--green-500); }

.announce-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
}
.tag-news  {
  background: rgba(37,99,235,.08);
  color: var(--blue-700);
  border: 1px solid rgba(37,99,235,.12);
}
.tag-new   {
  background: rgba(249,115,22,.09);
  color: var(--orange-500);
  border: 1px solid rgba(249,115,22,.14);
}
.tag-promo {
  background: rgba(16,185,129,.09);
  color: var(--green-600);
  border: 1px solid rgba(16,185,129,.14);
}

.announce-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  letter-spacing: -.1px;
}
.announce-date {
  font-size: 11px;
  color: var(--gray-400);
}


/* ── 11. Page: QR Code Payment ── */
.qr-content {
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Points bar */
.points-bar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
}

.points-bar-label { font-size: 12px; color: var(--gray-400); margin-bottom: 3px; font-weight: 500; }
.points-bar-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -1px;
}
.points-bar-value span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  margin-left: 3px;
  letter-spacing: 0;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green-600);
  font-weight: 600;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.15);
  padding: 5px 10px;
  border-radius: var(--r-full);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

/* QR card */
.qr-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.qr-timer-label { font-size: 13px; color: var(--gray-400); }
.qr-timer-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  min-width: 62px;
  letter-spacing: -.5px;
}
.qr-timer-value.warn { color: var(--red-500); }

.timer-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,.06);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 24px;
}
.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  border-radius: var(--r-full);
  transition: width 1s linear;
}
.timer-fill.warn {
  background: linear-gradient(90deg, var(--red-400, #F87171), var(--red-600));
}

.qr-code-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.06),
    inset 0 0 0 1px rgba(0,0,0,.04);
}
.qr-code-wrap.expired::after {
  content: '已過期';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--red-500);
  letter-spacing: .5px;
}

.qr-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

/* Expired overlay */
.expired-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.expired-overlay.show {
  display: flex;
  animation: slideUp .35s cubic-bezier(.34,1.2,.64,1) both;
}

.expired-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--red-500);
  letter-spacing: -.3px;
}
.expired-sub {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.65;
}

@media (min-width: 480px) {
  .qr-card { padding: 36px 32px 32px; }
}


/* ── 12. Page: Register ── */

/* App shell */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 64px;
}

/* Register header (centered logo, no back button) */
.header {
  width: 100%;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 16px rgba(37,99,235,.05);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Progress stepper */
.progress-wrap {
  width: 100%;
  max-width: 480px;
  padding: 24px 24px 8px;
}

.step-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 14px;
  text-align: center;
  font-weight: 500;
  letter-spacing: .3px;
}
.step-label span {
  color: var(--blue-600);
  font-weight: 700;
}

.steps {
  display: flex;
  align-items: center;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: rgba(255,255,255,.8);
  color: var(--gray-300);
  transition: all .35s cubic-bezier(.34,1.2,.64,1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.step-circle.active {
  border-color: transparent;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: white;
  box-shadow: 0 0 0 5px rgba(37,99,235,.14), 0 4px 12px rgba(37,99,235,.35);
}
.step-circle.done {
  border-color: transparent;
  background: linear-gradient(145deg, var(--green-500), var(--green-600));
  color: white;
  box-shadow: 0 4px 10px rgba(16,185,129,.30);
}

.step-title {
  font-size: 10px;
  color: var(--gray-300);
  margin-top: 6px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .3px;
}
.step-dot.active .step-title { color: var(--blue-600); }
.step-dot.done  .step-title  { color: var(--green-500); }

.step-line {
  height: 2px;
  flex: 1;
  background: rgba(0,0,0,.08);
  margin-bottom: 20px;
  border-radius: var(--r-full);
  transition: background .4s ease;
}
.step-line.done {
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}

/* Register card */
.card {
  width: calc(100% - 32px);
  max-width: 480px;
  margin: 8px 16px 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
}
.card.page.active {
  animation: slideInRight .3s cubic-bezier(.34,1.2,.64,1) both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Page step icon */
.page-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,.10);
}
.page-icon svg { width: 28px; height: 28px; }

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -.4px;
}

.page-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 28px;
}
.page-desc strong { color: var(--blue-600); font-weight: 700; }

/* Form group */
.form-group { margin-bottom: 20px; }

.form-label .required {
  color: var(--red-500);
  margin-left: 3px;
}

/* Phone input */
.input-phone-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  min-width: 82px;
  box-shadow: var(--shadow-xs);
}
.phone-prefix:hover {
  border-color: rgba(37,99,235,.4);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.flag { font-size: 18px; }

/* OTP inputs */
.otp-wrap {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 6px 0;
}
.otp-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  color: var(--gray-900);
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.34,1.56,.64,1), background .2s;
  -webkit-appearance: none;
  caret-color: var(--blue-600);
  box-shadow: var(--shadow-xs);
  letter-spacing: -.5px;
}
.otp-input:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3.5px rgba(37,99,235,.13), 0 4px 12px rgba(37,99,235,.10);
  transform: scale(1.08);
  background: rgba(255,255,255,.95);
}
.otp-input.filled {
  border-color: rgba(37,99,235,.4);
  background: rgba(37,99,235,.07);
  color: var(--blue-700);
}

/* Resend row */
.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.resend-text { font-size: 13px; color: var(--gray-400); }
.resend-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .15s;
}
.resend-btn:hover { opacity: .75; }
.resend-btn:disabled { color: var(--gray-300); text-decoration: none; cursor: default; }
.countdown { font-size: 13px; color: var(--gray-400); font-weight: 600; }

/* Select */
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: var(--r-sm);
  color: var(--gray-900);
  background: rgba(255,255,255,.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.form-select:focus {
  border-color: rgba(37,99,235,.5);
  background-color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 3.5px rgba(37,99,235,.12);
}

.date-row { display: flex; gap: 8px; }
.date-row .form-select { flex: 1; }

/* Gender radio */
.radio-group { display: flex; gap: 9px; }
.radio-option { flex: 1; position: relative; }
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  transition: all .2s;
  user-select: none;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}
.radio-label:hover {
  border-color: rgba(37,99,235,.35);
  color: var(--blue-600);
  background: rgba(255,255,255,.85);
}
.radio-option input:checked + .radio-label {
  border-color: rgba(37,99,235,.45);
  background: rgba(37,99,235,.08);
  color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.radio-option input:checked + .radio-label .radio-dot {
  background: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
.radio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background .2s, box-shadow .2s;
  flex-shrink: 0;
}

/* Privacy / info note */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.privacy-note svg { flex-shrink: 0; margin-top: 1px; }
.privacy-note p { font-size: 12px; color: var(--gray-500); line-height: 1.6; }
.privacy-note a { color: var(--blue-600); font-weight: 600; text-decoration: none; }
.privacy-note a:hover { text-decoration: underline; }

/* Ghost / back button */
.btn-ghost {
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.8);
  border-color: rgba(0,0,0,.14);
  color: var(--gray-700);
  transform: translateY(-1px);
}

/* Register success */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 8px;
}
.success-icon {
  width: 84px; height: 84px;
  background: linear-gradient(145deg, var(--green-500), var(--green-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow:
    0 12px 28px rgba(16,185,129,.35),
    0 0 0 8px rgba(16,185,129,.10),
    inset 0 1px 0 rgba(255,255,255,.25);
  animation: popBounce .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popBounce {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-icon svg { width: 42px; height: 42px; }

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.success-desc {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 24px;
}

.reg-member-badge {
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: var(--r-md);
  padding: 16px 20px;
  width: 100%;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.reg-member-badge-label {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.reg-member-badge-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-700);
  letter-spacing: -.3px;
}
.reg-member-badge-pts {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 3px;
}
.reg-member-badge-pts strong { color: var(--blue-600); font-weight: 700; }

/* Page hide/show with animation */
.page { display: none; }
.page.active {
  display: block;
  animation: slideInRight .3s cubic-bezier(.34,1.2,.64,1) both;
}

/* Demo nav */
.demo-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,24,39,.88);
  backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--r-full);
  padding: 8px 12px;
  display: flex;
  gap: 3px;
  z-index: 200;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.demo-btn {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  background: none;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.demo-btn:hover,
.demo-btn.cur {
  color: white;
  background: rgba(255,255,255,.15);
}

@media (min-width: 520px) {
  .card { padding: 40px 40px; }
}


/* ── 13. Notification Panel ── */

/* Bell button wrapper (relative for badge positioning) */
.notif-btn-wrap {
  position: relative;
}

/* Unread badge on bell */
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--red-500);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(239,68,68,.5);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.notif-badge.hidden {
  transform: scale(0);
  opacity: 0;
}

/* Backdrop overlay */
.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.notif-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel */
.notif-panel {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 255, .88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    0 16px 48px rgba(37, 99, 235, .12),
    0 4px 12px rgba(0, 0, 0, .08);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), opacity .25s ease;
}
.notif-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Panel header */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  flex-shrink: 0;
}
.notif-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.2px;
}
.notif-count-pill {
  background: var(--red-500);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239,68,68,.35);
}
.notif-read-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: background .2s, opacity .15s;
}
.notif-read-all:hover {
  background: rgba(37,99,235,.08);
}

/* Scrollable list */
.notif-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
}
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }

/* Individual notification item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,.7); }
.notif-item.unread { background: rgba(37, 99, 235, .04); }
.notif-item.unread:hover { background: rgba(37, 99, 235, .07); }

/* Unread blue dot */
.notif-unread-dot {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(37,99,235,.18);
}

/* Notification icon */
.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Notification text */
.notif-body { flex: 1; min-width: 0; padding-right: 16px; }
.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  letter-spacing: -.1px;
  margin-bottom: 3px;
}
.notif-item.unread .notif-title { color: var(--gray-900); font-weight: 700; }
.notif-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* Panel footer */
.notif-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(0,0,0,.05);
  flex-shrink: 0;
}
.notif-footer-btn {
  width: 100%;
  padding: 11px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  cursor: pointer;
  transition: background .2s;
}
.notif-footer-btn:hover { background: rgba(37,99,235,.10); }

/* Empty state */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px;
  color: var(--gray-300);
  gap: 10px;
}
.notif-empty p { font-size: 13px; }
