:root {
  --font-sans:    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --bg:           #06080d;
  --bg2:          #090c12;
  --card:         #0e1119;
  --border:       rgba(255,255,255,.06);
  --text:         #eef0f6;
  --text-muted:   #7a8394;
  --text-dim:     #404858;
  --orange:       #f07a12;
  --orange-lt:    #ff9f43;
  --orange-dim:   rgba(240,122,18,.1);
  --orange-glow:  rgba(240,122,18,.18);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

*,*::before,*::after { margin:0;padding:0;box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND ── */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.bg-orb-1 {
  width: 700px; height: 700px;
  top: -180px; left: -180px;
  background: radial-gradient(circle, rgba(240,122,18,.16), transparent 65%);
  animation: orbDrift1 28s ease-in-out infinite;
}

.bg-orb-2 {
  width: 500px; height: 500px;
  top: 5%; right: -140px;
  background: radial-gradient(circle, rgba(240,122,18,.09), transparent 65%);
  animation: orbDrift2 22s ease-in-out infinite;
}

.bg-orb-3 {
  width: 600px; height: 350px;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(240,122,18,.07), transparent 65%);
  animation: orbDrift3 35s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(60px, -40px) scale(1.08); }
  50%      { transform: translate(90px, 40px) scale(0.94); }
  75%      { transform: translate(-20px, 70px) scale(1.04); }
}

@keyframes orbDrift2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-55px, 35px) scale(1.06); }
  66%      { transform: translate(40px, -65px) scale(0.91); }
}

@keyframes orbDrift3 {
  0%,100% { transform: translateX(-50%) scale(1); }
  30%      { transform: translateX(-44%) scale(1.07); }
  65%      { transform: translateX(-56%) scale(0.93); }
}

#particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 10%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 35%, black 10%, transparent 90%);
}

/* ── NAV ── */

nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 94vw);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(6,8,13,.75);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.035);
  transition: box-shadow .3s;
}

nav.scrolled {
  box-shadow: 0 4px 50px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.035);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--text);
  letter-spacing: -.01em;
}

.logo-wrap img {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1.5px solid rgba(240,122,18,.35);
  box-shadow: 0 0 16px rgba(240,122,18,.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.nav-cta {
  color: var(--orange) !important;
  background: var(--orange-dim) !important;
  border: 1px solid rgba(240,122,18,.22) !important;
  border-radius: var(--r-sm) !important;
  margin-left: 6px;
  transition: all .2s !important;
}

.nav-cta:hover {
  background: rgba(240,122,18,.18) !important;
  box-shadow: 0 0 16px rgba(240,122,18,.2);
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 24px 100px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 10px;
  background: var(--orange-dim);
  border: 1px solid rgba(240,122,18,.22);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange-lt);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .7s .15s ease forwards;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.65); }
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .8s .25s ease forwards;
}

.hero-logo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(240,122,18,.18);
  animation: ringPulse 3s ease-in-out infinite;
}

.hero-logo-ring-2 {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px solid rgba(240,122,18,.08);
  animation: ringPulse 3s .8s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.04); opacity: .5; }
}

.hero-logo {
  width: 148px; height: 148px;
  border-radius: 30px;
  object-fit: cover;
  border: 2px solid rgba(240,122,18,.45);
  box-shadow:
    0 0 0 6px rgba(240,122,18,.06),
    0 0 60px rgba(240,122,18,.25),
    0 30px 80px rgba(0,0,0,.6);
  animation: float 5s ease-in-out infinite;
  display: block;
  position: relative;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .8s .4s ease forwards;
}

.hero h1 .word-exon {
  display: inline-block;
  background: linear-gradient(90deg,
    #eef0f6 0%,
    var(--orange-lt) 35%,
    #eef0f6 65%,
    var(--orange-lt) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s 1s ease-in-out infinite alternate;
}

.hero h1 .word-external {
  display: inline-block;
  color: rgba(255,255,255,.15);
  -webkit-text-stroke: 1.5px rgba(255,255,255,.25);
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp .8s .55s ease forwards;
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .8s .7s ease forwards;
}

.primary-btn {
  text-decoration: none;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  box-shadow: 0 4px 24px rgba(240,122,18,.4), 0 1px 0 rgba(255,255,255,.15) inset;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(240,122,18,.55);
}

.primary-btn:active { transform: translateY(-1px); }

.secondary-btn {
  text-decoration: none;
  color: var(--text-muted);
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: .9rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .2s, color .2s, border-color .2s, background .2s;
}

.secondary-btn:hover {
  transform: translateY(-3px);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp .8s 1.2s ease forwards;
}

.scroll-hint span {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-mouse {
  width: 20px; height: 32px;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 999px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 2.5px; height: 5px;
  background: var(--orange);
  border-radius: 999px;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 0; transform: translateX(-50%) translateY(14px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

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

/* ── DIVIDER ── */

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,122,18,.25), transparent);
}

/* ── SECTION BASE ── */

section { padding: 100px 24px; }

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: rgba(240,122,18,.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 60px;
}

/* ── OVERVIEW ── */

#overview {
  background: var(--bg2);
  position: relative;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,122,18,.07), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(240,122,18,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(240,122,18,.08);
}

.card:hover::before,
.card:hover::after { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--orange-dim);
  border: 1px solid rgba(240,122,18,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.card p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
}

/* ── FEATURE LIST ── */

#feature-list {
  background: var(--bg);
  position: relative;
}

.feat-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feat-tab {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s;
}

.feat-tab:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
}

.feat-tab.active {
  color: var(--orange);
  background: var(--orange-dim);
  border-color: rgba(240,122,18,.3);
}

.feat-panels {
  max-width: 1060px;
  margin: 0 auto;
}

.feat-panel {
  display: none;
}

.feat-panel.active {
  display: block;
  animation: fadeUp .4s ease forwards;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.feat-item:hover {
  border-color: rgba(240,122,18,.22);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.feat-dot {
  flex-shrink: 0;
  margin-top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(240,122,18,.6);
}

.feat-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.feat-item p {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.6;
  margin: 0;
}

/* ── PRICING ── */

#pricing {
  background: var(--bg2);
  position: relative;
}

.pricing-box {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

.pricing-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,122,18,.3), transparent);
}

/* ── FAQ ── */

#faq {
  background: var(--bg);
  position: relative;
}

.faq {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  border-radius: 0 999px 999px 0;
  opacity: 0;
  transition: opacity .25s;
}

.faq-item:hover {
  border-color: rgba(240,122,18,.25);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transform: translateX(4px);
}

.faq-item:hover::before { opacity: 1; }

.faq-item h3 {
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.faq-item p {
  color: var(--text-muted);
  font-size: .87rem;
  line-height: 1.65;
}

.faq-item a { color: var(--orange); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */

footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .88rem;
  color: var(--text-muted);
}

.footer-logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(240,122,18,.25);
  box-shadow: 0 0 10px rgba(240,122,18,.15);
}

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}

.footer-links a:hover {
  color: var(--orange);
  background: var(--orange-dim);
}

.footer-copy {
  color: var(--text-dim);
  font-size: .76rem;
}

/* ── SCROLL REVEAL ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .85s cubic-bezier(0.22, 1, 0.36, 1),
              transform .85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.active { opacity: 1; transform: translateY(0); }

.cards .card:nth-child(1) { transition-delay: .05s; }
.cards .card:nth-child(2) { transition-delay: .14s; }
.cards .card:nth-child(3) { transition-delay: .23s; }
.faq .faq-item:nth-child(1) { transition-delay: .05s; }
.faq .faq-item:nth-child(2) { transition-delay: .12s; }
.faq .faq-item:nth-child(3) { transition-delay: .19s; }

/* ── AUTH NAV ── */

.nav-auth { display: flex; align-items: center; gap: 8px; }

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.3);
  color: #a4aaff;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}

.nav-login-btn:hover {
  background: rgba(88,101,242,.25);
  border-color: rgba(88,101,242,.5);
  color: #c5caffff;
}

.nav-login-btn svg { flex-shrink: 0; }

/* logged-in avatar button */
.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
}

.nav-profile-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
}

.nav-profile-btn img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-profile-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* role dot indicator on nav avatar */
.nav-role-dot {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.nav-role-dot[data-role="member"]    { background: #6b7280; }
.nav-role-dot[data-role="customer"]  { background: var(--orange); }
.nav-role-dot[data-role="staff"]     { background: #4a90d9; }
.nav-role-dot[data-role="developer"] { background: #9b59b6; }

/* ── PROFILE CARD ── */

.profile-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.profile-card-overlay.open { pointer-events: all; }

.profile-card {
  position: fixed;
  top: 72px;
  right: max(16px, calc(50vw - 570px));
  width: 300px;
  background: #0b0e16;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transition: opacity .25s cubic-bezier(0.22,1,0.36,1),
              transform .25s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  z-index: 1200;
}

.profile-card-overlay.open .profile-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Banner strip at top */
.profile-banner {
  height: 64px;
  background: linear-gradient(135deg, #1a0d00 0%, #120d1c 100%);
  position: relative;
}

/* Avatar */
.profile-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 20px;
}

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0b0e16;
  display: block;
}

.profile-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color .3s;
}

/* ring color by role */
.profile-card[data-role="member"]    .profile-avatar-ring { border-color: rgba(107,114,128,.5); }
.profile-card[data-role="customer"]  .profile-avatar-ring { border-color: rgba(240,122,18,.6); box-shadow: 0 0 16px rgba(240,122,18,.25); }
.profile-card[data-role="staff"]     .profile-avatar-ring { border-color: rgba(74,144,217,.6);  box-shadow: 0 0 16px rgba(74,144,217,.25); }
.profile-card[data-role="developer"] .profile-avatar-ring { border-color: rgba(155,89,182,.6);  box-shadow: 0 0 16px rgba(155,89,182,.25); }

.profile-body {
  padding: 44px 20px 20px;
}

.profile-username {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

/* Primary role badge */
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.profile-role-badge[data-role="member"]    { background: rgba(107,114,128,.15); color: #9ca3af; border: 1px solid rgba(107,114,128,.25); }
.profile-role-badge[data-role="customer"]  { background: var(--orange-dim); color: var(--orange-lt); border: 1px solid rgba(240,122,18,.3); }
.profile-role-badge[data-role="staff"]     { background: rgba(74,144,217,.12); color: #7ab8f5; border: 1px solid rgba(74,144,217,.3); }
.profile-role-badge[data-role="developer"] { background: rgba(155,89,182,.12); color: #c39bd3; border: 1px solid rgba(155,89,182,.3); }

/* All roles row */
.profile-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.role-tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  letter-spacing: .03em;
}

.role-tag[data-role="member"]    { background: rgba(107,114,128,.12); color: #6b7280; }
.role-tag[data-role="customer"]  { background: var(--orange-dim); color: var(--orange); }
.role-tag[data-role="staff"]     { background: rgba(74,144,217,.1); color: #4a90d9; }
.role-tag[data-role="developer"] { background: rgba(155,89,182,.1); color: #9b59b6; }

/* Divider */
.profile-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 0 0 14px;
}

/* Keys section */
.profile-keys-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.profile-keys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.profile-key-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.profile-key-item.expanded {
  border-color: rgba(240,122,18,.35);
}

.profile-key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.profile-key-header:hover .profile-key-value {
  color: var(--orange);
}

.profile-key-details {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 10px 12px;
}
.profile-key-details.open {
  display: flex;
}

.key-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .72rem;
  padding: 4px 0;
  gap: 12px;
}
.key-detail-row span:first-child {
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.key-detail-row span:last-child {
  color: var(--text);
  text-align: right;
}
.hwid-row span:last-child {
  font-family: 'Courier New', Courier, monospace;
  font-size: .68rem;
  color: var(--text-dim);
  word-break: break-all;
}
.key-active { color: #4ade80 !important; }
.key-expired { color: #f87171 !important; }
.key-detail-loading,
.key-detail-err {
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
  padding: 4px 0;
}

.profile-key-value {
  font-size: .75rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--orange-lt);
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-key-plan {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-no-keys {
  font-size: .82rem;
  color: var(--text-dim);
  text-align: center;
  padding: 10px 0;
}

/* Link key form */
.profile-link-form {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.profile-link-form input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: .78rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}

.profile-link-form input::placeholder { color: var(--text-dim); }
.profile-link-form input:focus { border-color: rgba(240,122,18,.4); }

.profile-link-form button {
  background: var(--orange-dim);
  border: 1px solid rgba(240,122,18,.3);
  border-radius: var(--r-sm);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.profile-link-form button:hover { background: rgba(240,122,18,.18); }

.profile-link-msg {
  font-size: .73rem;
  min-height: 16px;
  margin-top: 4px;
  transition: color .2s;
}

.profile-link-msg.ok  { color: #4ade80; }
.profile-link-msg.err { color: #f87171; }

/* Sign out */
.profile-signout {
  display: block;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: color .2s, border-color .2s, background .2s;
  margin-top: 6px;
}

.profile-signout:hover {
  color: #f87171;
  border-color: rgba(248,113,113,.3);
  background: rgba(248,113,113,.07);
}

/* ── SCROLLBAR ── */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; }

/* ── POLICY PAGES ── */

.policy-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.policy-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  flex: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 44px;
  transition: color .2s, border-color .2s;
}

.back-link:hover { color: var(--text); border-color: rgba(255,255,255,.14); }

.policy-body h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.policy-body p {
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 16px;
  font-size: .95rem;
}

.policy-body a { color: var(--orange); text-decoration: none; }
.policy-body a:hover { text-decoration: underline; }

/* ── MOBILE ── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-logo { width: 120px; height: 120px; }
  .pricing-box { padding: 22px 16px; }
}

@media (max-width: 600px) {
  section { padding: 80px 18px; }
  .card { padding: 28px 22px; }
  .faq-item { padding: 20px 20px; }
  .feat-item { padding: 16px 18px; }
  .feat-grid { grid-template-columns: 1fr; }
}
