/* ==========================================================================
   ORBIT — curated apps & games
   Design tokens
   ========================================================================== */

:root{
  --bg-base:      #090b16;
  --bg-elevated:  #0c0f1e;
  --bg-panel:     #11142399;
  --bg-card:      #141833;
  --bg-card-hi:   #191d3c;
  --border:       #262b4d;
  --border-soft:  #1c2040;

  --text-primary: #edf0fb;
  --text-muted:   #8a90b3;
  --text-faint:   #565c82;

  --violet:   #8b6bff;
  --violet-2: #5b3df0;
  --cyan:     #34e5d0;
  --gold:     #f5b942;
  --coral:    #ff6f6f;

  --grad-aurora: linear-gradient(135deg, var(--violet) 0%, #4f7fff 45%, var(--cyan) 100%);
  --grad-gold:   linear-gradient(135deg, #ffd27a 0%, var(--gold) 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: "Unbounded", "Sora", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --sidebar-w: 240px;
}

/* ==========================================================================
   Light theme (opt-in via html[data-theme="light"], set by the
   sidebar toggle — only shown when enabled in Admin → Settings)
   ========================================================================== */
html[data-theme="light"]{
  --bg-base:      #f5f6fb;
  --bg-elevated:  #ffffff;
  --bg-panel:     #eef0f8;
  --bg-card:      #ffffff;
  --bg-card-hi:   #f7f8fd;
  --border:       #e1e4f0;
  --border-soft:  #ebeef8;

  --text-primary: #171a2b;
  --text-muted:   #5b6178;
  --text-faint:   #9195ab;

  --violet:   #6d4fe0;
  --violet-2: #4c33b8;
  --cyan:     #0f9488;
  --gold:     #b8860b;
  --coral:    #d9534f;
}
html[data-theme="light"] body::before{ opacity: 0; } /* starfield only makes sense on dark */
html[data-theme="light"] .card:hover{ box-shadow: 0 12px 30px -18px #00000022; }
html[data-theme="light"] .get-modal-overlay{ background: #00000055; }

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* subtle starfield texture on the base background */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #ffffff22 0, transparent 60%),
    radial-gradient(1px 1px at 78% 8%, #ffffff1a 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 68%, #ffffff20 0, transparent 60%),
    radial-gradient(1px 1px at 91% 44%, #ffffff17 0, transparent 60%),
    radial-gradient(1px 1px at 58% 82%, #ffffff1c 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 90%, #ffffff18 0, transparent 60%);
  background-repeat: no-repeat;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
img{ max-width: 100%; display: block; }

::selection{ background: var(--violet); color: #fff; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono{ font-family: var(--font-mono); }

/* ==========================================================================
   Layout shell
   ========================================================================== */

.shell{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---- Sidebar ---- */

.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  border-right: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 28px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.brand-mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-aurora);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after{
  content: "";
  position: absolute;
  border: 1px solid #ffffff70;
  border-radius: 50%;
}
.brand-mark::before{ inset: 6px; }
.brand-mark::after{ width: 4px; height: 4px; background: #fff; border-radius: 50%; top: 5px; left: 15px; border: none; }

.brand-mark-img{
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{ font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub{ font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--text-faint); text-transform: uppercase; margin-top: 3px; }

.nav{ display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }

.nav-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-link svg{ width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.nav-link:hover{ background: var(--bg-card); color: var(--text-primary); }
.nav-link.active{
  color: #fff;
  background: linear-gradient(90deg, #8b6bff26, transparent);
  border-left: 2px solid var(--violet);
  padding-left: 10px;
}

.sidebar-footer{ margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.theme-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.theme-toggle-label{ display: flex; align-items: center; gap: 8px; }
.theme-toggle-label svg{ width: 15px; height: 15px; }
.theme-toggle-switch{
  position: relative;
  width: 36px; height: 20px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
}
.theme-toggle-switch::after{
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
html[data-theme="light"] .theme-toggle-switch{ background: var(--grad-aurora); }
html[data-theme="light"] .theme-toggle-switch::after{ transform: translateX(16px); }

.orbit-mini{
  width: 100%;
  aspect-ratio: 1;
  max-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .5;
}

.community-box{
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
}
.community-eyebrow{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.community-cta{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}
.community-cta svg{ width: 15px; height: 15px; }
.community-cta-icon{ width: 15px; height: 15px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

.social-row{ display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 14px; }
.social-icon{
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  overflow: hidden;
  transition: all .15s ease;
}
.social-icon svg{ width: 14px; height: 14px; flex-shrink: 0; }
.social-icon img{ width: 30px; height: 30px; object-fit: cover; display: block; }
.social-icon:hover{ border-color: var(--violet); color: var(--text-primary); }

/* ---- Main column ---- */

.main{ min-width: 0; padding: 40px 44px 80px; position: relative; }

.topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.search-bar{
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-faint);
}
.search-bar svg{ width: 16px; height: 16px; flex-shrink: 0; }
.search-bar input{
  border: none;
  background: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13.5px;
  width: 100%;
  font-family: var(--font-body);
}
.search-bar input::placeholder{ color: var(--text-faint); }

.page-kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ==========================================================================
   Hero (home page) — orbit signature element
   ========================================================================== */

.hero{
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: radial-gradient(120% 140% at 12% 15%, var(--bg-card-hi) 0%, var(--bg-base) 62%);
  padding: 56px 48px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.orbit-rings{
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  opacity: .9;
}
.orbit-rings .ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #6d74b024;
}
.orbit-rings .ring--1{ inset: 60px; border-color: #8b6bff2e; animation: spin 46s linear infinite; }
.orbit-rings .ring--2{ inset: 140px; border-color: #34e5d02b; animation: spin 34s linear infinite reverse; }
.orbit-rings .ring--3{ inset: 0px; animation: spin 70s linear infinite; }
.orbit-rings .dot{
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-aurora);
  box-shadow: 0 0 14px 2px #8b6bff88;
}
.orbit-rings .ring--1 .dot{ top: -4px; left: 50%; }
.orbit-rings .ring--2 .dot{ bottom: -4px; left: 30%; background: var(--cyan); box-shadow: 0 0 14px 2px #34e5d088; }

@keyframes spin{ to{ transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .orbit-rings .ring{ animation: none !important; }
}

.hero-copy{ position: relative; z-index: 1; }

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero-eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px #34e5d0aa;
}

.hero h1{
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero h1 span{
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p{
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions{ display: flex; gap: 12px; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--grad-aurora);
  color: #0a0b14;
}
.btn-primary:hover{ box-shadow: 0 8px 24px -8px #8b6bff77; }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover{ border-color: var(--violet); background: #8b6bff14; }

/* spotlight card floating in hero — cover art + overlapping icon badge */

.spotlight{
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px #000000aa;
}

.spotlight-cover{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
}
.spotlight-cover-bg{
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.4) brightness(.85);
  opacity: .75;
}
.spotlight-cover-img{ position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-cover-fallback-icon{
  position: relative;
  z-index: 1;
  width: 30%;
  aspect-ratio: 1;
  min-width: 64px;
  max-width: 120px;
  border-radius: 20%;
  object-fit: cover;
  box-shadow: 0 18px 40px -14px #000000cc;
}

.spotlight-icon-badge{
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: -20px;
  width: 48px; height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  box-shadow: 0 10px 22px -10px #000000cc;
  background: var(--bg-panel);
}
.spotlight-icon-badge img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.spotlight-body{ padding: 26px 22px 22px; }

.spotlight-top{ display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }

.spotlight-name{ font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.spotlight-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}

.spotlight-desc{ color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; }

.spotlight-foot{ display: flex; align-items: center; justify-content: space-between; }

.rating{ display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.rating svg{ width: 13px; height: 13px; fill: var(--gold); }

.spotlight-dots{ display: flex; gap: 6px; margin-top: 18px; justify-content: center; }
.spotlight-dots .dot{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border);
  transition: background .2s ease, width .2s ease;
}
.spotlight-dots .dot.active{ background: var(--cyan); width: 16px; border-radius: 3px; }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section{ margin-bottom: 54px; }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-eyebrow{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 4px;
}

.section-title{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.section-link{ font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.section-link:hover{ color: var(--cyan); }

/* ==========================================================================
   Trending strip
   ========================================================================== */

.trending-strip{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: thin;
}
.trending-strip::-webkit-scrollbar{ height: 5px; }
.trending-strip::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 4px; }

.trend-item{
  flex-shrink: 0;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.trend-ring{
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.trend-item:hover .trend-ring{ border-color: var(--violet); transform: translateY(-3px); }

.trend-icon{
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-panel);
}
.trend-icon svg{ width: 32px; height: 32px; }
.trend-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.trend-label{ font-size: 13px; font-weight: 600; color: var(--text-primary); }
.trend-type{ font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint); letter-spacing: .06em; }

/* ==========================================================================
   Filter pills (apps.html / games.html)
   ========================================================================== */

.filter-row{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-pill{
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s ease;
}
.filter-pill:hover{ color: var(--text-primary); border-color: var(--violet); }
.filter-pill.active{
  color: #0a0b14;
  background: var(--grad-aurora);
  border-color: transparent;
}

/* ==========================================================================
   Cards grid
   ========================================================================== */

.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card{
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: #4c4f8a;
  background: var(--bg-card-hi);
}

/* ---- cover art: real cover image if set, otherwise a blurred
       backdrop built from the icon itself, so every card looks
       finished even before a dedicated cover is uploaded ---- */
.card-cover{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  flex-shrink: 0;
}
.card-cover-bg{
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.4) brightness(.85);
  opacity: .75;
}
.card-cover-img{ position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover-fallback-icon{
  position: relative;
  z-index: 1;
  width: 30%;
  aspect-ratio: 1;
  min-width: 56px;
  max-width: 96px;
  border-radius: 20%;
  object-fit: cover;
  box-shadow: 0 16px 36px -12px #000000cc;
}

.card-icon-badge{
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: -18px;
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  box-shadow: 0 8px 18px -8px #000000cc;
  background: var(--bg-panel);
}
.card-icon-badge img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.card-badge{
  position: absolute;
  z-index: 2;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #ffffff2a;
  color: #fff;
  background: #00000055;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 60px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-fav-btn{
  position: absolute;
  z-index: 2;
  top: 10px; left: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ffffff2a;
  color: #fff;
  background: #00000055;
  backdrop-filter: blur(6px);
  transition: transform .12s ease, background .15s ease;
}
.card-fav-btn svg{ width: 15px; height: 15px; transition: fill .15s ease; }
.card-fav-btn:hover{ transform: scale(1.08); }
.card-fav-btn.active svg{ fill: var(--coral); stroke: var(--coral); }
.card-fav-btn.active{ background: #00000070; }

.card-body{
  padding: 20px;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-name{ font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.card-desc{ color: var(--text-muted); font-size: 12.5px; margin: 0 0 16px; flex: 1; }

.card-tag{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.card-foot{ display: flex; align-items: center; justify-content: space-between; }

.btn-get{
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all .15s ease;
}
.btn-get:hover{ background: var(--grad-aurora); color: #0a0b14; border-color: transparent; }

/* empty state (search yields nothing) */
.empty-state{
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.empty-state.show{ display: block; }

/* ==========================================================================
   "Get" confirmation modal
   ========================================================================== */

.get-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05060dcc;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 20px;
}
.get-modal-overlay.show{ opacity: 1; pointer-events: auto; }

.get-modal{
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 40px 80px -30px #000000cc;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.get-modal-overlay.show .get-modal{ transform: translateY(0) scale(1); }

.get-modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.get-modal-close svg{ width: 14px; height: 14px; }
.get-modal-close:hover{ color: var(--text-primary); border-color: var(--violet); }

.get-modal-top{ display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding-right: 20px; }

.get-modal-icon{
  width: 52px; height: 52px;
  border-radius: 15px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg-panel);
}
.get-modal-icon svg{ width: 26px; height: 26px; }
.get-modal-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.get-modal-name{ font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.get-modal-tag{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}

.get-modal-desc{ color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }

.get-modal-actions{ display: flex; gap: 10px; }
.get-modal-actions .btn{ flex: 1; justify-content: center; }
.get-modal-actions .btn:disabled{ opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---- step progress dots ---- */
.get-modal-dots{ display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.step-dot{ width: 5px; height: 5px; border-radius: 50%; background: var(--border); transition: background .2s ease, width .2s ease; }
.step-dot.active{ background: var(--cyan); width: 16px; border-radius: 3px; }

/* ---- step 2: platform selector ---- */
.get-modal-label{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin: 0 0 10px;
}
.optional-tag{ text-transform: none; letter-spacing: 0; color: var(--text-faint); opacity: .8; }

.platform-row{ display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 20px; }

.platform-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s ease;
}
.platform-btn svg{ width: 24px; height: 24px; }
.platform-btn img{ width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.platform-btn:hover{ border-color: var(--violet); color: var(--text-primary); }
.platform-btn.selected{
  border-color: var(--cyan);
  color: var(--text-primary);
  background: #34e5d014;
  box-shadow: 0 0 0 1px var(--cyan) inset;
}

.get-modal-input{
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s ease;
}
.get-modal-input::placeholder{ color: var(--text-faint); }
.get-modal-input:focus{ border-color: var(--violet); }

.checkbox-row{
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"]{
  width: 16px; height: 16px;
  accent-color: var(--violet);
  flex-shrink: 0;
}

/* ---- step 3: confirmation ---- */
.confirm-badge{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34e5d033, #34e5d00f);
  border: 1px solid #34e5d055;
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.confirm-badge svg{ width: 22px; height: 22px; }

.confirm-title{
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}
.get-modal-step[data-step-panel="3"] .get-modal-desc{ text-align: center; }

/* ==========================================================================
   Advertisement slots
   ========================================================================== */

.ad-slot{
  position: relative;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 40px;
  background: var(--bg-card);
}
.ad-slot-label{
  position: absolute;
  top: -9px;
  left: 16px;
  background: var(--bg-base);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ad-slot-body{ display: flex; align-items: center; justify-content: center; }
.ad-slot-body img{ max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.ad-slot-body a{ display: block; }

/* smaller, tighter variant inside the Get modal */
.get-modal .ad-slot{ margin: 0 0 20px; padding: 12px; }
.get-modal .ad-slot-label{ background: var(--bg-card); }

/* ==========================================================================
   Bottom-center popup notification
   ========================================================================== */

.activity-toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: calc(100vw - 40px);
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -20px #000000cc;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.activity-toast.show{ opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.activity-toast.is-link{ cursor: pointer; }
.activity-toast.is-link:hover{ border-color: var(--violet); }

.activity-icon{
  width: 38px; height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-panel);
  color: var(--text-muted);
}
.activity-icon img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-icon svg{ color: var(--violet); }

.activity-body{ min-width: 0; flex: 1; text-align: left; }
.activity-name{
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-check{ width: 13px; height: 13px; color: var(--cyan); flex-shrink: 0; }
.activity-message{ margin: 0; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 540px){
  .activity-toast{ bottom: 12px; width: calc(100vw - 24px); }
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card{
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.blog-card:hover{ transform: translateY(-4px); border-color: #4c4f8a; }

.blog-cover{ width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--bg-panel); }

.blog-card-body{ padding: 18px 20px 22px; }

.blog-date{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
}

.blog-title{ font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; }
.blog-excerpt{ color: var(--text-muted); font-size: 13px; margin: 0; }

.blog-post-cover{ width: 100%; border-radius: var(--radius-lg); margin-bottom: 30px; border: 1px solid var(--border-soft); }

.blog-post-title{ font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 0 0 12px; max-width: 26ch; }

.blog-post-body{ max-width: 68ch; color: var(--text-primary); font-size: 15.5px; line-height: 1.8; }
.blog-post-body p{ margin: 0 0 20px; }

.blog-empty{ color: var(--text-muted); font-size: 14px; padding: 40px 0; }

@media (max-width: 1180px){
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
  .blog-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
}

/* ==========================================================================
   Mobile top bar / slide-in drawer / search overlay
   (hidden on desktop; shown only under the 860px breakpoint below)
   ========================================================================== */

.mobile-topbar{
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 220;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-topbar-btn{
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-primary);
  flex-shrink: 0;
}
.mobile-topbar-btn svg{ width: 21px; height: 21px; }
.mobile-topbar-btn:hover{ background: var(--bg-panel); }
.mobile-topbar-logo{ display: flex; align-items: center; justify-content: center; }
.mobile-topbar-logo .brand-mark{ width: 30px; height: 30px; border-radius: 9px; }
.mobile-topbar-logo .brand-mark-img{ width: 30px; height: 30px; }

.mobile-search-bar{
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 219;
  align-items: center;
  gap: 10px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
  transition: max-height .22s ease, padding .22s ease;
}
.mobile-search-bar.open{ max-height: 64px; padding: 12px 16px; }
.mobile-search-bar svg{ width: 17px; height: 17px; color: var(--text-faint); flex-shrink: 0; }
.mobile-search-bar input{
  flex: 1;
  border: none;
  background: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
}
.mobile-search-bar input::placeholder{ color: var(--text-faint); }

.mobile-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 230;
  background: #05060dcc;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-backdrop.show{ opacity: 1; pointer-events: auto; }

.sidebar-close{ display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .hero{ grid-template-columns: 1fr; }
  .orbit-rings{ display: none; }
}

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

  .mobile-topbar{ display: flex; }
  .mobile-search-bar{ display: flex; }
  .mobile-backdrop{ display: block; }

  .sidebar{
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 280px;
    max-width: 84vw;
    z-index: 240;
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    box-shadow: 30px 0 60px -20px #000000cc;
  }
  .sidebar.open{ transform: translateX(0); }
  .sidebar-close{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--bg-panel);
    color: var(--text-muted);
  }
  .sidebar-close svg{ width: 15px; height: 15px; }

  .brand{ padding-right: 40px; }
  .nav{ flex-direction: column; }

  .main{ padding: 84px 20px 60px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .topline{ display: none; } /* replaced by the mobile top bar's search icon */
  .hero{ margin-top: 4px; }

  /* Trending Orbit: slightly narrower cards on mobile so ~2.5 show
     per screen width (base desktop size is already the big card style) */
  .trending-strip{ gap: 14px; }
  .trend-item{ width: 132px; }
}

@media (max-width: 540px){
  .grid{ grid-template-columns: 1fr; }
  .hero{ padding: 34px 24px; }
}
