:root{
  --bg:#0b0f19;
  --card:rgba(255,255,255,0.06);
  --card-border:rgba(255,255,255,0.15);
  --fg:#eef2ff;
  --muted:#c7c9d9;
  --primary:#7c5cff;
  --primary-2:#22d3ee;
  --accent:#f59e0b;
  --success:#10b981;
}

*{ box-sizing:border-box }
html,body{ min-height:100%; background:var(--bg); }
html,body{ overscroll-behavior-x:none; overflow-x:hidden; } /* NEMA horizontalnog skrola */
body{
  margin:0; color:var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(124,92,255,0.17), transparent 60%),
    radial-gradient(1000px 700px at 90% 30%, rgba(34,211,238,0.15), transparent 60%),
    linear-gradient(180deg, #0b0f19 0%, #0b0f19 100%);
  -webkit-text-size-adjust:100%;
  touch-action:manipulation;
}

img,video{ max-width:100%; display:block }

/* ukrasni noise/blur */
.noise{ position:fixed; inset:0; pointer-events:none; opacity:.05;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.6"/></svg>');
}
.blob{ position:absolute; filter:blur(60px); opacity:.55; pointer-events:none; }
.blob1{ width:280px; height:280px; background:radial-gradient(circle at 30% 30%, rgba(124,92,255,0.55), transparent 60%); top:-60px; left:-60px; animation:float1 10s ease-in-out infinite; }
.blob2{ width:320px; height:320px; background:radial-gradient(circle at 70% 70%, rgba(34,211,238,0.45), transparent 60%); bottom:-80px; right:-60px; animation:float2 12s ease-in-out infinite; }
@keyframes float1{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(14px,10px)} }
@keyframes float2{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-16px,-12px)} }

.container{ min-height:100vh; display:grid; place-items:center; padding:28px; position:relative; }
.wrapper{ width:100%; max-width:980px; position:relative; }

.badge{ display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:999px; border:1px solid var(--card-border); background:rgba(255,255,255,0.05); backdrop-filter:blur(8px); font-weight:600; letter-spacing:.2px; }
.badge .dot{ width:8px; height:8px; border-radius:999px; background:var(--success); box-shadow:0 0 14px rgba(16,185,129,0.9); }

.card{ margin-top:18px; border:1px solid var(--card-border); background:var(--card); border-radius:24px; padding:28px; backdrop-filter:blur(10px); box-shadow:0 20px 70px rgba(0,0,0,0.45); }

header{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:12px; }
.logo{ width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg, var(--primary), var(--primary-2)); display:grid; place-items:center; font-weight:800; color:white; box-shadow:0 10px 30px rgba(124,92,255,0.35); }
h1{ font-size:20px; margin:0; letter-spacing:.3px; }
.muted{ color:var(--muted); }
.social{ display:flex; gap:10px; }
.icon-btn{ width:40px; height:40px; border-radius:12px; border:1px solid var(--card-border); background:rgba(255,255,255,0.06); display:grid; place-items:center; color:var(--fg); text-decoration:none; transition:transform .18s ease, background .18s ease; }
.icon-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,0.12); }

.hero{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap:26px; align-items:start; }
@media (max-width: 880px){ .hero{ grid-template-columns: 1fr; } }

.title{ font-size: clamp(34px, 5vw, 56px); line-height:1.05; margin:10px 0 16px; font-weight:800; letter-spacing:-0.02em; }
.subtitle{ color:var(--muted); font-size: clamp(16px, 2.3vw, 18px); margin-bottom:24px; }
.accent{ color:var(--accent); }

.countdown{ display:grid; grid-template-columns:repeat(4, minmax(70px, 1fr)); gap:12px; margin:22px 0 26px; }
.time{ background:rgba(255,255,255,0.06); border:1px solid var(--card-border); border-radius:16px; padding:14px; text-align:center; }
.time strong{ display:block; font-size: clamp(24px, 4.2vw, 36px); font-weight:800; letter-spacing:-.02em; margin-bottom:4px; }
.time span{ color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.12em; }

.form{ display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; }
@media (max-width:540px){ .form{ grid-template-columns: 1fr; } }
.input{ width:100%; height:48px; border-radius:14px; padding:0 14px; border:1px solid var(--card-border); background:rgba(0,0,0,0.25); color:var(--fg); outline:none; font-size:16px; transition:border-color .15s ease, box-shadow .15s ease; }
.input::placeholder{ color:#9aa3b1; }
.input:focus{ border-color:var(--primary); box-shadow:0 0 0 4px rgba(124,92,255,0.15); }

.btn{ height:48px; padding:0 18px; border-radius:14px; border:0; font-weight:700; color:#0b0f19; background:linear-gradient(135deg, var(--primary), var(--primary-2)); cursor:pointer; box-shadow:0 10px 30px rgba(34,211,238,0.25), 0 6px 20px rgba(124,92,255,0.25); transition:transform .15s ease, filter .15s ease; }
.btn:hover{ transform:translateY(-1px); filter:brightness(1.03); }

.extras{ display:flex; align-items:center; gap:14px; margin-top:12px; color:var(--muted); font-size:14px; flex-wrap:wrap; }
.extras .chip{ border:1px dashed var(--card-border); border-radius:999px; padding:6px 10px; background:rgba(255,255,255,0.04); font-weight:600; }

/* PREVIEW + REELS */
.preview{
  position:relative;
  border:1px solid var(--card-border);
  background:linear-gradient(160deg, rgba(124,92,255,0.09), rgba(34,211,238,0.08));
  border-radius:20px;
  height: 360px;            /* visina kartice na desktopu */
  overflow:hidden;
  display:flex;
}

.reels{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:100%;
  height:100%;
  padding:10px;
  gap:10px;
}

.reel{
  flex:1;
  border-radius:16px;
  overflow:hidden;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.reel video{
  width:100%;
  height:100%;
  object-fit: contain;     /* cijeli “reel” vidljiv bez rezanja */
  border-radius:0;
}

/* MOBILNI – veliki “reels” preko cijele širine, bez horizontalnog skrola */
@media (max-width: 540px){
  .container{ padding:16px; }
  .card{ border-radius:18px; padding:16px; }
  .title{ font-size: clamp(28px, 7vw, 40px); }
  .subtitle{ font-size:15px; }
  .icon-btn{ width:36px; height:36px; border-radius:10px; }

  /* Reels postaje full-width blok ispod teksta,
     svaki reel je veliki 9:16, ali ograničen visinom ekrana */
  .preview{
    height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .reels{
    padding:0;
    gap:16px;
  }
  .reel{
    height: min(86vh, 560px);   /* veliki, ali da stane na ekran */
    aspect-ratio: 9 / 16;
    border:1px solid var(--card-border);
  }
  footer{ flex-direction:column; align-items:flex-start; gap:8px; padding-bottom: env(safe-area-inset-bottom); }
  .toast{ left:50%; bottom:calc(16px + env(safe-area-inset-bottom)); transform:translateX(-50%); }
}

footer{ margin-top:18px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); gap:12px; flex-wrap:wrap; }
footer a{ color:var(--fg); text-decoration:none; border-bottom:1px dashed var(--card-border); }

.toast{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px); background:rgba(16,185,129,0.18); color:#d1fae5; border:1px solid rgba(16,185,129,0.45); padding:12px 16px; border-radius:12px; opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; font-weight:700; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

