/**
 * TopToPlay Games - CloudArcade Modern Arcade Theme
 * Ultra-Premium Dark Arcade UI/UX
 */

:root {
  --bg-main: #060913;
  --bg-card: #0A1020;
  --bg-card-hover: #101932;
  --bg-header: rgba(6, 9, 19, 0.85);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.6);
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --accent-pink: #EC4899;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-blue: #3B82F6;
  --text-main: #FFFFFF;
  --text-muted: #8E9EB5;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================= HEADER & NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.text-accent {
  color: var(--primary);
}

.badge-sub {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #C4B5FD;
}

.header-search {
  flex: 1;
  max-width: 520px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 42px 10px 40px;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.search-btn {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

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

.btn-random, .btn-main-site {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-random:hover, .btn-main-site:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Category Strip */
.category-strip {
  background: rgba(10, 16, 32, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 1.25rem;
}

.cat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ================= HERO SPOTLIGHT ================= */
.hero-spotlight {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.spotlight-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  gap: 2rem;
  background: #080D1C;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(25px);
  transform: scale(1.1);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.15), transparent 70%),
              linear-gradient(to right, #060913 40%, rgba(6, 9, 19, 0.7) 100%);
}

.spotlight-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-featured {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  border-radius: var(--radius-sm);
}

.badge-cat {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #E2E8F0;
  text-transform: uppercase;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.spotlight-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.spotlight-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-weight: 800;
  font-size: 1rem;
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

.btn-play-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
  transition: var(--transition);
}

.btn-play-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #9333EA, #7C3AED);
}

.spotlight-thumb-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 992px) {
  .spotlight-thumb-wrap {
    display: block;
  }
}

.spotlight-thumb {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
  transition: var(--transition);
}

.spotlight-card:hover .spotlight-thumb {
  transform: rotate(0deg) scale(1.03);
}

/* ================= GAME GRIDS & CARDS ================= */
.section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.section-subtitle, .section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #080D1C;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .card-thumb {
  transform: scale(1.08);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .card-hover-overlay {
  opacity: 1;
}

.hover-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
  transform: scale(0.8);
  transition: var(--transition);
}

.game-card:hover .hover-play-btn {
  transform: scale(1);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.badge-trending {
  background: rgba(239, 68, 68, 0.8);
  color: #fff;
}

.badge-editor {
  background: rgba(245, 158, 11, 0.85);
  color: #fff;
}

.card-info {
  padding: 0.85rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-cat {
  text-transform: capitalize;
}

.card-rating {
  color: #FBBF24;
  font-weight: 700;
}

/* ================= GAME PLAYER PAGE ================= */
.player-page-container {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.crumb-separator {
  opacity: 0.5;
}

.crumb-active {
  color: #fff;
  font-weight: 700;
}

.game-stage-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
  transition: var(--transition);
}

/* Theater Mode Styles */
.game-stage-wrapper.theater-mode {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* Cinema / Lights Off Backdrop */
.cinema-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 80;
  display: none;
}

.cinema-mode-active .cinema-backdrop {
  display: block;
}

.cinema-mode-active .game-stage-wrapper {
  position: relative;
  z-index: 90;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.3);
}

.player-container {
  position: relative;
  width: 100%;
  background: #050811;
  overflow: hidden;
}

.aspect-16\\:9 {
  aspect-ratio: 16 / 9;
}

.aspect-4\\:3 {
  aspect-ratio: 4 / 3;
}

.aspect-1\\:1 {
  aspect-ratio: 1 / 1;
}

/* Splash Screen Before Starting Game */
.player-splash {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(12px);
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.splash-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-start-game {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
  transition: var(--transition);
}

.btn-start-game:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.8);
}

.game-frame-wrap {
  width: 100%;
  height: 100%;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Player Toolbar */
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.25rem;
  background: #080C18;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

.game-mini-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.game-mini-cat {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-tool-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-tool-primary:hover {
  background: var(--primary-hover);
}

.vote-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Game Details Layout */
.game-details-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

@media (max-width: 992px) {
  .game-details-layout {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
}

.game-page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.game-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge-cat-lg {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}

.badge-dev, .badge-rating, .badge-plays {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.controls-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.controls-heading, .desc-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.controls-text, .desc-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tag-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: var(--transition);
}

.tag-pill:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
  border-color: var(--primary);
}

/* Sidebar More Like This */
.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.sidebar-games-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: var(--transition);
}

.sidebar-game-item:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.5);
  background: var(--bg-card-hover);
}

.sidebar-game-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-game-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.sidebar-game-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ================= CATEGORY HEADER BANNER ================= */
.category-header-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(10, 16, 32, 0.8));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.cat-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.cat-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 650px;
}

.cat-counter-badge {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}

.count-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.count-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* SEO Content Box */
.seo-content-section {
  padding: 3rem 0;
}

.seo-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.seo-box h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.seo-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ================= MODALS & TOASTS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.btn-share {
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.btn-share.whatsapp { background: #25D366; }
.btn-share.twitter { background: #1DA1F2; }
.btn-share.facebook { background: #1877F2; }

.copy-link-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-link-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #fff;
}

.btn-copy {
  padding: 8px 16px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ================= FOOTER ================= */
.site-footer {
  margin-top: auto;
  background: #04060C;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-safe {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-muted);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}
