/* Atrapa panelu Campli. Wartości z prawdziwej aplikacji (styles/globals.css, zrzuty 23.10.2026). */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --bg: #fafdfc;
  --bg-gradient: linear-gradient(143deg, #fdfefe 0%, #f5faf8 71%);
  --surface: #ffffff;
  --border: #e5ebe9;
  --border-soft: rgba(26, 51, 42, 0.06);
  --border-strong: #dbede6;
  --ink: #1a332a;
  --ink-2: #4d6b60;
  --ink-3: #8aa79c;
  --accent: #0d9e6b;
  --accent-light: #ecfdf5;
  --accent-gradient: linear-gradient(90deg, #33bd7d 0%, #0d9e6b 100%);
  --publikuj-gradient: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  --hero: #134a35;
  --orange: #f59e0b;
  --red: #f43f5e;
  --scena-tlo: radial-gradient(120% 90% at 50% 0%, #f3f7f5 0%, #e7efeb 55%, #dde8e3 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #e4ece8; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }

/* ── Scena: stała rozdzielczość, skalowana do okna ─────────────────────── */
.scena-okno { position: fixed; inset: 0; background: var(--scena-tlo); overflow: hidden; }
.scena { position: absolute; left: 50%; top: 50%; overflow: hidden; transform-origin: 50% 50%; background: var(--scena-tlo); }
.kamera { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }

/* ── Telefon ───────────────────────────────────────────────────────────── */
.telefon {
  position: absolute; left: 50%; top: 50%;
  width: 414px; height: 868px; margin: -434px 0 0 -207px;
  border-radius: 62px; padding: 12px;
  background: linear-gradient(145deg, #2a3430, #0d1512 60%, #1d2622);
  box-shadow:
    0 0 0 1.5px #3c4743 inset,
    0 50px 90px -30px rgba(18, 45, 34, 0.45),
    0 20px 40px -20px rgba(18, 45, 34, 0.35);
}
.ekran {
  position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden;
  background: var(--bg-gradient);
  /* Twarde przycięcie do zaokrąglenia: samo overflow:hidden przecieka, gdy w środku
     jest backdrop-filter albo transform, i kwadratowe rogi wystają poza telefon. */
  clip-path: inset(0 round 50px); isolation: isolate;
}
.wyspa { position: absolute; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; background: #050807; border-radius: 20px; z-index: 50; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 40px; font-size: 16px; font-weight: 600; color: var(--ink); pointer-events: none; }
.status.jasny { color: #fff; }
.status__ikony { display: flex; gap: 6px; align-items: center; }
.status__ikony svg { display: block; }

/* Widoki (ekrany aplikacji) wewnątrz telefonu */
.widok { position: absolute; inset: 0; padding-top: 52px; background: var(--bg-gradient); overflow: hidden; }
.przewijane { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; overflow: hidden; }
.przewijane > .tresc { will-change: transform; }

/* ── Pasek górny ──────────────────────────────────────────────────────── */
.pasek { display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px; }
.pasek__menu { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; }
.pasek__tytul { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; }
.liczniki { margin: 0 16px; display: flex; border: 1px solid var(--border); border-radius: 14px; background: #fff; height: 38px; align-items: center; font-size: 14px; font-weight: 600; }
.liczniki > div { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid var(--border); height: 100%; }
.liczniki > div:last-child { border-right: 0; }
.liczniki .szary { color: var(--ink-3); font-weight: 500; }
.liczniki .pom { color: #ea580c; }
.liczniki .plus { color: var(--accent); font-weight: 700; }

/* ── Dolne menu ───────────────────────────────────────────────────────── */
.menu-dol { position: absolute; left: 0; right: 0; bottom: 0; height: 86px; background: rgba(255,255,255,0.96); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 0; z-index: 30; }
.menu-dol a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.menu-dol a.aktywny { color: var(--accent); font-weight: 700; }
.menu-dol a svg { width: 22px; height: 22px; }
.menu-dol .start { position: relative; top: -22px; }
.menu-dol .start i { width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(26,51,42,0.16); display: grid; place-items: center; color: var(--ink-2); }
.menu-dol .start.aktywny i { background: var(--accent-gradient); color: #fff; }
.menu-dol .start span { margin-top: 2px; }
.kropka { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ea580c; top: -1px; right: 18px; }

/* ── Kalendarz ────────────────────────────────────────────────────────── */
.miesiac { display: flex; align-items: center; justify-content: space-between; margin: 16px 16px 0; }
.miesiac__nazwa { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 700; }
.miesiac__nazwa span.strz { color: var(--ink-2); font-weight: 400; font-size: 20px; }
.pigulka { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-3); background: #fafcfb; }
.pigulka b { color: var(--ink); }
.linia { height: 4px; margin: 10px 16px 0; background: #edf2f0; border-radius: 4px; overflow: hidden; }
.linia > i { display: block; height: 100%; width: 0; background: var(--accent-gradient); border-radius: 4px; }
.dni-tyg { display: grid; grid-template-columns: repeat(7, 1fr); margin: 22px 12px 8px; font-size: 11px; color: var(--ink-3); text-align: center; letter-spacing: 0.4px; }
.siatka { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 12px; }
.dzien { position: relative; height: 86px; border-radius: 10px; background: #f1f5f3; overflow: hidden; font-size: 12px; color: var(--ink-2); }
.dzien.pusty { background: transparent; }
.dzien.weekend { background: #ebf0ee; }
.dzien__nr { position: absolute; top: 5px; left: 7px; z-index: 3; font-weight: 600; }
.dzien img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dzien.z-postem .dzien__nr { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.dzien.z-postem { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.6) inset; }
.dzien.dzis { box-shadow: 0 0 0 2.5px var(--accent); }
.platformy { position: absolute; left: 4px; bottom: 4px; z-index: 3; display: flex; }
.platformy i { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #fff; display: block; }
.platformy i.ig { background: radial-gradient(circle at 30% 110%, #fdcb52 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.platformy i.fb { background: #1877f2; margin-left: -5px; }
.zegar { position: absolute; right: 4px; bottom: 4px; z-index: 3; width: 19px; height: 19px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }

/* Generowanie: shimmer na kafelku */
.generuje { position: absolute; inset: 0; z-index: 2; background: linear-gradient(110deg, #e3ece8 20%, #f6faf8 40%, #e3ece8 60%); background-size: 250% 100%; display: grid; place-items: center; }
.generuje span { font-size: 9.5px; font-weight: 600; color: var(--accent); text-align: center; line-height: 1.2; padding: 0 3px; }

/* Przycisk niebieski na dole kalendarza */
.publikuj { position: absolute; left: 12px; right: 12px; bottom: 98px; height: 46px; border-radius: 14px; background: var(--publikuj-gradient); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(37,99,235,0.55); z-index: 20; }

/* ── Talia pomysłów ───────────────────────────────────────────────────── */
.talia-gora { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 0; font-size: 14px; color: var(--ink-2); }
.talia-gora b { color: var(--ink); }
.talia { position: absolute; left: 16px; right: 16px; top: 146px; height: 440px; }
.karta { position: absolute; inset: 0; background: #fff; border-radius: 26px; border: 1px solid var(--border-soft); box-shadow: 0 18px 40px -18px rgba(26,51,42,0.28); padding: 22px 22px; transform-origin: 50% 110%; overflow: hidden; }
.tagi { display: flex; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tag.zielony { color: var(--accent); border-color: var(--border-strong); }
.karta h2 { font-size: 27px; line-height: 1.17; font-weight: 700; letter-spacing: -0.5px; margin: 18px 0 12px; }
.karta p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.karta .ramka { margin-top: 18px; background: var(--accent-light); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.karta .ramka img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.karta .ramka small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: var(--accent); text-transform: uppercase; margin-bottom: 3px; }
.karta .ramka b { font-size: 15px; }
.stempel { position: absolute; top: 26px; right: 22px; border: 3px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 22px; letter-spacing: 1px; padding: 4px 12px; border-radius: 10px; transform: rotate(12deg); opacity: 0; background: rgba(255,255,255,0.9); }
.przyciski-talii { position: absolute; left: 0; right: 0; top: 618px; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.przyciski-talii .p { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.przyciski-talii .p.nie { background: var(--red); box-shadow: 0 10px 22px -8px rgba(244,63,94,0.6); }
.przyciski-talii .p.tak { background: #34c38f; box-shadow: 0 10px 22px -8px rgba(13,158,107,0.6); }
.przyciski-talii .pozniej { width: 52px; text-align: center; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.przyciski-talii .pozniej i { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; margin: 0 auto 5px; }

/* ── Szuflada posta ───────────────────────────────────────────────────── */
.szuflada { position: absolute; inset: 0; background: #fff; z-index: 35; padding-top: 52px; }
.szuflada__gora { display: flex; align-items: center; gap: 10px; padding: 10px 18px 14px; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.szuflada__gora .wroc { color: var(--accent); font-weight: 500; white-space: nowrap; }
.szuflada__gora .sep { width: 1px; height: 16px; background: var(--border); }
.szuflada__gora b { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.szuflada__gora .x { color: var(--ink-3); font-size: 20px; }
.meta { display: flex; gap: 22px; padding: 16px 20px 0; }
.meta small { display: block; font-size: 11px; letter-spacing: 0.5px; color: var(--ink-2); text-transform: uppercase; margin-bottom: 8px; }
.meta .ikony { display: flex; }
.meta .ikony i { width: 26px; height: 26px; border-radius: 8px; display: block; border: 2px solid #fff; }
.meta .ikony i.ig { background: radial-gradient(circle at 30% 110%, #fdcb52 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.meta .ikony i.fb { background: #1877f2; border-radius: 50%; margin-left: -8px; }
.meta .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.meta .data { border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 16px; }
.filar { padding: 14px 20px 0; }
.filar small { display: block; font-size: 11px; letter-spacing: 0.5px; color: var(--ink-2); text-transform: uppercase; margin-bottom: 6px; }
.filar div { font-size: 15px; }
.btn-niebieski { margin: 18px 20px 0; height: 48px; border-radius: 14px; background: var(--publikuj-gradient); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 26px -10px rgba(37,99,235,0.6); }
.btn-zielony { height: 48px; border-radius: 14px; background: var(--accent-gradient); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 26px -10px rgba(13,158,107,0.55); }
.btn-jasny { height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.grafika { position: relative; margin: 18px 20px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 16px 34px -14px rgba(26,51,42,0.45); background: #e9efec; }
.grafika img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grafika .wersje { position: absolute; top: 12px; right: 12px; z-index: 4; background: rgba(20,26,24,0.72); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.grafika .edytuj { position: absolute; left: 12px; bottom: 12px; z-index: 4; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; display: flex; gap: 6px; align-items: center; }
.skan { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(51,189,125,0.0) 40%, rgba(51,189,125,0.55) 50%, rgba(255,255,255,0) 60%); background-size: 100% 300%; }
.mgla { position: absolute; inset: 0; z-index: 2; background: rgba(250,253,252,0.62); opacity: 0; display: grid; place-items: center; }
.mgla span { background: #fff; color: var(--accent); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(26,51,42,0.15); display: flex; align-items: center; gap: 8px; }
.kropki i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 1.5px; }

.sekcja-tyt { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 10px; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-2); }
.sekcja-tyt .maly { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-weight: 500; }
.tresc-posta { margin: 0 20px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tresc-posta div { padding: 12px 16px; font-size: 15px; line-height: 1.55; border-left: 3px solid var(--accent); border-bottom: 1px solid var(--border); }
.tresc-posta div:first-child { border-left-color: #ea9a3c; }
.tresc-posta div:last-child { border-bottom: 0; }
.hashtagi { margin: 12px 20px 0; font-size: 14px; color: #2563eb; line-height: 1.6; }

.pole { margin: 14px 20px 0; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; background: #fff; }
.pole small { display: block; font-size: 11px; letter-spacing: 0.5px; color: var(--ink-2); text-transform: uppercase; margin-bottom: 3px; }
.pole b { font-size: 15px; font-weight: 600; }
.pole .min { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #f1f5f3; flex-shrink: 0; }
.pole .zmien { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* Arkusz od dołu */
.arkusz-tlo { position: absolute; inset: 0; z-index: 44; background: rgba(15, 30, 24, 0.38); opacity: 0; }
.arkusz { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-radius: 26px 26px 0 0; padding: 12px 20px 34px; transform: translateY(105%); box-shadow: 0 -12px 40px rgba(26,51,42,0.18); }
.arkusz::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: #dfe7e3; margin: 0 auto 16px; }
.arkusz h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.arkusz p.pod { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

.produkty-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.produkty-lista .pr { border: 1.5px solid var(--border); border-radius: 14px; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; background: #fff; position: relative; }
.produkty-lista .pr img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; margin-bottom: 4px; }
.produkty-lista .pr.wybrany { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.produkty-lista .pr .pt { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; opacity: 0; }

.opcja { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.opcja .ch { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border); display: grid; place-items: center; }
.opcja .ch.on { background: var(--accent); border-color: var(--accent); }
.opcja .ik { width: 34px; height: 34px; border-radius: 10px; }
.opcja .ik.ig { background: radial-gradient(circle at 30% 110%, #fdcb52 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.opcja .ik.fb { background: #1877f2; border-radius: 50%; }
.wybor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.wybor div { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.wybor div.on { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.dni-wybor { display: flex; gap: 8px; margin-bottom: 14px; }
.dni-wybor div { flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 8px 0; text-align: center; font-size: 12px; color: var(--ink-2); }
.dni-wybor div b { display: block; font-size: 18px; color: var(--ink); }
.dni-wybor div.on { border-color: var(--accent); background: var(--accent-light); }
.dni-wybor div.on b { color: var(--accent); }

/* Toast i sukces */
.toast { position: absolute; left: 20px; right: 20px; top: 64px; z-index: 60; background: #1a332a; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 500; box-shadow: 0 14px 30px -10px rgba(10,25,19,0.5); opacity: 0; transform: translateY(-20px); }
.toast i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }

/* Wskaźnik dotyku */
.dotyk { position: absolute; z-index: 100; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,0.55); border: 2px solid rgba(255,255,255,0.95); box-shadow: 0 4px 16px rgba(10, 30, 22, 0.35), 0 0 0 1px rgba(10,30,22,0.08); opacity: 0; pointer-events: none; }
.fala { position: absolute; z-index: 99; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.9); opacity: 0; pointer-events: none; }

/* Karty ogólne */
.karta-panel { margin: 14px 16px 0; background: #fff; border: 1px solid var(--border-soft); border-radius: 20px; padding: 18px; box-shadow: 0 6px 20px -12px rgba(26,51,42,0.18); }
.karta-panel .nag { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }


/* osadzenie na stronie case study (?tlo=0): sam telefon, bez tla sceny (Oskar 23.10) */
html.bez-tla, html.bez-tla body, html.bez-tla .scena-okno, html.bez-tla .scena { background: transparent !important; }
/* bez tla: nic nie przycina cienia, a cien jest krotszy, zeby miescil sie w ramce (Oskar 23.10: cien ucinany sztywna linia) */
html.bez-tla .scena, html.bez-tla .scena-okno { overflow: visible !important; }
html.bez-tla .telefon { box-shadow: 0 0 0 1.5px #3c4743 inset, 0 16px 28px -14px rgba(18, 45, 34, 0.35) !important; }
html.bez-tla .przegladarka { box-shadow: 0 16px 30px -16px rgba(18, 45, 34, 0.3), 0 0 0 1px rgba(26, 51, 42, 0.08) !important; }
