/* ══════════════════════════════════════════════════════════════════════
   PUBLIC LANDING PAGE  - standalone, premium look (uses theme vars)
   ══════════════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
/* פלטה קבועה לאתר הציבורי (צהוב - צבע השרת). לא מושפעת מה-theme של הפאנל */
body.lp {
  --bg-body: #0b0a06; --bg-panel: #14120b; --bg-surface: #16140c; --bg-dark: #0e0d08;
  --border: #2a2616; --text-main: #f7f5ee; --text-muted: #b0a98f;
  --primary: #f5c542; --primary-hover: #e0a92e; --on-primary: #1a1400;
  --glow: #2e2608; --danger: #ef4444; --ok: #34d399;
  background: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden; overflow-y: auto;
}
.lp-btn.primary { color: var(--on-primary, #fff); }
.lp-btn.primary:hover { color: var(--on-primary, #fff); }
body.lp::-webkit-scrollbar { width: 10px; display: block; }
body.lp::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 8px; }
a { text-decoration: none; color: inherit; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; display: inline-block; box-shadow: 0 0 10px #10b981; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 12px;
  font-weight: 600; font-size: 0.92rem; border: 1px solid var(--border, #222); cursor: pointer; transition: 0.18s; white-space: nowrap; }
.lp-btn.big { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.lp-btn.primary { background: var(--primary, #3b82f6); border-color: var(--primary, #3b82f6); color: #fff; }
.lp-btn.primary:hover { background: var(--primary-hover, #2563eb); transform: translateY(-3px); box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.lp-btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.lp-btn.discord:hover { background: #4752c4; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(88,101,242,0.4); }
.lp-btn.ghost { background: rgba(255,255,255,0.04); color: var(--text-main); }
.lp-btn.ghost:hover { background: rgba(255,255,255,0.10); transform: translateY(-3px); }
.lp-btn.gold { background: linear-gradient(135deg,#f5c542,#e0a800); border:0; color:#1a1400; }

/* NAVBAR */
.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 16px 6vw; transition: 0.3s; }
.lp-nav.scrolled { background: color-mix(in srgb, var(--bg-body) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 12px 6vw; }
.lp-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.3px; }
.lp-brand i { color: var(--primary); margin-right: 6px; }
.lp-links { display: flex; gap: 6px; margin-left: 20px; flex: 1; }
.lp-links a { padding: 8px 14px; border-radius: 9px; color: var(--text-muted, #94a3b8); font-weight: 500; font-size: 0.9rem; transition: 0.15s; }
.lp-links a:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.lp-nav { flex-wrap: nowrap; }
.lp-links { min-width: 0; }
.lp-nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex-shrink: 0; }
.lp-nav-right #auth-area { display: flex; align-items: center; gap: 10px; }
.lp-user { flex-shrink: 0; }
.lp-user .lu-name { white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

/* user menu (Discord + CFX dropdown) */
.lp-usermenu { position: relative; }
.lp-userbtn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 5px 12px 5px 6px; border-radius: 30px; cursor: pointer; color: var(--text-main); }
.lp-userbtn:hover { border-color: var(--primary); }
.lp-userbtn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-dark); flex-shrink: 0; }
.lp-userbtn .lu-col { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.lp-userbtn .lu-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.lp-userbtn .lu-cfx { font-size: 0.68rem; color: var(--primary); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.lp-userbtn .lu-caret { font-size: 0.7rem; color: var(--text-muted); }
.lp-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: 0.18s; z-index: 60; }
.lp-dropdown.show { opacity: 1; transform: none; pointer-events: auto; }
.lp-dd-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.lp-dd-row i { font-size: 1.1rem; width: 20px; text-align: center; }
.lp-dd-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lp-dd-val { font-size: 0.9rem; font-weight: 600; }
.lp-dd-logout { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #ef4444; font-weight: 600; font-size: 0.9rem; margin-top: 4px; border-top: 1px solid var(--border); }
.lp-dd-logout:hover { background: rgba(239,68,68,0.1); }

/* animated marquee */
.lp-marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--primary) 10%, var(--bg-body)); padding: 12px 0; margin-top: 64px; }
.lp-marquee-track { display: inline-block; white-space: nowrap; animation: lpscroll linear infinite; will-change: transform; }
.lp-marquee span { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.12em; color: var(--primary); margin: 0 28px; text-transform: uppercase; }
.lp-marquee span i { color: var(--text-muted); margin-left: 28px; font-size: 0.7rem; vertical-align: middle; }
@keyframes lpscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lp-user { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 5px 12px 5px 6px; border-radius: 30px; }
.lp-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.lp-user .lu-name { font-size: 0.85rem; font-weight: 600; }
.lp-user .lu-rank { font-size: 0.7rem; color: var(--primary); }

/* HERO */
.lp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 6vw 80px; overflow: hidden; }
.lp-hero-glow { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 1100px; height: 1100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent) 0%, transparent 60%); pointer-events: none; }
.lp-hero::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent),
  radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4), transparent),
  radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3), transparent),
  radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.4), transparent); opacity: 0.5; pointer-events: none; }
.lp-hero-inner { position: relative; z-index: 2; max-width: 880px; }
.lp-status { display: inline-flex; align-items: center; gap: 8px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: #10b981; padding: 6px 16px; border-radius: 30px; font-size: 0.82rem; font-weight: 600; margin-bottom: 28px; }
.lp-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; line-height: 1.05; letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 130%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-tagline { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-muted); margin: 18px auto 38px; max-width: 600px; }
.lp-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-cta.center { justify-content: center; }
.lp-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--text-muted); animation: bob 2s infinite; z-index: 2; }
@keyframes bob { 50% { transform: translate(-50%, 10px); } }

/* STATS STRIP */
.lp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-strip-item { background: var(--bg-body); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px 20px; }
.lp-strip-item i { font-size: 1.8rem; color: var(--primary); opacity: 0.9; }
.lp-strip-item b { display: block; font-size: 1.7rem; font-weight: 800; }
.lp-strip-item span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* SECTIONS */
.lp-section { padding: 90px 6vw; max-width: 1200px; margin: 0 auto; }
.lp-section.alt { background: color-mix(in srgb, var(--primary) 4%, var(--bg-body)); max-width: none; }
.lp-section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.lp-section-head { text-align: center; margin-bottom: 50px; }
.lp-kicker { color: var(--primary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; }
.lp-section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-top: 10px; letter-spacing: -0.5px; }
.lp-lead { text-align: center; max-width: 760px; margin: 0 auto 46px; font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; }

.lp-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-about-card { background: var(--bg-surface, #0a0a0a); border: 1px solid var(--border); border-radius: 16px; padding: 30px; text-align: center; transition: 0.2s; }
.lp-about-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.lp-about-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 16px; }
.lp-about-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lp-about-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.92rem; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-feat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: 0.2s; position: relative; overflow: hidden; }
.lp-feat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, var(--border)); }
.lp-feat-ic { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 18px; }
.lp-feat h3 { font-size: 1.15rem; margin-bottom: 9px; }
.lp-feat p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; }

.lp-join { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--bg-surface)), var(--bg-surface));
  border: 1px solid var(--border); border-radius: 24px; padding: 64px 30px; }
.lp-join h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.lp-join p { color: var(--text-muted); max-width: 560px; margin: 16px auto 30px; font-size: 1.05rem; line-height: 1.6; }

/* FOOTER */
.lp-footer { border-top: 1px solid var(--border); padding: 40px 6vw; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.lp-footer > div:first-child { font-weight: 800; font-size: 1.1rem; }
.lp-footer i { color: var(--primary); }
.lp-foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lp-foot-links a { color: var(--text-muted); font-size: 0.9rem; transition: 0.15s; }
.lp-foot-links a:hover { color: var(--primary); }
.lp-foot-copy { color: var(--text-muted); font-size: 0.78rem; opacity: 0.7; }

/* rich text pulled from the Tebex homepage */
.lp-richtext { max-width: 860px; margin: 0 auto; color: var(--text-muted); line-height: 1.8; font-size: 1.02rem; }
.lp-richtext h1, .lp-richtext h2, .lp-richtext h3, .lp-richtext h4 { color: var(--text-main); margin: 1.2em 0 0.5em; line-height: 1.3; }
.lp-richtext h1 { font-size: 1.8rem; } .lp-richtext h2 { font-size: 1.5rem; } .lp-richtext h3 { font-size: 1.25rem; }
.lp-richtext p { margin: 0 0 1em; }
.lp-richtext a { color: var(--primary); text-decoration: underline; }
.lp-richtext ul, .lp-richtext ol { margin: 0 0 1em 1.4em; }
.lp-richtext li { margin-bottom: 0.4em; }
.lp-richtext img { max-width: 100%; height: auto; border-radius: 12px; margin: 0.6em 0; }
.lp-richtext hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.lp-richtext table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.lp-richtext td, .lp-richtext th { border: 1px solid var(--border); padding: 8px 10px; }
.lp-richtext iframe, .lp-richtext video { max-width: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .lp-about-grid, .lp-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .lp-links { display: none; }
  .lp-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lp-nav { padding: 12px 4vw; gap: 8px; }
  .lp-brand { font-size: 1.1rem; }
  .lp-hero { padding: 104px 5vw 64px; min-height: 88vh; }
  .lp-section { padding: 52px 5vw; }
  .lp-section-head { margin-bottom: 34px; }
  .lp-about-grid, .lp-features { grid-template-columns: 1fr; gap: 14px; }
  .lp-strip-item { padding: 22px 14px; gap: 12px; }
  .lp-strip-item i { font-size: 1.4rem; }
  .lp-strip-item b { font-size: 1.35rem; }
  .lp-join { padding: 40px 18px; }
  .lp-cta { gap: 10px; }
  .lp-cta .lp-btn.big { flex: 1 1 100%; justify-content: center; padding: 14px 20px; }
  .lp-richtext { font-size: 0.96rem; }
  .lp-dropdown { max-width: 88vw; }
  .lp-userbtn .lu-name, .lp-userbtn .lu-cfx { max-width: 90px; }
}
@media (max-width: 380px) {
  .lp-strip { grid-template-columns: 1fr; }
}

/* ══ logo next to brand name ══ */
.lp-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; vertical-align: middle; margin-right: 4px; }
.lp-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ══ cool loading screen ══ */
.lg-loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--primary) 16%, var(--bg-body)) 0%, var(--bg-body) 70%), var(--bg-body, #0b0a06);
  transition: opacity 0.5s ease, visibility 0.5s ease; }
.lg-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.lg-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.lg-loader-logo { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; }
.lg-loader-logo::before { content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--primary) 82%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: lgspin 1.05s linear infinite; }
.lg-loader-logo::after { content: ''; position: absolute; inset: 4px; border-radius: 50%;
  box-shadow: 0 0 36px color-mix(in srgb, var(--primary) 45%, transparent); animation: lgpulse 1.7s ease-in-out infinite; }
.lg-loader-logo img { width: 70px; height: 70px; object-fit: contain; border-radius: 18px; animation: lgpop 1.7s ease-in-out infinite; z-index: 1; }
.lg-loader-logo i { font-size: 3rem; color: var(--primary); animation: lgpop 1.7s ease-in-out infinite; z-index: 1; }
.lg-loader-name { font-size: 1.55rem; font-weight: 900; letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--text-muted) 0%, #fff 50%, var(--text-muted) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: lgshimmer 2s linear infinite; }
.lg-loader-bar { width: 180px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 14%, transparent); overflow: hidden; }
.lg-loader-bar span { display: block; width: 42%; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: lgslide 1.15s ease-in-out infinite; }
@keyframes lgspin { to { transform: rotate(360deg); } }
@keyframes lgpulse { 50% { box-shadow: 0 0 64px color-mix(in srgb, var(--primary) 65%, transparent); } }
@keyframes lgpop { 50% { transform: scale(1.07); } }
@keyframes lgshimmer { to { background-position: -200% 0; } }
@keyframes lgslide { 0% { transform: translateX(-130%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .lg-loader-logo::before, .lg-loader-logo::after, .lg-loader-logo img, .lg-loader-logo i, .lg-loader-name, .lg-loader-bar span { animation: none; } }

/* ══════════════════════════════════════════════════════════════════════
   SERVER OPENING COUNTDOWN  (big, bold, red)
   ══════════════════════════════════════════════════════════════════════ */
.lp-countdown { --cd: #ff2e2e; margin: 4px auto 40px; display: flex; flex-direction: column; align-items: center;
  gap: 16px; animation: cdIn 0.8s ease both; }
.cd-label { display: inline-flex; align-items: center; gap: 11px; font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cd);
  text-shadow: 0 0 22px color-mix(in srgb, var(--cd) 70%, transparent); }
.cd-live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cd);
  box-shadow: 0 0 12px var(--cd), 0 0 26px var(--cd); animation: pulse 1.4s infinite; }
.cd-boxes { display: flex; align-items: center; gap: clamp(7px, 1.6vw, 16px); }
.cd-box { position: relative; min-width: clamp(70px, 13vw, 118px); padding: clamp(13px, 2vw, 22px) clamp(8px, 1.4vw, 16px);
  border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 7px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cd) 17%, #140606), #110404);
  border: 1px solid color-mix(in srgb, var(--cd) 48%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cd) 30%, transparent),
              0 16px 44px color-mix(in srgb, var(--cd) 22%, transparent),
              0 0 30px color-mix(in srgb, var(--cd) 18%, transparent); }
.cd-box::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cd), transparent); opacity: 0.85; }
.cd-num { font-size: clamp(2.1rem, 6.2vw, 3.7rem); font-weight: 900; line-height: 1; letter-spacing: -1px; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 24px color-mix(in srgb, var(--cd) 65%, transparent); }
.cd-unit { font-size: clamp(0.6rem, 1.5vw, 0.72rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--cd) 45%, var(--text-muted)); }
.cd-sep { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 900; color: var(--cd); opacity: 0.5; transform: translateY(-9px); }
.cd-date { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); }
.cd-date b { color: color-mix(in srgb, var(--cd) 65%, #fff); font-weight: 800; }
.cd-live-banner { display: none; font-size: clamp(1.4rem, 4vw, 2.3rem); font-weight: 900; color: var(--cd);
  text-shadow: 0 0 30px color-mix(in srgb, var(--cd) 70%, transparent); }
.cd-live-banner i { margin-right: 8px; }
/* server is open → show banner, hide the timer */
.lp-countdown.live .cd-label, .lp-countdown.live .cd-boxes, .lp-countdown.live .cd-date { display: none; }
.lp-countdown.live .cd-live-banner { display: block; animation: cdIn 0.5s ease both; }
@keyframes cdIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .cd-sep { display: none; }
  .cd-boxes { gap: 8px; }
  .cd-box { min-width: 0; flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-countdown, .cd-live-dot, .lp-countdown.live .cd-live-banner { animation: none; } }
