/* === AXIS COMMUNITY — Glass/gold design system === */
/* Extends base styles.css with community-specific elevated aesthetic */

:root {
  --gold: #c9a84c;
  --gold-light: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.08);
  --gold-border: rgba(201, 168, 76, 0.3);
  --gold-bright: #e8c86a;
  --gold-dim: #8a6e30;
  --glass-bg: rgba(17, 17, 17, 0.7);
  --glass-border: rgba(201, 168, 76, 0.18);
  --glass-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 168, 76, 0.1);
  --community-gradient: linear-gradient(135deg, #0a0a0a 0%, #111108 50%, #0a0a0a 100%);
}

/* === COMMUNITY LANDING PAGE === */

.community-page {
  background: var(--community-gradient);
  min-height: 100vh;
}

/* Hero */
.community-hero {
  position: relative;
  padding: 140px 40px 100px;
  text-align: center;
  overflow: hidden;
}

.community-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(192, 192, 192, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.community-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
}

.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.community-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.community-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.community-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #c9a84c, #e8c86a, #c9a84c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.community-hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* === PRICING SECTION === */

.pricing-section {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.pricing-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pricing-section .section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .community-hero { padding: 120px 24px 80px; }
  .pricing-section { padding: 60px 24px; }
  .features-section { padding: 60px 24px; }
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.pricing-card.featured {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 168, 76, 0.25),
              0 0 60px rgba(201, 168, 76, 0.05);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-amount {
  margin-bottom: 6px;
}

.pricing-amount .price-main {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-amount .price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-intro {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pricing-cta.gold {
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  color: #000;
  border: none;
}

.pricing-cta.gold:hover {
  background: linear-gradient(135deg, #e8c86a, #f0d880);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.pricing-cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-cta.outline:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

/* === FEATURES SECTION === */

.features-section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.feature-card:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

.feature-card.available {
  border-color: rgba(201, 168, 76, 0.12);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 100px;
}

.feature-status.live {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.feature-status.soon {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

/* === COMMUNITY AUTH PAGES === */
/* Intentionally no backdrop-filter, no glass-morphism, no display:flex on body.
   Previous attempts with blur + flex + dvh caused: mobile freeze (layout thrash),
   desktop input flash (redirect loop), and GPU thrashing on Android Chrome.
   This version uses block layout with margin centering — zero CSS interference
   with input focus, keyboard open, or viewport resize. */

.community-auth-page {
  background: var(--community-gradient);
  min-height: 100vh;
  padding: 100px 24px 40px;
  overflow-y: auto;
}

.community-auth-card {
  background: rgba(17, 17, 8, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* Mobile: allow scroll when keyboard opens, disable transitions */
@media (max-width: 640px) {
  .community-auth-page {
    padding: 60px 16px 40px;
  }

  .community-auth-card {
    padding: 36px 24px;
  }
}

/* Touch devices: disable transitions that fire during keyboard resize */
@media (pointer: coarse), (hover: none) {
  .community-auth-page .community-form-input,
  .community-auth-page .community-btn-primary,
  .community-auth-page .community-form-input:focus,
  .community-auth-page .community-btn-primary:hover {
    transition: none !important;
  }

  .community-auth-page .community-form-input:focus {
    box-shadow: none;
    outline: 2px solid rgba(201, 168, 76, 0.4);
    outline-offset: 2px;
  }
}

.community-auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.community-auth-logo .logo-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c22, #c9a84c44);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 auto 12px;
}

.community-auth-logo h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.community-auth-logo p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.community-form-group {
  margin-bottom: 20px;
}

.community-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.community-form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.community-form-input:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Simplify focus ring on coarse-pointer (touch) to avoid
   GPU repaint when keyboard opens — box-shadow is expensive on mobile */
@media (pointer: coarse) {
  .community-form-input:focus {
    box-shadow: none;
    outline: 2px solid rgba(201, 168, 76, 0.4);
    outline-offset: 2px;
  }
}

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

.community-btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  /* NEVER use transition:all — on mobile, viewport resize fires transitions
     on every computed property (width, height, position), freezing the page */
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}

.community-btn-primary:hover {
  background: linear-gradient(135deg, #e8c86a, #f0d880);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.community-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.community-auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.community-auth-link a {
  color: var(--gold);
  text-decoration: none;
}

.community-auth-link a:hover {
  text-decoration: underline;
}

.community-auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
}

.community-auth-message.error {
  background: rgba(220, 50, 50, 0.1);
  border: 1px solid rgba(220, 50, 50, 0.3);
  color: #ff6b6b;
}

.community-auth-message.success {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
}

/* === DASHBOARD === */

.community-dashboard {
  background: var(--community-gradient);
  min-height: 100vh;
}

.dashboard-header {
  background: rgba(10, 10, 8, 0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.dashboard-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9a84c22, #c9a84c44);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}

.member-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-badge .badge-pill {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px;
}

@media (max-width: 768px) {
  .dashboard-header { padding: 0 20px; }
  .dashboard-main { padding: 32px 20px; }
}

.dashboard-welcome {
  margin-bottom: 48px;
}

.dashboard-welcome h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dashboard-welcome p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.dashboard-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.tool-card:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.tool-card.available {
  border-color: rgba(201, 168, 76, 0.12);
}

.tool-card.available:hover {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.08);
}

.tool-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.tool-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.tool-card-badge.live {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.tool-card-badge.soon {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-coming-soon {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
}

.dashboard-coming-soon-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.dashboard-coming-soon-text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--gold);
}

.dashboard-coming-soon-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-sub-status {
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.dashboard-sub-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-sub-info strong {
  color: var(--gold);
  font-weight: 600;
}

.dashboard-logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-logout-btn:hover {
  border-color: rgba(220, 50, 50, 0.4);
  color: #ff6b6b;
}

/* === PAYMENT SUCCESS === */

.payment-success-page {
  background: var(--community-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.payment-success-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
}

.payment-success-card h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-success-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* === RUO DISCLAIMER === */

.community-ruo {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 32px 40px 48px;
  border-top: 1px solid var(--border-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === COMING SOON BANNER (homepage) === */

.community-teaser {
  padding: 80px 40px;
  max-width: 860px;
  margin: 0 auto;
}

.community-teaser-card {
  background: rgba(17, 17, 8, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(201, 168, 76, 0.04), 0 8px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.community-teaser-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.teaser-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.community-teaser-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.community-teaser-card h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.community-teaser-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.teaser-notify-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 20px;
}

.teaser-notify-form input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.teaser-notify-form input:focus {
  border-color: var(--gold-border);
}

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

.teaser-notify-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.teaser-notify-btn:hover {
  background: linear-gradient(135deg, #e8c86a, #f0d880);
}

.teaser-ruo {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.teaser-features-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.teaser-feature-chip {
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .community-teaser { padding: 60px 20px; }
  .community-teaser-card { padding: 36px 24px; }
  .teaser-notify-form { flex-direction: column; }
  .dashboard-coming-soon { flex-direction: column; gap: 12px; }
  .dashboard-sub-status { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* === RECONSTITUTION CALCULATOR === */

.calc-back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.calc-back-link:hover { color: var(--gold); }

.calc-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

@media (max-width: 768px) {
  .calc-main { padding: 28px 20px 60px; }
}

/* Page header */
.calc-page-header {
  margin-bottom: 40px;
}
.calc-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.calc-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.calc-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 540px;
}

/* Two-column layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}

/* Glass panel */
.calc-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
}

.calc-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.calc-panel-icon { font-size: 1.4rem; }
.calc-panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Field */
.calc-field {
  margin-bottom: 24px;
}
.calc-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.calc-label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-select-wrapper {
  position: relative;
  flex-shrink: 0;
}
.calc-select {
  padding: 10px 30px 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.calc-select:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.calc-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.calc-input:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.calc-input::placeholder { color: var(--text-muted); }

/* Remove number spinner */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input[type=number] { -moz-appearance: textfield; }

.calc-unit {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Quick pills */
.calc-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.calc-pill {
  padding: 5px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.calc-pill:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-light);
}
.calc-pill.active {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-light);
}

/* Syringe note */
.calc-syringe-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.calc-syringe-icon { font-size: 1.2rem; flex-shrink: 0; }
.calc-syringe-note strong {
  display: block;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Results panel — flash animation on update */
@keyframes resultFlash {
  0%   { border-color: rgba(201,168,76,0.5); box-shadow: 0 0 0 0 rgba(201,168,76,0.15), var(--glass-shadow); }
  60%  { border-color: rgba(201,168,76,0.5); box-shadow: 0 0 0 6px rgba(201,168,76,0.06), var(--glass-shadow); }
  100% { border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
}
.calc-results.result-updated {
  animation: resultFlash 0.5s ease-out forwards;
}

/* Primary BAC result */
.calc-result-primary {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.calc-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.calc-result-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}
.calc-result-unit {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
}

/* Secondary result cards */
.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.calc-result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.calc-result-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-result-card-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.calc-result-card-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Syringe diagram */
.calc-syringe-diagram {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.calc-syringe-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.calc-syringe-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-syringe-svg {
  width: 100%;
  height: auto;
  display: block;
}
.calc-syringe-legend {
  text-align: center;
  min-height: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Summary table */
.calc-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.calc-summary-title {
  background: rgba(255,255,255,0.03);
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.calc-summary-row:last-child { border-bottom: none; }
.calc-summary-row span { color: var(--text-muted); }
.calc-summary-row strong { color: var(--text); font-weight: 600; }

/* Error */
.calc-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(220,50,50,0.08);
  border: 1px solid rgba(220,50,50,0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #ff6b6b;
}

/* Disclaimer */
.calc-disclaimer {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   TOOL BRAND HEADER — Persistent top header on all community tools
   Visible in screenshots. Shows Axis Research Lab identity.
   ═══════════════════════════════════════════════════════ */

.tool-brand-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-brand-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.tool-brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #c9a84c 0%, #e8c86d 50%, #a07832 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.tool-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tool-brand-name-primary {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: -0.01em;
}

.tool-brand-name-secondary {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.75);
}

.tool-brand-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-brand-back {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.tool-brand-back:hover { color: rgba(245, 240, 232, 0.75); }

.tool-brand-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.8);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 3px 9px;
}

@media (max-width: 420px) {
  .tool-brand-header { padding: 10px 14px; }
  .tool-brand-name-primary { font-size: 0.85rem; }
  .tool-brand-pill { display: none; }
}

/* ═══════════════════════════════════════════════════════
   RESULT BRAND FOOTER — Appears inside result cards
   Branding visible in any screenshot crop of a result.
   ═══════════════════════════════════════════════════════ */

.result-brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.result-brand-footer-mark {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #c9a84c 0%, #a07832 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0a0a0a;
  flex-shrink: 0;
}

.result-brand-footer-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(201, 168, 76, 0.55);
  letter-spacing: 0.03em;
}

.result-brand-footer-text a {
  color: rgba(201, 168, 76, 0.7);
  text-decoration: none;
  font-weight: 600;
}
.result-brand-footer-text a:hover { color: rgba(201, 168, 76, 1); }

/* Tool brand header spacing — prevents content from starting under the sticky header */
.ic-page .ic-wrap,
.ca-page .ca-wrap {
  padding-top: 0;
}
