/* ==========================================================================
   VOXEL.WTF - Official Web Portal Stylesheet
   Theme: Neon Pixel Violet / Dark Luxury Space (#09050e)
   ========================================================================== */

:root {
  --bg-deep: #09050e;
  --bg-surface: #12091d;
  --bg-card: #180d28;
  --bg-card-hover: #221239;
  --bg-input: #10071c;
  --border-subtle: rgba(179, 89, 255, 0.14);
  --border-hover: rgba(179, 89, 255, 0.38);
  --border-glow: rgba(217, 70, 239, 0.5);
  
  --accent-purple: #b359ff;
  --accent-fuchsia: #d946ef;
  --accent-pink: #ec4899;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-faint: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(179, 89, 255, 0.25);
  --shadow-gem: 0 0 35px rgba(217, 70, 239, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-pink);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #2b1744;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(9, 5, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}
.brand-wrap:hover {
  color: var(--text-main);
}
.brand-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(179, 89, 255, 0.4));
  transition: transform 0.25s ease;
}
.brand-wrap:hover .brand-icon {
  transform: scale(1.08) rotate(3deg);
}
.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(179, 89, 255, 0.18);
  border: 1px solid rgba(179, 89, 255, 0.4);
  color: #e9d5ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.nav-btn {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  position: relative;
}
.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.15);
  border: 1px solid rgba(179, 89, 255, 0.3);
}
.nav-btn.admin-link {
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.08);
}
.nav-btn.admin-link:hover, .nav-btn.admin-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.25), rgba(244, 63, 94, 0.25));
  border-color: #ec4899;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-web-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm), 0 0 15px rgba(179, 89, 255, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-web-app:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 22px rgba(217, 70, 239, 0.5);
  background: linear-gradient(135deg, #c06eff, #e855f5);
}

.btn-auth-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.btn-auth-outline:hover {
  background: rgba(179, 89, 255, 0.12);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-pill:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
}
.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #3b1d60;
}
.user-pill-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(179, 89, 255, 0.25);
  color: #e9d5ff;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   MAIN CONTENT & TABS
   ========================================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 5rem;
  position: relative;
}
.hero-glow-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 350px;
  background: radial-gradient(circle, rgba(179, 89, 255, 0.18) 0%, rgba(217, 70, 239, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(179, 89, 255, 0.1);
  border: 1px solid rgba(179, 89, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 1.5rem;
}
.hero-pill-gem {
  width: 14px;
  height: 14px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #d8b4fe 65%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.75rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(179, 89, 255, 0.4);
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 70, 239, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-platforms-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--text-faint);
  font-size: 0.875rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}
.platform-item:hover {
  color: var(--accent-purple);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(179, 89, 255, 0.12);
  border: 1px solid rgba(179, 89, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   DOWNLOAD HUB
   ========================================================================== */
.download-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.download-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.download-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}
.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.download-card.highlight {
  border-color: rgba(179, 89, 255, 0.4);
  background: linear-gradient(180deg, rgba(179, 89, 255, 0.08) 0%, var(--bg-surface) 100%);
}

.dl-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.dl-card-icon.win { background: rgba(0, 173, 239, 0.15); border: 1px solid rgba(0, 173, 239, 0.3); }
.dl-card-icon.and { background: rgba(61, 220, 132, 0.15); border: 1px solid rgba(61, 220, 132, 0.3); }
.dl-card-icon.lin { background: rgba(250, 204, 21, 0.15); border: 1px solid rgba(250, 204, 21, 0.3); }
.dl-card-icon.web { background: rgba(217, 70, 239, 0.15); border: 1px solid rgba(217, 70, 239, 0.3); }

.dl-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}
.dl-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.dl-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-dl-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(179, 89, 255, 0.3);
  transition: all 0.2s ease;
  text-align: center;
}
.btn-dl-main:hover {
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.45);
  transform: translateY(-1px);
}

.dl-sub-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.btn-dl-sub {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
.btn-dl-sub:hover {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.15);
  border-color: rgba(179, 89, 255, 0.3);
}

/* ==========================================================================
   PRISMATIC SECTION (DISCORD NITRO EQUIVALENT)
   ========================================================================== */
.prismatic-header {
  text-align: center;
  padding: 2rem 1rem 3.5rem;
  position: relative;
}
.prismatic-gem-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.prismatic-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ff73fa 0%, #b359ff 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}
.prismatic-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.prismatic-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}
.plan-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gem);
}
.plan-card.popular {
  border: 2px solid var(--accent-fuchsia);
  background: linear-gradient(180deg, rgba(217, 70, 239, 0.1) 0%, var(--bg-surface) 100%);
}
.plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-fuchsia), var(--accent-pink));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.plan-price-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-purple);
}
.plan-price-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.plan-price-period {
  color: var(--text-faint);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.plan-check {
  color: var(--accent-emerald);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn-buy-crypto {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(179, 89, 255, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-buy-crypto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.5);
  background: linear-gradient(135deg, #c06eff, #ec4899);
}

/* ==========================================================================
   DISCOVER TAB (EXPLORE COMMUNITIES)
   ========================================================================== */
.discover-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.discover-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.discover-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.community-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.community-card:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.community-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.community-card-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #2a1545;
  border: 1px solid var(--border-subtle);
}
.community-card-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.community-member-count {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.member-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}
.community-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.community-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-join-community {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-join-community:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 89, 255, 0.4);
}
.btn-open-in-app {
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-open-in-app:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* ==========================================================================
   SUPPORT TAB (TICKETS SYSTEM)
   ========================================================================== */
.support-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-height: 620px;
  overflow: hidden;
}

.support-sidebar {
  background: rgba(14, 7, 23, 0.65);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.btn-new-ticket {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-new-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(179, 89, 255, 0.4);
}

.support-tabs-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sup-tab-btn {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-faint);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}
.sup-tab-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.2);
  border: 1px solid rgba(179, 89, 255, 0.35);
}

.tickets-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticket-item {
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ticket-item:hover, .ticket-item.active {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.ticket-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.ticket-item-sub {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.badge-status {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.badge-status.open {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-status.closed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}
.ticket-item-date {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.support-main {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.support-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-align: center;
  gap: 0.75rem;
}
.support-empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.ticket-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ticket-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ticket-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}
.ticket-actions {
  display: flex;
  gap: 0.65rem;
}
.btn-action {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}
.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}
.btn-action.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.btn-action.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.ticket-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0.5rem 1rem 0;
  max-height: 400px;
}

.msg-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  max-width: 85%;
}
.msg-box.admin {
  background: #211138;
  border-color: rgba(179, 89, 255, 0.25);
  margin-left: auto;
}
.msg-box.user {
  margin-right: auto;
}
.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.msg-author {
  font-weight: 800;
  color: #ffffff;
}
.msg-badge-staff {
  background: rgba(179, 89, 255, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(179, 89, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}
.msg-time {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.msg-content {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-word;
}
.msg-attachment {
  margin-top: 0.75rem;
  max-width: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.msg-attachment img, .msg-attachment video {
  width: 100%;
  display: block;
}

.ticket-reply-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.input-reply {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.input-reply:focus {
  border-color: var(--accent-purple);
}
.btn-attach {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
}
.btn-attach:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.btn-send {
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-fuchsia));
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 89, 255, 0.4);
}

/* ==========================================================================
   ADMIN PANEL (FULL WEB MANAGEMENT)
   ========================================================================== */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-title-wrap h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-title-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}

.admin-subnav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}
.admin-tab-btn {
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.admin-tab-btn.active {
  color: #ffffff;
  background: rgba(179, 89, 255, 0.2);
  border: 1px solid rgba(179, 89, 255, 0.35);
}

.admin-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 1rem 1.25rem;
  background: rgba(14, 7, 23, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  color: var(--text-main);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.trait-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  margin: 0.15rem 0.2rem 0.15rem 0;
  color: #e2e8f0;
}
.trait-pill.prismatic {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.3), rgba(244, 63, 94, 0.3));
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fbcfe8;
}
.trait-pill.admin {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==========================================================================
   MODALS (CRYPTO CHECKOUT, AUTH, BALANCE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 2, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(179, 89, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}
.modal-close-btn {
  background: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(179, 89, 255, 0.2);
}

.crypto-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.crypto-chip {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.crypto-chip:hover, .crypto-chip.selected {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(179, 89, 255, 0.25);
}
.crypto-chip-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}
.crypto-chip-rate {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.crypto-order-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.crypto-amount-large {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.crypto-address-box {
  background: var(--bg-input);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: #e9d5ff;
  margin: 1rem 0;
  cursor: pointer;
}
.crypto-address-box:hover {
  background: #19092c;
}
.status-pill-polling {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e9d5ff;
  background: rgba(179, 89, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 5, 14, 0.95);
  padding: 3.5rem 1.5rem 2.5rem;
  color: var(--text-faint);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0f071a;
    border-bottom: 1px solid var(--border-hover);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-btn {
    display: flex;
  }
  .support-container {
    grid-template-columns: 1fr;
  }
  .support-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}
