/* ==========================================================================
   ZSC (Z SCUM) - APPLE iOS / visionOS LIQUID GLASS DESIGN SYSTEM
   Typography: Be Vietnam Pro (100% Native Vietnamese Typography)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  color-scheme: dark;
  /* Vietnamese Native Typography */
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;

  /* Apple iOS Glass Material System */
  --bg-deep: #07090e;
  --bg-glass-ultra: rgba(255, 255, 255, 0.05);
  --bg-glass-card: rgba(18, 22, 34, 0.48);
  --bg-glass-card-hover: rgba(26, 32, 50, 0.65);
  --bg-glass-pill: rgba(255, 255, 255, 0.07);
  --bg-glass-input: rgba(10, 13, 22, 0.65);
  --bg-glass-popover: rgba(15, 18, 28, 0.88);

  /* iOS Specular Glass Borders */
  --border-hairline: rgba(255, 255, 255, 0.14);
  --border-specular: rgba(255, 255, 255, 0.28);
  --border-focus: rgba(239, 68, 68, 0.6);
  --border-cyan: rgba(56, 189, 248, 0.5);

  /* ZSC Brand Palette: Crimson Red (Z) + Crystal Silver (SC) + Neon Accents */
  --zsc-crimson: #ef4444;
  --zsc-crimson-light: #f87171;
  --zsc-crimson-dark: #dc2626;
  --zsc-crimson-glow: rgba(239, 68, 68, 0.35);

  --zsc-silver: #f1f5f9;
  --zsc-cyan: #38bdf8;
  --zsc-emerald: #10b981;
  --zsc-amber: #f59e0b;

  /* Gradients */
  --grad-zsc-red: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --grad-zsc-flame: linear-gradient(135deg, #f87171 0%, #ef4444 40%, #991b1b 100%);
  --grad-silver-glow: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  --grad-ios-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-dim: #475569;

  /* iOS Physics Shadows & Depth */
  --shadow-ios-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-ios-card: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-ios-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --shadow-inset-top: inset 0 1px 1px 0 rgba(255, 255, 255, 0.32);
  --shadow-inset-bottom: inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
  --shadow-crimson-glow: 0 0 35px rgba(239, 68, 68, 0.35);

  /* iOS Squircles */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   PERFECT LIQUID GLASS SCROLLBAR SYSTEM (Eliminates default gray Windows scrollbar)
   ========================================================================== */
html, body {
  color-scheme: dark !important;
  background-color: #07090e;
}

/* Hide native Windows 98 arrow buttons completely */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Chrome, Chromium, Edge, Safari Custom Frosted Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #07090e !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  border: 2px solid #07090e !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8) !important;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
  background: #f87171 !important;
}

::-webkit-scrollbar-corner {
  background: #07090e !important;
}

/* Firefox standard scrollbar fallback */
@supports not selector(::-webkit-scrollbar) {
  html, body, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) #07090e;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ambient Fluid Liquid Wallpaper (Apple Mesh Inspired) */
.liquid-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-crimson {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.32) 0%, rgba(185, 28, 28, 0.12) 40%, transparent 70%);
  top: -200px;
  left: 20%;
  animation-duration: 28s;
}

.orb-ice {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(30, 58, 138, 0.1) 50%, transparent 70%);
  bottom: -200px;
  right: 5%;
  animation-duration: 32s;
  animation-delay: -8s;
}

.orb-deep {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.18) 0%, transparent 70%);
  top: 35%;
  left: -150px;
  animation-duration: 24s;
  animation-delay: -14s;
}

.liquid-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(80px, 60px) scale(1.15) rotate(90deg); }
  100% { transform: translate(-60px, -40px) scale(0.92) rotate(180deg); }
}

/* Master Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* SVG Icon Helper Utility */
.svg-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.svg-icon-lg {
  width: 26px;
  height: 26px;
}

.svg-icon-xl {
  width: 36px;
  height: 36px;
}

/* Apple iOS Glass Navigation Header */
.glass-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin: 0 auto;
  width: calc(100% - 32px);
  max-width: 1360px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 30, 0.78);
  backdrop-filter: blur(45px) saturate(210%);
  -webkit-backdrop-filter: blur(45px) saturate(210%);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-ios-card), var(--shadow-inset-top);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-container {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding-left: 4px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.45));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-container:hover .brand-logo-img {
  transform: scale(1.08) rotate(4deg);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.brand-title .red-accent {
  color: var(--zsc-crimson);
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.brand-subtitle {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* iOS Segmented Control Navigation with Animate UI Sliding Indicator */
.ios-segmented-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  flex-shrink: 1;
  min-width: 0;
}

.animate-ui-tab-slider {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), var(--shadow-inset-top);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.nav-tab-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  flex: 1 0 auto;
  justify-content: center;
}

.nav-tab-btn .svg-icon {
  width: 16px;
  height: 16px;
}

.nav-tab-btn:hover {
  color: #fff;
}

.nav-tab-btn.active {
  color: #fff;
  font-weight: 700;
  background: transparent;
}

.nav-tab-btn.active .svg-icon {
  stroke: var(--zsc-crimson-light);
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.6));
}

/* Header User Profile & Quick Actions */
.header-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn-glass {
  padding: 7px 14px;
  font-size: 12.5px;
  gap: 6px;
}

.header-actions .btn-glass .svg-icon,
.header-actions .btn-glass .svg-steam {
  width: 15px;
  height: 15px;
}

.user-glass-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  padding: 4px 14px 4px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-inset-top);
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.header-actions > div { min-width: 0; max-width: 100%; }
#headerUserName { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-glass-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--zsc-crimson);
  object-fit: cover;
  flex-shrink: 0;
}

.user-balance-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

/* iOS Glass Buttons */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-ios-sm), var(--shadow-inset-top);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}

.btn-glass > span { min-width: 0; }
.btn-glass > svg, .btn-glass > img { flex-shrink: 0; }

.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-ios-card), var(--shadow-inset-top);
}

.btn-glass:active {
  transform: scale(0.97);
}

.btn-glass-primary {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.35) 100%);
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.28), var(--shadow-inset-top);
  outline: none;
}

.btn-glass-primary:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.65) 0%, rgba(185, 28, 28, 0.55) 100%);
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 6px 26px rgba(239, 68, 68, 0.38), var(--shadow-inset-top);
}

.btn-glass-primary:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.6);
  outline-offset: 2px;
}

.btn-glass-pill {
  border-radius: var(--radius-pill);
}

.btn-glass-subtle {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Glass Panels & Containers */
.glass-panel {
  min-width: 0;
  background: var(--bg-glass-card);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ios-card), var(--shadow-inset-top);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* Hero Section */
.hero-section {
  max-width: 1340px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.hero-banner {
  padding: 48px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(14, 18, 30, 0.88) 0%, rgba(8, 10, 18, 0.94) 100%),
    url('../assets/scum_island.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-ios-card), var(--shadow-inset-top);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--zsc-crimson-light);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zsc-emerald);
  box-shadow: 0 0 12px var(--zsc-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.65); }
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
  color: #fff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Server Status Card inside Hero */
.server-status-glass-card {
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), var(--shadow-inset-top);
  position: relative;
}

.status-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.status-server-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--zsc-emerald);
}

.ip-copy-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ip-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ip-address-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.btn-copy-ip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-copy-ip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.status-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.metric-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.metric-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.raid-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.raid-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zsc-crimson-light);
  flex-shrink: 0;
}

.raid-text-title {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
}

.raid-text-desc {
  font-size: 11.5px;
  color: rgba(252, 165, 165, 0.8);
}

/* Feature Showcase Grid */
.section-container {
  max-width: 1340px;
  margin: 50px auto 0;
  padding: 0 16px;
}

.section-header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-subtitle {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--zsc-crimson-light);
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #fff;
}

/* Launcher Showcase Panel */
.launcher-showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.launcher-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--zsc-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.feature-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Launcher Window Mockup */
.launcher-preview-box {
  background: rgba(6, 9, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(239, 68, 68, 0.15);
}

.window-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-title {
  margin-left: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

/* Shop Filter Chips (iOS Segmented Pills) */
.shop-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-chip {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), var(--shadow-inset-top);
}

.filter-chip.active .svg-icon {
  stroke: var(--zsc-crimson-light);
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 22px;
}

.shop-card {
  background: rgba(12, 16, 28, 0.55);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(239, 68, 68, 0.15);
}

.shop-card-badge {
  align-self: flex-end;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 2;
}

.badge-legendary {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.badge-epic {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.badge-rare {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.shop-card-icon-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zsc-crimson-light);
  margin-bottom: 16px;
  padding: 12px;
  box-shadow: var(--shadow-inset-top);
  overflow: hidden;
}

.shop-item-img {
  max-width: 90%;
  max-height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-card:hover .shop-item-img {
  transform: scale(1.07);
}

.shop-card-name {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.shop-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.shop-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.shop-card-price {
  font-size: 19px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Daily Streak Panel */
.daily-streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.streak-day-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.streak-day-card.claimed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.streak-day-card.today {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  transform: scale(1.04);
}

.streak-day-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.streak-icon-box {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.streak-reward-amount {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

/* Leaderboards */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.leaderboard-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.leaderboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
  font-weight: 900;
  font-size: 16px;
}

/* Topup Plan Selection Cards */
.topup-plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.topup-plan-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.topup-plan-card.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.22);
}

/* Modals */
.glass-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.glass-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal-card {
  min-width: 0;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: rgba(14, 18, 30, 0.92);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-ios-lg), var(--shadow-inset-top);
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-modal-overlay.active .glass-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-title {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.modal-title > span { min-width: 0; }
.modal-title > svg, .modal-title > img { flex-shrink: 0; }
.modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.modal-actions > .btn-glass { width: 100%; min-height: 44px; }
#modalLinkLauncher .modal-actions { grid-template-columns: auto minmax(0, 1fr); }

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Glass Form Inputs */
.glass-input-group {
  margin-bottom: 18px;
}

.glass-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.glass-input, .glass-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-input);
  border: 1px solid var(--border-hairline);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.glass-select option {
  background-color: #0f131f;
  color: #f8fafc;
}

.glass-input:focus, .glass-select:focus {
  border-color: var(--zsc-crimson);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

code {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 6px;
  color: #f8fafc;
}

/* Toast Notifications */
.toast-container {
  max-width: calc(100vw - 32px);
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glass-toast {
  max-width: 100%;
  overflow-wrap: anywhere;
  background: rgba(14, 18, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-ios-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.glass-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 16, 0.7);
  backdrop-filter: blur(25px);
  padding: 44px 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13.5px;
}

.footer-content {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Responsive Media Queries */
@media (max-width: 1260px) {
  .glass-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }
  .launcher-showcase-panel {
    grid-template-columns: 1fr;
  }
  .daily-streak-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .glass-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .brand-container { grid-column: 1; grid-row: 1; justify-self: center; }
  .header-actions { grid-column: 1; grid-row: 2; justify-self: stretch; justify-content: center; }
  .ios-segmented-nav {
    grid-column: 1;
    grid-row: 3;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-tab-btn { flex-grow: 0; }
  .hero-title {
    font-size: 32px;
  }
  .daily-streak-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .hero-banner { padding: 24px 18px; gap: 24px; }
  .server-status-glass-card { padding: 18px; }
  .glass-modal-overlay { padding: 12px; }
  .glass-modal-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .modal-actions, #modalLinkLauncher .modal-actions { grid-template-columns: minmax(0, 1fr); }
  .modal-title { font-size: 17px; }
  .shop-card { padding: 18px; }
  .topup-plan-card { padding: 14px; }
  .ip-copy-box { flex-wrap: wrap; gap: 12px; }
  .ip-address-text { font-size: 18px; overflow-wrap: anywhere; }
  .toast-container { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   ANIMATE UI COMPONENT ENHANCEMENTS
   ========================================================================== */

/* 1. Gravity Stars Canvas */
.gravity-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 2. 3D Tilt Card Container & Specular Glare Overlay */
.server-status-glass-card,
.shop-card,
.streak-day-card,
.glass-feature-card {
  will-change: transform;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.animate-ui-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: overlay;
  z-index: 5;
}

/* 3. Animate UI Water Ripple Effect */
.animate-ui-ripple {
  position: absolute !important;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(239, 68, 68, 0.12) 50%, transparent 70%);
  animation: rippleSpread 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none !important;
  z-index: 20;
}

@keyframes rippleSpread {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* 4. Animate UI Liquid Button Wave Fill */
.btn-glass {
  position: relative;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(239, 68, 68, 0.25) 100%);
  transform: translateY(102%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.btn-glass:hover::before {
  transform: translateY(0%);
}

.btn-glass-primary::before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.75) 0%, rgba(185, 28, 28, 0.9) 100%);
}

.btn-glass > *:not(.animate-ui-ripple) {
  position: relative;
  z-index: 1;
}

/* 5. Animate UI Specular Shine Gleam */
.animate-ui-shine {
  position: relative;
  overflow: hidden;
}

.animate-ui-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 80%,
    transparent 100%
  );
  transform: rotate(-25deg);
  pointer-events: none;
  animation: shineSweep 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

@keyframes shineSweep {
  0% { left: -150%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

/* 6. Typing Ticker Cursor */
.ticker-cursor {
  display: inline-block;
  margin-left: 4px;
  width: 2px;
  height: 14px;
  background: var(--zsc-crimson-light);
  box-shadow: 0 0 8px var(--zsc-crimson);
  vertical-align: middle;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 7. Steam Login Official Buttons & Modals */
.btn-steam-login {
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%) !important;
  border: 1px solid rgba(102, 192, 244, 0.45) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.btn-steam-login:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 50%, #171a21 100%) !important;
  color: #ffffff !important;
  border-color: #66c0f4 !important;
  box-shadow: 0 0 25px rgba(102, 192, 244, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
}

.svg-steam {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* 8. SCUM Gameplay Showcase Banners */
.scum-media-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-ios-card);
  margin-bottom: 28px;
}

.scum-media-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.scum-media-banner:hover .scum-media-img {
  transform: scale(1.03);
}

.scum-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.15) 0%, rgba(8, 10, 18, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 30px;
}

.scum-media-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.scum-media-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 650px;
}
