/* ==========================================================================
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Dark Color Palette - Deep Atmospheric Backgrounds */
  --bg-body: #05050b;
  --bg-panel: #0b0b16;
  --bg-card: #121222;
  --bg-card-hover: #18182e;
  --bg-input: #080812;

  /* Glassmorphic Borders & Highlights */
  --border-panel: rgba(139, 92, 246, 0.15);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(168, 85, 247, 0.45);

  /* Harmony Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Refined Soft Purple/Indigo Accent Palette */
  --accent-purple: #9333ea;
  --accent-purple-light: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.25);
  
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);

  --accent-cyan: #38bdf8;
  --accent-green: #10b981;

  /* Radii */
  --radius-panel: 24px;
  --radius-card: 16px;
  --radius-btn: 12px;

  /* Ultra Smooth Motion Physics */
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple-light);
}

/* ==========================================================================
   3. GLOBAL BUTTONS & BADGES
   ========================================================================== */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px var(--accent-indigo-glow);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px var(--accent-purple-glow);
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--accent-purple-light);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.red,
.badge.purple { 
  background-color: rgba(168, 85, 247, 0.12); 
  border: 1px solid rgba(168, 85, 247, 0.4); 
  color: #d8b4fe; 
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  padding: 0 28px;
  background: rgba(11, 11, 22, 0.7);
  border: 1px solid var(--border-panel);
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple-light));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 0 48px 120px;
  background: var(--bg-body);
  overflow: hidden;
}

.hero-avatar-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 65vw;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center right, transparent 20%, var(--bg-body) 85%),
    linear-gradient(to right, var(--bg-body) 0%, rgba(5, 5, 11, 0.85) 35%, transparent 70%),
    linear-gradient(to top, var(--bg-body) 0%, transparent 25%),
    linear-gradient(to bottom, var(--bg-body) 0%, transparent 15%);
  pointer-events: none;
}

.hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.75;
  filter: contrast(1.05) saturate(1.1) brightness(0.85);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero:hover .hero-avatar-wrap img {
  transform: scale(1.02);
}

.hero-tag, 
.hero-title, 
.hero-sub, 
.hero-actions {
  position: relative;
  z-index: 5;
}

.hero-tag {
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple-light));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  color: #fff;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero-sub {
  max-width: 480px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

/* ==========================================================================
   6. BENTO SYSTEM & LAYOUT (ZWIĘKSZONE ODSTĘPY/SPACING)
   ========================================================================== */

.bento-layout {
  display: flex;
  flex-direction: column;
  gap: 40px; /* Zwiększony odstęp pionowy między dużymi sekcjami */
  width: 100%;
  max-width: 1350px;
  margin: 60px auto 120px; /* Zwiększony margines górny od sekcji Hero */
  padding: 0 24px;
}

.bento-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  overflow: visible !important;
  transition: var(--transition);
}

.panel-label {
  display: inline-block;
  margin: 0 auto 24px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--accent-purple-glow);
  border-radius: 8px;
  color: #d8b4fe;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.panel-title {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.title-dash {
  display: inline-block;
  width: 24px;
  height: 4px;
  margin-right: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple-light));
}

.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-panel);
}

.panel-desc {
  margin-top: 6px;
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-desc .highlight { 
  color: #fff; 
}

.header-right { 
  text-align: right; 
}

.total-label {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.total-val {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; /* Zwiększony odstęp poziomowy między kartami Partnerzy / Social Media / Kontakt */
  align-items: stretch;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bento-item {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.bento-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-purple-glow);
  transform: translateY(-4px) scale(1.01);
}

.row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.row-item .item-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px; 
  font-size: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

/* ==========================================================================
   7. SOCIAL NETWORKS (GLOW EFFECT DESIGN)
   ========================================================================== */

.social-twitch:hover   { border-color: rgba(169, 112, 255, 0.5); box-shadow: 0 10px 30px rgba(169, 112, 255, 0.2); }
.social-youtube:hover  { border-color: rgba(255, 59, 48, 0.5); box-shadow: 0 10px 30px rgba(255, 59, 48, 0.2); }
.social-instagram:hover{ border-color: rgba(225, 48, 108, 0.5); box-shadow: 0 10px 30px rgba(225, 48, 108, 0.2); }
.social-tiktok:hover   { border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15); }
.social-discord:hover  { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2); }

.social-twitch i    { color: #a970ff !important; }
.social-youtube i   { color: #ff3b30 !important; }
.social-instagram i { color: #e1306c !important; }
.social-tiktok i    { color: #ffffff !important; }
.social-discord i   { color: #5865f2 !important; }

.bento-item[class*="social-"]:hover .item-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px currentColor);
}

/* ==========================================================================
   8. INPUT & INTERACTIVE FIELDS
   ========================================================================== */

.input-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
}

.input-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-panel);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.input-item:hover .input-box {
  background: #0f0f20;
  border-color: var(--accent-purple-light);
}

.input-val {
  max-width: 85%;
  min-width: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.input-box i {
  color: var(--text-muted);
  transition: var(--transition);
}

.input-item:hover .input-box i {
  color: var(--accent-purple-light);
  transform: scale(1.1);
}

.copy-tooltip-inline {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--accent-green);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-active .copy-tooltip-inline {
  opacity: 1;
}

/* ==========================================================================
   9. GIVEAWAY MODULE
   ========================================================================== */

.gw-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  padding: 16px 16px 28px 16px !important;
  margin: -16px -16px -28px -16px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple-glow) transparent;
}

.gw-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 290px !important;
  width: 290px !important;
  min-width: 290px !important;
  max-width: 290px !important;
  min-height: 420px;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  transition: var(--transition);
}

.gw-card:hover {
  z-index: 10;
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px var(--accent-purple-glow);
  transform: translateY(-8px) scale(1.02);
}

.gw-badges {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gw-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 24px;
}

.gw-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
  transition: transform var(--transition);
}

.gw-card:hover .gw-img-wrap img {
  transform: scale(1.12);
}

.gw-skin-name {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.gw-skin-wear {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gw-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-panel);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.meta-row span { 
  color: var(--text-muted); 
  font-weight: 600; 
  white-space: nowrap; 
}

.meta-row strong { 
  color: var(--accent-cyan); 
  font-weight: 800; 
  text-align: right; 
}

.meta-row .highlight-pink { 
  color: var(--accent-purple-light); 
}

.gw-cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 290px !important;
  width: 290px !important;
  min-width: 290px !important;
  max-width: 290px !important;
  min-height: 420px;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px var(--accent-indigo-glow);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.gw-cta-card:hover {
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 45px var(--accent-purple-glow);
  filter: brightness(1.1);
  transform: translateY(-8px) scale(1.02);
}

/* ==========================================================================
   10. SYSTEM SPECIFICATIONS
   ========================================================================== */

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.spec-col {
  display: flex;
  flex-direction: column;
}

.col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title-icon-blue,
.title-icon-pink { 
  color: var(--accent-purple-light); 
  font-size: 1.15rem; 
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-panel);
  font-size: 0.88rem;
  transition: var(--transition);
}

.spec-row:hover {
  border-color: rgba(168, 85, 247, 0.35);
  padding-left: 6px;
}

.spec-row span { 
  color: var(--text-muted); 
  font-weight: 600; 
  white-space: nowrap; 
}

.spec-row strong { 
  color: #fff; 
  font-weight: 700; 
  text-align: right; 
}

/* ==========================================================================
   11. GAME SETTINGS & DATA STRIPS
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.02);
}

.stat-box span {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-box strong {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-box .orange-text { 
  color: var(--accent-cyan); 
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-box .green-text { 
  color: var(--accent-green); 
  font-family: monospace; 
}

.code-box .blue-text {
  display: block;
  max-width: 85%;
  color: var(--accent-cyan);
  font-family: monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.settings-bento {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.tabs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  flex-shrink: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn i {
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateX(6px);
}

.tab-btn:hover i {
  color: var(--accent-purple-light);
}

.tab-btn.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-color: var(--accent-purple-light);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.tab-btn.active i {
  color: #d8b4fe;
}

.tabs-content {
  flex-grow: 1;
  min-width: 0;
  padding: 36px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-panel.active {
  display: block;
}

/* ==========================================================================
   12. FOOTER AREA
   ========================================================================== */

footer {
  margin-top: auto;
  padding: 60px 24px;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border-panel);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-legal {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-warning {
  margin-bottom: 10px;
  color: #f87171;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   13. PRELOADER
   ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--bg-body);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  position: relative;
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top-color: var(--accent-purple-light);
  border-bottom-color: var(--accent-indigo);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent-purple-glow);
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 3px solid transparent;
  border-left-color: var(--accent-cyan);
  border-right-color: var(--accent-purple-light);
  border-radius: 50%;
  animation: spin-reverse 0.8s linear infinite;
}

/* ==========================================================================
   14. KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(16px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  100% { transform: rotate(-360deg); }
}

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .bento-top-row { grid-template-columns: 1fr; gap: 24px; }
  .specs-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .code-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .settings-bento { 
    flex-direction: column; 
    width: 100%;
    min-width: 0;
  }
  
  .tabs-sidebar {
    flex-direction: row;
    width: 100%;
    padding-bottom: 10px;
    overflow-x: auto;
  }
  
  .tab-btn { 
    white-space: nowrap; 
  }
  
  .tab-btn:hover { 
    transform: translateY(-2px); 
  }

  .nav-container {
    display: flex; 
    padding: 0;
    overflow: hidden;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 64px;
    padding: 0 24px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    display: block;
    white-space: nowrap;
  }

  .tabs-content, 
  .bento-panel {
    width: 100%;
    min-width: 0;       
    padding: 24px 20px; 
  }

  .input-item {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-header-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-right { text-align: left; }
  #hero { padding: 0 24px 80px; }
  .hero-title { font-size: 80px; }
  
  .hero-avatar-wrap {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 55vh;
  }

  .hero-avatar-wrap img {
    object-position: center 30%;
    opacity: 0.6;
  }
}