:root {
  --bg: #081120;
  --bg2: #0d1a2d;
  --card: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.12);
  --text: #f8fbff;
  --muted: #9fb0c5;
  --accent: #f59e0b;
  --accent2: #38bdf8;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-soft: 0 18px 40px rgba(1, 8, 18, 0.28);
  --radius: 24px;
  --radius-sm: 18px;
  --ease-premium: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245,158,11,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 24%),
    linear-gradient(180deg, #060d19 0%, #0a1526 45%, #081120 100%);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(68px);
  pointer-events: none;
  z-index: -1;
  opacity: .55;
}
body::before {
  top: -8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 60%);
  animation: floatGlow 14s ease-in-out infinite alternate;
}
body::after {
  right: -12rem;
  top: 20vh;
  background: radial-gradient(circle, rgba(56,189,248,.16), transparent 62%);
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
}
.sticky { position: sticky; top: 0; z-index: 60; }
.pb-header {
  margin: 12px 12px 0;
  border-radius: 22px;
  transition: transform .45s var(--ease-premium), background .45s var(--ease-premium), box-shadow .45s var(--ease-premium), border-color .45s var(--ease-premium);
}
.pb-header.scrolled {
  background: linear-gradient(180deg, rgba(8,17,32,.92), rgba(8,17,32,.78));
  box-shadow: 0 26px 70px rgba(1,10,22,.5);
  border-color: rgba(255,255,255,.16);
}
.nav-shell { display:flex; align-items:center; justify-content:space-between; padding: 12px 18px; gap: 18px; position: relative; }
.pb-brand { display:flex; align-items:center; position:relative; z-index:2; }
.pb-logo {
  height: 48px;
  width: auto;
  transition: transform .5s var(--ease-premium), filter .5s var(--ease-premium);
  filter: drop-shadow(0 10px 25px rgba(2,10,20,.3));
}
.pb-brand:hover .pb-logo { transform: translateY(-1px) scale(1.015); }
.pb-nav { display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pb-nav-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  transition: background .35s var(--ease-premium), color .35s var(--ease-premium), transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
}
.pb-nav-link.active, .pb-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.16);
  transform: translateY(-1px);
}
.pb-menu-toggle {
  display:none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  color:#fff;
  border-radius: 15px;
  padding: 0;
  align-items:center;
  justify-content:center;
  gap: 4px;
  flex-direction: column;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}
.pb-menu-toggle span {
  display:block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform .35s var(--ease-premium), opacity .3s var(--ease-premium);
}
.pb-menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pb-menu-toggle.active span:nth-child(2) { opacity: 0; }
.pb-menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pb-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1,8,18,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-premium);
}
.pb-menu-backdrop.open { opacity: 1; pointer-events: auto; }
.hero { padding: 34px 0 20px; }
.hero-grid { display:grid; grid-template-columns: 1.25fr .85fr; gap: 22px; align-items: stretch; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-premium), box-shadow .45s var(--ease-premium), border-color .45s var(--ease-premium), background .45s var(--ease-premium);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(1, 8, 18, 0.42);
  border-color: rgba(255,255,255,.18);
}
.hero-card { padding: 30px; position:relative; overflow:hidden; }
.hero-card::before {
  content:'';
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 35%, transparent 65%, rgba(56,189,248,.06));
  pointer-events:none;
}
.hero-card::after {
  content:'';
  position:absolute;
  inset:auto -20% -35% auto;
  width: 240px;
  height: 240px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(245,158,11,.28), transparent 60%);
  animation: pulseOrb 8s ease-in-out infinite;
}
.kicker { color: var(--accent); font-weight: 800; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; margin: 10px 0 12px; }
.hero p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.cta-row { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium), border-color .35s var(--ease-premium), background .35s var(--ease-premium);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(1,8,18,.3); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #fb7185); color:#081120; }
.btn.secondary { background: rgba(255,255,255,0.05); color:#fff; }
.grid-2, .grid-3, .grid-4 { display:grid; gap:18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.section { padding: 18px 0 26px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.9rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 16px;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, rgba(9,18,33,1), rgba(9,18,33,0)); }
.ticker::after { right: 0; background: linear-gradient(270deg, rgba(9,18,33,1), rgba(9,18,33,0)); }
.ticker-track { display:inline-block; padding-left: 100%; animation: ticker 24s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display:inline-flex; align-items:center; gap:10px; margin-right: 28px; color:#e7eef8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.panel { padding: 18px; }
.mini-stat { padding: 18px; position: relative; overflow: hidden; }
.mini-stat::after {
  content: '';
  position: absolute;
  inset: auto auto -40px -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.16), transparent 62%);
}
.label { color: var(--muted); font-size: .88rem; }
.value { font-size: 1.7rem; font-weight: 800; margin-top: 10px; }
.news-card { overflow:hidden; }
.news-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
  width:100%;
  background: rgba(255,255,255,.05);
  transition: transform .65s var(--ease-premium), filter .65s var(--ease-premium);
}
.news-card:hover .news-thumb { transform: scale(1.035); filter: saturate(1.05); }
.news-content { padding: 16px; }
.meta { display:flex; flex-wrap:wrap; gap:8px; color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.badge {
  background: rgba(56,189,248,.12);
  color:#cdefff;
  border:1px solid rgba(56,189,248,.25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  transition: transform .3s var(--ease-premium), background .3s var(--ease-premium);
}
.badge:hover { transform: translateY(-1px); background: rgba(56,189,248,.16); }
.news-title { font-size: 1.05rem; font-weight: 800; line-height: 1.4; margin: 0 0 10px; }
.summary { color: var(--muted); line-height: 1.65; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow:hidden; }
.action-row { display:flex; justify-content:space-between; gap:10px; align-items:center; padding-top: 14px; }
.share-row { display:flex; gap:8px; flex-wrap: wrap; }
.share-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:#fff;
  font-size:.83rem;
  transition: transform .3s var(--ease-premium), background .3s var(--ease-premium), border-color .3s var(--ease-premium);
}
.share-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.filters { display:flex; gap:12px; flex-wrap: wrap; margin-bottom: 16px; }
.input, select, textarea {
  width:100%;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:#fff;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(56,189,248,.4);
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
  background: rgba(255,255,255,.07);
}
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align:left; }
.table tbody tr { transition: background .25s ease, transform .25s ease; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.kpi.up { color: var(--ok); } .kpi.down { color: var(--bad); } .kpi.flat { color: var(--warn); }
.list-clean { list-style: none; padding:0; margin:0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pb-footer { margin-top: 28px; padding: 28px 0 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.16); }
.footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.footer-grid h4 { margin-top: 0; }
.footer-grid a, .muted { color: var(--muted); display:block; margin: 10px 0; }
.footer-logo { height: 44px; width:auto; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; color: var(--muted); border-top:1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.center { text-align:center; }
.admin-actions { display:flex; gap:10px; flex-wrap: wrap; }
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .8s var(--ease-premium), transform .8s var(--ease-premium), filter .8s var(--ease-premium);
  filter: blur(8px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
@keyframes pulseOrb {
  0%,100% { transform: scale(1) translate3d(0,0,0); opacity: .9; }
  50% { transform: scale(1.08) translate3d(-10px,-8px,0); opacity: 1; }
}
@keyframes floatGlow {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(30px,18px,0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 920px) {
  .hero-grid, .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }
  .pb-menu-toggle { display:flex; }
  .pb-nav {
    position: fixed;
    top: 82px;
    left: 12px;
    right: 12px;
    display:flex;
    flex-direction:column;
    background: linear-gradient(180deg, rgba(10,18,34,.98), rgba(8,16,30,.94));
    padding: 14px;
    border-radius: 22px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.44);
    transform: translateY(-10px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease-premium), opacity .4s var(--ease-premium);
    z-index: 80;
  }
  .pb-nav.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .pb-nav-link { padding: 14px 16px; background: rgba(255,255,255,.03); }
  .hero-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head, .footer-bottom, .action-row { flex-direction:column; align-items:flex-start; }
  .pb-logo { height: 42px; }
  .hero-card { padding: 24px; }
}
