/* S4leeh — styles.css */

:root {
  --gold:      #D4AF37;
  --gold-dim:  rgba(212,175,55,.28);
  --gold-glow: rgba(212,175,55,.09);
  --gold-mid:  rgba(212,175,55,.16);
  --bg:        #0e0d0f;
  --surface:   rgba(255,255,255,.032);
  --surface-h: rgba(255,255,255,.058);
  --border:    rgba(255,255,255,.065);
  --border-h:  rgba(255,255,255,.12);
  --text:      #F0EFEF;
  --text-2:    rgba(240,239,239,.55);
  --text-3:    rgba(240,239,239,.3);
  --blur:      blur(22px);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-f:   9999px;
  --t-f:   130ms cubic-bezier(.2,.8,.2,1);
  --t-m:   200ms cubic-bezier(.2,.8,.2,1);
  --t-e:   460ms cubic-bezier(.2,.8,.2,1);
}

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

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,.18); border-radius: var(--r-f); }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,.4); }
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.18) transparent; }
::selection { background: rgba(212,175,55,.25); color: var(--text); }

.glassy {
  background: var(--surface);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
}

/* ================================================================
   NAVBAR
   ================================================================ */
#siteHeader {
  transform: translateY(-115%); opacity: 0;
  transition: transform 400ms cubic-bezier(.16,1,.3,1), opacity 300ms ease;
}
#siteHeader.nav-visible { transform: translateY(0); opacity: 1; }

.navbar-base {
  position: relative; overflow: visible;
  background: rgba(10,9,12,.72);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 10px 36px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.022) inset;
}
.navbar-base::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.045), transparent 48%),
              radial-gradient(circle at 15% 110%, rgba(212,175,55,.04), transparent 50%);
}
.navbar-base > * { position: relative; z-index: 1; }
/* RTL: right col = logo, center = links, left col = discord/avatar */
.navbar-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 0 .5rem; }

.nav-logo-wrap    { position: relative; width: 46px; height: 46px; border-radius: var(--r-f); overflow: visible; }
.nav-logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-f); display: block; }
.nav-logo-wrap-sm  { position: relative; width: 36px; height: 36px; border-radius: var(--r-f); overflow: visible; }
.nav-logo-wrap-sm img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-f); display: block; }
#navLogo.logo-in, #navLogoMobile.logo-in { opacity: 1!important; transform: scale(1)!important; }

.nav-link {
  color: var(--text-2); font-size: .82rem; text-decoration: none;
  padding: .3rem .6rem; border-radius: var(--r-f); border: 1px solid transparent; white-space: nowrap;
  transition: color var(--t-m), background var(--t-m), border-color var(--t-m);
}
.nav-link:hover { color: var(--gold); background: var(--gold-glow); border-color: var(--gold-dim); }

.btn-primary-sm {
  display: inline-flex; align-items: center; padding: .32rem .85rem; border-radius: var(--r-f);
  font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--gold); color: #0a0a0a;
  transition: opacity var(--t-m), transform var(--t-m);
}
.btn-primary-sm:hover { opacity: .85; transform: translateY(-1px); }

.btn-secondary-sm {
  display: inline-flex; align-items: center; padding: .32rem .85rem; border-radius: var(--r-f);
  font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--surface-h); color: var(--text); border: 1px solid var(--border);
  transition: background var(--t-m), border-color var(--t-m), transform var(--t-m);
}
.btn-secondary-sm:hover { background: rgba(255,255,255,.09); border-color: var(--border-h); transform: translateY(-1px); }

.btn-ghost-sm {
  display: inline-flex; align-items: center; padding: .34rem .8rem; border-radius: var(--r-f);
  font-size: .78rem; font-weight: 600; font-family: inherit; cursor: pointer;
  background: transparent; color: var(--text-2); border: 1px solid var(--border);
  transition: background var(--t-f), color var(--t-f);
}

/* ── Discord Button ── */
.btn-discord {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .9rem; border-radius: var(--r-f);
  font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: #5865F2; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 0 rgba(88,101,242,0);
  transition: opacity var(--t-m), transform var(--t-m), box-shadow var(--t-m);
}
.btn-discord:hover {
  opacity: .88; transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(88,101,242,.45);
}

/* ── Avatar Dropdown ── */
.avatar-dropdown {
  animation: dropIn 180ms cubic-bezier(.2,.8,.2,1) both;
  background: rgba(12,11,15,.92);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.avatar-dropdown.hidden { display: none; }

/* header داخل الـ dropdown */
.dropdown-header {
  display: flex; align-items: center; gap: .75rem; flex-direction: row-reverse;
  padding: .75rem 1rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: .3rem;
}
.dropdown-header img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(212,175,55,.25);
}
.dropdown-header-text { flex: 1; min-width: 0; text-align: right; }
.dropdown-header-name  { font-size: .8rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.dropdown-header-email { font-size: .68rem; color: var(--text-3); margin-top: .1rem; }

/* items */
.dropdown-item {
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex-direction: row;
  padding: .52rem 1rem; font-size: .78rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; cursor: pointer;
  border: none; background: transparent; font-family: inherit; width: 100%;
  transition: background var(--t-f), color var(--t-f), padding-right var(--t-f);
  border-radius: 0; text-align: right;
}
.dropdown-item:hover {
  background: rgba(212,175,55,.06);
  color: var(--gold);
  padding-right: 1.2rem;
}
.dropdown-item svg { flex-shrink: 0; opacity: .6; transition: opacity var(--t-f); }
.dropdown-item:hover svg { opacity: 1; }

.dropdown-item.danger       { color: rgba(248,113,113,.7); }
.dropdown-item.danger:hover { background: rgba(248,113,113,.06); color: rgb(248,113,113); padding-right: 1.2rem; }

.dropdown-divider { height: 1px; background: rgba(255,255,255,.06); margin: .3rem 0; }
.btn-ghost-sm:hover { background: var(--surface-h); color: var(--text); }

/* Provider badge in dropdown */
.provider-badge {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .12rem .5rem; border-radius: var(--r-f);
  font-size: .65rem; font-weight: 700; letter-spacing: .02em;
}
.provider-badge--discord {
  background: rgba(88,101,242,.18); border: 1px solid rgba(88,101,242,.35);
  color: #7289da;
}
.provider-badge--kick {
  background: rgba(83,252,24,.1); border: 1px solid rgba(83,252,24,.28);
  color: rgba(83,252,24,.85);
}

.hamburger-line { display: block; width: 15px; height: 1.5px; background: rgba(240,239,239,.6); border-radius: var(--r-f); transition: transform var(--t-m), opacity var(--t-m), width var(--t-m); }
#mobileMenuBtn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#mobileMenuBtn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
#mobileMenuBtn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobileDrawer.open                  { pointer-events: auto; }
#mobileDrawer.open #drawerBackdrop  { opacity: 1; }
#mobileDrawer.open #drawerPanel     { transform: translateX(0); }

.drawer-link {
  display: flex; align-items: center; gap: .5rem; padding: .58rem .7rem; border-radius: var(--r-sm);
  color: var(--text-2); font-size: .82rem; font-weight: 500; text-decoration: none; border: 1px solid transparent;
  transition: color var(--t-f), background var(--t-f), border-color var(--t-f);
}
.drawer-link:hover { color: var(--gold); background: rgba(212,175,55,.07); border-color: rgba(212,175,55,.14); }

/* ================================================================
   SEARCH
   ================================================================ */
.nav-search-input {
  width: 200px; max-width: 200px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .38rem 2rem .38rem .85rem;
  font-size: .78rem; color: rgba(240,239,239,.85);
  outline: none; transition: border-color .15s, width .2s;
}
.nav-search-input::placeholder { color: rgba(240,239,239,.25); }
.nav-search-input:focus { border-color: rgba(212,175,55,.4); width: 240px; max-width: 240px; }

/* Centered search (replaces nav links) */
.nav-search-input-center {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .42rem 2rem .42rem .85rem;
  font-size: .8rem; color: rgba(240,239,239,.85);
  outline: none; transition: border-color .15s, background .15s;
}
.nav-search-input-center::placeholder { color: rgba(240,239,239,.22); }
.nav-search-input-center:focus {
  border-color: rgba(212,175,55,.4);
  background: rgba(255,255,255,.07);
}

.nav-search-icon {
  position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
  color: rgba(212,175,55,.45); pointer-events: none;
}

/* Live dropdown */
.nav-search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: 280px;
  background: #141318; border: 1px solid rgba(212,175,55,.2);
  border-radius: 12px; z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,.7);
  overflow: hidden;
}
.nav-search-dropdown.hidden { display: none; }
.search-drop-section { padding: .45rem 0; }
.search-drop-label {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; color: rgba(212,175,55,.5);
  padding: .3rem .85rem .15rem; text-transform: uppercase;
}
.search-drop-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .85rem; text-decoration: none; color: inherit;
  transition: background .1s;
}
.search-drop-item:hover { background: rgba(255,255,255,.04); }
.search-drop-thumb {
  width: 32px; height: 32px; border-radius: 6px; object-fit: cover;
  flex-shrink: 0; background: rgba(255,255,255,.05);
}
.search-drop-thumb--round { border-radius: 50%; }
.search-drop-title { font-size: .78rem; font-weight: 600; color: rgba(240,239,239,.85); line-height: 1.2; }
.search-drop-sub   { font-size: .65rem; color: rgba(240,239,239,.3); line-height: 1.2; }
.search-drop-divider { height: 1px; background: rgba(255,255,255,.06); margin: .1rem 0; }
.search-drop-footer {
  display: block; text-align: center; padding: .55rem; font-size: .7rem;
  color: rgba(212,175,55,.5); text-decoration: none; background: rgba(212,175,55,.03);
  transition: background .1s;
}
.search-drop-footer:hover { background: rgba(212,175,55,.07); color: rgba(212,175,55,.8); }

/* Mobile search bar */
.mobile-search-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  background: rgba(12,11,15,.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-top: env(safe-area-inset-top);
}
.mobile-search-bar.hidden { display: none; }

/* Search results page */
.search-section-title {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(212,175,55,.6); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .5rem;
}
.search-section-title::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06);
}

/* Users */
.search-users-grid { display: flex; flex-direction: column; gap: .55rem; }
.search-user-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02);
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.search-user-card:hover { border-color: rgba(212,175,55,.2); background: rgba(212,175,55,.03); }

/* Gallery */
.search-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem;
}
.search-gallery-item {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1/1; text-decoration: none; display: block;
  border: 1px solid rgba(255,255,255,.08);
}
.search-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.search-gallery-item:hover img { transform: scale(1.04); }
.search-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  padding: .3rem .4rem; font-size: .6rem; color: rgba(255,255,255,.75); line-height: 1.2;
}

/* Games */
.search-games-list { display: flex; flex-direction: column; gap: .5rem; }
.search-game-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02);
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.search-game-row:hover { border-color: rgba(212,175,55,.2); background: rgba(212,175,55,.03); }
.search-game-cover {
  width: 40px; height: 52px; border-radius: 6px; overflow: hidden;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.08);
}

/* Archive */
.search-archive-list { display: flex; flex-direction: column; gap: .45rem; }
.search-archive-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .75rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02);
  text-decoration: none; color: inherit; transition: border-color .15s, background .15s;
}
.search-archive-row:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }

/* ================================================================
   LIVE INDICATORS
   ================================================================ */
.live-badge {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  background: #ef4444; color: #fff; font-size: .55rem; font-weight: 900; letter-spacing: .07em;
  padding: .1rem .42rem; border-radius: var(--r-f); border: 1.5px solid rgba(0,0,0,.4); white-space: nowrap;
  box-shadow: 0 0 10px rgba(239,68,68,.55); animation: live-pulse 2s ease-in-out infinite;
}
.live-badge-hero {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #f87171;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: .28rem .75rem; border-radius: var(--r-f); margin-top: .55rem;
  animation: live-pulse 2s ease-in-out infinite;
}
.live-ring {
  position: absolute; inset: -5px; border-radius: var(--r-f);
  border: 2px solid #ef4444; box-shadow: 0 0 14px rgba(239,68,68,.45);
  animation: live-ring-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse      { 0%,100%{box-shadow:0 0 7px rgba(239,68,68,.5)} 50%{box-shadow:0 0 18px rgba(239,68,68,.85)} }
@keyframes live-ring-pulse { 0%,100%{opacity:.75;transform:scale(1)} 50%{opacity:1;transform:scale(1.04)} }
@keyframes pulse-dot        { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ================================================================
   HERO
   ================================================================ */
.hero-section { min-height: 100svh; }
#heroLogo, #heroText, #heroSocial, #scrollHint { transition: opacity 80ms linear, transform 80ms linear; }

.hero-logo-outer { display: flex; flex-direction: column; align-items: center; }
.hero-logo-ring {
  position: relative;
  width: clamp(170px,34vw,260px); aspect-ratio: 1;
  border-radius: var(--r-f); overflow: visible;
  animation: hero-float 5.5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  box-shadow: 0 20px 70px rgba(0,0,0,.5), 0 0 50px rgba(212,175,55,.09);
}
.hero-logo-ring img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: var(--r-f); }
@keyframes hero-float {
  0%,100% { transform: translateY(0); box-shadow: 0 20px 70px rgba(0,0,0,.5), 0 0 50px rgba(212,175,55,.09); }
  50%     { transform: translateY(-13px); box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 70px rgba(212,175,55,.13); }
}

.hero-title    { font-size: clamp(1.5rem,4.5vw,2.2rem); font-weight: 800; letter-spacing: .04em; color: var(--text); margin-bottom: .35rem; }
.hero-subtitle { font-size: clamp(.78rem,2vw,.9rem); color: var(--text-2); max-width: 400ch; margin: 0 auto; line-height: 1.7; }

.scroll-arrow { animation: bounce-arr 2.4s ease-in-out infinite; }
@keyframes bounce-arr { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ================================================================
   SOCIAL GLASSY ICONS
   ================================================================ */
.sg-yt   { --sg-c: #FF0000; --sg-cr: 255; --sg-cg: 0;   --sg-cb: 0;   }
.sg-ig   { --sg-c: #E1306C; --sg-cr: 225; --sg-cg: 48;  --sg-cb: 108; }
.sg-x    { --sg-c: #e7e9ea; --sg-cr: 231; --sg-cg: 233; --sg-cb: 234; }
.sg-tt   { --sg-c: #69C9D0; --sg-cr: 105; --sg-cg: 201; --sg-cb: 208; }
.sg-dc   { --sg-c: #5865F2; --sg-cr: 88;  --sg-cg: 101; --sg-cb: 242; }
.sg-kick { --sg-c: #53FC18; --sg-cr: 83;  --sg-cg: 252; --sg-cb: 24;  }

.sg-btn, .sg-icon {
  position: relative; overflow: hidden; text-decoration: none;
  background: rgba(14,12,18,.76);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 4px 14px rgba(0,0,0,.38);
  transition: color 210ms ease, border-color 210ms ease, box-shadow 210ms ease, transform 210ms ease;
}
.sg-btn .sg-glow, .sg-icon .sg-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 50% 115%, rgba(var(--sg-cr),var(--sg-cg),var(--sg-cb),.24) 0%, transparent 68%);
  opacity: 0; transition: opacity 220ms ease;
}
.sg-btn::after, .sg-icon::after {
  content: ''; position: absolute; bottom: 0; left: 12%; right: 12%;
  height: 2px; border-radius: 99px; background: var(--sg-c); opacity: 0; transition: opacity 210ms ease;
}
.sg-btn:hover, .sg-icon:hover {
  color: var(--sg-c); border-color: rgba(var(--sg-cr),var(--sg-cg),var(--sg-cb),.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(var(--sg-cr),var(--sg-cg),var(--sg-cb),.16), 0 0 22px rgba(var(--sg-cr),var(--sg-cg),var(--sg-cb),.18), 0 6px 20px rgba(0,0,0,.42);
}
.sg-btn:hover  { transform: translateY(-3px) scale(1.03); }
.sg-icon:hover { transform: translateY(-2px); }
.sg-btn:hover .sg-glow, .sg-icon:hover .sg-glow { opacity: 1; }
.sg-btn:hover::after, .sg-icon:hover::after { opacity: .65; }

.sg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 360px; }
.sg-btn {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .75rem .85rem .6rem; border-radius: 16px; min-width: 70px;
  color: rgba(240,239,239,.4);
}
.sg-btn > svg { flex-shrink: 0; }
.sg-btn .sg-label { font-size: .62rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; color: inherit; }
.sg-btn .kick-live-dot {
  position: absolute; top: 7px; left: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: #53fc18;
  box-shadow: 0 0 6px rgba(83,252,24,.8); animation: pulse-dot 1.4s ease-in-out infinite;
}

.sg-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: rgba(240,239,239,.3);
}
.sg-icon::after { left: 15%; right: 15%; height: 1.5px; }

@media (max-width:380px) {
  .sg-btn  { min-width: 56px; padding: .6rem .6rem .48rem; border-radius: 14px; }
  .sg-grid { gap: .48rem; max-width: 290px; }
}

/* ================================================================
   SHARED UTILITIES
   ================================================================ */
.section-divider-block { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 2.5rem 0 1.4rem; }
.divider-icon-wrap { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-f); background: var(--surface); border: 1px solid var(--border); }
.divider-line  { flex: 1; border: none; border-top: 1px solid var(--border); }
.section-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: rgba(240,239,239,.65); }

.chip { display: inline-flex; align-items: center; padding: .16rem .52rem; border-radius: var(--r-f); font-size: .68rem; font-weight: 700; background: var(--gold-mid); border: 1px solid var(--gold-dim); color: var(--gold); }

.reveal-section { opacity: 0; filter: blur(6px); transform: translateY(6px) scale(.99); transition: opacity var(--t-e), filter var(--t-e), transform var(--t-e); }
.reveal-section.revealed { opacity: 1; filter: blur(0); transform: none; }

#cursorGlow {
  position: fixed; top: 0; left: 0; z-index: 8500; width: 85px; height: 85px;
  pointer-events: none; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(212,175,55,.06) 0%, transparent 70%);
  transition: width 350ms, height 350ms, opacity 350ms; opacity: 0; will-change: transform;
}
#cursorGlow.active   { opacity: 1; }
#cursorGlow.glow-expanded { width: 130px; height: 130px; }

/* ================================================================
   YOUTUBE FEATURED CARD
   ================================================================ */
.yt-featured-wrap { max-width: 680px; margin: 0 auto; }
.yt-featured {
  display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-m), box-shadow var(--t-m), transform var(--t-m);
}
.yt-featured:hover { border-color: var(--gold-dim); box-shadow: 0 14px 44px rgba(0,0,0,.5), 0 0 28px rgba(212,175,55,.06); transform: translateY(-2px); }

.yt-feat-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg,#0f2027,#203a43 50%,#2c5364);
}
.yt-feat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms ease; }
.yt-featured:hover .yt-feat-thumb img { transform: scale(1.03); }

.yt-feat-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t-m);
}
.yt-feat-play::before {
  content: ''; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px); position: absolute;
}
.yt-feat-play svg { position: relative; z-index: 1; }
.yt-featured:hover .yt-feat-play { opacity: 1; }

.yt-feat-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1rem .75rem;
  background: linear-gradient(transparent,rgba(0,0,0,.75));
  display: flex; justify-content: flex-end; opacity: 0; transition: opacity var(--t-m);
}
.yt-featured:hover .yt-feat-overlay { opacity: 1; }
.yt-feat-cta {
  display: inline-flex; align-items: center; gap: .38rem; padding: .3rem .75rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; background: rgba(255,0,0,.75); color: #fff;
  backdrop-filter: blur(4px); border: 1px solid rgba(255,80,80,.3);
}

.yt-feat-meta  { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 1rem 1rem; }
.yt-feat-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--surface-h); border: 1px solid var(--border); margin-top: 2px; }
.yt-feat-info  { flex: 1; min-width: 0; }
.yt-feat-title { font-size: .92rem; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-feat-sub   { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--text-3); }
.yt-feat-channel { color: var(--text-2); font-weight: 600; }

/* Skeleton loading */
.yt-skeleton { animation: yt-shimmer 1.5s ease-in-out infinite alternate; }
@keyframes yt-shimmer {
  from { background: linear-gradient(135deg,#141218,#1a1820 50%,#141218); }
  to   { background: linear-gradient(135deg,#1a1820,#211f28 50%,#1a1820); }
}

/* ================================================================
   ARCHIVE ACCORDION
   ================================================================ */
.archive-accordion { display: flex; flex-direction: column; gap: .55rem; }

.acc-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-m);
}
.acc-item:has(.acc-trigger[aria-expanded="true"]) { border-color: var(--gold-dim); }

.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; background: none; border: none; cursor: pointer; color: inherit;
  font-family: inherit; text-align: right; transition: background var(--t-f);
}
.acc-trigger:hover { background: var(--surface-h); }
.acc-trigger[aria-expanded="true"] { background: rgba(212,175,55,.04); }

.acc-trigger-right { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.acc-trigger-left  { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.acc-folder-icon { width: 38px; height: 38px; flex-shrink: 0; transition: transform var(--t-m); }
.acc-trigger[aria-expanded="true"] .acc-folder-icon { transform: scale(1.06); }

.acc-trigger-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.acc-folder-name  { font-size: .88rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.acc-folder-meta  { font-size: .65rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.acc-count-chip {
  font-size: .65rem; font-weight: 800; color: var(--gold);
  background: var(--gold-glow); border: 1px solid var(--gold-dim);
  padding: .12rem .5rem; border-radius: var(--r-f);
}
.acc-chevron { color: var(--text-3); flex-shrink: 0; transition: transform 280ms cubic-bezier(.2,.8,.2,1), color var(--t-f); }
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); color: var(--gold); }

.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(.2,.8,.2,1); }
.acc-item:has(.acc-trigger[aria-expanded="true"]) .acc-body { grid-template-rows: 1fr; }

.acc-inner { overflow: hidden; padding: 0 1rem; transition: padding 320ms cubic-bezier(.2,.8,.2,1); }
.acc-item:has(.acc-trigger[aria-expanded="true"]) .acc-inner { padding: 0 1rem .9rem; }
.acc-inner::before { content: ''; display: block; height: 1px; background: var(--border); margin-bottom: .85rem; }

.acc-video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .65rem; }
@media (min-width:480px) { .acc-video-grid { grid-template-columns: repeat(4,1fr); } }
.acc-video-grid--shorts { grid-template-columns: repeat(3,1fr); }
@media (min-width:480px) { .acc-video-grid--shorts { grid-template-columns: repeat(6,1fr); } }

.acc-video-card { display: flex; flex-direction: column; gap: .38rem; text-decoration: none; color: inherit; transition: transform var(--t-m); }
.acc-video-card:hover { transform: translateY(-2px); }

.acc-thumb       { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-sm); border: 1px solid var(--border); transition: border-color var(--t-m), box-shadow var(--t-m); }
.acc-thumb-short { width: 100%; aspect-ratio: 9/16;  border-radius: var(--r-sm); border: 1px solid var(--border); transition: border-color var(--t-m), box-shadow var(--t-m); }
.acc-video-card:hover .acc-thumb,
.acc-video-card:hover .acc-thumb-short { border-color: var(--gold-dim); box-shadow: 0 4px 14px rgba(0,0,0,.5); }

.acc-thumb-1 { background: linear-gradient(135deg,#0f2027,#203a43 50%,#2c5364); }
.acc-thumb-2 { background: linear-gradient(135deg,#1a1035,#2d1b69 50%,#1a1035); }
.acc-thumb-3 { background: linear-gradient(135deg,#0d1b2a,#1b4332 50%,#0d1b2a); }
.acc-thumb-4 { background: linear-gradient(135deg,#2d0a0a,#7f1d1d 50%,#2d0a0a); }

.acc-video-info  { display: flex; flex-direction: column; gap: .1rem; }
.acc-video-title { font-size: .72rem; font-weight: 700; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-video-views { font-size: .62rem; color: var(--text-3); }

.acc-view-all-row { margin-top: .7rem; display: flex; justify-content: center; }
.acc-view-all {
  display: inline-flex; align-items: center; gap: .38rem; padding: .32rem .9rem;
  border-radius: var(--r-f); font-size: .72rem; font-weight: 600; text-decoration: none;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  transition: color var(--t-f), border-color var(--t-f), background var(--t-f);
}
.acc-view-all:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-glow); }

/* ================================================================
   ARCHIVE — FILE TREE (Google Drive UI)
   ================================================================ */
.archive-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem;
  margin-bottom: .5rem; font-size: .8rem;
}
.archive-bc-item   { display: flex; align-items: center; gap: .35rem; }
.archive-bc-link   { color: rgba(240,239,239,.35); text-decoration: none; transition: color var(--t-f); }
.archive-bc-link:hover { color: var(--gold); }
.archive-bc-sep    { color: rgba(240,239,239,.15); }
.archive-bc-current { color: rgba(240,239,239,.7); font-weight: 600; }

.archive-sub-label {
  display: flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(240,239,239,.3); margin-bottom: .75rem;
}
.archive-sub-count {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 20px; padding: .05rem .45rem; font-size: .65rem; color: var(--text-3);
}

.archive-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
}
.archive-folder-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: .9rem .75rem .85rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: var(--text);
  transition: border-color var(--t-m), background var(--t-m), transform var(--t-m);
  cursor: pointer;
}
.archive-folder-card:hover {
  border-color: var(--gold-dim); background: var(--surface-h); transform: translateY(-2px);
}
.archive-folder-icon { width: 44px; height: 44px; flex-shrink: 0; }
.archive-folder-name {
  font-size: .78rem; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; color: var(--text);
}

/* ================================================================
   GAMES
   ================================================================ */
.playing-dot { width: 6px; height: 6px; border-radius: var(--r-f); background: #4ade80; flex-shrink: 0; box-shadow: 0 0 7px rgba(74,222,128,.55); animation: pulse-live 1.8s ease-in-out infinite; }
@keyframes pulse-live { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* Section layout */
.games-sections     { display: flex; flex-direction: column; gap: 1.5rem; }
.games-section-block { display: flex; flex-direction: column; gap: .5rem; }
.games-collapsible { overflow: hidden; transition: max-height .3s ease, opacity .25s; max-height: 2000px; opacity: 1; }
.games-collapsible.collapsed { max-height: 0 !important; opacity: 0; }
.games-section-header { display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.games-section-header.playing { color: #4ade80; }
.games-section-header.done    { color: var(--gold); }
.games-banner-list  { display: flex; flex-direction: column; gap: .5rem; }

/* Banner card */
.game-banner-card {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 12px; overflow: hidden;
  height: 100px; width: 100%;
  cursor: pointer; text-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-banner-card:hover { transform: scale(1.01); box-shadow: 0 4px 20px rgba(0,0,0,.4), 0 0 8px rgba(212,175,55,.06); }

/* Cover image area — still uses .game-cover for JS compat */
.game-cover { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: rgba(255,255,255,.05); }
.game-banner-cover { width: 35%; flex-shrink: 0; height: 100%; }

/* Info area */
.game-banner-info  { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.game-banner-name  { font-size: .95rem; font-weight: 700; color: #f0efef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-banner-badge { display: inline-flex; align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: .65rem; font-weight: 700; background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.25); color: #D4AF37; }
.game-banner-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: #D4AF37; }
.game-banner-rating-num   { font-size: .8rem; font-weight: 700; color: #D4AF37; }
.game-banner-rating-count { font-size: .65rem; color: rgba(240,239,239,.35); }
.game-banner-admin-rating { font-size: .75rem; font-weight: 700; color: #D4AF37; }

/* Show more button */
.show-more-games { background: transparent; border: 1px solid rgba(212,175,55,.2); color: rgba(212,175,55,.7); border-radius: 8px; padding: 6px 20px; width: 100%; font-size: .75rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.show-more-games:hover { border-color: rgba(212,175,55,.4); color: #D4AF37; }

/* Gradient fallbacks (banner cover + legacy search) */
.gc-1  { background: linear-gradient(145deg,#1a0a2e,#6b21a8); }
.gc-2  { background: linear-gradient(145deg,#0a1628,#1d4ed8); }
.gc-3  { background: linear-gradient(145deg,#1a0505,#7f1d1d); }
.gc-4  { background: linear-gradient(145deg,#0a1a0a,#15803d); }
.gc-5  { background: linear-gradient(145deg,#1a0a00,#92400e); }
.gc-6  { background: linear-gradient(145deg,#05101a,#0369a1); }
.gc-7  { background: linear-gradient(145deg,#0a1a0a,#166534); }
.gc-8  { background: linear-gradient(145deg,#1a0000,#991b1b); }
.gc-9  { background: linear-gradient(145deg,#0a0a1a,#4338ca); }
.gc-10 { background: linear-gradient(145deg,#0f0f0f,#374151); }
.gc-11 { background: linear-gradient(145deg,#1a1000,#78350f); }
.gc-12 { background: linear-gradient(145deg,#0a0514,#4a1d96); }
.gc-13 { background: linear-gradient(145deg,#0a1428,#1e3a5f); }
.gc-14 { background: linear-gradient(145deg,#0f1a0a,#365314); }
.gc-15 { background: linear-gradient(145deg,#050510,#1e1b4b); }

/* ── Minecraft special card ── */
.mc-special-card {
  display: flex; align-items: stretch; border-radius: 14px; overflow: hidden;
  border: 1.5px solid rgba(83,252,24,0.35);
  background: rgba(83,252,24,0.04);
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
  margin-bottom: 1rem;
}
.mc-special-card:hover {
  border-color: rgba(83,252,24,0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(83,252,24,0.1);
}
.mc-special-cover {
  width: 35%; flex-shrink: 0; height: 160px;
  background-size: cover; background-position: center;
  position: relative;
}
.mc-no-rate-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: .6rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(83,252,24,0.18); border: 1px solid rgba(83,252,24,0.4); color: #53FC18;
}
.mc-special-info {
  flex: 1; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mc-special-name { font-size: 1rem; font-weight: 700; color: #f0efef; }
.mc-best-badge {
  align-self: flex-end;
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(83,252,24,0.12); border: 1px solid rgba(83,252,24,0.3); color: #53FC18;
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr 1fr; } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .35rem;
  transition: border-color var(--t-m), box-shadow var(--t-m);
}
.stat-card:hover { border-color: var(--gold-dim); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.stat-card--journey { align-items: flex-start; text-align: right; }

.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: .4rem; flex-shrink: 0;
}
.stat-card--journey .stat-icon { align-self: flex-start; }

.stat-num-big {
  font-size: 2.4rem; font-weight: 900; color: var(--gold);
  line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-label-big {
  font-size: .72rem; font-weight: 600;
  color: rgba(240,239,239,.45); line-height: 1.3;
}

/* Journey timeline */
.journey-timeline { display: flex; flex-direction: column; gap: 0; width: 100%; }
.journey-item {
  display: flex; align-items: flex-start; gap: .65rem;
  position: relative; padding-bottom: .7rem;
}
.journey-item:last-child { padding-bottom: 0; }
.journey-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: .2rem;
  background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,.5);
  position: relative; z-index: 1;
}
.journey-dot::after {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 1px; height: calc(100% + .7rem);
  background: linear-gradient(to bottom, rgba(212,175,55,.4), rgba(212,175,55,.05));
}
.journey-dot--last::after { display: none; }
.journey-text {
  font-size: .75rem; color: rgba(240,239,239,.65);
  line-height: 1.4; flex: 1;
}

/* ================================================================
   ADVENTURE (simple row)
   ================================================================ */
.adv-simple {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--t-m);
}
.adv-simple:hover { border-color: var(--gold-dim); }
.adv-simple-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); background: var(--gold-glow); border: 1px solid var(--gold-dim); color: var(--gold);
}
.adv-simple-body { flex: 1; min-width: 0; }
.adv-simple-name { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .18rem; }
.adv-simple-desc { font-size: .72rem; color: var(--text-2); line-height: 1.5; }
.adv-simple-btn {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .42rem 1rem; border-radius: var(--r-f); font-size: .78rem; font-weight: 700;
  background: var(--gold); color: #0a0a0a; text-decoration: none;
  transition: opacity var(--t-m), transform var(--t-m);
  box-shadow: 0 3px 12px rgba(212,175,55,.25);
}
.adv-simple-btn:hover { opacity: .86; transform: translateY(-1px); }
@media (max-width:480px) { .adv-simple { flex-wrap: wrap; } .adv-simple-btn { width: 100%; justify-content: center; } }

/* ================================================================
   SUGGEST FORM
   ================================================================ */
.suggest-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.suggest-types-tab { display: flex; border-bottom: 1px solid var(--border); }
.suggest-tab {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: .65rem .5rem; font-size: .75rem; font-weight: 700; cursor: pointer;
  color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-f), border-color var(--t-f), background var(--t-f);
}
.suggest-tab:hover { color: var(--text-2); background: var(--surface-h); }
.suggest-tab:has(input:checked) { color: var(--gold); border-bottom-color: var(--gold); background: var(--gold-glow); }
.suggest-form { display: flex; flex-direction: column; gap: .85rem; padding: 1.1rem 1.2rem 1.2rem; }
.form-input {
  width: 100%; padding: .58rem .82rem; border-radius: var(--r-md); font-family: inherit; font-size: .82rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text);
  outline: none; -webkit-appearance: none; transition: border-color var(--t-m), box-shadow var(--t-m);
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: rgba(212,175,55,.4); box-shadow: 0 0 0 3px rgba(212,175,55,.06); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.suggest-submit { display: inline-flex; align-items: center; gap: .4rem; padding: .46rem 1.15rem; border-radius: var(--r-f); font-size: .78rem; font-weight: 700; font-family: inherit; cursor: pointer; background: var(--gold); color: #0a0a0a; border: none; transition: opacity var(--t-m), transform var(--t-m); }
.suggest-submit:hover { opacity: .86; transform: translateY(-1px); }
.suggest-success { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border-radius: var(--r-md); background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.18); color: #4ade80; font-size: .78rem; font-weight: 700; }
.suggest-success.hidden { display: none; }

/* ================================================================
   GAME MODAL
   ================================================================ */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity var(--t-m); }
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-panel { width: 100%; max-width: 460px; border-radius: var(--r-xl); overflow: hidden; background: #131118; border: 1px solid var(--border); box-shadow: 0 24px 70px rgba(0,0,0,.75); transform: translateY(12px) scale(.97); transition: transform var(--t-m); max-height: 88vh; overflow-y: auto; }
.modal-backdrop.open .modal-panel { transform: translateY(0) scale(1); }
#modalCoverStrip {
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
}
.modal-body-wrap  { padding: 1.15rem 1.3rem 1.3rem; }
.modal-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin-bottom: 1.1rem; }
.modal-col-tag    { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .18rem; }
.modal-game-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.modal-close-btn  { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-f); background: var(--surface-h); border: 1px solid var(--border); color: var(--text-3); cursor: pointer; transition: all var(--t-f); }
.modal-close-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }
.modal-section       { margin-bottom: 1rem; }
.modal-section-label { font-size: .65rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .45rem; }

.star-rating { display: flex; gap: .28rem; direction: ltr; }
.star { background: none; border: none; font-size: 1.4rem; color: rgba(255,255,255,.12); cursor: pointer; padding: 0; transition: color var(--t-f); line-height: 1; }
.star-rating:hover .star { color: var(--gold); }
.star:hover ~ .star { color: rgba(255,255,255,.12)!important; }

.comments-list  { display: flex; flex-direction: column; gap: .55rem; max-height: 175px; overflow-y: auto; }
.comment-item   { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .6rem .75rem; }
.comment-stars  { color: var(--gold); font-size: .7rem; margin-bottom: .18rem; }
.comment-text   { font-size: .72rem; color: var(--text-2); line-height: 1.5; }
.comment-time   { font-size: .58rem; color: var(--text-3); margin-top: .28rem; }
.comments-empty { font-size: .72rem; color: var(--text-3); text-align: center; padding: .7rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem 1.4rem; }
@media (min-width:540px) { .site-footer { padding: 1.75rem 2rem; } }
.footer-inner { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; }
.footer-logo-wrap  { display: flex; align-items: center; gap: .7rem; }
.footer-logo       { width: 36px; height: 36px; border-radius: var(--r-f); overflow: hidden; background: var(--surface-h); border: 1px solid var(--border); flex-shrink: 0; }
.footer-brand-name { font-size: .95rem; font-weight: 800; color: var(--text); }
.footer-tagline    { font-size: .68rem; color: var(--text-3); margin-top: .08rem; }
.footer-socials    { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.footer-divider    { border: none; border-top: 1px solid var(--border); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-links-row  { display: flex; align-items: center; flex-wrap: wrap; gap: .28rem; }
.footer-link       { font-size: .72rem; color: var(--text-3); text-decoration: none; transition: color var(--t-f); }
.footer-link:hover { color: var(--gold); }
.footer-link-sep   { color: var(--border-h); font-size: .7rem; }
.footer-copy       { font-size: .7rem; color: var(--text-3); }

/* ── WYSIWYG output ── */
.wysiwyg-output h1 { font-size: 1.4rem; font-weight: 800; color: #D4AF37; margin-bottom: .5rem; }
.wysiwyg-output h2 { font-size: 1.1rem; font-weight: 700; color: #D4AF37; margin-bottom: .4rem; }
.wysiwyg-output h3 { font-size: .95rem; font-weight: 700; color: rgba(212,175,55,.8); margin-bottom: .3rem; }
.wysiwyg-output a  { color: #D4AF37; text-decoration: underline; }
.wysiwyg-output a:hover { color: #f0c040; }
.wysiwyg-output ul, .wysiwyg-output ol { padding-right: 1.25rem; padding-left: 0; margin: .4rem 0; }
.wysiwyg-output li { margin-bottom: .2rem; color: rgba(240,239,239,.75); }
.wysiwyg-output p  { margin-bottom: .3rem; }
.wysiwyg-output strong, .wysiwyg-output b { font-weight: 700; }
.wysiwyg-output em, .wysiwyg-output i    { font-style: italic; }

/* ================================================================
   PINTEREST GALLERY
   ================================================================ */
.pinterest-grid { columns: 2; column-gap: .65rem; }
@media (min-width:480px) { .pinterest-grid { columns: 3; } }
@media (min-width:720px) { .pinterest-grid { columns: 4; } }

.pin-item {
  break-inside: avoid; margin-bottom: .65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pin-item:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,.5), 0 0 12px rgba(212,175,55,.07); }
.pin-img { width: 100%; display: block; object-fit: cover; }

/* Placeholder divs (skeleton / kick fallback) */
.pin-img-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter + type pills (gallery page) */
.filter-pill {
  display: inline-flex; align-items: center; padding: .3rem .75rem;
  border-radius: var(--r-f); font-size: .7rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.08); color: rgba(240,239,239,.5);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  font-family: inherit;
}
.filter-pill:hover  { border-color: rgba(212,175,55,.35); color: rgba(212,175,55,.8); }
.filter-pill.active { border-color: rgba(212,175,55,.4); color: #D4AF37; background: rgba(212,175,55,.15); }

/* Upload-form type pills */
.type-pill {
  display: inline-flex; align-items: center; padding: .25rem .65rem;
  border-radius: 999px; font-size: .7rem; border: 1px solid rgba(255,255,255,.1);
  color: rgba(240,239,239,.45); background: transparent; cursor: pointer; transition: .15s;
}
.type-pill.active { border-color: rgba(212,175,55,.5); color: #D4AF37; background: rgba(212,175,55,.08); }

/* Lightbox responsive height */
@media (max-height: 700px) { .lb-panel { max-height: 98vh !important; } }

/* Corner badges — type badge top-left, pin badge top-right */
.pin-type-badge {
  position: absolute; top: 7px; left: 7px;
  display: flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: var(--r-f);
  font-size: .6rem; font-weight: 700; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pin-pinned-badge {
  position: absolute; top: 7px; right: 7px;
  width: 28px; height: 28px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* Play/platform icon overlay (bottom-center of image area) */
.pin-play-overlay {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  pointer-events: none; line-height: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}

/* Card footer (avatar + username + likes) */
.gallery-card-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.4);
}
.gallery-card-footer .gcf-avatar {
  width: 20px; height: 20px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.gallery-card-footer .gcf-username {
  flex: 1; font-size: .68rem; color: rgba(240,239,239,0.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gallery-card-footer .gcf-likes {
  display: flex; align-items: center; gap: 3px;
  font-size: .65rem; color: rgba(240,239,239,0.45); flex-shrink: 0;
}

/* Skeleton placeholders keep theme colours */
.pin-c1  { background: linear-gradient(145deg,#0f2027,#203a43); }
.pin-c2  { background: linear-gradient(145deg,#1a0a2e,#4c1d95); }
.pin-c3  { background: linear-gradient(145deg,#0d1b2a,#1b4332); }
.pin-c4  { background: linear-gradient(145deg,#2d0a0a,#7f1d1d); }
.pin-c5  { background: linear-gradient(145deg,#1a1000,#78350f); }
.pin-c6  { background: linear-gradient(145deg,#050510,#1e1b4b); }
.pin-c7  { background: linear-gradient(145deg,#0a1628,#1e3a5f); }
.pin-c8  { background: linear-gradient(145deg,#0a1a0a,#166534); }
.pin-c9  { background: linear-gradient(145deg,#1a1035,#6b21a8); }
.pin-c10 { background: linear-gradient(145deg,#0a0514,#4a1d96); }
.pin-c11 { background: linear-gradient(145deg,#0f0f0f,#374151); }
.pin-c12 { background: linear-gradient(145deg,#1a0a00,#92400e); }


/* ================================================================
   LIVE BANNER & STATES
   ================================================================ */
#liveBanner { position: fixed; top: 0; left: 0; right: 0; z-index: 110; text-decoration: none; animation: banner-in 400ms cubic-bezier(.16,1,.3,1) both; }
@keyframes banner-in { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }
.live-banner-inner {
  display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .45rem 1rem;
  background: rgba(83,252,24,.1); border-bottom: 1px solid rgba(83,252,24,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .72rem; font-weight: 700; color: rgba(160,255,80,.95); transition: background 200ms;
}
#liveBanner:hover .live-banner-inner { background: rgba(83,252,24,.16); }
.live-banner-dot   { width: 7px; height: 7px; border-radius: 50%; background: #53fc18; box-shadow: 0 0 8px rgba(83,252,24,.9); flex-shrink: 0; animation: pulse-dot 1.2s ease-in-out infinite; }
.live-banner-text  { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-banner-count { opacity: .65; white-space: nowrap; }
.live-banner-kick  { opacity: .7; flex-shrink: 0; }
.live-banner-cta   { background: rgba(83,252,24,.18); border: 1px solid rgba(83,252,24,.3); padding: .15rem .55rem; border-radius: 99px; font-size: .65rem; white-space: nowrap; flex-shrink: 0; }
body.is-broadcasting #siteHeader { top: 34px; }
body.is-broadcasting .hero-logo-ring { box-shadow: 0 0 0 3px rgba(83,252,24,.5), 0 0 30px rgba(83,252,24,.25), 0 20px 70px rgba(0,0,0,.5); animation: hero-float 5.5s ease-in-out infinite, live-logo-ring 2s ease-in-out infinite; }
@keyframes live-logo-ring {
  0%,100% { box-shadow: 0 0 0 3px rgba(83,252,24,.4), 0 0 25px rgba(83,252,24,.2), 0 20px 70px rgba(0,0,0,.5); }
  50%     { box-shadow: 0 0 0 5px rgba(83,252,24,.7), 0 0 45px rgba(83,252,24,.4), 0 20px 70px rgba(0,0,0,.5); }
}
body.is-broadcasting #starCanvas { filter: hue-rotate(80deg) saturate(1.4); }

.sg-kick.kick-is-live, .sg-icon.sg-kick.kick-is-live {
  border-color: rgba(83,252,24,.4) !important;
  color: rgba(140,255,70,.9) !important;
  box-shadow: 0 0 0 1px rgba(83,252,24,.2), 0 0 16px rgba(83,252,24,.22), inset 0 0 20px rgba(83,252,24,.06) !important;
  animation: kick-live-pulse 2s ease-in-out infinite;
}
@keyframes kick-live-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(83,252,24,.2), 0 0 14px rgba(83,252,24,.18), inset 0 0 18px rgba(83,252,24,.05); }
  50%     { box-shadow: 0 0 0 2px rgba(83,252,24,.4), 0 0 28px rgba(83,252,24,.35), inset 0 0 28px rgba(83,252,24,.1); }
}

/* ================================================================
   SHOW MORE BUTTON
   ================================================================ */
.show-more-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem 1rem; border-radius: var(--r-f);
  font-size: .75rem; font-weight: 600; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: background var(--t-m), border-color var(--t-m), color var(--t-m);
}
.show-more-btn:hover { background: var(--surface-h); border-color: var(--border-h); color: var(--text); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:768px) {
  .reveal-section { filter: blur(4px); }
  #cursorGlow { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  .reveal-section { opacity: 1!important; filter: none!important; transform: none!important; transition: none!important; }
  #heroLogo, #heroText, #heroSocial, #scrollHint, #siteHeader { transition: none!important; }
  .hero-logo-ring, .playing-dot, .scroll-arrow, .live-badge, .live-ring, .live-badge-hero, .kick-live-dot { animation: none!important; }
  * { animation-duration: .01ms!important; transition-duration: .01ms!important; }
}

    /* ══════════════════════════════════════
       COVER
    ══════════════════════════════════════ */
    .profile-cover {
      position: relative;
      width: 100%;
      height: 200px;
      overflow: hidden;
    }
    .profile-cover::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 70% 100% at 25% 60%, rgba(212,175,55,.08), transparent 65%),
        radial-gradient(ellipse 55% 80% at 80% 20%, rgba(88,101,242,.07), transparent 60%);
    }
    .profile-cover-grid {
      position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(212,175,55,.1) 1px, transparent 1px);
      background-size: 30px 30px;
      opacity: .35;
    }
    .profile-cover::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 100px;
      background: linear-gradient(to bottom, transparent, #0e0d0f);
    }

    /* ══════════════════════════════════════
       PAGE WRAPPER
    ══════════════════════════════════════ */
    .profile-page {
      max-width: 880px;
      margin: 0 auto;
      padding: 0 1rem 5rem;
      position: relative;
      z-index: 1;
    }

    /* ══════════════════════════════════════
       HEADER: AVATAR + META + STATS
    ══════════════════════════════════════ */
    .profile-header {
      display: flex;
      align-items: flex-end;
      gap: 1.1rem;
      margin-top: -54px;
      margin-bottom: 1.75rem;
      flex-wrap: wrap;
    }
    .profile-avatar-ring {
      position: relative;
      flex-shrink: 0;
      width: 100px; height: 100px;
      border-radius: 50%;
      padding: 3px;
      background: linear-gradient(135deg, rgba(212,175,55,.75), rgba(212,175,55,.15) 50%, rgba(212,175,55,.55));
      box-shadow: 0 0 30px rgba(212,175,55,.18), 0 10px 28px rgba(0,0,0,.65);
      z-index: 2;
    }
    .profile-avatar-ring img {
      width: 100%; height: 100%;
      border-radius: 50%; object-fit: cover;
      background: transparent;
      display: block;
      /* Inner dark ring that separates gold gradient from avatar */
      box-shadow: 0 0 0 3px #0e0d0f inset;
    }
    .profile-online {
      position: absolute; bottom: 5px; left: 5px;
      width: 16px; height: 16px;
      background: #23a55a; border-radius: 50%;
      border: 2.5px solid #0e0d0f;
      box-shadow: 0 0 10px rgba(35,165,90,.55);
    }

    .profile-meta { flex: 1; min-width: 0; padding-bottom: .3rem; }
    .profile-name-row {
      display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
    }
    .profile-name {
      font-size: 1.35rem; font-weight: 800;
      color: var(--text); letter-spacing: -.015em;
    }
    .clan-tag {
      display: inline-flex; align-items: center; gap: .3rem;
      padding: .16rem .6rem; border-radius: var(--r-f);
      background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.22);
      font-size: .66rem; font-weight: 800; color: var(--gold); letter-spacing: .06em;
    }
    .profile-sub {
      display: flex; align-items: center; gap: .5rem;
      font-size: .72rem; color: var(--text-3);
      margin-top: .25rem; flex-wrap: wrap;
    }
    .profile-sub-dot { color: rgba(255,255,255,.1); }

    /* Stats row */
    .profile-stats {
      display: flex; align-items: stretch;
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: var(--r-lg);
      overflow: hidden;
      margin-top: .85rem;
    }
    .stat-item {
      flex: 1;
      display: flex; flex-direction: column; align-items: center;
      padding: .65rem .4rem;
      position: relative;
      transition: background var(--t-f);
      cursor: default;
    }
    .stat-item:hover { background: rgba(212,175,55,.04); }
    .stat-item + .stat-item::before {
      content: ''; position: absolute; right: 0; top: 22%; bottom: 22%;
      width: 1px; background: rgba(255,255,255,.055);
    }
    .stat-num { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1; }
    .stat-num.g { color: var(--gold); }
    .stat-lbl { font-size: .62rem; color: var(--text-3); margin-top: .22rem; font-weight: 600; letter-spacing: .02em; }

    /* Edit button */
    .btn-edit {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .36rem .85rem; border-radius: var(--r-f);
      font-size: .72rem; font-weight: 700;
      background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
      color: var(--text-2); text-decoration: none; cursor: pointer;
      transition: background var(--t-m), border-color var(--t-m), color var(--t-m);
      align-self: flex-start; margin-top: .5rem;
      font-family: inherit;
    }
    .btn-edit:hover {
      background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); color: var(--text);
    }

    /* ══════════════════════════════════════
       TABS
    ══════════════════════════════════════ */
    .profile-tabs {
      display: flex; gap: .2rem;
      border-bottom: 1px solid rgba(255,255,255,.06);
      margin-bottom: 1.25rem;
      overflow-x: auto; scrollbar-width: none;
    }
    .profile-tabs::-webkit-scrollbar { display: none; }
    .p-tab {
      display: flex; align-items: center; gap: .4rem;
      padding: .6rem .95rem;
      font-size: .75rem; font-weight: 700;
      color: var(--text-3);
      border: none; border-bottom: 2px solid transparent;
      background: none; font-family: inherit; cursor: pointer;
      white-space: nowrap;
      transition: color var(--t-f), border-color var(--t-f);
    }
    .p-tab:hover { color: var(--text-2); }
    .p-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
    .tab-pill {
      font-size: .6rem; font-weight: 800;
      background: rgba(212,175,55,.1); color: var(--gold);
      padding: .05rem .38rem; border-radius: var(--r-f);
    }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ══════════════════════════════════════
       SECTION HEADING
    ══════════════════════════════════════ */
    .sec-head {
      display: flex; align-items: center; gap: .7rem;
      margin-bottom: 1rem;
    }
    .sec-icon {
      width: 26px; height: 26px; border-radius: var(--r-md);
      background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.17);
      display: flex; align-items: center; justify-content: center;
      color: var(--gold); flex-shrink: 0;
    }
    .sec-title {
      font-size: .78rem; font-weight: 700;
      color: var(--text-2); letter-spacing: .05em; text-transform: uppercase;
    }
    .sec-line { flex: 1; height: 1px; background: linear-gradient(to left, transparent, rgba(255,255,255,.055)); }
    .sec-count {
      font-size: .65rem; font-weight: 700; color: var(--text-3);
      background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
      padding: .13rem .5rem; border-radius: var(--r-f);
    }

    /* ══════════════════════════════════════
       GALLERY
    ══════════════════════════════════════ */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: .45rem;
    }
    @media(max-width:560px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }

    .gal-item {
      position: relative; border-radius: var(--r-md); overflow: hidden;
      aspect-ratio: 1; cursor: pointer;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.06);
      transition: transform var(--t-m), box-shadow var(--t-m);
    }
    .gal-item:hover { transform: scale(1.025); box-shadow: 0 8px 28px rgba(0,0,0,.5); }
    .gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-e); }
    .gal-item:hover img { transform: scale(1.07); }
    .gal-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.65), transparent 50%);
      opacity: 0; transition: opacity var(--t-m);
      display: flex; align-items: flex-end; padding: .55rem .65rem;
    }
    .gal-item:hover .gal-overlay { opacity: 1; }
    .gal-date { font-size: .6rem; color: rgba(255,255,255,.72); font-weight: 600; }

    .empty-state {
      display: flex; flex-direction: column; align-items: center;
      gap: .6rem; padding: 2.75rem 1rem;
      border: 1px dashed rgba(255,255,255,.07); border-radius: var(--r-xl);
      color: var(--text-3); font-size: .76rem; text-align: center;
    }

    /* ══════════════════════════════════════
       GAME COMMENTS
    ══════════════════════════════════════ */
    .comments-list {
      display: flex; flex-direction: column; gap: .5rem;
      max-height: 480px; overflow-y: auto;
      scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.3) transparent;
      padding-right: 4px;
    }
    .comment-card {
      display: flex; align-items: flex-start; gap: .85rem;
      padding: .9rem 1rem;
      background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
      border-radius: var(--r-lg);
      transition: background var(--t-f), border-color var(--t-f);
    }
    .comment-card:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
    .comment-cover {
      width: 46px; height: 46px; border-radius: var(--r-md); object-fit: cover;
      background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; overflow: hidden;
    }
    .comment-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .comment-body { flex: 1; min-width: 0; }
    .comment-top {
      display: flex; align-items: center; justify-content: space-between;
      gap: .5rem; margin-bottom: .25rem;
    }
    .comment-game { font-size: .78rem; font-weight: 700; color: var(--text); }
    .comment-date { font-size: .63rem; color: var(--text-3); white-space: nowrap; }
    .comment-stars { display: flex; gap: 1px; margin-bottom: .3rem; }
    .s-on  { color: var(--gold); font-size: .7rem; }
    .s-off { color: rgba(255,255,255,.12); font-size: .7rem; }
    .comment-text { font-size: .74rem; color: var(--text-2); line-height: 1.6; }

    /* ══════════════════════════════════════
       ADVENTURE PROGRESS
    ══════════════════════════════════════ */
    .adv-card {
      background: rgba(255,255,255,.025);
      border: 1px solid rgba(255,255,255,.055);
      border-radius: 20px; overflow: hidden; position: relative;
    }
    .adv-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212,175,55,.32) 40%, rgba(212,175,55,.32) 60%, transparent);
    }
    .adv-top { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.25rem 1rem; }
    .adv-icon {
      width: 50px; height: 50px; border-radius: var(--r-lg);
      background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.18);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; flex-shrink: 0;
    }
    .adv-info { flex: 1; }
    .adv-title { font-size: .88rem; font-weight: 800; color: var(--text); }
    .adv-sub { font-size: .7rem; color: var(--text-3); margin-top: .15rem; }
    .adv-level { text-align: center; flex-shrink: 0; }
    .adv-lvl-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
    .adv-lvl-lbl { font-size: .58rem; color: var(--text-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

    /* XP */
    .xp-wrap { padding: 0 1.25rem 1.2rem; }
    .xp-labels { display: flex; justify-content: space-between; font-size: .64rem; color: var(--text-3); margin-bottom: .38rem; }
    .xp-track { height: 5px; background: rgba(255,255,255,.06); border-radius: var(--r-f); overflow: hidden; }
    .xp-fill {
      height: 100%; border-radius: var(--r-f);
      background: linear-gradient(90deg, rgba(212,175,55,.55), var(--gold));
      box-shadow: 0 0 10px rgba(212,175,55,.35);
      transition: width 1.1s cubic-bezier(.2,.8,.2,1);
    }

    /* Milestones */
    .milestones {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem;
      padding: 0 1.25rem 1.25rem;
    }
    @media(max-width:480px){ .milestones { grid-template-columns: 1fr; } }

    .ms-item {
      display: flex; align-items: center; gap: .6rem;
      padding: .6rem .8rem; border-radius: var(--r-md);
      background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
      transition: background var(--t-f), border-color var(--t-f);
    }
    .ms-item.done { background: rgba(212,175,55,.05); border-color: rgba(212,175,55,.14); }
    .ms-item:hover { background: rgba(255,255,255,.04); }
    .ms-item.done:hover { background: rgba(212,175,55,.08); }
    .ms-ico {
      width: 28px; height: 28px; border-radius: var(--r-sm);
      background: rgba(255,255,255,.04);
      display: flex; align-items: center; justify-content: center;
      font-size: .85rem; flex-shrink: 0;
    }
    .ms-item.done .ms-ico { background: rgba(212,175,55,.1); }
    .ms-body { flex: 1; min-width: 0; }
    .ms-name { font-size: .72rem; font-weight: 700; color: var(--text-2); line-height: 1.25; }
    .ms-item.done .ms-name { color: var(--gold); }
    .ms-desc { font-size: .62rem; color: var(--text-3); margin-top: .08rem; }
    .ms-check {
      width: 16px; height: 16px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: .55rem; flex-shrink: 0;
    }
    .ms-check.done { background: rgba(212,175,55,.2); color: var(--gold); }
    .ms-check.pend { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }

    /* ══════════════════════════════════════
       LIGHTBOX
    ══════════════════════════════════════ */
    .lightbox {
      position: fixed; inset: 0; z-index: 600;
      background: rgba(0,0,0,.88); backdrop-filter: blur(14px);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity var(--t-m);
    }
    .lightbox.open { opacity: 1; pointer-events: all; }
    .lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--r-xl); box-shadow: 0 24px 80px rgba(0,0,0,.7); object-fit: contain; }
    .lb-close {
      position: absolute; top: 1.2rem; left: 1.2rem;
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
      color: var(--text-2); display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: .95rem;
      transition: background var(--t-f);
    }
    .lb-close:hover { background: rgba(255,255,255,.14); }

    /* ══════════════════════════════════════
       PROFILE RESPONSIVE
    ══════════════════════════════════════ */
    @media (max-width: 640px) {
      .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -40px;
      }
      .profile-avatar-ring { margin: 0 auto; }
      .profile-meta { width: 100%; }
      .profile-name-row { justify-content: center; }
      .profile-sub { justify-content: center; }
      .profile-stats { flex-wrap: wrap; }
      .stat-item { flex: 0 0 50%; box-sizing: border-box; }
      .stat-item:nth-child(2)::before { display: none; }
      .stat-item:nth-child(3)::before { display: none; }
      .gallery-grid { grid-template-columns: repeat(2, 1fr); }
      .profile-page { padding: 0 .75rem 4rem; }
    }
    @media (max-width: 480px) {
      .profile-cover { height: 140px; }
    }
    @media (min-width: 641px) and (max-width: 1024px) {
      .profile-page { padding: 0 1.25rem 4rem; }
    }


    /* Post Card Container */
.post-card {
  display: flex;
  min-height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform var(--t-m);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
}

/* Left Interaction Sidebar */
.post-interactions {
  width: 65px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.interaction-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--t-f), transform var(--t-f);
}

.interaction-btn:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.interaction-btn span {
  font-size: 0.7rem;
  font-weight: 700;
}

.post-date-vertical {
  margin-top: auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--text-3);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  opacity: 0.5;
}

/* Right Content Wrap */
.post-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: linear-gradient(to left, rgba(212, 175, 55, 0.02), transparent);
}

.post-info {
  margin-bottom: 16px;
  text-align: right; /* Matching your RTL layout */
}

.post-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-desc {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Post Media (Right aligned Image) */
.post-media {
  margin-top: auto;
  width: 100%;
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-media img {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .post-card {
    flex-direction: column-reverse; /* Stack interactions below on mobile if needed */
  }
  .post-interactions {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border);
    justify-content: center;
    padding: 12px;
    height: auto;
  }
  .post-date-vertical {
    writing-mode: horizontal-tb;
    margin-top: 0;
    margin-right: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY CARD  (Phase 11-K)
   ═══════════════════════════════════════════════════════════════ */

/* ── Card shell ───────────────────────────────────────────────── */
.gallery-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  margin-bottom: .65rem;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212,175,55,.12);
}
.gallery-card[data-type="youtube_short"] { border: 2px solid rgba(255,0,0,.55); }
.gallery-card[data-type="kick_clip"]     { border: 2px solid rgba(83,252,24,.55); }
.gallery-card[data-type="user_image"]    { border: 2px solid rgba(212,175,55,.25); }
.gallery-card[data-type="video"]         { border: 2px solid rgba(99,102,241,.5); }

/* ── Media area (full image height — no crop) ─────────────────── */
.gallery-card__media {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  background: #0a090c;
}
.gallery-card__media img {
  width: 100%;
  height: auto;  /* NEVER crop — show full image */
  display: block;
}

/* ── Hover-play video (video type cards) ─────────────────────── */
.gallery-card__hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .gallery-card[data-type="video"]:hover .gallery-card__hover-video { opacity: 1; }
  /* Suppress play icon once the video fades in */
  .gallery-card[data-type="video"]:hover .gallery-card__play-overlay { opacity: 0 !important; }
}

/* ── Play overlay on hover (video/embed types) ────────────────── */
.gallery-card__play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) {
  .gallery-card:hover .gallery-card__play-overlay { opacity: 1; }
}

/* ── Type icon (top-right circle) ─────────────────────────────── */
.gallery-card__type-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ── Pin badge (top-left) ──────────────────────────────────────── */
.gallery-pin {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(212,175,55,.18);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ── Processing indicator ─────────────────────────────────────── */
.gallery-card__processing {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: rgba(212,175,55,.8);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  z-index: 3;
}

/* ── Footer ────────────────────────────────────────────────────── */
.gallery-card__footer {
  padding: 8px 10px 10px;
  background: rgba(0,0,0,.2);
}
.gallery-card__title {
  font-size: .82rem;
  color: #f0efef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  font-weight: 600;
}
.gallery-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: rgba(240,239,239,.45);
}
.gallery-card__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gallery-card__uname {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-card__tags {
  margin-top: 5px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.gallery-tag {
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.22);
  color: rgba(212,175,55,.8);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .6rem;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}
.gallery-tag:hover { background: rgba(212,175,55,.2); }

/* ── Hidden badge (visible without hovering in admin view) ─────── */
.gallery-card__hidden-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(248,113,113,.85);
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

/* ── Admin hover overlay ───────────────────────────────────────── */
.gallery-card__admin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  opacity: 0;
  transition: opacity .15s;
  z-index: 5;
}
.gallery-card:hover .gallery-card__admin-overlay { opacity: 1; }

.adm-ov-btn {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(240,239,239,.8);
  border-radius: 7px;
  padding: .3rem .6rem;
  font-size: .68rem;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  transition: background .12s, border-color .12s;
}
.adm-ov-btn--gold { border-color: rgba(212,175,55,.6); color: #D4AF37; }
.adm-ov-btn--red  { border-color: rgba(248,113,113,.5); color: rgba(248,113,113,.9); }
.adm-ov-btn--danger {
  background: rgba(248,113,113,.15);
  border-color: rgba(248,113,113,.35);
  color: rgba(248,113,113,.9);
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY MODAL  (Instagram split-layout — Phase 11-K-4)
   ═══════════════════════════════════════════════════════════════ */

.gal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity .18s;
}
.gal-modal.hidden { display: none; }

.gal-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(240,239,239,.8);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.gal-modal__close:hover { background: rgba(255,255,255,.16); }

/* Inner container */
.gal-modal__box {
  position: relative;
  display: flex;
  width: min(1100px, 96vw);
  max-height: 90vh;
  background: #0e0d0f;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 16px;
  overflow: hidden;
}

/* ── Left: media (58%) ───────────────────────────────────────── */
.gal-modal__media {
  flex: 0 0 58%;
  min-width: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 90vh;
  position: relative;
}
.gal-modal__media img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}
.gal-modal__media video,
.gal-modal__media iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  display: block;
}

/* ── Right: info (42%) ───────────────────────────────────────── */
.gal-modal__info {
  flex: 0 0 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(212,175,55,.1);
  overflow: hidden;
  max-height: 90vh;
}

.gal-modal__header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.gal-modal__header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gal-modal__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gal-modal__uname {
  font-size: .84rem;
  font-weight: 700;
  color: #f0efef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gal-modal__date {
  font-size: .68rem;
  color: rgba(240,239,239,.35);
}
.gal-modal__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .73rem;
  color: rgba(240,239,239,.45);
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.05);
}
.gal-modal__stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gal-modal__stat-divider {
  color: rgba(240,239,239,.2);
}
.gal-modal__like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .73rem;
  color: rgba(240,239,239,.45);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: color .15s;
  padding: 0;
}
.gal-modal__like-btn.liked { color: #D4AF37; }
.gal-modal__like-btn:hover { color: #D4AF37; }

/* YouTube overlay in modal media area */
.gm-yt-overlay {
  position: absolute;
  inset: 0;
  background: #000;
}
.gm-yt-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .75;
}
.gm-yt-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,0,0,.9);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.gm-yt-btn:hover {
  background: #cc0000;
  transform: translate(-50%, -50%) scale(1.04);
}

.gal-modal__title-wrap {
  padding: 10px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  flex-shrink: 0;
}
.gal-modal__title {
  font-size: .9rem;
  font-weight: 700;
  color: #f0efef;
  margin-bottom: 6px;
}
.gal-modal__taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Three-dot edit/delete menu */
.gal-modal__menu-wrap {
  position: relative;
  margin-right: auto;
}
.gal-modal__menu-btn {
  background: none;
  border: none;
  color: rgba(240,239,239,.4);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background .12s, color .12s;
}
.gal-modal__menu-btn:hover { background: rgba(255,255,255,.07); color: #f0efef; }
.gal-modal__menu-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #141318;
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 8px;
  min-width: 130px;
  z-index: 300;
  overflow: hidden;
}
.gal-modal__menu-drop.hidden { display: none; }
.gal-modal__menu-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: .78rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: rgba(240,239,239,.75);
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  transition: background .1s;
}
.gal-modal__menu-item:hover { background: rgba(255,255,255,.05); }
.gal-modal__menu-item--danger { color: rgba(248,113,113,.85); }
.gal-modal__menu-item--gold   { color: #D4AF37; }

/* Comments */
.gal-modal__comments {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gal-comment {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.gal-comment__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.gal-comment__body { flex: 1; min-width: 0; }
.gal-comment__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.gal-comment__uname {
  font-size: .72rem;
  font-weight: 700;
  color: #D4AF37;
  text-decoration: none;
}
.gal-comment__lv {
  font-size: .58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.22);
  color: rgba(212,175,55,.7);
}
.gal-comment__text {
  font-size: .78rem;
  color: rgba(240,239,239,.8);
  line-height: 1.5;
  word-break: break-word;
}
.gal-comment__time {
  font-size: .62rem;
  color: rgba(240,239,239,.3);
  margin-top: 2px;
}
.gal-comment__del {
  background: none;
  border: none;
  color: rgba(248,113,113,.45);
  cursor: pointer;
  font-size: .75rem;
  padding: 0 2px;
  opacity: 0;
  transition: opacity .15s, color .15s;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.gal-comment:hover .gal-comment__del { opacity: 1; }
.gal-comment__del:hover { color: rgba(248,113,113,.9); }

/* Comment input */
.gal-modal__input {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.gal-modal__comment-box {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 10px;
  color: #f0efef;
  padding: 8px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: .8rem;
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 100px;
  transition: border-color .15s;
  line-height: 1.4;
}
.gal-modal__comment-box:focus { border-color: rgba(212,175,55,.5); }
.gal-modal__send-btn {
  background: #D4AF37;
  color: #0e0d0f;
  border: none;
  border-radius: 9px;
  padding: 7px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.gal-modal__send-btn:hover { background: #c9a42e; }
.gal-modal__login-link {
  font-size: .75rem;
  color: rgba(212,175,55,.65);
  text-align: center;
  width: 100%;
  padding: 4px 0;
}
.gal-modal__login-link:hover { color: #D4AF37; }

/* Edit sub-form inside modal (title / tags / caption) */
.gal-modal__edit-form {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: rgba(255,255,255,.02);
}
.gal-modal__edit-form input,
.gal-modal__edit-form textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 8px;
  color: #f0efef;
  padding: 7px 11px;
  font-family: 'Cairo', sans-serif;
  font-size: .78rem;
  outline: none;
  transition: border-color .15s;
}
.gal-modal__edit-form input:focus,
.gal-modal__edit-form textarea:focus { border-color: rgba(212,175,55,.5); }
.gal-modal__edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Mobile: stacked layout ──────────────────────────────────── */
@media (max-width: 767px) {
  .gal-modal { padding: 0; align-items: flex-start; }
  .gal-modal__box {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
  .gal-modal__media {
    flex: 0 0 auto;
    max-height: 50vh;
    width: 100%;
  }
  .gal-modal__media img { max-height: 50vh; }
  .gal-modal__info {
    flex: 1;
    border-right: none;
    border-top: 1px solid rgba(212,175,55,.1);
    max-height: none;
    overflow-y: auto;
  }
  .gal-modal__comments { max-height: 35vh; }
  .gal-modal__close { top: 8px; left: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   UPLOAD FORM  (Phase 11-K-6)
   ═══════════════════════════════════════════════════════════════ */

.upload-type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.upload-type-btn {
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .75rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(240,239,239,.5);
  background: transparent;
  cursor: pointer;
  transition: .15s;
}
.upload-type-btn.active,
.upload-type-btn:hover {
  border-color: rgba(212,175,55,.45);
  color: #D4AF37;
  background: rgba(212,175,55,.08);
}

.upload-dropzone {
  border: 2px dashed rgba(212,175,55,.2);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(240,239,239,.3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.upload-dropzone.drag-over {
  border-color: rgba(212,175,55,.55);
  background: rgba(212,175,55,.04);
  color: rgba(212,175,55,.8);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview { margin-top: 10px; }
.upload-preview img,
.upload-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  display: block;
}

.upload-url-status {
  font-size: .72rem;
  margin-top: 6px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}
.upload-url-status.ok      { color: #4ade80; }
.upload-url-status.err     { color: rgba(248,113,113,.9); }
.upload-url-status.loading { color: rgba(240,239,239,.4); }
.upload-url-status.loading::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
  border-top-color: rgba(212,175,55,.8);
  border-radius: 50%;
  animation: upload-spin .55s linear infinite;
}
@keyframes upload-spin { to { transform: rotate(360deg); } }

.upload-file-error {
  font-size: .72rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  color: rgba(248,113,113,.9);
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.18);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tags-live-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  min-height: 10px;
}
