:root{
  --bg: #020617;
  --text: #e5e7eb;
  --muted: #94a3b8;

  --glass: rgba(255,255,255,.07);
  --glassBorder: rgba(255,255,255,.12);

  --blueA: rgba(56,189,248,.70);
  --blueB: rgba(59,130,246,.70);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(14,165,233,.35) 0%, transparent 45%),
    radial-gradient(1000px 500px at 90% 10%, rgba(34,197,94,.20) 0%, transparent 40%),
    var(--bg);
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 64px;
}

.muted{ color: var(--muted); }
.mono{ font-variant-numeric: tabular-nums; }
.tiny{ font-size: 12px; }

h1{
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}

.headerRight{
  display:flex;
  flex-direction:column;
  gap: 6px;
  align-items:flex-end;
}

.glass{
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.sectionTitle{
  font-weight: 600;
  font-size: 14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: #e2e8f0;
}

.pillMega{
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.35);
}

/* Controls */
.controls{
  margin-top: 18px;
  padding: 14px;
}

.controlsRow{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
}

.controlsLeft{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  flex: 1;
  min-width: 260px;
}

.controlsRight{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

input, select{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 11px 12px;
  color: #e5e7eb;
  outline:none;
  font-size: 13px;
}

input{ width: min(520px, 100%); }

select option{ color:#0b1220; }

.btn{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(56,189,248,.16);
  color: #eaf6ff;
  cursor: pointer;
  font-size: 13px;
}

.btn:hover{ background: rgba(56,189,248,.22); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btnGhost{
  background: rgba(255,255,255,.06);
}
.btnGhost:hover{
  background: rgba(255,255,255,.10);
}

/* HERO: entire div is water-progress */
.heroContainer{
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.14);

  background:
    radial-gradient(900px 280px at 10% 15%, rgba(56,189,248,.16), transparent 55%),
    radial-gradient(700px 240px at 90% 20%, rgba(34,197,94,.12), transparent 55%),
    rgba(255,255,255,.04);

  box-shadow:
    0 30px 80px rgba(0,0,0,.60),
    inset 0 0 0 1px rgba(255,255,255,.05);

  transition: transform .12s ease, box-shadow .12s ease;
}
.heroContainer:hover{
  transform: translateY(-2px);
  box-shadow: 0 34px 90px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,255,255,.06);
}

.heroWater{
  position:absolute;
  inset:0;
  width:0%;
  height:100%;
  border-radius: 26px 0 0 26px;
  overflow:hidden;

  background:
    linear-gradient(180deg, var(--blueA), var(--blueB));

  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.22),
    inset -1px 0 0 rgba(255,255,255,.08);

  transition: width .8s cubic-bezier(.22,.61,.36,1);
}

/* Wave motion across the full hero (waveform feel) */
.heroWater::before,
.heroWater::after{
  content:"";
  position:absolute;
  inset:-40%;
  opacity:.65;
  transform: translateX(0);
}

.heroWater::before{
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(255,255,255,.22) 0px,
      rgba(255,255,255,.22) 12px,
      transparent 12px,
      transparent 28px
    );
  opacity:.40;
  animation: heroWaveMain 2.2s linear infinite;
}

.heroWater::after{
  background:
    radial-gradient(circle at 15% 65%, rgba(255,255,255,.30) 0 14px, transparent 15px),
    radial-gradient(circle at 30% 45%, rgba(255,255,255,.18) 0 18px, transparent 19px),
    radial-gradient(circle at 48% 70%, rgba(255,255,255,.26) 0 16px, transparent 17px),
    radial-gradient(circle at 65% 50%, rgba(255,255,255,.18) 0 18px, transparent 19px),
    radial-gradient(circle at 82% 68%, rgba(255,255,255,.24) 0 16px, transparent 17px);
  opacity:.32;
  animation: heroWaveBubble 3.4s linear infinite reverse;
}

@keyframes heroWaveMain{
  from { transform: translateX(0); }
  to   { transform: translateX(-180px); }
}
@keyframes heroWaveBubble{
  from { transform: translateX(0); }
  to   { transform: translateX(-260px); }
}

.heroContent{
  position:relative;
  z-index: 2;
}

.heroTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  flex-wrap:wrap;
}

.heroKicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(226,232,240,.78);
}

.heroTitle{
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}
.heroTitleSub{
  font-size: 14px;
  font-weight: 700;
  color: rgba(226,232,240,.80);
}

.heroStats{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.heroStat{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(2,6,23,.18);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 160px;
}
.heroStatLabel{
  font-size: 11px;
  color: rgba(226,232,240,.70);
}
.heroStatValue{
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
}

.heroBottom{
  margin-top: 12px;
}

/* Map */
.mapWrap{
  margin-top: 18px;
  padding: 18px;
}
.mapHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 12px;
}
#map{
  height: 460px;
  border-radius: 18px;
  overflow:hidden;
}

/* Chart */
.chartWrap{
  margin-top: 18px;
  padding: 18px;
}
.chartHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.chartKpis{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
}
#cyprusChart{
  margin-top: 10px;
}

/* Cards list */
.listHeader{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.cardsGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.card{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.45);
  transition: transform .10s ease, background .10s ease, border-color .10s ease;
  cursor:pointer;
}
.card:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.cardActive{
  border-color: rgba(56,189,248,.45) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.52), 0 0 0 6px rgba(56,189,248,.06);
}

.row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.name{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.metaGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.meta{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(2,6,23,.22);
  border: 1px solid rgba(255,255,255,.10);
}
.meta span{
  font-size: 11px;
  color: rgba(226,232,240,.70);
}
.meta div{
  margin-top: 6px;
  font-weight: 700;
}

/* Fill bar inside cards (with wave) */
.barWrap{
  margin-top: 12px;
}
.barHead{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
}
.bar{
  margin-top: 8px;
  height: 14px;
  width: 100%;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.barFill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(56,189,248,.55), rgba(59,130,246,.55));
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18);
}

/* wave overlay */
.barFill::before,
.barFill::after{
  content:"";
  position:absolute;
  left:-40%;
  top:-40%;
  width:200%;
  height:200%;
  background-repeat: repeat-x;
  opacity:.55;
  transform: translateX(0);
}
.barFill::before{
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.35) 0 10px, transparent 11px),
    radial-gradient(circle at 70px 35px, rgba(255,255,255,.25) 0 12px, transparent 13px);
  animation: waveMove 2.6s linear infinite;
}
.barFill::after{
  background-image:
    radial-gradient(circle at 35px 25px, rgba(255,255,255,.28) 0 9px, transparent 10px),
    radial-gradient(circle at 95px 40px, rgba(255,255,255,.18) 0 11px, transparent 12px);
  animation: waveMove 3.8s linear infinite reverse;
  opacity:.45;
}
@keyframes waveMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-120px); }
}

.card a{
  color: #bfe9ff;
  text-decoration: none;
}
.card a:hover{
  text-decoration: underline;
}

.footer{
  margin-top: 44px;
  text-align:center;
}
