/* 4U Agency — Design tokens */
/* —— Cursor (arrow on text, pointer on clickable, text on inputs) —— */
/* Default: săgeată normală peste tot */
html, body, * {
  cursor: default;
}

/* Toate textele: tot săgeată (NU cursor I de selectare) */
p, h1, h2, h3, h4, h5, h6, span, div, li, td, th, label, em, strong, small, b, i {
  cursor: default;
}

/* Butoane, link-uri, elemente clickabile: mânuță */
button, a, .btn, .ulink, [role="button"], [onclick],
.card[onclick], .pill[onclick], select, summary {
  cursor: pointer;
}

/* Input-uri text: cursor de text (necesar pentru a putea scrie) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], input[type="password"], input:not([type]),
textarea, [contenteditable="true"] {
  cursor: text;
}

/* Disabled elemente: not-allowed */
button:disabled, [disabled], .disabled {
  cursor: not-allowed;
}

/* Sliders, range inputs */
input[type="range"] {
  cursor: ew-resize;
}

:root {
  --accent-1: #52F20F;       /* electric green */
  --accent-1-glow: #52F20F33;
  --accent-2: #FFD700;       /* yellow */
  --accent-2-glow: #FFD70033;
  --bg-0: #0A0A0F;           /* deep base */
  --bg-1: #0E0E0E;           /* logo black */
  --bg-2: #13131A;
  --bg-3: #1C1C24;
  --line: #27272A;
  --line-soft: #1f1f24;
  --txt-0: #FFFFFF;
  --txt-1: #E4E4E7;
  --txt-2: #A1A1AA;
  --txt-3: #71717A;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-1); color: var(--txt-0); overflow-x: hidden; }
body {
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* —— Type —— */
.display {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* —— Grain overlay —— */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* —— Mesh background —— */
.mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(82,242,15,.20), transparent 60%),
    radial-gradient(35% 30% at 85% 30%, rgba(255,215,0,.11), transparent 60%),
    radial-gradient(50% 40% at 60% 90%, rgba(82,242,15,.13), transparent 65%);
  filter: blur(60px) saturate(140%);
  animation: meshFloat 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.05); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

/* —— Global atmospheric backdrop (site-wide) —— */
.global-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 10% 0%, rgba(82,242,15,.42), transparent 55%),
    radial-gradient(55% 45% at 95% 12%, rgba(255,215,0,.22), transparent 60%),
    radial-gradient(60% 40% at 50% 30%, rgba(82,242,15,.14), transparent 65%),
    radial-gradient(55% 40% at 8% 50%, rgba(82,242,15,.16), transparent 60%),
    radial-gradient(50% 40% at 95% 55%, rgba(255,215,0,.10), transparent 60%),
    radial-gradient(60% 45% at 50% 75%, rgba(82,242,15,.16), transparent 65%),
    radial-gradient(55% 50% at 5% 95%, rgba(82,242,15,.26), transparent 60%),
    radial-gradient(50% 45% at 95% 100%, rgba(255,215,0,.14), transparent 60%);
}
.global-bg .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 14%, rgba(82,242,15,.7), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, rgba(82,242,15,.6), transparent 60%),
    radial-gradient(1px 1px at 60% 58%, rgba(255,215,0,.5), transparent 60%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(82,242,15,.65), transparent 60%),
    radial-gradient(1px 1px at 6% 48%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 36% 92%, rgba(82,242,15,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 94% 50%, rgba(82,242,15,.6), transparent 60%);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* Page wrapper sits above global-bg */
#root { position: relative; z-index: 2; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; height: 44px;
  border-radius: var(--r-sm); border: 0; cursor: pointer; font: 500 14px/1 'Geist', sans-serif;
  text-decoration: none; color: inherit; letter-spacing: -0.01em;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  position: relative; white-space: nowrap;
}
.btn-primary {
  background: var(--accent-1); color: #0A0A0F;
  box-shadow: 0 0 0 0 var(--accent-1-glow), 0 8px 24px rgba(82,242,15,.18);
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px) scale(1.015); box-shadow: 0 0 0 6px var(--accent-1-glow), 0 12px 40px rgba(82,242,15,.35); }
.btn-glass {
  background: rgba(255,255,255,.04); color: var(--txt-0);
  border: .5px solid rgba(255,255,255,.12); backdrop-filter: blur(20px);
}
.btn-glass:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.btn-ghost { background: transparent; color: var(--txt-1); }
.btn-ghost:hover { color: var(--accent-1); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 10px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* —— Cards —— */
.card {
  background: var(--bg-2);
  border: .5px solid var(--line);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(82,242,15,.35); box-shadow: 0 20px 60px rgba(82,242,15,.08); }
.card-glass {
  background: rgba(20,20,26,.55);
  border: .5px solid rgba(255,255,255,.07);
  backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--r-lg);
}

/* —— Pill / chip / badge —— */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font: 500 11px/1 'Geist', sans-serif; letter-spacing: 0.01em;
  background: rgba(255,255,255,.04); border: .5px solid rgba(255,255,255,.08);
  color: var(--txt-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-1); box-shadow: 0 0 8px var(--accent-1); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* —— Inputs —— */
.input {
  width: 100%; height: 44px; padding: 0 14px;
  background: rgba(255,255,255,.03); border: .5px solid var(--line);
  border-radius: var(--r-sm); color: var(--txt-0);
  font: 400 14px/1 'Geist', sans-serif; outline: none;
  transition: border .18s, background .18s;
}
.input:focus { border-color: var(--accent-1); background: rgba(82,242,15,.04); }
.input::placeholder { color: var(--txt-3); }

/* —— Marquee / tickers —— */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* —— Underline link —— */
.ulink { color: var(--accent-1); text-decoration: none; position: relative; }
.ulink::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--accent-1); transform: scaleX(.4); transform-origin: 0 50%; transition: transform .25s; }
.ulink:hover::after { transform: scaleX(1); }

/* —— Reveal on scroll —— */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* —— Shimmer skeleton —— */
.shim { position: relative; overflow: hidden; background: var(--bg-3); }
.shim::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shim 1.6s linear infinite;
}
@keyframes shim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* —— Layout helpers —— */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* —— Selection —— */
::selection { background: var(--accent-1); color: #0A0A0F; }

/* —— Page transitions —— */
.page { animation: pageIn .35s ease-out both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* —— Scrollbar —— */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272A; border-radius: 10px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* —— Toast —— */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,26,.92); border: .5px solid var(--line);
  padding: 12px 18px; border-radius: 12px; color: var(--txt-0);
  display: flex; align-items: center; gap: 10px; z-index: 9999;
  backdrop-filter: blur(20px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* —— Confetti —— */
.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.cfp { position: absolute; width: 8px; height: 14px; will-change: transform; }
@keyframes cfFall { to { transform: translate3d(var(--tx, 0), 110vh, 0) rotate(720deg); opacity: 0; } }

/* —— Responsive media safety net —— */
img, canvas, video, svg {
  max-width: 100%;
  height: auto;
}

img.full-width, canvas.full-width {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* —— Profile design: layout desktop 2-col cu rame egale —— */
@media (min-width: 900px) {
  .pd-layout {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: stretch;
  }
  .pd-layout > * { margin-top: 0 !important; }

  .pd-zone-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pd-zone-main > * { margin-top: 0 !important; }

  .pd-zone-frames {
    display: flex;
    flex-direction: column;
  }
  .pd-frames-grid-all {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pd-frames-grid-all > .frame-btn {
    flex: 1;
    min-height: 0;
  }
}

/* Ascunde widget-ul flotant Iubenda (privacy preferences button) */
.iubenda-tp-btn,
#iubenda-cs-floating-tab,
[id^="iubenda-cs-floating"],
[class*="iubenda-tp-btn"] {
  display: none !important;
}
