/* ═══════════════════════════════════════════════════════════
   DESERT CITY RP — style.css
   Global design system, CSS variables, reset, layout
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --accent:        #e4d07e;
  --accent-dim:    #c8b85a;
  --accent-glow:   rgba(228, 208, 126, 0.25);
  --accent-glow-lg:rgba(228, 208, 126, 0.12);

  --bg:            #0a0a0c;
  --bg-1:          #0f0f12;
  --bg-2:          #141418;
  --bg-3:          #1a1a20;
  --bg-card:       rgba(20, 20, 26, 0.85);
  --bg-glass:      rgba(255, 255, 255, 0.04);

  --text:          #f0ede4;
  --text-muted:    #8a8880;
  --text-faint:    #3d3d40;

  --border:        rgba(228, 208, 126, 0.12);
  --border-muted:  rgba(255, 255, 255, 0.06);

  --sidebar-w:     72px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-full:   9999px;

  --shadow-accent: 0 0 30px rgba(228, 208, 126, 0.15);
  --shadow-card:   0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 60px rgba(228, 208, 126, 0.1);

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; cursor: none; }
ul { list-style: none; }

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(228,208,126,0.5);
  pointer-events: none;
  z-index: 9998;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1),
              height 0.35s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.3s,
              opacity 0.3s;
  background: transparent;
}
.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
  background: rgba(228,208,126,0.05);
}
.cursor-ring.clicking {
  width: 24px;
  height: 24px;
  background: rgba(228,208,126,0.15);
}

/* ── Utility ────────────────────────────────────────────── */
.accent { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Layout ─────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
}

section {
  position: relative;
  min-height: 100vh;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.btn:hover::after { opacity: 0.07; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 4px 20px rgba(228, 208, 126, 0.3);
}
.btn-primary:hover {
  background: #f0de8e;
  box-shadow: 0 6px 30px rgba(228, 208, 126, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-accent {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent);
  color: #111;
}

.btn-discord {
  background: #5865F2;
  color: white;
  box-shadow: 0 4px 20px rgba(88,101,242,0.3);
}
.btn-discord:hover {
  background: #6b78ff;
  box-shadow: 0 6px 30px rgba(88,101,242,0.5);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; }

.discord-icon { width: 18px; height: 18px; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  background: rgba(8, 8, 11, 0.92);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-muted);
  padding: 16px 0;
  gap: 0;
}

/* Glowing accent line on the right edge */
.sidebar::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.25;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.sidebar-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-muted);
  transition: all var(--transition);
}
.sidebar-logo-img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.05);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;         /* controlled by nav-item wrapper */
  flex: 1;
  position: relative;
  padding: 8px 0;
}

/* Vertical connecting line behind items */
.sidebar-links::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(228,208,126,0.18) 0px,
    rgba(228,208,126,0.18) 4px,
    transparent 4px,
    transparent 10px
  );
  z-index: 0;
  pointer-events: none;
}

.nav-item {
  position: relative;
  z-index: 1;     /* above the connecting line */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text-faint);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 5px 0;  /* extra spacing between items */
  background: var(--bg);  /* covers the dashed line behind it */
}
.nav-item:hover {
  background: rgba(228, 208, 126, 0.08);
  color: var(--text-muted);
  transform: scale(1.1);
}
.nav-item.active {
  background: rgba(228, 208, 126, 0.13);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(228,208,126,0.22),
              0 0 16px rgba(228,208,126,0.08);
}
/* Active left indicator bar */
.nav-item.active::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 1.05rem;
  line-height: 1;
}
.nav-icon i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  /* DO NOT override font-weight - FA Solid needs 900 */
}

.nav-tooltip {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--bg-2);
  border: 1px solid rgba(228,208,126,0.15);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  letter-spacing: 0.03em;
}
.nav-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(228,208,126,0.15);
}
.nav-item:hover .nav-tooltip,
.nav-item.active .nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Sidebar User Avatar ─────────────────────────────────── */
.sidebar-user {
  width: 48px;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-bottom: 8px;
}
.sb-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  padding: 0;
  background: var(--bg-2);
}
.sb-avatar-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.sb-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.sb-login-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.sb-login-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Crown badge on Owner avatars (Font Awesome) ── */
.tm-crown {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 1.1rem;
  color: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(228,208,126,0.7));
  animation: crownFloat 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  transform: rotate(15deg);
}
@keyframes crownFloat {
  0%, 100% { transform: rotate(15deg) translateY(0);   }
  50%       { transform: rotate(15deg) translateY(-3px); }
}

/* ── User Dropdown ────────────────────────────────────────── */
.user-dropdown {
  position: fixed;
  left: calc(var(--sidebar-w) + 12px);
  bottom: 70px;
  min-width: 180px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.ud-arrow {
  position: absolute;
  left: -6px;
  bottom: 16px;
  width: 10px; height: 10px;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.ud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.ud-item:hover { background: var(--bg-glass); }
.ud-icon { font-size: 0.95rem; width: 18px; text-align: center; }
.ud-badge {
  margin-left: auto;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.ud-logout:hover { color: #ff6b6b; }
.ud-profile { color: var(--text); }
.ud-profile:hover { color: var(--accent); background: var(--bg-glass); }
.ud-management { color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: calc(100vw - var(--sidebar-w));
  margin-left: var(--sidebar-w);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,0.4) 0%,
    rgba(10,10,12,0.6) 50%,
    rgba(10,10,12,0.95) 100%
  );
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.hero-badge {
  background: rgba(228,208,126,0.1);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  opacity: 0;
  animation: fadeSlideDown 0.8s 0.3s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: heroTitleIn 1s 0.5s forwards;
}
.hero-title-desert {
  color: var(--accent);
  display: inline-block;
}
.hero-title-city {
  color: var(--text);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.1s forwards;
}
.hero-cta {
  font-size: 1rem;
  padding: 14px 36px;
}

/* Hero Discord icon link */
.hero-discord-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(88,101,242,0.12);
  border: 1.5px solid rgba(88,101,242,0.3);
  color: rgba(88,101,242,0.9);
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.3s forwards;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-discord-icon svg { transition: transform 0.3s; }
.hero-discord-icon:hover {
  background: rgba(88,101,242,0.25);
  border-color: rgba(88,101,242,0.7);
  color: #7289da;
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(88,101,242,0.35);
}
.hero-discord-icon:hover svg { transform: scale(1.1); }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  background: var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  overflow: hidden;
}

.about-curtain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
}
.curtain-left, .curtain-right {
  width: 50%;
  height: 100%;
  background: var(--bg-1);
  transform-origin: center center;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain-left  { transform: scaleX(1); }
.curtain-right { transform: scaleX(1); }
.about-section.curtain-open .curtain-left  { transform: scaleX(0); transform-origin: left; }
.about-section.curtain-open .curtain-right { transform: scaleX(0); transform-origin: right; }

.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-shards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shard {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  overflow: hidden;
}
.shard::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.shard:hover::before { opacity: 0.08; }
.shard:hover { border-color: var(--border); }

.shard.visible {
  transform: translateY(0);
  opacity: 1;
}

.shard-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.shard-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.shard-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
}
.stat-block {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── TEAM ────────────────────────────────────────────────── */
.team-section {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  background: var(--bg);
  padding: 100px 60px;
  min-height: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.team-tier {
  margin-bottom: 60px;
}
.tier-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.tier-line {
  flex: 1;
  height: 1px;
  background: var(--border-muted);
}
.tier-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

/* Team member — 3D card */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  perspective: 600px;
  transform-style: preserve-3d;
}
.team-member-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  border-radius: 20px;
  padding: 24px 20px 18px;
  min-width: 120px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.team-member-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228,208,126,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
}
.team-member:hover .team-member-inner::before { opacity: 1; }
.team-member:hover .team-member-inner {
  border-color: rgba(228,208,126,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(228,208,126,0.12);
}
.tm-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
}
.tm-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--border);
  transition: all var(--transition);
}
.tm-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(var(--accent), transparent, transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.team-member:hover .tm-ring { opacity: 1; }
.team-member:hover .tm-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.tm-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.tm-role {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── Profile Card ─────────────────────────────────────────── */
.profile-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.profile-card-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.profile-card {
  position: relative;
  width: 360px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--spring);
  overflow: hidden;
}
.profile-card-overlay.open .profile-card {
  transform: scale(1) translateY(0);
}
.pc-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--accent-glow-lg);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.profile-card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.profile-card-close:hover { background: rgba(255,80,80,0.15); color: #ff6b6b; }

.pc-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}
.pc-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.pc-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
  opacity: 0.3;
  animation: spinRing 8s linear infinite;
}

.pc-name  { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pc-role  { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.pc-desc  { font-size: 0.83rem; color: var(--text-muted); text-align: center; line-height: 1.6; margin-top: 4px; }
.pc-goals-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  align-self: flex-start;
  margin-top: 8px;
}
.pc-goals { font-size: 0.82rem; color: var(--text-muted); align-self: flex-start; line-height: 1.6; }
.pc-socials { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.pc-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
.pc-social-link:hover {
  background: rgba(from var(--social-color, var(--accent)) r g b / 0.12);
  border-color: var(--social-color, var(--accent));
  color: var(--social-color, var(--accent));
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 16px rgba(from var(--social-color, var(--accent)) r g b / 0.25);
}

/* ── STORE ───────────────────────────────────────────────── */
.store-section {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  background: var(--bg-1);
  padding: 100px 60px;
  min-height: auto;
}

.store-status-bar {
  text-align: center;
  margin-bottom: 24px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
}
.status-badge.open  { background: rgba(0,200,100,0.1); border: 1px solid rgba(0,200,100,0.25); color: #00c864; }
.status-badge.closed{ background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.25); color: #ff6b6b; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

.store-gate {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px;
}
.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.gate-icon { font-size: 2.5rem; }
.gate-card h3 { font-size: 1.4rem; font-weight: 700; }
.gate-card p  { font-size: 0.9rem; color: var(--text-muted); }

.store-content { display: none; }
.store-content.visible { display: block; }

.coupon-bar {
  max-width: 600px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.coupon-input-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
}
.coupon-input {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-full);
  color: var(--text);
  padding: 11px 20px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.coupon-input::placeholder { color: var(--text-faint); }
.coupon-input:focus { border-color: var(--accent); }
.coupon-result { font-size: 0.83rem; font-weight: 600; }
.coupon-result.success { color: #00c864; }
.coupon-result.error   { color: #ff6b6b; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pc-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-3);
}
.pc-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-faint);
}
.pc-body { padding: 20px; }
.pc-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.pc-badge.limited  { background: rgba(228,208,126,0.12); color: var(--accent); }
.pc-badge.locked   { background: rgba(255,80,80,0.1); color: #ff6b6b; }
.pc-badge.sold-out { background: rgba(150,150,150,0.1); color: var(--text-muted); }
.pc-badge.discount { background: rgba(0,200,100,0.1); color: #00c864; }
.pc-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.pc-desc-text { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; }
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pc-original { font-size: 0.8rem; color: var(--text-faint); text-decoration: line-through; }
.pc-final { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.pc-buy {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.pc-buy:hover { background: #f0de8e; transform: scale(1.04); }
.pc-buy:disabled { opacity: 0.4; cursor: not-allowed; transform: none; background: var(--text-faint); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  background: var(--bg);
  padding: 100px 60px;
  min-height: auto;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.cc-icon { font-size: 2.5rem; }
.contact-card h3 { font-size: 1.2rem; font-weight: 700; }
.contact-card p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  background: var(--bg-1);
  border-top: 1px solid var(--border-muted);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--spring);
  box-shadow: var(--shadow-card);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,80,80,0.15); color: #ff6b6b; }

.modal-header {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.modal-icon { font-size: 2rem; }
.modal-header h3 { font-size: 1.25rem; font-weight: 700; }
.modal-header p  { font-size: 0.85rem; color: var(--text-muted); }

.modal-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--bg-2); }

.ticket-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0;
}
.ticket-success.show { display: flex; }
.ts-icon { font-size: 2.5rem; }
.ticket-success h3 { font-size: 1.2rem; font-weight: 700; }
.ticket-success p  { font-size: 0.87rem; color: var(--text-muted); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-color: rgba(0,200,100,0.3); }
.toast.error   { border-color: rgba(255,80,80,0.3); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, transparent, rgba(228,208,126,0.3), transparent);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, transparent, rgba(228,208,126,0.6), transparent);
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .hero-section, .about-section, .team-section,
  .store-section, .contact-section, .site-footer {
    margin-left: 0;
    width: 100vw;
  }
  .about-shards { grid-template-columns: 1fr; }
  .about-inner, .team-section, .store-section, .contact-section { padding: 60px 24px; }
}

/* ── Attachment UI (modal & reply box) ──────────────────── */
.attach-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: border-color .25s, background .25s;
  cursor: pointer;
  margin-top: 10px;
}
.attach-drop-zone:hover,
.attach-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(228,208,126,0.04);
}
.attach-browse-btn {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.attach-link-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.attach-link-input {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-size: 0.83rem;
  outline: none;
  transition: border-color .25s;
}
.attach-link-input:focus { border-color: rgba(228,208,126,0.35); }
.attach-link-add-btn {
  background: var(--bg-3);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .2s;
}
.attach-link-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.attach-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  padding: 6px 10px;
  max-width: 260px;
  font-size: 0.8rem;
}
.attach-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.attach-icon {
  font-size: 1.1rem;
  color: var(--accent);
}
.attach-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.78rem;
}
.attach-remove {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .2s;
  flex-shrink: 0;
}
.attach-remove:hover { color: #ff6b6b; }

