/* =========================
   HEADER / COVER FIX
   მიზანი:
   - header იყოს ყოველთვის ზემოდან 0-ზე
   - scroll-ის დროს დარჩეს sticky
   - ტექსტი და nav ღილაკები იყოს მკვეთრად ხილული
   - blur მოიხსნას, რადგან კლავს cover-ს
   - desktop + mobile ორივეზე ზედა დაშორება = 0
   ========================= */

/* root */
:root{
  --bg:#070b14;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);
  --accent:#7aa7ff;

  --radius: 18px;
  --shadow: 0 10px 40px rgba(0,0,0,.55);

  --wrap-max: 1180px;
  --gap: 14px;

  --sticky-top: 0; /* always top 0 */
}

/* reset */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ overflow-x:hidden; }

body{
  margin:0;
  overflow-x:hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:var(--bg);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(1400px 900px at 20% -10%, rgba(122,167,255,.22), transparent 55%),
    radial-gradient(1000px 700px at 80% 0%, rgba(210,120,255,.16), transparent 55%),
    var(--bg);
  transform:translateZ(0);
}

/* wrapper */
.wrap{
  max-width:var(--wrap-max);
  margin:0 auto;
  padding:0 16px 36px; /* top padding removed */
}

/* =========================
   COVER
   ========================= */
.cover{
  position:sticky;
  top:0;
  z-index:9999;

  border-radius:0 0 24px 24px;
  border:1px solid rgba(255,255,255,.12);
  border-top:0;
  box-shadow:
    0 14px 34px rgba(0,0,0,.42),
    0 1px 0 rgba(255,255,255,.06) inset;
  overflow:hidden;

  background:
    linear-gradient(
      180deg,
      rgba(2,7,18,.38) 0%,
      rgba(2,7,18,.26) 26%,
      rgba(2,7,18,.48) 100%
    ),
    url("/web/img/cover_croped.webp?v=3"),
    url("/web/img/cover_croped.png?v=3");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  /* IMPORTANT: remove blur */
  backdrop-filter:none;
  -webkit-backdrop-filter:none;

  isolation:isolate;
  background-color:rgba(7,11,20,.95);
}

.cover::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(5,10,22,.74) 0%, rgba(5,10,22,.28) 42%, rgba(5,10,22,.52) 100%);
  pointer-events:none;
  z-index:0;
}

.cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 20%, rgba(0,0,0,.16) 100%);
  pointer-events:none;
  z-index:0;
}

.cover-inner{
  position:relative;
  z-index:2;
  padding:18px 18px 14px;
}

/* =========================
   BRAND
   ========================= */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.brand img{
  width:54px;
  height:54px;
  border-radius:14px;
  background:rgba(122,167,255,.22);
  border:1px solid rgba(122,167,255,.48);
  box-shadow:
    0 10px 30px rgba(0,0,0,.42),
    0 0 18px rgba(122,167,255,.22);
}

.brand h1{
  margin:0;
  font-size:33px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:.2px;
  color:#ffffff;
  text-shadow:
    0 2px 6px rgba(0,0,0,.85),
    0 8px 22px rgba(0,0,0,.55),
    0 0 14px rgba(122,167,255,.16);
}

/* optional small subtitle if exists */
.brand p,
.brand small,
.brand-sub{
  margin:4px 0 0;
  color:rgba(255,255,255,.88);
  text-shadow:0 2px 8px rgba(0,0,0,.8);
}

/* =========================
   NAV
   ========================= */
.nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 16px;
  border-radius:12px;
  border:1px solid rgba(130,175,255,.22);

  background:rgba(255,255,255,.06);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  color:#eaf2ff;
  font-weight:600;
  font-size:14px;
  letter-spacing:.1px;
  text-decoration:none;

  box-shadow:
    0 4px 14px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.06);

  text-shadow:none;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.nav-btn:hover{
  transform:translateY(-1px);
  background:rgba(120,170,255,.12);
  border-color:rgba(130,175,255,.38);
  color:#ffffff;
  box-shadow:
    0 8px 20px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.nav-btn.active{
  background:rgba(120,170,255,.18);
  border-color:rgba(145,190,255,.52);
  color:#ffffff;
  box-shadow:
    0 8px 20px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.nav-btn.active::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:4px;
  height:2px;
  border-radius:2px;
  background:#7fb0ff;
}

.nav-spacer{
  flex:1;
}

/* content grid */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr;
  gap:var(--gap);
  align-items:start;
}

/* panel */
.panel{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 34px rgba(0,0,0,.35);
  overflow:hidden;
  max-width:100%;
}

.panel-h{
  padding:14px 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.panel-title{
  margin:0;
  font-size:15px;
  color:rgba(234,240,255,.92);
}

.panel-sub{
  font-size:12px;
  color:rgba(234,240,255,.60);
}

.panel-b{ padding:14px; }

footer{
  margin-top:16px;
  padding:14px 8px 0;
  text-align:center;
  color:rgba(234,240,255,.60);
  font-size:12px;
  line-height:1.5;
}

/* =========================
   TABLET
   ========================= */
@media (max-width:1024px){
  :root{ --wrap-max:980px; }

  .wrap{
    padding:0 12px 34px; /* top 0 */
  }

  .brand h1{
    font-size:28px;
  }

  .cover-inner{
    padding:16px 14px 12px;
  }
  
}

/* =========================
   MOBILE
   ========================= */
@media (max-width:768px){
   .cover-inner{
    padding:10px 12px 10px;
  }

  .brand{
    margin-bottom:8px;
  }

  .brand h1{
    font-size:20px;
  }

  .nav{
    gap:6px;
  }

  .nav-btn{
    min-height:32px;
    padding:6px 10px;
    font-size:12px;
  }
  
  .wrap{
    padding:0 0 28px; /* no top gap */
  }

  .cover{
    top:0;
    border-radius:0 0 20px 20px;
    border-left:0;
    border-right:0;
    border-top:0;
  }

  .cover-inner{
    padding:14px 12px 12px;
  }

  .brand{
    gap:10px;
    margin-bottom:12px;
  }

  .brand img{
    width:46px;
    height:46px;
    border-radius:12px;
  }

  .brand h1{
    font-size:22px;
  }

 .nav{
    gap:8px;
  }

  .nav-btn{
    min-height:34px;
    padding:7px 12px;
    font-size:13px;
    border-radius:10px;
  }
} 


.legal-page {
  width: 100%;
}

.legal-card {
  background: linear-gradient(180deg, rgba(16,20,34,.96), rgba(10,14,26,.96));
  border: 1px solid rgba(120, 150, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  overflow: hidden;
}

.legal-body {
  padding: 28px 30px;
  color: #e8ecff;
  line-height: 1.75;
}

.legal-body h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.2;
  color: #ffffff;
}

.legal-body h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #bcd0ff;
}

.legal-body p {
  margin: 0 0 14px;
  font-size: 16px;
  color: #d7def7;
}

.legal-body strong {
  color: #ffffff;
}

.legal-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 480px){
  .nav{
    gap:6px;
  }

  .nav-btn{
    min-height:32px;
    padding:6px 10px;
    font-size:12px;
    border-radius:9px;
  }

  .nav-spacer{
    display:none;
  }
}

.news-article-audio {
  margin: 18px 0 14px 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 30, 58, 0.95), rgba(13, 22, 42, 0.95));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
}

.news-article-audio__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.news-article-audio__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #dfe9ff;
}

.news-article-audio__player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 44px;
}

.news-article-inline-ad--under-audio {
  margin: 12px 0 18px 0;
}

.news-article-inline-ad--under-audio .news-article-inline-ad__box {
  min-height: 140px;
}

@media (max-width: 768px) {
  .news-article-audio {
    margin: 14px 0 12px 0;
    padding: 12px;
    border-radius: 14px;
  }

  .news-article-audio__title {
    font-size: 13px;
  }

  .news-article-audio__player {
    height: 46px;
  }

  .news-article-inline-ad--under-audio {
    margin: 10px 0 16px 0;
  }

  .news-article-inline-ad--under-audio .news-article-inline-ad__box {
    min-height: 120px;
  }
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: #f8f8f8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.22);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(249, 250, 250, 0.795);
}

.donate-icon {
    font-size: 16px;
}

/* donate button mobile */
@media (max-width: 640px) {
    .donate-btn {
        padding: 10px;
        width: 42px;
        height: 42px;
        justify-content: center;
        border-radius: 50%;
    }

    .donate-text {
        display: none;
    }

    .donate-icon {
        font-size: 18px;
    }
}

.donate-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 10, 24, 0.74);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.donate-modal-overlay.active {
    display: flex;
}

.donate-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 36px);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
    overflow: hidden;
    border: 1px solid rgba(24, 119, 242, 0.10);
    animation: donateModalIn 0.22s ease;
    display: flex;
    flex-direction: column;
    margin: auto;
}

@keyframes donateModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donate-modal-head {
    position: relative;
    padding: 30px 28px 18px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(252, 253, 255, 0.12), transparent 34%),
        radial-gradient(circle at top left, rgba(0, 168, 255, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    flex: 0 0 auto;
}

.donate-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fafbfc 0%, #fefeff 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.25);
}

.donate-modal-head h3 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.donate-modal-subtitle {
    margin: 0 auto;
    max-width: 430px;
    font-size: 15px;
    line-height: 1.7;
    color: #475467;
}

.donate-modal-body {
    padding: 24px 28px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.donate-info-box {
    padding: 15px 16px;
    border-radius: 16px;
    background: #eef5ff;
    border: 1px solid rgba(24, 119, 242, 0.12);
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.donate-amount-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.donate-amount-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.donate-amount-btn {
    appearance: none;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    min-height: 48px;
}

.donate-amount-btn:hover {
    border-color: #1e90ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 144, 255, 0.14);
}

.donate-amount-btn.active {
    background: linear-gradient(135deg, #1e90ff 0%, #0b63d8 100%);
    color: #ffffff;
    border-color: #0b63d8;
    box-shadow: 0 10px 24px rgba(11, 99, 216, 0.24);
}

.donate-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #667085;
}

.donate-modal-actions {
    display: flex;
    gap: 12px;
    padding: 0 28px 28px;
    flex: 0 0 auto;
}

.donate-modal-paypal,
.donate-modal-cancel {
    flex: 1;
    min-height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.18s ease;
}

.donate-modal-paypal {
    background: linear-gradient(135deg, #1e90ff 0%, #0b63d8 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(11, 99, 216, 0.22);
}

.donate-modal-paypal:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(11, 99, 216, 0.28);
}

.donate-modal-cancel {
    border: 1px solid #d0d9e5;
    background: #eef2f7;
    color: #1f2937;
    cursor: pointer;
}

.donate-modal-cancel:hover {
    background: #e5ebf3;
}

.donate-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    z-index: 3;
}

.donate-modal-close:hover {
    background: rgba(30, 144, 255, 0.15);
    color: #0b63d8;
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .donate-modal-overlay {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .donate-modal-box {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 22px;
    }

    .donate-modal-head {
        padding: 22px 18px 14px;
    }

    .donate-modal-icon {
        width: 62px;
        height: 62px;
        margin: 0 auto 12px;
        font-size: 28px;
    }

    .donate-modal-head h3 {
        font-size: 27px;
        line-height: 1.18;
        padding: 0 26px;
    }

    .donate-modal-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .donate-modal-body {
        padding: 16px 18px 10px;
    }

    .donate-info-box {
        padding: 14px 14px;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .donate-amount-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .donate-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .donate-amount-btn {
        min-height: 46px;
        font-size: 15px;
        padding: 11px 8px;
    }

    .donate-note {
        font-size: 13px;
        line-height: 1.6;
    }

    .donate-modal-actions {
        padding: 0 18px 18px;
        flex-direction: column;
    }

    .donate-modal-paypal,
    .donate-modal-cancel {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }

    .donate-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .donate-modal-overlay {
        padding: 6px;
    }

    .donate-modal-box {
        max-height: calc(100dvh - 12px);
        border-radius: 18px;
    }

    .donate-modal-head {
        padding: 18px 14px 12px;
    }

    .donate-modal-icon {
        width: 54px;
        height: 54px;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .donate-modal-head h3 {
        font-size: 23px;
        padding: 0 24px;
    }

    .donate-modal-subtitle {
        font-size: 13px;
        line-height: 1.55;
    }

    .donate-modal-body {
        padding: 14px 14px 8px;
    }

    .donate-info-box,
    .donate-note {
        font-size: 13px;
        line-height: 1.55;
    }

    .donate-amount-grid {
        gap: 8px;
    }

    .donate-amount-btn {
        font-size: 14px;
        padding: 10px 6px;
        min-height: 44px;
        border-radius: 12px;
    }

    .donate-modal-actions {
        padding: 0 14px 14px;
    }

    .donate-modal-paypal,
    .donate-modal-cancel {
        min-height: 48px;
        font-size: 14px;
        border-radius: 14px;
    }

    .donate-modal-close {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}