/* DDLA Şəxsi Kabinet — frosted glass, açıq aqua fon.
   Default: açıq aqua + tünd mətn + ağ frosted kartlar; vivid gradient yalnız accent.
   Toggle [data-theme="dark"]: dərin tünd-mavi frosted glass.
   Mobile-first · sistem şriftləri (xarici asılılıq yox). */

:root {
  color-scheme: light;

  --bg-grad: linear-gradient(135deg, #b6ecef 0%, #d7f3ea 52%, #c8e7fb 100%);
  --header-grad: linear-gradient(135deg, #39c7de, #a0e79a);
  --btn: linear-gradient(135deg, #39c7de, #a0e79a);
  --ink: #0c2a33;

  --glass: rgba(255, 255, 255, 0.42);
  --glass-2: rgba(255, 255, 255, 0.58);
  --glass-3: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.80);
  --glass-border-soft: rgba(255, 255, 255, 0.52);

  --text: #103a46;
  --text-dim: rgba(16, 58, 70, 0.72);
  --text-faint: rgba(16, 58, 70, 0.48);

  --accent: #0e8aa0;

  --green: #149e57;
  --amber: #cf8a14;
  --red: #d2495f;

  --ring-track: rgba(16, 58, 70, 0.13);
  --shadow: 0 14px 36px rgba(30, 90, 110, 0.16);
  --shadow-hover: 0 24px 54px rgba(30, 90, 110, 0.26);
  --glow: rgba(70, 200, 220, 0.5);
  --sheen: rgba(255, 255, 255, 0.6);

  --blob-1: rgba(70, 215, 225, 0.5);
  --blob-2: rgba(150, 205, 255, 0.45);
  --blob-3: rgba(125, 235, 200, 0.45);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg-grad: linear-gradient(140deg, #0a1c40, #0a1130);
  --header-grad: linear-gradient(135deg, #39c7de, #a0e79a);
  --btn: linear-gradient(135deg, #39c7de, #a0e79a);
  --ink: #0c2a33;

  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.11);
  --glass-3: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-soft: rgba(255, 255, 255, 0.09);

  --text: #eef3fb;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);

  --accent: #5fd6e6;

  --green: #5fe39a;
  --amber: #ffce6a;
  --red: #ff8095;

  --ring-track: rgba(255, 255, 255, 0.12);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.62);
  --glow: rgba(90, 160, 255, 0.42);
  --sheen: rgba(255, 255, 255, 0.22);

  --blob-1: rgba(36, 90, 200, 0.45);
  --blob-2: rgba(60, 120, 230, 0.30);
  --blob-3: rgba(20, 60, 150, 0.40);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  background: var(--bg-grad) fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 34% at 16% 20%, var(--blob-1), transparent 60%),
    radial-gradient(32% 32% at 84% 16%, var(--blob-2), transparent 60%),
    radial-gradient(40% 40% at 78% 86%, var(--blob-3), transparent 62%),
    radial-gradient(30% 30% at 22% 84%, var(--blob-2), transparent 60%);
  filter: blur(8px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* the single frosted-glass surface — with a soft top sheen (glass highlight) */
.card {
  position: relative;
  background:
    linear-gradient(180deg, var(--sheen), transparent 40%),
    var(--glass);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px clamp(14px, 4vw, 32px);
  padding-top: calc(13px + env(safe-area-inset-top));
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border-bottom: 1px solid var(--glass-border-soft);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.2px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; color: var(--ink);
  background: var(--header-grad);
  box-shadow: 0 6px 16px rgba(57, 199, 222, 0.4);
}
.brand small { display: block; font-weight: 500; color: var(--text-dim); font-size: 12px; letter-spacing: 0; }
.brand b { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-2); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--glass-3); box-shadow: 0 8px 22px var(--glow); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--btn); color: var(--ink); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 10px 24px rgba(57, 199, 222, 0.35); }
.btn-accent:hover { filter: brightness(1.06); box-shadow: 0 14px 30px rgba(57, 199, 222, 0.45); }

.icon-btn {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.icon-btn:hover { background: var(--glass-3); box-shadow: 0 8px 22px var(--glow); }
.icon-btn:active { transform: scale(0.94); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- app layout ---------- */
.app {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 32px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
@media (max-width: 1024px) { .app { grid-template-columns: 1fr; gap: 16px; } }

.sidebar { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 92px; }
@media (max-width: 1024px) { .sidebar { position: static; } }

/* ---------- profile card ---------- */
.profile { padding: 26px 22px; text-align: center; z-index: 1; }
.avatar-wrap { width: 116px; height: 116px; margin: 0 auto 14px; }
.avatar {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 5px var(--glass-2), 0 12px 26px rgba(30, 90, 110, 0.25);
  background: var(--glass-2);
}
.avatar-fallback {
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--ink);
  background: var(--header-grad);
  box-shadow: 0 0 0 5px var(--glass-2), 0 12px 26px rgba(57, 199, 222, 0.3);
}
.profile h2 { margin: 6px 0 2px; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.profile .pid { color: var(--text-dim); font-size: 13px; }
.profile .chips { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.chip-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass-2); color: var(--accent); border: 1px solid var(--glass-border); cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip-btn:hover { background: var(--glass-3); box-shadow: 0 8px 20px var(--glow); }
.chip-btn:active { transform: scale(0.94); }

/* ---------- side menu ---------- */
.menu { padding: 12px; z-index: 1; }
.menu a {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 13px;
  min-height: 48px; padding: 0 15px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 600; font-size: 14.5px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.18s var(--ease);
}
.menu a:hover { background: var(--glass-2); color: var(--text); }
.menu a:active { transform: scale(0.98); }
.menu a.active { background: var(--glass-3); color: var(--accent); border: 1px solid var(--glass-border); box-shadow: 0 6px 18px var(--glow); }
.menu .group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-faint); padding: 14px 15px 5px; }

/* ---------- content ---------- */
.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.content-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 18px 22px;
}
.content-head h1 { margin: 0; font-size: clamp(18px, 2.6vw, 23px); font-weight: 700; letter-spacing: -0.4px; position: relative; z-index: 1; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.stat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--glass-2); border: 1px solid var(--glass-border-soft); }
.stat .dot { width: 9px; height: 9px; border-radius: 50%; }
.stat.valid .dot { background: var(--green); }
.stat.soon .dot { background: var(--amber); }
.stat.expired .dot { background: var(--red); }

/* ---------- certificate grid ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 360px) { .cert-grid { grid-template-columns: 1fr; } }

.cert {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
/* iPhone-style light sweep on hover */
.cert::before {
  content: "";
  position: absolute;
  top: 0; left: -65%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-16deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.cert:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(255, 255, 255, 0.6), 0 14px 44px var(--glow); }
.cert:hover::before { animation: sheen 0.85s var(--ease); }
@keyframes sheen {
  0% { left: -65%; opacity: 0; }
  25% { opacity: 0.85; }
  100% { left: 125%; opacity: 0; }
}

.cert-num {
  position: relative; z-index: 2;
  padding: 13px 16px; font-weight: 700; letter-spacing: 0.3px; color: var(--ink); text-align: center;
  background: var(--header-grad);
}
.cert-body { position: relative; z-index: 2; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 13px; flex: 1; }
.cert-title { margin: 0; font-size: 14.5px; font-weight: 700; text-align: center; line-height: 1.3; min-height: 2.6em; color: var(--text); }

/* round countdown "clock" — colour reflects time left (green → amber → red) */
.ring {
  --p: 0;
  width: 112px; height: 112px;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* the colour ring is a true annulus (masked centre) so it stays BEHIND the
   number — the transparent centre shows the frosted card, never the arc. */
.ring .arc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ring-c, var(--green)) calc(var(--p) * 1%), var(--ring-track) 0);
  /* feathered inner + outer edge → smooth (anti-aliased) annulus */
  -webkit-mask: radial-gradient(farthest-side,
    #0000 calc(100% - 13.75px), #000 calc(100% - 12.25px),
    #000 calc(100% - 1.25px), #0000 100%);
  mask: radial-gradient(farthest-side,
    #0000 calc(100% - 13.75px), #000 calc(100% - 12.25px),
    #000 calc(100% - 1.25px), #0000 100%);
}
.cert.valid .ring { --ring-c: var(--green); }
.cert.soon .ring { --ring-c: var(--amber); }
.cert.expired .ring { --ring-c: var(--red); }
.ring .num { position: relative; z-index: 1; font-size: 25px; font-weight: 800; line-height: 1; }
.ring .lbl { position: relative; z-index: 1; font-size: 10px; color: var(--text-dim); margin-top: 3px; }

.cert-dates { display: flex; gap: 12px; width: 100%; justify-content: space-around; font-size: 12px; }
.cert-dates .d { text-align: center; }
.cert-dates .d span { display: block; color: var(--text-faint); font-size: 10.5px; margin-bottom: 2px; }
.cert-dates .d b { font-weight: 700; }

.cert-status { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.cert.valid .cert-status { color: var(--green); }
.cert.soon .cert-status { color: var(--amber); }
.cert.expired .cert-status { color: var(--red); }

.cert-more { width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--glass-border-soft); text-align: center;
  font-weight: 700; font-size: 13.5px; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 6px; }

.empty { padding: 48px 20px; text-align: center; color: var(--text-dim); position: relative; z-index: 1; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 0;
  margin-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40; padding: 8px; justify-content: space-around;
}
.bottom-nav a {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 50px; justify-content: center; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 10.5px; font-weight: 600;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), transform 0.18s var(--ease);
}
.bottom-nav a.active { color: var(--accent); background: var(--glass-2); }
.bottom-nav a:active { transform: scale(0.94); }

@media (max-width: 1024px) {
  .side-menu { display: none; }
  .bottom-nav { display: flex; }
  .content { padding-bottom: 78px; }
}

/* ---------- landing / picker ---------- */
.center-wrap { min-height: calc(100dvh - 72px); display: grid; place-items: center; padding: 28px 16px; }
.picker { width: 100%; max-width: 500px; padding: 30px; }
.picker h1 { margin: 6px 0 4px; font-size: 25px; font-weight: 800; letter-spacing: -0.5px; text-align: center; position: relative; z-index: 1; }
.picker p { margin: 0 0 22px; color: var(--text-dim); text-align: center; font-size: 14px; position: relative; z-index: 1; }
.search { display: flex; gap: 10px; margin-bottom: 20px; position: relative; z-index: 1; }
.search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-size: 15px;
  border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-3); color: var(--text);
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.samples { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px;
  border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); font-size: 13px; font-weight: 600;
  transition: transform 0.18s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.pill:hover { background: var(--glass-3); box-shadow: 0 8px 20px var(--glow); }
.pill:active { transform: scale(0.96); }
.pill .ava { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); background: var(--header-grad); }
.muted { color: var(--text-faint); font-size: 12px; text-align: center; margin-top: 20px; position: relative; z-index: 1; }

/* ---------- pages: tiles, panels, lists, forms ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 18px 20px; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: var(--header-grad); margin-bottom: 4px; }
.tile-n { position: relative; z-index: 1; font-size: 30px; font-weight: 800; line-height: 1; }
.tile-l { position: relative; z-index: 1; color: var(--text-dim); font-size: 13px; font-weight: 600; }

.panel { padding: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-weight: 700; font-size: 15px; position: relative; z-index: 1; }
.section-title a { color: var(--accent); font-size: 13px; font-weight: 600; }

.list { display: flex; flex-direction: column; position: relative; z-index: 1; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--radius-sm); transition: background 0.2s var(--ease); }
.row + .row { border-top: 1px solid var(--glass-border-soft); }
.row:hover { background: var(--glass-2); }
.row-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--glass-2); border: 1px solid var(--glass-border-soft); }
.row-ic.doc { font-size: 11px; font-weight: 800; color: var(--ink); background: var(--header-grad); border: 0; letter-spacing: 0.3px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main b { font-weight: 700; font-size: 14.5px; }
.row-main span { color: var(--text-dim); font-size: 12.5px; }
.row-prog { flex: none; width: 120px; display: flex; flex-direction: column; gap: 5px; }
.row-prog .score { font-size: 12px; font-weight: 700; color: var(--text-dim); text-align: right; }

.progress { height: 8px; border-radius: 999px; background: var(--ring-track); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.4s var(--ease); }
.progress.ok > i { background: var(--green); }
.progress.bad > i { background: var(--red); }

.badge { flex: none; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); }
.badge.pending { color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, transparent); }
.badge.bad { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.svc { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.svc-ic { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--ink); background: var(--header-grad); margin-bottom: 4px; }
.svc h3 { position: relative; z-index: 1; margin: 0; font-size: 16px; font-weight: 700; }
.svc p { position: relative; z-index: 1; margin: 0 0 6px; color: var(--text-dim); font-size: 13px; flex: 1; }
.svc .btn { position: relative; z-index: 1; align-self: flex-start; }

.form { display: flex; flex-direction: column; gap: 16px; padding: 14px; max-width: 560px; position: relative; z-index: 1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-3);
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 560px) {
  .row { flex-wrap: wrap; }
  .row-prog { width: 100%; order: 3; }
}

/* coming soon */
.coming { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px; text-align: center; position: relative; z-index: 1; }
.coming-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--header-grad); box-shadow: 0 12px 30px var(--glow); animation: floaty 3s var(--ease) infinite; }
.coming h2 { margin: 6px 0 0; font-size: 19px; font-weight: 700; }
.coming p { margin: 0; color: var(--text-dim); }
.coming-badge { margin-top: 6px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--header-grad); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ───────── login: maritime / electronic ───────── */
:root { --grid: rgba(14, 138, 160, 0.16); --blip: #2ec27e; }
[data-theme="dark"] { --grid: rgba(95, 214, 230, 0.11); --blip: #46d6a0; }

.login-body { overflow-x: hidden; position: relative; }
.ocean { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* nautical chart grid */
.chart-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.6;
  -webkit-mask: radial-gradient(125% 92% at 50% 34%, #000 26%, transparent 76%);
  mask: radial-gradient(125% 92% at 50% 34%, #000 26%, transparent 76%);
}

/* depth contour lines */
.contours { position: absolute; inset: 0; width: 100%; height: 72%; }
.contours path { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0.16; stroke-dasharray: 5 9; animation: contourDrift 30s linear infinite; }
.contours path:nth-child(2) { opacity: 0.12; animation-duration: 42s; }
.contours path:nth-child(3) { opacity: 0.10; animation-duration: 54s; }
@keyframes contourDrift { to { stroke-dashoffset: -280; } }

/* large faint radar behind the card */
.radar-bg {
  position: absolute; top: 34%; left: 50%; width: min(88vw, 720px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.5;
  background:
    radial-gradient(circle, transparent 0 31.8%, var(--grid) 32% 32.5%, transparent 32.6%),
    radial-gradient(circle, transparent 0 55.8%, var(--grid) 56% 56.5%, transparent 56.6%),
    radial-gradient(circle, transparent 0 79.8%, var(--grid) 80% 80.5%, transparent 80.6%);
}
.rb-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(70, 214, 160, 0) 0 285deg, rgba(70, 214, 160, 0.32) 358deg, rgba(70, 214, 160, 0) 360deg); animation: radarSpin 6s linear infinite; }

/* rising particles */
.particles i { position: absolute; bottom: -12px; left: var(--x); width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 92%, white), var(--accent)); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; animation: rise 9s linear infinite; animation-delay: var(--d); }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: 0.75; } 88% { opacity: 0.5; } 100% { transform: translateY(-80vh) translateX(16px); opacity: 0; } }

/* ship on the horizon */
.horizon { position: absolute; left: 50%; bottom: 31vh; width: 150px; margin-left: -75px; color: var(--ink); opacity: 0.92; animation: sail 5s ease-in-out infinite; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)); }
[data-theme="dark"] .horizon { color: #bfe9f5; }
@keyframes sail { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }

/* waves */
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave path { fill: var(--accent); }
.w1 { opacity: 0.30; animation: waveMove 11s linear infinite; }
.w2 { opacity: 0.22; animation: waveMove 16s linear infinite reverse; }
.w3 { opacity: 0.16; animation: waveMove 22s linear infinite; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* card + layout */
.login-wrap { min-height: calc(100dvh - 70px); display: grid; place-items: center; padding: 24px 16px 38vh; position: relative; z-index: 2; }
.login-card { width: 100%; max-width: 430px; padding: 30px 30px 26px; text-align: center; overflow: hidden; }

.scanline { position: absolute; left: 0; right: 0; top: 0; height: 72px; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent); animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-74px); opacity: 0; } 50% { transform: translateY(380px); opacity: 0.55; } }

/* radar emblem */
.radar { position: relative; width: 104px; height: 104px; margin: 2px auto 14px; }
.radar-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-rings circle, .radar-rings line { fill: none; stroke: var(--accent); stroke-width: 0.7; opacity: 0.5; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(70, 214, 160, 0) 0 268deg, rgba(70, 214, 160, 0.5) 358deg, rgba(70, 214, 160, 0) 360deg); animation: radarSpin 3.6s linear infinite; }
.radar-core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--blip); box-shadow: 0 0 10px var(--blip); opacity: 0; }
.b1 { top: 26%; left: 64%; animation: blip 3.6s linear infinite; }
.b2 { top: 58%; left: 37%; animation: blip 3.6s linear infinite 1.2s; }
.b3 { top: 44%; left: 71%; animation: blip 3.6s linear infinite 2.3s; }
@keyframes blip { 0%, 70%, 100% { opacity: 0; } 78% { opacity: 1; } 92% { opacity: 0.25; } }
@keyframes radarSpin { to { transform: rotate(360deg); } }

.login-card h1 { margin: 2px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.login-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 13.5px; }

/* console status */
.console { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; margin: 0 0 20px; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--glass-border-soft); font-size: 12px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cs { display: inline-flex; align-items: center; gap: 6px; }
.csi { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: #34d178; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 209, 120, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(52, 209, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 209, 120, 0); } }

.login-mygov { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; }

.login-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--text-faint); font-size: 11px; letter-spacing: 0.3px; }
.lf-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border)); }
.lf-line:last-child { background: linear-gradient(90deg, var(--glass-border), transparent); }

.login-test { margin-top: 18px; text-align: left; }
.login-test summary { cursor: pointer; color: var(--text-faint); font-size: 12.5px; text-align: center; list-style: none; }
.login-test summary::-webkit-details-marker { display: none; }
.login-test[open] summary { margin-bottom: 12px; }
.login-test .samples { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .wave, .horizon, .rb-sweep, .radar-sweep, .blip, .scanline, .particles i, .contours path, .dot-on { animation: none; }
}
@media (max-height: 700px) { .waves { height: 26vh; } .horizon { bottom: 24vh; } .login-wrap { padding-bottom: 30vh; } }

/* ───────── smooth page transitions (no white-flash reload) ───────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fadeOut 0.22s var(--ease) both; }
::view-transition-new(root) { animation: fadeIn 0.28s var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ───────── iPhone üslublu alt naviqasiya (hamar, pill-li) ───────── */
.bottom-nav { padding: 6px; gap: 2px; border-radius: 28px; }
.bottom-nav a {
  position: relative; border-radius: 19px; -webkit-tap-highlight-color: transparent;
  transition: color 0.3s cubic-bezier(.4, 0, .2, 1), transform 0.18s var(--ease);
}
.bottom-nav a .icon { width: 23px; height: 23px; transition: transform 0.34s cubic-bezier(.34, 1.5, .5, 1); }
.bottom-nav a::before {
  content: ""; position: absolute; inset: 5px; border-radius: 15px; z-index: -1;
  background: transparent; border: 1px solid transparent; transform: scale(.7); opacity: 0;
  transition: background .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s, border-color .3s, transform .3s, opacity .3s;
}
.bottom-nav a.active { color: var(--accent); background: transparent; }
.bottom-nav a.active::before {
  background: var(--glass-3); border-color: var(--glass-border); box-shadow: 0 6px 18px var(--glow);
  transform: scale(1); opacity: 1; animation: navPill .38s cubic-bezier(.34, 1.56, .5, 1);
}
.bottom-nav a.active .icon { transform: translateY(-1px) scale(1.12); }
.bottom-nav a:active { transform: scale(.9); }
@keyframes navPill { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bottom-nav a.active::before { animation: none; } }

/* ───────── trainings ───────── */
.train-card .train-ref { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.4px; }
.train-card .train-meta { font-size: 12px; color: var(--text-faint); }
.train-card .train-note { font-size: 12px; color: var(--text-dim); }
.train-card .progress { width: 100%; margin: 2px 0; }
.train-card .badge { align-self: flex-start; }

.read-timer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; position: sticky; top: 86px; z-index: 6; }
.rt-ring { width: 64px; height: 64px; position: relative; display: grid; place-items: center; flex: none; }
.rt-arc { --p: 0; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--ring-track) 0); -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 7px), #000 calc(100% - 5.5px)); mask: radial-gradient(farthest-side, #0000 calc(100% - 7px), #000 calc(100% - 5.5px)); }
.rt-num { position: relative; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-info { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.rt-info b { font-size: 15px; } .rt-info span { color: var(--text-dim); font-size: 12.5px; }
.rt-bar { flex-basis: 100%; height: 8px; border-radius: 999px; background: var(--ring-track); overflow: hidden; }
.rt-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 0.5s var(--ease); }
.read-timer.ok .rt-info b { color: var(--green); }

.reader-body { padding: 22px 24px; }
.reader-desc { color: var(--text-dim); margin: 0 0 16px; }
.reader-module { margin-bottom: 22px; }
.reader-mt { font-size: 17px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border-soft); }
.reader-material h3 { font-size: 15px; margin: 14px 0 6px; }
.reader-content { line-height: 1.7; color: var(--text); word-wrap: break-word; }
.reader-content p { margin: 0 0 10px; }
.reader-content h1, .reader-content h2, .reader-content h3 { margin: 14px 0 8px; }
.reader-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.reader-content table { width: 100%; border-collapse: collapse; }
.reader-content td, .reader-content th { border: 1px solid var(--glass-border-soft); padding: 6px 10px; }

/* ───────── login extra detail (sonar + HUD corners) ───────── */
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: sonar 3.6s ease-out infinite; }
@keyframes sonar { 0% { transform: scale(0.34); opacity: 0.5; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.login-card::before, .login-card::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: 0.55; }
.login-card::before { top: 12px; left: 12px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 6px; }
.login-card::after { bottom: 12px; right: 12px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } }

/* full HUD frame — remaining 2 corners */
.hud2 { position: absolute; inset: 0; pointer-events: none; }
.hud2::before, .hud2::after { content: ""; position: absolute; width: 18px; height: 18px; opacity: 0.55; }
.hud2::before { top: 12px; right: 12px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-top-right-radius: 6px; }
.hud2::after { bottom: 12px; left: 12px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); border-bottom-left-radius: 6px; }

/* my.gov button — distinct light-blue hover */
.login-mygov { transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), filter 0.3s var(--ease); }
.login-mygov:hover { background: linear-gradient(135deg, #6cc8ff, #36c4e0); color: var(--ink); filter: none; box-shadow: 0 14px 34px color-mix(in srgb, #58b6ff 55%, transparent); transform: translateY(-2px); }

/* custom radar cursor (login only) */
.login-body { cursor: none; }
.cursor {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; pointer-events: none; z-index: 9999; will-change: transform;
  display: grid; place-items: center;
  background: var(--glass-3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: width 0.18s var(--ease), height 0.18s var(--ease), background 0.18s var(--ease), opacity 0.2s;
}
.cursor::after { content: ""; position: relative; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); z-index: 1; }
.cur-sweep { position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 285deg, color-mix(in srgb, #46d6a0 70%, transparent) 358deg, transparent 360deg); animation: radarSpin 2.2s linear infinite; }
.cursor.hover { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: color-mix(in srgb, var(--accent) 20%, var(--glass-3)); border-color: #6cc8ff; }
@media (pointer: coarse) { .login-body { cursor: auto; } .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .cur-sweep { animation: none; } }

/* notifications */
.row-meta { flex: none; color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.row.notif.unread { background: var(--glass-2); }
.row.notif.unread .row-main b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: middle; }

/* ───────── single flipbook training ───────── */
.train-single { display: flex; flex-direction: row; gap: 0; overflow: hidden; }
@media (max-width: 640px) { .train-single { flex-direction: column; } }
.ts-cover { flex: none; width: 200px; background-size: cover; background-position: center; min-height: 230px; }
@media (max-width: 640px) { .ts-cover { width: 100%; height: 180px; min-height: 0; } }
.ts-body { flex: 1; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.ts-body h2 { margin: 0; font-size: 19px; }
.ts-sub { margin: 0; color: var(--text-dim); font-size: 13px; }
.ts-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ts-note { font-size: 13px; color: var(--text-dim); }
.ts-note.ok { color: var(--green); font-weight: 700; }
.train-single .read-timer { position: static; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid var(--glass-border-soft); }

/* flipbook modal */
.book-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: rgba(6, 18, 34, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.book-modal.open { display: flex; }
.book-box { position: relative; width: min(960px, 96vw); height: min(86vh, 760px); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: #0b1622; }
.book-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.book-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-3); color: var(--text); display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.book-close:hover { background: var(--glass-2); }

/* certificate document — rəsmi DDLA İştirak Sertifikatı (ağ sənəd, çapa uyğun) */
.cert2 { max-width: 920px; margin: 0 auto; }
.cert2-frame {
  background: #fff; color: #1e2a44; border: 3px double #1f3a6b; border-radius: 8px;
  padding: 28px clamp(20px, 5vw, 52px) 24px; position: relative;
  box-shadow: 0 18px 50px rgba(20, 40, 80, .16);
}
.cert2-frame::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid #2a4d8f; border-radius: 4px; pointer-events: none; }
.cert2-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 12px; }
.cert2-org { font-size: 12.5px; font-weight: 700; line-height: 1.42; color: #15224a; }
.cert2-org.az { text-align: right; }
.cert2-org.en { text-align: left; }
.cert2-seal { color: #1f3a6b; display: grid; place-items: center; }
.cert2-seal-svg { width: 76px; height: 76px; display: block; }
.cert2-title { text-align: center; font-size: 21px; font-weight: 800; color: #14213f; margin: 14px 0 5px; }
.cert2-title-en { margin-top: 22px; }
.cert2-sub { text-align: center; font-size: 12.5px; color: #41507a; margin: 0 0 5px; }
.cert2-holder { text-align: center; font-size: 13.5px; font-weight: 700; color: #14213f; margin: 0 auto 4px; max-width: 760px; line-height: 1.5; }
.cert2-name { text-align: center; font-size: 19px; font-weight: 800; color: #1f3a6b; margin: 3px 0 9px; letter-spacing: .2px; }
.cert2-text { text-align: center; font-size: 12.5px; line-height: 1.65; color: #25324f; margin: 0 auto 12px; max-width: 830px; }
.cert2-text b { color: #14213f; font-weight: 700; }
.cert2-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; gap: 16px; }
.cert2-date { font-size: 13px; color: #25324f; }
.cert2-date i { font-style: italic; color: #5a6a88; }
.cert2-qr { width: 90px; height: 90px; background: #fff; flex: none; }
.cert2-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
@media (max-width: 700px) {
  .cert2-head { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .cert2-org.az, .cert2-org.en { text-align: center; }
  .cert2-foot { flex-direction: column-reverse; align-items: center; gap: 12px; }
}

@media print {
  .topbar, .sidebar, .bottom-nav, .no-print, .ocean { display: none !important; }
  body::before { display: none !important; }
  .app, .content { display: block; padding: 0; }
  .cert2 { max-width: 100%; }
  .cert2-frame { box-shadow: none; }
}
@page { margin: 12mm; }

/* SPA content keçidi (brauzer yenilənmədən) */
.content { transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease); will-change: opacity, transform; }
.content.vt-out { opacity: 0; transform: translateY(-6px); }
.content.vt-in { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) {
  .content { transition: none; }
  .content.vt-out, .content.vt-in { opacity: 1; transform: none; }
}

/* certifikatda QR */
.cert-qr { margin: 16px auto 0; width: 116px; height: 116px; display: block; background: #fff; padding: 7px; border-radius: 10px; }
.cert-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.cert-verify { margin-top: 6px; font-size: 11px; color: var(--text-faint); }

/* SPA preloader — fırlanan gəmi sükanı (glass) */
.spa-loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .22s var(--ease, ease); }
.spa-loader.on { opacity: 1; }
.spa-loader-box { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 26px; background: var(--glass-3); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 18px 44px rgba(8, 20, 40, 0.28); }
.spa-loader .helm { width: 64px; height: 64px; transform-origin: 50% 50%; animation: helm-spin 2.6s linear infinite; filter: drop-shadow(0 2px 7px var(--glow)); }
@keyframes helm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spa-loader .helm { animation-duration: 6s; } }

/* public verify page */
.verify-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.verify-card { max-width: 460px; width: 100%; }
.verify-badge { font-weight: 800; font-size: 19px; margin: 8px 0 12px; }
.verify-badge.ok { color: var(--green); }
.verify-badge.bad { color: var(--red); }
.verify-back { margin-top: 16px; display: inline-flex; }

/* dashboard badge variantları (sertifikat statusu) */
.badge.valid { color: var(--green); background: rgba(48, 170, 90, 0.14); }
.badge.soon { color: #bf8700; background: rgba(210, 150, 0, 0.16); }
.badge.expired { color: var(--red); background: rgba(224, 72, 63, 0.14); }

/* ada klik → dənizçi modalı + vəzifə */
.pf-name { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .2s var(--ease, ease); }
.pf-name:hover { color: var(--accent); }
.pf-name-ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: opacity .2s var(--ease, ease); }
.pf-name:hover .pf-name-ic { opacity: 1; }
.pf-rank { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }

.top-rank { display: inline-flex; align-items: center; gap: 7px; max-width: 260px; padding: 8px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-rank .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
@media (max-width: 760px) { .top-rank { display: none; } }

.pf-modal, .cd-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: rgba(6, 18, 34, 0.62); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.pf-modal.on, .cd-modal.on { display: flex; }
.pf-box, .cd-box { width: min(520px, 96vw); max-height: 86vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #f1f8f9; box-shadow: 0 30px 80px rgba(6, 18, 34, 0.45); }
[data-theme="dark"] .pf-box, [data-theme="dark"] .cd-box { background: #101a2e; }
.pf-head, .cd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--glass-border-soft); }
.pf-head h3, .cd-head h3 { margin: 0; font-size: 17px; }
.pf-x, .cd-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.pf-x:hover, .cd-x:hover { background: var(--glass-3); }
.pf-body, .cd-body { padding: 14px 20px 20px; overflow: auto; }
.pf-group { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 14px 0 6px; }
.pf-group:first-child { margin-top: 0; }
.pf-row, .cd-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--glass-border-soft); font-size: 14px; }
.pf-row span, .cd-row span { color: var(--text-dim); flex: none; }
.pf-row b, .cd-row b { text-align: right; font-weight: 600; word-break: break-word; }
.pf-note { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--glass-2); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.cd-num { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.cd-note-row { border-bottom: 0; }
.cd-badge { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cd-badge.valid { color: var(--green); background: rgba(48, 170, 90, 0.14); }
.cd-badge.soon { color: #bf8700; background: rgba(210, 150, 0, 0.16); }
.cd-badge.expired { color: var(--red); background: rgba(224, 72, 63, 0.14); }
.cd-foot { padding: 14px 20px 18px; border-top: 1px solid var(--glass-border-soft); display: flex; }
.cd-foot .btn { width: 100%; justify-content: center; }

/* tam ekran PDF baxış */
.pdf-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: rgba(6, 18, 34, 0.7); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.pdf-modal.on { display: flex; }
.pdf-box { width: min(1000px, 96vw); height: min(92vh, 1100px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: #0b1622; }
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--glass-3); border-bottom: 1px solid var(--glass-border-soft); }
.pdf-title { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pdf-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pdf-link:hover { background: var(--glass-3); }
.pdf-x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.pdf-x:hover { background: var(--glass-3); }
.pdf-box iframe { flex: 1; width: 100%; border: 0; display: block; background: #525659; }

/* SweetAlert-tərzi bildiriş (brauzer dialoqu əvəzinə) */
.app-alert { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(6, 18, 34, 0.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s var(--ease, ease); }
.app-alert.on { opacity: 1; }
.aa-box { width: min(360px, 92vw); padding: 30px 26px; border-radius: 22px; text-align: center; background: #f1f8f9; border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(6, 18, 34, 0.4); transform: scale(.9); transition: transform .25s var(--ease, ease); }
.app-alert.on .aa-box { transform: scale(1); }
[data-theme="dark"] .aa-box { background: #101a2e; }
.aa-ic { width: 76px; height: 76px; margin: 0 auto 16px; }
.aa-ic svg { width: 100%; height: 100%; }
.aa-c { fill: none; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: aa-circle .5s var(--ease, ease) forwards; }
.aa-p { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: aa-path .35s .34s var(--ease, ease) forwards; }
.app-alert.ok .aa-c, .app-alert.ok .aa-p { stroke: var(--green); }
.app-alert.err .aa-c, .app-alert.err .aa-p { stroke: var(--red); }
@keyframes aa-circle { to { stroke-dashoffset: 0; } }
@keyframes aa-path { to { stroke-dashoffset: 0; } }
.aa-msg { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .aa-c, .aa-p { animation: none; stroke-dashoffset: 0; } .aa-box { transition: none; } }

.opt { color: var(--text-faint); font-weight: 400; font-size: 12px; }
.fb-count { text-align: right; font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* bildiriş badge (zəng ikonu) */
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--glass-3); }
.ch-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.notif.unread { cursor: pointer; }

/* segment filter (sertifikat status) */
.seg-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.seg-filter button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease, ease); }
.seg-filter button:hover { background: var(--glass-3); }
.seg-filter button.on { background: var(--header-grad); color: var(--ink); border-color: transparent; }

/* siyahı axtarışı */
.list-search { display: flex; align-items: center; gap: 8px; padding: 7px 13px; margin: 4px 8px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border-soft); }
.list-search .icon { width: 17px; height: 17px; color: var(--text-dim); flex: none; }
.list-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.list-empty { display: block; }

/* noaccess — girişin bərpası */
.na-info { text-align: left; margin: 8px 0 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid var(--glass-border-soft); }
.na-lead { margin: 0 0 8px; font-size: 14px; }
.na-list { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; color: var(--text-dim); display: flex; flex-direction: column; gap: 3px; }
.na-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.na-pills .pill { padding: 6px 12px; border-radius: 999px; background: var(--glass-3); border: 1px solid var(--glass-border-soft); font-size: 12.5px; font-weight: 600; }
.na-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.na-note { font-size: 12px; color: var(--text-faint); margin-top: 12px; }

/* Təlim platforması (xarici SSO link) */
.side-menu .menu-ext { color: var(--accent); font-weight: 600; }
.side-menu .menu-ext svg { color: var(--accent); }

/* 404 səhifəsi */
.nf-card { max-width: 460px; width: 100%; text-align: center; padding: 38px 30px; }
.nf-code { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -2px; background: var(--header-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 4px; }
.nf-card h1 { margin: 0 0 8px; font-size: 22px; }
.nf-msg { color: var(--text-dim); margin: 0 0 16px; }
.nf-redirect { font-size: 13px; color: var(--text-faint); margin: 0 0 18px; }
.nf-redirect b { color: var(--accent); font-variant-numeric: tabular-nums; }
.nf-btn { display: inline-flex; }

/* ════════════════════════ Sorğu (survey) ════════════════════════ */

/* ── sidebar nav prompt — yanıb-sönən ── */
.side-menu .nav-survey { position: relative; font-weight: 600; }
.side-menu .nav-survey:not(.sv-done) svg { color: #ff7a59; }
.side-menu .nav-survey .sv-state {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; line-height: 1.4; flex: none;
}
.side-menu .nav-survey .sv-state.new {
  color: #fff; background: linear-gradient(135deg, #ff7a59, #ff9f43);
  animation: svPulse 1.5s ease-in-out infinite;
}
.side-menu .nav-survey .sv-state.done {
  color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent);
}
@keyframes svPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .55); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(255, 122, 89, 0); opacity: .82; }
}

/* ── dashboard banner — prominent, yanıb-sönən ── */
.survey-banner {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin-bottom: 16px;
  text-decoration: none; color: var(--text); position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, #ff7a59 42%, var(--glass-border));
  animation: svBannerGlow 2.6s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
}
.survey-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.survey-banner:active { transform: scale(.992); }
@keyframes svBannerGlow {
  0%, 100% { box-shadow: var(--shadow); }
  50%      { box-shadow: var(--shadow), 0 0 24px 2px rgba(255, 122, 89, .32); }
}
.survey-banner .sb-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7a59, #ff9f43); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 122, 89, .34);
}
.survey-banner .sb-ic svg { width: 24px; height: 24px; }
.survey-banner .sb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.survey-banner .sb-text b { font-size: 15px; font-weight: 700; }
.survey-banner .sb-text span { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.survey-banner .sb-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: #fff; padding: 9px 14px; border-radius: 11px; white-space: nowrap;
  background: linear-gradient(135deg, #ff7a59, #ff9f43);
}
.survey-banner .sb-cta svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .survey-banner .sb-text span { display: none; }
  .survey-banner .sb-cta span { display: none; }
  .survey-banner .sb-cta { padding: 10px; }
}

/* ── survey page ── */
.sv-head .sv-title { margin: 8px 0 0; font-size: 14px; color: var(--text-dim); font-weight: 600; line-height: 1.5; }
.sv-intro { padding: 16px 18px; }
.sv-intro p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.sv-form { display: flex; flex-direction: column; gap: 16px; }
.sv-section { padding: 18px; }
.sv-sec-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; margin-bottom: 4px; border-bottom: 1px solid var(--glass-border-soft); }
.sv-sec-n {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #08323b; background: var(--btn);
}
.sv-sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sv-q { padding: 16px 0; border-bottom: 1px solid var(--glass-border-soft); }
.sv-q:last-child { border-bottom: none; padding-bottom: 4px; }
.sv-q-text { display: flex; gap: 9px; font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.sv-q-n {
  flex: none; min-width: 23px; height: 22px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.sv-note { font-weight: 500; font-style: normal; color: var(--text-faint); font-size: 12.5px; }
.sv-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sv-opt {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; min-height: 44px;
  border-radius: 12px; border: 1px solid var(--glass-border-soft); background: var(--glass);
  cursor: pointer; position: relative; transition: border-color .18s, background .18s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.sv-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.sv-opt:active { transform: scale(.99); }
.sv-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sv-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.sv-mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ring-track);
  position: relative; transition: border-color .18s, background .18s; background: transparent;
}
.sv-opts.multi .sv-mark { border-radius: 6px; }
.sv-mark::after { content: ''; position: absolute; opacity: 0; transition: opacity .15s; }
.sv-opts:not(.multi) .sv-mark::after { inset: 3px; border-radius: 50%; background: #fff; }
.sv-opts.multi .sv-mark::after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sv-opt input:checked ~ .sv-mark { border-color: var(--accent); background: var(--accent); }
.sv-opt input:checked ~ .sv-mark::after { opacity: 1; }
.sv-opt input:focus-visible ~ .sv-mark { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.sv-lbl { font-size: 13.5px; line-height: 1.4; }
.sv-other {
  margin-top: 10px; width: 100%; padding: 11px 13px; border-radius: 11px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--glass-border-soft); background: var(--glass); color: var(--text);
}
.sv-other::placeholder { color: var(--text-faint); }
.sv-other:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

/* auto (profil-dən) kilidli sual — cins, yaş */
.sv-q-auto { margin-inline: -12px; padding-inline: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.sv-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-auto-val {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 14px; min-height: 44px;
  border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.sv-mark.sv-on { border-color: var(--accent); background: var(--accent); }
.sv-mark.sv-on::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; opacity: 1; }
.sv-auto-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  color: var(--text-faint); padding: 5px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border-soft);
}
.sv-auto-tag svg { width: 13px; height: 13px; }

.sv-foot { padding: 20px 18px; text-align: center; }
.sv-foot .sv-send { display: inline-flex; }

.sv-thanks { text-align: center; padding: 36px 24px; }
.sv-thanks-ic { display: inline-grid; place-items: center; width: 66px; height: 66px; margin-bottom: 4px; }
.sv-thanks-ic svg { width: 66px; height: 66px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sv-thanks h2 { margin: 8px 0 8px; font-size: 21px; }
.sv-thanks p { margin: 0 auto 20px; max-width: 460px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .side-menu .nav-survey .sv-state.new, .survey-banner { animation: none; }
}

/* ════════════════════════ İş yeri (employment) ════════════════════════ */

/* ── giriş pop-up (cavablamayanlara) ── */
.emp-pop {
  position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center;
  padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: rgba(6, 18, 34, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.emp-pop.on { display: flex; animation: empFade .26s ease; }
@keyframes empFade { from { opacity: 0; } to { opacity: 1; } }
.emp-pop-box {
  position: relative; width: min(94vw, 440px); max-height: 92vh; overflow: auto;
  padding: 30px 26px 26px; text-align: center; animation: empPopIn .42s cubic-bezier(.34, 1.4, .5, 1);
  background: #f1f8f9; /* opaque — qaranlıq scrim üzərində aydın oxunsun (pf-box/aa-box kimi) */
}
[data-theme="dark"] .emp-pop-box { background: #101a2e; }
@keyframes empPopIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.emp-pop-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: none; border-radius: 12px;
  background: transparent; color: var(--text-dim); cursor: pointer; display: grid; place-items: center;
}
.emp-pop-x svg { width: 18px; height: 18px; }
.emp-pop-ic {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 18px;
  background: var(--btn); color: #06303a; box-shadow: 0 10px 26px rgba(57, 199, 222, .36);
  animation: empBob 2.6s ease-in-out infinite;
}
.emp-pop-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes empBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.emp-ask h3, .emp-pop-form h3 { margin: 10px 0 8px; font-size: 19px; }
.emp-ask p { margin: 0 auto 18px; max-width: 340px; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.emp-pop-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.emp-pop-actions .btn { min-width: 124px; justify-content: center; }
.emp-pop-form { text-align: left; }
.emp-pop-form .field { margin-bottom: 12px; }
.emp-pop-form h3 { text-align: center; }

/* ── profil modalında iş yeri bölməsi ── */
.pf-group-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-emp-edit {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; line-height: 1;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: none; border-radius: 999px; padding: 5px 11px; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.pf-emp-edit svg { width: 13px; height: 13px; }
.pf-emp-empty { font-size: 13px; color: var(--text-faint); padding: 6px 0; }
.pf-emp-date { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.pf-emp-hist { margin-top: 10px; }
.pf-emp-hist summary { font-size: 12.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; padding: 7px 0; list-style-position: inside; }
.pf-emp-old { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-top: 1px solid var(--glass-border-soft); }
.pf-emp-old b { font-size: 13px; }
.pf-emp-old span { font-size: 12px; color: var(--text-dim); }
.pf-emp-old i { font-size: 11px; color: var(--text-faint); font-style: normal; margin-top: 1px; }
.pf-emp-form { margin-top: 8px; }
.pf-emp-form .field { margin-bottom: 10px; }
.pf-emp-actions { display: flex; gap: 8px; margin-top: 4px; }
.pf-emp-actions .btn { flex: 1; justify-content: center; }
.pf-emp-note { font-size: 11px; color: var(--text-faint); margin: 9px 0 0; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .emp-pop.on, .emp-pop-box, .emp-pop-ic { animation: none; }
}

/* ════════════════ Son elan lenti (topbar altında, sağ→sol) ════════════════ */
.news-ticker {
  display: flex; align-items: center; gap: 10px; overflow: hidden; text-decoration: none;
  margin: 8px 16px 0; padding: 0 14px 0 12px; min-height: 44px; border-radius: 14px;
  color: #0b3b54; background: linear-gradient(90deg, rgba(57, 199, 222, .16), rgba(160, 231, 154, .14));
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 4px 14px rgba(57, 199, 222, .12), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.news-ticker:hover { border-color: rgba(57, 199, 222, .5); background: linear-gradient(90deg, rgba(57, 199, 222, .22), rgba(160, 231, 154, .18)); }
.news-ticker:active { transform: scale(.99); }
.news-ticker:focus-visible { outline: 2px solid var(--accent, #0A84FF); outline-offset: 2px; }
.news-ic { flex: none; display: inline-flex; color: #0a84ad; }
.news-ic .icon { width: 17px; height: 17px; }
.news-viewport { flex: 1; overflow: hidden; }
.news-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: newsScroll 30s linear infinite; }
.news-item { padding: 9px 0; font-size: 13px; line-height: 1.3; }
.news-ttl { font-weight: 800; }
.news-dash { opacity: .6; padding: 0 2px; }
.news-bd { font-weight: 500; }
.news-sep { padding: 0 22px; font-size: 10px; opacity: .5; }
.news-ticker:hover .news-track,
.news-ticker:focus-visible .news-track { animation-play-state: paused; }
@keyframes newsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-theme="dark"] .news-ticker { color: #e3f6fc; background: linear-gradient(90deg, rgba(57, 199, 222, .16), rgba(160, 231, 154, .1)); border-color: rgba(255, 255, 255, .12); box-shadow: 0 4px 14px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
[data-theme="dark"] .news-ic { color: #5fd6ef; }
[data-theme="dark"] .news-dash { opacity: .7; }
@media (max-width: 560px) { .news-ticker { margin: 8px 10px 0; } .news-item { font-size: 12px; } .news-sep { padding: 0 16px; } }
@media (max-width: 360px) { .news-item { font-size: 11px; } }
/* hərəkəti azalt: animasiyanı dayandır, tək nüsxə qalsın və əllə sürüşdürülə bilsin */
@media (prefers-reduced-motion: reduce) {
  .news-track { animation: none; }
  .news-viewport { overflow-x: auto; scrollbar-width: thin; }
  .news-track > *:nth-child(n+2) { display: none; }
}
