/* ===================================================================
   PDR Academy — Portál studenta  ·  portal.css  (v3)
   Skleněný (glassmorphism) vzhled sladěný s adminem.
   Tmavý režim (výchozí, prémiový) + světlý režim · přepínač v hlavičce.
   Tokeny, písma (Sora+Inter), červená #E30613 a zlatá #C8A24B jako v adminu.
   =================================================================== */

/* Písma z našeho serveru, ne od Googlu (5. 8. 2026) — viz assets/fonts/pisma.css.
   Dřív se Googlu odesílala IP adresa každého studenta, který si otevřel portál. */
@import url('../assets/fonts/pisma.css');

/* ===== TMAVÝ REŽIM (výchozí) ===== */
:root{
  --red:#E30613; --red-glow:#ff2f42; --red-deep:#a8050f; --red-soft:rgba(227,6,19,.13);
  --gold:#C8A24B; --gold-soft:#e3c87f;
  --mint:#46c590; --amber:#e6a945; --blue:#5aa0ef; --violet:#a987f0;
  --txt:#eef0f4; --txt2:#c7cbd3; --muted:#8b929e; --ink:#eef0f4;
  --line:rgba(255,255,255,.09); --line2:rgba(255,255,255,.055);
  --glass:rgba(255,255,255,.05); --glass-hi:rgba(255,255,255,.08);
  --inp:#11141a;
  --font:'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --display:'Sora','Inter',-apple-system,'Segoe UI',sans-serif;

  /* portálové (prémiové sklo) */
  --p-bg:
    radial-gradient(42% 32% at 50% 4%,  rgba(150,12,23,.50), transparent 70%),
    radial-gradient(34% 30% at 10% 50%, rgba(95,8,16,.46),  transparent 70%),
    radial-gradient(34% 30% at 90% 38%, rgba(130,11,22,.46),transparent 70%),
    radial-gradient(30% 26% at 84% 96%, rgba(150,115,40,.22),transparent 70%),
    radial-gradient(30% 26% at 50% 102%,rgba(80,7,14,.50),  transparent 70%),
    #090608;
  --p-panel:linear-gradient(160deg, rgba(33,26,27,.50), rgba(12,9,10,.62));
  --p-panel-bd:rgba(255,255,255,.10);
  --p-panel-sh:0 22px 56px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.10);
  --p-top:linear-gradient(160deg, rgba(28,22,22,.55), rgba(11,8,9,.62));
  --p-hi:#ffffff;            /* silný text (nadpisy/jména) */
  --p-hover-sh:0 26px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
  --p-inp-bg:rgba(255,255,255,.05);
  --p-inp-bd:rgba(255,255,255,.15);
}
/* ===== SVĚTLÝ REŽIM ===== */
:root[data-theme="light"]{
  --red-soft:rgba(227,6,19,.10);
  --gold:#b8902f; --gold-soft:#9a7619;
  --txt:#1b1e26; --txt2:#3b414d; --muted:#6b7280; --ink:#1b1e26;
  --line:rgba(20,22,40,.12); --line2:rgba(20,22,40,.07);
  --glass:rgba(255,255,255,.64); --glass-hi:rgba(255,255,255,.88);
  --inp:#ffffff;

  --p-bg:
    radial-gradient(900px 520px at 80% -8%, rgba(227,6,19,.08), transparent 60%),
    radial-gradient(700px 600px at -5% 12%, rgba(200,162,75,.08), transparent 55%),
    linear-gradient(180deg,#eef1f5,#e5e9ef);
  --p-panel:linear-gradient(160deg, rgba(255,255,255,.74), rgba(255,255,255,.58));
  --p-panel-bd:rgba(20,22,45,.10);
  --p-panel-sh:0 14px 38px rgba(20,22,45,.10), inset 0 1px 0 rgba(255,255,255,.9);
  --p-top:linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.64));
  --p-hi:#15171d;
  --p-hover-sh:0 18px 44px rgba(20,22,45,.14), inset 0 1px 0 rgba(255,255,255,.95);
  --p-inp-bg:#ffffff;
  --p-inp-bd:rgba(20,22,45,.16);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ min-height:100%; }
body{
  font-family:var(--font);
  color:var(--txt);
  min-height:100vh;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  background:var(--p-bg);
  background-attachment:fixed;
}
a{ color:inherit; }

/* ---------- Skleněný panel ---------- */
.glass{
  background:var(--p-panel);
  border:1px solid var(--p-panel-bd);
  border-radius:22px;
  box-shadow:var(--p-panel-sh);
  -webkit-backdrop-filter:blur(15px) saturate(130%);
  backdrop-filter:blur(15px) saturate(130%);
}

/* ===================================================================
   PŘIHLÁŠENÍ
   =================================================================== */
.login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:30px; position:relative; }
.login-card{
  max-width:420px; width:100%; padding:42px 38px; text-align:center; border-radius:24px;
  background:var(--p-panel); border:1px solid var(--p-panel-bd); box-shadow:var(--p-panel-sh);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
}
.login-logo{ max-width:240px; width:68%; margin:0 auto 26px; display:block; }
.login-logo.logo-light{ display:none; }
:root[data-theme="light"] .login-logo.logo-dark{ display:none; }
:root[data-theme="light"] .login-logo.logo-light{ display:block; }
.login-theme{ position:fixed; top:18px; right:18px; z-index:5; }
.login-title{ font-family:var(--display); font-size:23px; font-weight:800; margin-bottom:9px; color:var(--p-hi); }
.login-sub{ font-size:13.5px; color:var(--txt2); line-height:1.65; margin-bottom:24px; }
.login-form{ display:block; }
.login-input{
  width:100%; padding:14px 16px; border:1px solid var(--p-inp-bd); border-radius:12px;
  font-size:15px; margin-bottom:12px; text-align:center; color:var(--txt);
  background:var(--p-inp-bg); outline:none; transition:border-color .15s, background .15s; font-family:var(--font);
}
.login-input::placeholder{ color:var(--muted); }
.login-input:focus{ border-color:rgba(227,6,19,.6); }
.login-note{ font-size:12px; color:var(--muted); margin-top:16px; }

/* tlačítko (červené) */
.btn-red{
  width:100%; padding:14px; border:none; border-radius:12px; font-size:15px; font-weight:800; color:#fff;
  cursor:pointer; background:linear-gradient(180deg, var(--red-glow), var(--red-deep));
  box-shadow:0 10px 26px rgba(227,6,19,.42), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .08s, box-shadow .15s, filter .15s; text-decoration:none; display:inline-block; text-align:center; font-family:var(--font);
}
.btn-red:hover{ filter:brightness(1.06); box-shadow:0 12px 30px rgba(227,6,19,.52), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-red:active{ transform:translateY(1px); }

/* ---------- Hlášky (alert) ---------- */
.alert{ border-radius:12px; padding:14px 16px; font-size:13.5px; line-height:1.55; margin-bottom:16px; text-align:left; }
.alert-ok{ background:linear-gradient(135deg, rgba(40,160,70,.20), rgba(40,160,70,.07)); border:1px solid rgba(80,200,120,.40); color:var(--txt); }
.alert-err{ background:linear-gradient(135deg, rgba(227,6,19,.20), rgba(120,12,16,.07)); border:1px solid rgba(227,70,80,.42); color:var(--txt); }
.alert b{ color:var(--p-hi); }

/* ===================================================================
   PŘEHLED (dashboard)
   =================================================================== */
.p-shell{ max-width:1010px; margin:0 auto; }

.p-top{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:14px 24px; margin:18px; border-radius:18px;
  background:var(--p-top); border:1px solid var(--p-panel-bd);
  box-shadow:0 10px 28px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
:root[data-theme="light"] .p-top{ box-shadow:0 8px 22px rgba(20,22,45,.08), inset 0 1px 0 rgba(255,255,255,.9); }
.p-logo-img{ height:30px; display:block; }
.p-logo-img.logo-dark{ display:block; filter:drop-shadow(0 0 12px rgba(227,6,19,.22)); }
.p-logo-img.logo-light{ display:none; }
:root[data-theme="light"] .p-logo-img.logo-dark{ display:none; }
:root[data-theme="light"] .p-logo-img.logo-light{ display:block; }
.p-top-r{ display:flex; align-items:center; gap:14px; }
.p-user{ font-size:14px; font-weight:600; color:var(--txt2); }
.p-user a{ color:var(--gold-soft); text-decoration:none; margin-left:10px; }
.p-user a:hover{ text-decoration:underline; }

/* přepínač světlý/tmavý (jako admin) */
.theme-btn{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; cursor:pointer;
  background:var(--glass-hi); border:1px solid var(--line); color:var(--txt2); transition:.15s; flex-shrink:0; }
.theme-btn:hover{ color:var(--red-glow); }
.theme-btn svg{ width:16px; height:16px; }
.ic-sun{ display:block; } .ic-moon{ display:none; }
:root[data-theme="light"] .ic-sun{ display:none; } :root[data-theme="light"] .ic-moon{ display:block; }

.p-main{ padding:8px 24px 44px; }
.p-hello{ font-family:var(--display); font-size:27px; font-weight:800; letter-spacing:-.4px; color:var(--p-hi); }
.p-subtitle{ font-size:15px; color:var(--txt2); margin-top:5px; margin-bottom:24px; }

/* statistiky */
.p-stats{ display:flex; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.p-stat{ flex:1; min-width:150px; padding:17px 20px; }
.p-stat-n{ font-family:var(--display); font-size:24px; font-weight:800; color:var(--p-hi); display:flex; align-items:center; gap:8px; }
.p-stat-n svg{ width:22px; height:22px; flex-shrink:0; }
.p-stat-l{ font-size:11px; color:var(--muted); font-weight:600; margin-top:3px; text-transform:uppercase; letter-spacing:.04em; }

/* karty rozcestníku */
.p-cards{ display:flex; gap:14px; flex-wrap:wrap; }
.p-card{ flex:1; min-width:220px; padding:20px; }
.p-card-t{ font-family:var(--display); font-size:15.5px; font-weight:700; margin-bottom:5px; color:var(--p-hi); }
.p-card-d{ font-size:13px; color:var(--txt2); line-height:1.5; }
a.p-card{ text-decoration:none; color:inherit; transition:transform .12s, box-shadow .15s, border-color .15s; display:block; }
a.p-card:hover{ transform:translateY(-2px); box-shadow:var(--p-hover-sh); border-color:rgba(200,162,75,.35); }
.p-card-ic{ width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; margin-bottom:13px; box-shadow:inset 0 1px 0 rgba(255,255,255,.14); }
.p-card-ic svg{ width:23px; height:23px; }
.ic-gold{ background:linear-gradient(180deg, rgba(200,162,75,.26), rgba(160,120,40,.10)); color:var(--gold-soft); }
.ic-blue{ background:linear-gradient(180deg, rgba(90,160,239,.24), rgba(60,110,200,.08)); color:var(--blue); }
.ic-red{ background:linear-gradient(180deg, rgba(227,6,19,.28), rgba(227,6,19,.09)); color:var(--red-glow); }
.p-card-link{ font-size:13px; font-weight:700; color:var(--red-glow); margin-top:11px; display:inline-block; }
:root[data-theme="light"] .p-card-link{ color:var(--red); }

/* ===================================================================
   CESTA K MISTROVSTVÍ (champion hero) — bez certifikátů (ty jsou níž)
   =================================================================== */
.champ{ padding:26px 30px 28px; margin-bottom:18px; }
.champ-head{ position:relative; display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.champ-head-txt{ flex:1; max-width:560px; }
.champ-eyebrow{ font-size:11px; letter-spacing:2.5px; color:var(--gold-soft); font-weight:800; text-transform:uppercase; }
.champ-title{ font-family:var(--display); font-size:24px; font-weight:800; margin:8px 0 8px; line-height:1.2; color:var(--p-hi); }
.champ-title .hl{ color:var(--gold); }
.champ-introsub{ font-size:14px; color:var(--txt2); max-width:440px; }
.champ-arrow{ position:absolute; right:172px; top:24px; z-index:2; }

.lektor{ flex-shrink:0; width:150px; margin:0; text-align:center; }
.lektor-frame{ width:150px; height:150px; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.2);
  box-shadow:0 14px 36px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16), 0 0 24px rgba(227,6,19,.22); }
:root[data-theme="light"] .lektor-frame{ border-color:rgba(20,22,45,.14); box-shadow:0 12px 30px rgba(20,22,45,.18), 0 0 22px rgba(227,6,19,.14); }
.lektor-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.lektor-cap{ font-size:10.5px; color:var(--muted); margin-top:8px; line-height:1.45; }
.lektor-cap b{ color:var(--p-hi); font-size:12px; display:block; }
.lektor-cap .w{ color:var(--gold-soft); font-weight:700; }

.champ-cta{ margin-top:24px; display:flex; align-items:center; justify-content:space-between; gap:22px; padding:20px 22px; border-radius:16px;
  background:linear-gradient(135deg, rgba(227,6,19,.30), rgba(120,12,16,.10)); border:1px solid rgba(227,70,80,.36);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10); flex-wrap:wrap; }
:root[data-theme="light"] .champ-cta{ background:linear-gradient(135deg, rgba(227,6,19,.10), rgba(227,6,19,.03)); border-color:rgba(227,6,19,.22); }
.cta-big{ font-family:var(--display); font-size:18px; font-weight:800; color:var(--p-hi); margin-bottom:6px; }
.cta-small{ font-size:12.5px; color:var(--txt2); line-height:1.6; }
.champ-cta .btn-red{ width:auto; padding:14px 24px; white-space:nowrap; }

/* ===================================================================
   CERTIFIKÁTY — samostatné dlaždice vedle sebe (s JMÉNEM studenta)
   =================================================================== */
.cert-sec-h{ font-family:var(--display); font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--gold-soft); margin:4px 2px 12px; }
.cert-row{ display:flex; gap:14px; margin-bottom:20px; flex-wrap:wrap; }
.cert-tile{ flex:1; min-width:210px; padding:16px 16px 14px; position:relative; text-align:center;
  transition:transform .12s, box-shadow .15s, border-color .15s; }
.cert-tile:hover{ transform:translateY(-3px); box-shadow:var(--p-hover-sh); }
.cert-tile.earned{ border-color:rgba(200,162,75,.40); }
.cert-tile.next{ border-color:rgba(255,70,80,.45); }

.cert-glow{ position:absolute; top:14px; left:50%; transform:translateX(-50%); width:80%; height:60%; z-index:0; border-radius:50%; pointer-events:none; }
.glow-gold{ background:radial-gradient(ellipse at 50% 40%, rgba(200,162,75,.30), transparent 66%); }
.glow-red{ background:radial-gradient(ellipse at 50% 40%, rgba(227,6,19,.42), transparent 66%); }
.glow-faint{ background:radial-gradient(ellipse at 50% 40%, rgba(150,120,60,.14), transparent 66%); }

.certimg{ position:relative; z-index:1; border-radius:8px; overflow:hidden; border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 30px rgba(0,0,0,.45); display:block; }
:root[data-theme="light"] .certimg{ border-color:rgba(20,22,45,.12); box-shadow:0 10px 24px rgba(20,22,45,.16); }
.certimg img{ width:100%; display:block; }
.cert-tile.goal .certimg img{ opacity:.62; filter:grayscale(.25); }
.cert-tile.goal .certimg{ border-color:rgba(160,160,170,.22); }

/* JMÉNO studenta vsazené na certifikát */
.cert-name{ position:absolute; left:6%; right:6%; z-index:2; text-align:center;
  font-weight:700; font-style:italic; font-family:var(--font);
  font-size:clamp(11px,2.0vw,15px); line-height:1.05; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transform:translateY(-50%); }
.cert-tile.goal .cert-name{ opacity:.55; }

.cert-cap{ position:relative; z-index:1; margin-top:13px; }
.lpill{ display:inline-block; font-size:10.5px; font-weight:800; padding:5px 14px; border-radius:20px; letter-spacing:.05em; }
.ep{ background:linear-gradient(180deg,#d8b35f,#c09838); color:#1a1205; }
.np{ background:linear-gradient(180deg,var(--red-glow),var(--red)); color:#fff; box-shadow:0 4px 14px rgba(227,6,19,.5); }
.gp{ background:var(--glass-hi); color:var(--muted); border:1px solid var(--line); }

/* ===================================================================
   OBSAHOVÉ STRÁNKY (certifikáty, dokumenty, kurzy)
   =================================================================== */
/* Balíček 6.34: ze „Zpět na přehled" je tlačítko, ne jen text — v dokumentech
   a fotkách se pouhý odkaz snadno přehlédne (nahlásil Vladimír 10. 8. 2026).
   Tlumené, ne červené: je to návrat, ne hlavní akce stránky. */
.p-back{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:700;
  text-decoration:none; padding:9px 16px; border-radius:10px; margin-bottom:16px;
  background:var(--glass-hi); color:var(--txt2); border:1px solid var(--line);
  white-space:nowrap; transition:.18s; }
.p-back:hover{ color:var(--txt); border-color:var(--gold-soft); transform:translateX(-2px); }
.p-h1{ font-family:var(--display); font-size:24px; font-weight:800; margin-bottom:4px; color:var(--p-hi); }
.p-lead{ font-size:14px; color:var(--txt2); margin-bottom:22px; }

.p-panel{ padding:26px 28px; margin-bottom:20px; }
.p-panel h2{ font-family:var(--display); font-size:18px; font-weight:800; margin-bottom:10px; color:var(--p-hi); }
.p-panel p{ font-size:14px; color:var(--txt2); margin-bottom:8px; }
.p-note{ margin-top:6px; padding:16px 18px; border-radius:14px;
  background:linear-gradient(135deg, rgba(200,162,75,.13), rgba(160,120,40,.04)); border:1px solid rgba(200,162,75,.30);
  font-size:13.5px; color:var(--txt); line-height:1.6; }

.list{ display:flex; flex-direction:column; gap:12px; }
.list-item{ display:flex; align-items:center; gap:16px; padding:16px 20px; transition:transform .12s, box-shadow .15s; }
.list-item:hover{ transform:translateY(-1px); box-shadow:var(--p-hover-sh); }
.list-ic{ width:42px; height:42px; border-radius:11px; flex-shrink:0; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 1px 0 rgba(255,255,255,.14); }
.list-ic svg{ width:21px; height:21px; }
.list-body{ flex:1; min-width:0; }
.list-title{ font-family:var(--display); font-size:15px; font-weight:700; color:var(--p-hi); }
.list-meta{ font-size:12px; color:var(--muted); margin-top:2px; }
.list-actions{ flex-shrink:0; display:flex; gap:8px; }
.btn-sm{ font-size:13px; font-weight:700; text-decoration:none; padding:9px 16px; border-radius:10px;
  background:linear-gradient(180deg, var(--red-glow), var(--red-deep)); color:#fff;
  box-shadow:0 6px 16px rgba(227,6,19,.4), inset 0 1px 0 rgba(255,255,255,.25); white-space:nowrap; }
.btn-ghost{ font-size:13px; font-weight:700; text-decoration:none; padding:9px 16px; border-radius:10px;
  background:var(--glass-hi); color:var(--txt2); border:1px solid var(--line); white-space:nowrap; }
.btn-ghost:hover{ color:var(--txt); }
.empty{ padding:40px 24px; text-align:center; color:var(--txt2); font-size:14px; }
.empty-ic{ width:40px; height:40px; margin:0 auto 12px; opacity:.6; color:var(--muted); }
.empty-ic svg{ width:40px; height:40px; }

.cert-badge{ font-size:11px; font-weight:800; padding:3px 10px; border-radius:14px; }
.cb-1{ background:linear-gradient(180deg,#d8a86a,#b87a3a); color:#241405; }
.cb-2{ background:linear-gradient(180deg,#cfcfd6,#9a9aa4); color:#1a1a1f; }
.cb-3{ background:linear-gradient(180deg,#e3c25a,#c19a2a); color:#241a05; }

/* ===================================================================
   PŘIHLÁŠENÍ NA INDIVIDUÁLNÍ KURZ
   =================================================================== */
.cap{ font-size:12px; font-weight:800; padding:5px 12px; border-radius:14px; white-space:nowrap; }
.cap-free{ background:rgba(40,160,70,.18); color:var(--mint); border:1px solid rgba(80,200,120,.35); }
.cap-full{ background:rgba(150,40,40,.22); color:#ff9aa2; border:1px solid rgba(227,70,80,.35); }
.term-price{ color:var(--gold-soft); font-weight:700; }
.term-form{ margin:0; }
.gate{ padding:30px 28px; text-align:center; }
.gate-ic{ width:42px; height:42px; margin:0 auto 12px; color:var(--gold-soft); }
.gate-ic svg{ width:42px; height:42px; }
.gate h2{ font-family:var(--display); font-size:19px; font-weight:800; margin-bottom:8px; color:var(--p-hi); }
.gate p{ font-size:14px; color:var(--txt2); line-height:1.6; max-width:460px; margin:0 auto 6px; }
.banner{ border-radius:14px; padding:18px 20px; margin-bottom:20px; font-size:14px; line-height:1.6; }
.banner b{ color:var(--p-hi); }
.banner-ok{ background:linear-gradient(135deg, rgba(40,160,70,.20), rgba(40,160,70,.06)); border:1px solid rgba(80,200,120,.4); color:var(--txt); }
.banner-wait{ background:linear-gradient(135deg, rgba(200,162,75,.18), rgba(160,120,40,.05)); border:1px solid rgba(200,162,75,.4); color:var(--txt); }
.banner-err{ background:linear-gradient(135deg, rgba(227,6,19,.20), rgba(120,12,16,.05)); border:1px solid rgba(227,70,80,.42); color:var(--txt); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width:720px){
  .champ-arrow{ display:none; }
  .champ-head{ flex-direction:column-reverse; align-items:center; text-align:center; }
  .champ-head-txt{ text-align:center; }
  .cert-tile{ min-width:46%; }
  .cert-name{ font-size:13px; }
}
@media (max-width:560px){
  .p-hello{ font-size:23px; }
  .p-top{ margin:12px; padding:12px 16px; }
  .list-item{ flex-wrap:wrap; }
}

/* ══ Balíček 6.33 — pruh „co na vás čeká" ═══════════════════════════════════
   Ukazuje se jen tehdy, když na studenta něco čeká (dnes nepodepsaná smlouva).
   Zlatá jako u ostatních důležitých prvků portálu; červená by strašila,
   přitom se nic nepokazilo — je to nabídka, ne výtka.
   Na telefonu se skládá pod sebe a tlačítko jde přes celou šířku, ať se
   dá pohodlně ťuknout. */
.p-ceka{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  padding:18px 20px; margin-bottom:20px; border-radius:16px;
  background:linear-gradient(135deg, rgba(200,162,75,.18), rgba(200,162,75,.06));
  border:1px solid rgba(200,162,75,.42);
}
.p-ceka-ic{
  flex-shrink:0; width:46px; height:46px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(200,162,75,.26), rgba(160,120,40,.10));
  color:var(--gold-soft);
}
.p-ceka-ic svg{ width:24px; height:24px; }
.p-ceka-txt{ flex:1; min-width:220px; }
.p-ceka-h{ font-weight:700; font-size:16px; margin-bottom:4px; }
.p-ceka-d{ font-size:13.5px; opacity:.82; line-height:1.5; }
.p-ceka-btn{
  flex-shrink:0; text-decoration:none; white-space:nowrap;
  padding:12px 20px; border-radius:11px; font-weight:800; font-size:14px;
  color:#241c05; background:linear-gradient(180deg,#e0be6d,#c8a24b);
  box-shadow:0 3px 12px rgba(200,162,75,.34); transition:.18s;
}
.p-ceka-btn:hover{ background:linear-gradient(180deg,#eccc7f,#d4ae57); transform:translateY(-1px); }
@media (max-width:560px){
  .p-ceka{ flex-direction:column; align-items:flex-start; }
  .p-ceka-btn{ width:100%; text-align:center; }
}

/* ══ Balíček 6.36 — chat s podporou v portálu ═══════════════════════════════
   Zabalený do rozbalovacího panelu, aby nezabíral místo, dokud ho student
   nepotřebuje. Zlatá jako u ostatních nabídek portálu. */
.p-chat{ border:1px solid var(--line); border-radius:16px; margin-bottom:20px;
  background:var(--glass); overflow:hidden; }
.p-chat-hd{ display:flex; align-items:center; gap:14px; width:100%; padding:16px 18px;
  background:none; border:0; cursor:pointer; text-align:left; color:inherit; font:inherit; }
.p-chat-ic{ flex-shrink:0; width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(200,162,75,.26), rgba(160,120,40,.10));
  color:var(--gold-soft); }
.p-chat-ic svg{ width:22px; height:22px; }
.p-chat-t{ flex:1; min-width:0; }
.p-chat-h{ display:block; font-weight:700; font-size:15px; }
.p-chat-d{ display:block; font-size:12.5px; opacity:.75; margin-top:2px; }
.p-chat-sip{ flex-shrink:0; font-size:15px; opacity:.6; transition:transform .2s; }
.p-chat-badge{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#e30613;color:#fff;font-size:12px;font-weight:900;box-shadow:0 0 0 5px rgba(227,6,19,.13),0 0 18px rgba(227,6,19,.6);animation:pdr-badge-pulse 1.5s ease-in-out infinite}
.p-chat-badge[hidden]{display:none}
@keyframes pdr-badge-pulse{50%{transform:scale(1.12);box-shadow:0 0 0 8px rgba(227,6,19,0),0 0 24px rgba(227,6,19,.75)}}
.p-chat.open .p-chat-sip{ transform:rotate(180deg); }
.p-chat-body{ display:none; padding:0 18px 18px; }
.p-chat.open .p-chat-body{ display:block; }
.p-chat-log{ max-height:300px; overflow-y:auto; padding:6px 0 12px;
  display:flex; flex-direction:column; gap:9px; }
.p-chat-msg{ max-width:88%; padding:10px 14px; border-radius:13px; font-size:13.5px; line-height:1.55;
  white-space:pre-wrap; word-break:break-word; }
.p-chat-msg.ja{ align-self:flex-end; background:linear-gradient(180deg,#e0be6d,#c8a24b); color:#241c05; font-weight:600; }
.p-chat-msg.bot{ align-self:flex-start; background:var(--glass-hi); border:1px solid var(--line); }
.p-chat-msg.ceka{ opacity:.6; font-style:italic; }
.p-chat-form{ display:flex; gap:9px; }
.p-chat-form input{ flex:1; min-width:0; padding:11px 14px; border-radius:11px;
  border:1px solid var(--line); background:var(--glass-hi); color:var(--txt); font:inherit; font-size:13.5px; }
.p-chat-form input:focus{ outline:none; border-color:var(--gold-soft); }
.p-chat-form button{ flex-shrink:0; padding:11px 20px; border:0; border-radius:11px; cursor:pointer;
  font-weight:800; font-size:13.5px; color:#241c05;
  background:linear-gradient(180deg,#e0be6d,#c8a24b); transition:.18s; }
.p-chat-form button:hover:not(:disabled){ background:linear-gradient(180deg,#eccc7f,#d4ae57); }
.p-chat-form button:disabled, .p-chat-form input:disabled{ opacity:.55; cursor:default; }
.p-push-btn{margin:10px 0 0;padding:10px 13px;border:1px solid rgba(227,6,19,.35);border-radius:10px;background:rgba(227,6,19,.1);color:inherit;font-weight:750;cursor:pointer}
.p-push-btn[hidden]{display:none}.p-push-stav{min-height:18px;margin-top:6px;font-size:12px;opacity:.72}
@media (max-width:560px){ .p-chat-d{ display:none; } }
