
  :root{
    --bg:#0e1117; --card:#151a23; --muted:#9aa4b2; --text:#e9eef6; --brand:#3ddc97; --accent:#7ee787; --danger:#ff6b6b;
    --chip:#1d2430; --chip-border:#2a3241; --border:#212734;
  }
  *{box-sizing:border-box}
  body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
  a{color:inherit}
  .container{max-width:820px;margin:0 auto;padding:16px}
  header{position:sticky;top:0;background:linear-gradient(0deg, rgba(14,17,23,.0), rgba(14,17,23,.9) 30%, rgba(14,17,23,1));backdrop-filter:saturate(1.2) blur(6px);z-index:10}
  .titlebar{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border)}
  .titlebar .dot{width:10px;height:10px;border-radius:50%;background:var(--brand);box-shadow:0 0 16px var(--brand)}
  .titlebar h1{margin:0;font-weight:700;font-size:18px}
  .feed{display:grid;gap:14px}
  .card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden}
  .card .head{display:flex;gap:12px;padding:14px 14px 6px 14px;align-items:center}
  .avatar{width:40px;height:40px;border-radius:50%;background:#1f2633;border:1px solid var(--border);display:grid;place-items:center;font-size:18px}
  .who{display:flex;flex-direction:column}
  .who .name{font-weight:600}
  .who .meta{color:var(--muted);font-size:12px}
  .content{padding:6px 14px 8px 14px}
  .content .html{overflow:hidden}
  .media{display:block;gap:8px;padding:0px !important;width:100%;text-align:center;align-items:center;}
  iframe {
      border-radius:20px !important;
  }
  .media img,.media video{width:100%;height:auto;border-radius:12px;border:1px solid var(--border);background:#0c0f14}
  .bar{display:flex;gap:8px;padding:8px 12px;border-top:1px solid var(--border);align-items:center;flex-wrap:wrap}
  .chip{display:inline-flex;gap:6px;align-items:center;background:var(--chip);border:1px solid var(--chip-border);padding:6px 10px;border-radius:999px;cursor:pointer;user-select:none;color:white;}
  .chip[aria-pressed="true"]{outline:2px solid var(--accent)}
  .chip .cnt{color:var(--muted);font-size:13px}
  .spacer{flex:1}
  .action{display:inline-flex;gap:8px;align-items:center;border:1px dashed var(--chip-border);background:transparent;padding:6px 10px;border-radius:999px;color:white;cursor:pointer}
  .action:hover{border-style:solid;color:var(--text)}
  .stats{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}
  .stats .dot{width:4px;height:4px;border-radius:50%;background:#394150}
  .skeleton{position:relative;overflow:hidden}
  .sk{height:14px;border-radius:8px;background:#1b2230}
  .sk.big{height:160px;border-radius:12px}
  .skeleton::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);transform:translateX(-100%);animation:shimmer 1.2s infinite}
  @keyframes shimmer{to{transform:translateX(100%)}}
  /* Sheet (yorumlar) */
  .sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);backdrop-filter:blur(2px);display:none;z-index:100}
  .sheet{position:fixed;left:50%;bottom:-100%;transform:translateX(-50%);width:min(820px,100vw);max-height:82vh;background:var(--card);border:1px solid var(--border);border-top-left-radius:16px;border-top-right-radius:16px;box-shadow:0 -12px 40px rgba(0,0,0,.35);transition:bottom .25s ease;z-index:101;display:flex;flex-direction:column}
  .sheet.open{bottom:0}
  .sheet-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border)}
  .sheet-head .grab{width:34px;height:4px;border-radius:4px;background:#2b3342;margin:0 auto}
  .sheet-body{padding:10px 12px;overflow:auto}
  .comment{border-bottom:1px dashed var(--border);padding:10px 2px}
  .comment .meta{color:var(--muted);font-size:12px;margin-bottom:4px}
  .comment .txt{white-space:pre-wrap}
  .comment .mini{display:flex;gap:6px;margin-top:6px}
  .comment form,.new-comment{display:flex;gap:8px;margin-top:8px}
  .comment input,.new-comment input{flex:1;background:#111622;border:1px solid var(--border);border-radius:10px;padding:10px 12px;color:var(--text)}
  .btn{background:var(--brand);color:#061312;border:none;border-radius:10px;padding:10px 12px;font-weight:600;cursor:pointer}
  .btn.ghost{background:transparent;border:1px solid var(--chip-border);color:var(--text)}
  .toprow{display:flex;gap:8px;align-items:center;margin-bottom:6px}
  .sort{margin-left:auto}
  .toast{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);background:#101520;color:var(--text);border:1px solid var(--border);padding:10px 14px;border-radius:10px;display:none;z-index:200}
  .empty{color:var(--muted);text-align:center;padding:20px}
  .sentinel{height:60px}
  
  .avatar img{
    width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;
  }
  .media .embed{width:100%;aspect-ratio:16/9;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#0c0f14}
  .media .embed iframe{width:100%;height:100%;border:0}

  /* Hamburger */
  .hamburger{display:inline-grid;gap:4px;place-items:center;width:32px;height:32px;border:1px solid var(--border);border-radius:8px;background:transparent;cursor:pointer}
  .hamburger span{display:block;width:18px;height:2px;background:var(--text);border-radius:2px}

  /* Sidebar (tam ekran) */
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(2px);display:none;z-index:200}
  .sidebar{position:fixed;inset:0;background:var(--bg);border:0;display:flex;flex-direction:column;transform:translateY(8%);opacity:0;pointer-events:none;transition:transform .18s ease, opacity .18s ease;z-index:201}
  .sidebar.open{transform:translateY(0);opacity:1;pointer-events:auto}
  .sidebar-backdrop.open{display:block}
  .sb-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}
  .sb-summary{padding:14px 16px}
  .me-name{font-weight:700;margin-bottom:10px}
  .me-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .me-cell{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px;text-align:center}
  .me-val{font-size:18px;font-weight:700}
  .me-label{font-size:12px;color:var(--muted)}
  .sb-menu{display:grid;gap:8px;padding:8px 16px 18px}
  .sb-menu a{display:block;padding:12px 14px;border:1px solid var(--chip-border);border-radius:12px;background:var(--chip);text-decoration:none}
  .sb-menu a:hover{border-color:var(--accent)}

  /* Bottom nav */
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;background:#121824;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr);z-index:150;padding:6px 6px 10px}
  .bn-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--text);text-decoration:none}
  .bn-item.active{border-color:var(--chip-border);background:var(--chip)}
  .bn-ico{font-size:18px;line-height:1}
  .bn-txt{font-size:11px;color:var(--muted)}
  main.container{padding-bottom:78px} /* nav üstü boşluk */

  /* Arama modal */
  .search-modal{position:fixed;inset:0;background:var(--bg);display:none;z-index:190;overflow:auto}
  .search-modal.open{display:block}
  .search-bar{position:sticky;top:0;display:flex;gap:8px;align-items:center;padding:10px 16px;background:linear-gradient(0deg, rgba(14,17,23,.0), rgba(14,17,23,.95) 30%, rgba(14,17,23,1));border-bottom:1px solid var(--border);z-index:1}
  .search-bar input{flex:1;background:#111622;border:1px solid var(--border);border-radius:10px;padding:10px 12px;color:var(--text)}
  #searchResults{padding:12px 16px 80px}

  .bn-ico img{width:30px;height:30px;object-fit:scale-down;object-position:center}
  
  #sheet {
      z-index:999999999999 !important;
  }
  
  /* === Ikon base === */
:root{
  --icon:#fff;
  --icon-muted:#cdd3df;
}

.icon{
  width:22px; height:22px; display:inline-block;
  background: currentColor;                   /* rengi buradan alır */
  vertical-align:middle; flex-shrink:0;
  -webkit-mask: no-repeat center / contain;
          mask: no-repeat center / contain;
}

/* Home */
.i-home{
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 3.172 3 10v11h6v-7h6v7h6V10z'/>\
</svg>");
          mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 3.172 3 10v11h6v-7h6v7h6V10z'/>\
</svg>");
}

/* Search */
.i-search{
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='11' cy='11' r='7'/>\
<path d='M20 20l-4-4'/>\
</svg>");
          mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='11' cy='11' r='7'/>\
<path d='M20 20l-4-4'/>\
</svg>");
}

/* User */
.i-user{
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.333 0-8 2.667-8 6v2h16v-2c0-3.333-2.667-6-8-6z'/>\
</svg>");
          mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5.333 0-8 2.667-8 6v2h16v-2c0-3.333-2.667-6-8-6z'/>\
</svg>");
}

/* Bottom bar renkleri */
.bottom-nav .bn-item .bn-ico,
.bottom-nav .bn-item .bn-txt{ color: var(--icon-muted); }

.bottom-nav .bn-item.active .bn-ico,
.bottom-nav .bn-item.active .bn-txt,
.bottom-nav .bn-item:hover .bn-ico,
.bottom-nav .bn-item:hover .bn-txt{ color: var(--icon) !important; }

/* Hamburger çizgileri beyaz kalsın */
.hamburger span{ background: var(--icon) !important; }



/* Hamburger için tek renk ikonlar */
.i-menu{
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M3 6h18v2H3zM3 11h18v2H3zM3 16h18v2H3z'/>\
</svg>");
          mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M3 6h18v2H3zM3 11h18v2H3zM3 16h18v2H3z'/>\
</svg>");
}

/* (İsteğe bağlı) Sidebar kapat butonu için X ikon */
.i-close{
  -webkit-mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/>\
</svg>");
          mask-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/>\
</svg>");
}

/* Hamburger butonunda <i> boyutu ve renk */
.hamburger{
  display:grid; place-items:center; width:32px; height:32px;
}
.hamburger .icon{ width:20px; height:20px; color:#fff; }

/* Hover/focus ufak vurgu (opsiyonel) */
.hamburger:hover{ border-color: var(--accent); }
.hamburger:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* Eski span çizgileri kullanmıyoruz, varsa etkisiz kalsın */
.hamburger span{ display:none !important; }

.hamburger {
    place-items: center !important;
    align-items: center !important;
    justify-content: center !important;
}

/* === Fullscreen Points Overlay === */
.points-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px) saturate(1.1);
  display: grid; place-items: center;
  z-index: 999999;
  animation: overlay-fade 1200ms ease forwards;
}
@keyframes overlay-fade{
  0%{ opacity: 0 }
  10%{ opacity: 1 }
  90%{ opacity: 1 }
  100%{ opacity: 0 }
}

.points-box{
  display: grid; gap: 10px; place-items: center;
  padding: 22px 28px;
  border-radius: 16px;
  background: radial-gradient(1200px 600px at 50% -20%, rgba(61,220,151,.25), transparent 60%) , #0f1420cc;
  border: 1px solid #243047;
  box-shadow: 0 20px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.03);
  transform: scale(.92);
  animation: box-pop 900ms cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes box-pop{
  0%{ transform: scale(.8); opacity: .4; }
  25%{ transform: scale(1.06); opacity: 1; }
  60%{ transform: scale(1); }
  100%{ transform: scale(1); }
}

.points-value{
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 0 22px rgba(61,220,151,.8), 0 0 6px rgba(0,0,0,.8);
  animation: value-glow 900ms ease-out forwards;
}
@keyframes value-glow{
  from{ filter: drop-shadow(0 0 0 rgba(61,220,151,0)); }
  to  { filter: drop-shadow(0 0 18px rgba(61,220,151,.8)); }
}

.points-text{
  font-size: 16px;
  color: #cfe6da;
  opacity: .95;
}

/* Konfeti ekran geneline */
.points-confetti{
  position: fixed; inset: 0; pointer-events: none;
  z-index: 999999;
}
.points-confetti span{
  position: absolute;
  width: 7px; height: 16px;
  border-radius: 2px;
  opacity: .95;
  transform: translateY(-20px) rotate(0deg);
  animation: confetti-fall 1000ms ease-out forwards;
}
@keyframes confetti-fall{
  0%{ transform: translateY(-40px) rotate(0deg); }
  80%{ opacity: .95; }
  100%{ transform: translateY(80vh) rotate(260deg); opacity: 0; }
}

/* Uçan rozet */
.points-fly{
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.9);
  z-index: 1000000;
  pointer-events: none;
  font-weight: 900;
  font-size: 22px;
  color: #0b1b14;
  background: linear-gradient(180deg,#7ee787,#3ddc97);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06);
  opacity: 1;
  transition:
    left 750ms cubic-bezier(.2,.9,.2,1),
    top  750ms cubic-bezier(.2,.9,.2,1),
    transform 750ms cubic-bezier(.2,.9,.2,1),
    opacity 250ms ease-out;
}

/* Varışta hafif zıplama */
.me-cell.pulse-once{
  animation: me-pulse 420ms cubic-bezier(.2,.9,.2,1) 1;
}
@keyframes me-pulse{
  0%{ transform: scale(1);    box-shadow: none; }
  40%{transform: scale(1.04); box-shadow: 0 0 0 4px rgba(61,220,151,.15);}
  100%{transform: scale(1);   box-shadow: none;}
}

/* Ödev İçeriği */
/* === Ödev Kutusu (kapalı görünüm) === */
  .odev-wrap{position:relative;padding:14px}
  .gift{position:relative;aspect-ratio:16/9;border-radius:18px;background:#ff5fa1;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
  .gift::before,.gift::after{content:"";position:absolute;background:#fff;border-radius:6px}
  .gift::before{width:10px;height:100%}
  .gift::after{height:10px;width:100%}
  .gift .bow{position:absolute;width:64px;height:28px;background:#fff;border-radius:6px;clip-path:polygon(0 50%,25% 0,50% 50%,75% 0,100% 50%,75% 100%,50% 50%,25% 100%)}
  .gift .cta{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-weight:700;background:white;border:1px solid #243047;padding:8px 12px;border-radius:20px}
  .gift.is-opening{animation:unwrap .7s cubic-bezier(.2,.9,.2,1) forwards}
  @keyframes unwrap{0%{transform:scale(1)}40%{transform:scale(.96)}100%{transform:scale(.6);opacity:0}}

  /* Ödev içeriği fade-in */
  .odev-content{padding:6px 14px 12px;display:none}
  .odev-content.show{display:block;animation:fade .35s ease-out}
  @keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

.odev-kutu {
  position: relative;
  width: 700px;
  height: 400px;
  background-color: #f06fa3;
  border-radius: 20px;
  margin: 40px auto;
  overflow: hidden;
}

/* Kurdele (beyaz çizgiler) */
.kurdela::before, .kurdela::after {
  content: '';
  position: absolute;
  background: white;
  z-index: 1;
}
.kurdela::before {
  width: 100%;
  height: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 7px;
}
.kurdela::after {
  width: 14px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 7px;
}

/* Logo Konumu */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Logo Animasyonu */
.rdtverse-logo {
  width: 80px;
  opacity: 0;
  transform: scale(0.5);
  animation: logoFadeIn 2.2s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
  background:white;
  border-radius:20px;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
  60% {
    opacity: 1;
    transform: scale(1.15) rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(255,255,255,1));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  }
}

/* Buton */
.odev-btn {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d2238;
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 30px;
  cursor: pointer;
  transition: 0.3s;
}
.odev-btn:hover {
  background: #3b2b4a;
}

/* Kutu ve kurdele temel halleri (varsa senden kalsın) */
/* --- AÇILIŞ EFEKTİ EKLEMELERİ --- */

/* CTA düğmesi anim davranışı */
.gift .cta {
  transition: opacity .35s ease, transform .35s ease;
}

/* Logo ve bow yumuşakça kaybolsun */
.logo-container, .bow {
  transition: opacity .35s ease, transform .35s ease;
}

/* Kurdele çizgileri pseudo ile veriliyorsa başlangıç halleri */
.gift::before, .gift::after { transition: transform .9s cubic-bezier(.22,.8,.26,.99); }

/* --- TIKLAMA SONRASI --- */
.gift.opening .cta {
  opacity: 0;
  transform: translateY(8px);
}

.gift.opening .logo-container,
.gift.opening .bow {
  opacity: 0;
  transform: scale(.9);
}

/* Kurdele açılır: yatay şerit yukarı, dikey şerit sağa kayar (tersini istersen yönleri değiştir) */
.gift.opening::before { transform: translateY(-180%); }
.gift.opening::after  { transform: translateX(180%); }

/* Açıldıktan sonra kart artık sabit, tıklanamaz */
.gift.opened { pointer-events: none;  }

/* İçerik başlangıçta gizli */
.odev-content {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  padding-left:0px !important;
  padding-right:0px !important;
}

/* Açılış tamamlanınca içerik görünür */
.odev-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

    .titlebar h1 {
        font-size:0.8rem !important;
    }
    .post-chip {
        background:white !important;
        color:black !important;
    }
    
    #pointsSheet,#giftsSheet
    {
        height:70vh !important;
    }
    
    #pointsSheet .toprow {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  
}

.points-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
  gap:12px;
}

.points-main {
  flex:1;
  min-width:0;
}

.points-label {
  font-size:0.9rem;
  font-weight:600;
}

.points-meta {
  font-size:0.75rem;
  opacity:0.7;
  margin-top:2px;
}

.points-side {
  text-align:right;
  min-width:70px;
}

.points-value {
  font-weight:700;
  font-size:0.9rem;
}

.points-value.negative {
  color:#ff6b6b;
}

.points-value.positive {
  color:#3ddc97;
}

.points-date {
  font-size:0.7rem;
  opacity:0.6;
  margin-top:2px;
}


.points-link {
    font-weight:bold;
    
}

.points-link:hover {
    cursor:pointer;
}

.bottom-nav {
    grid-template-columns:repeat(5,1fr) !important;
}

.bottom-nav .bn-item .bn-ico, .bottom-icon{
    filter:brightness(555) !important;
}

.bottom-icon {
    width:65px;
    height:50px;
    object-fit:scale-down;
    object-position:center center;
    margin-top:-8px;
}

.gift.opened{
    display:none !important;
}

@media screen and (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

#feed .quiz .bar {
    display:none !important;
}

#feed .quiz .media {
    padding-left:10px !important;
    padding-right:10px !important;
    padding-bottom:10px !important;
}

#quizSheet {
    height:90vh !important;
}

#sheet-body {
    overflow:auto !important;
    min-height:75vh !important;
}

/* Quiz CTA durumları */
.quiz-cta{
  width:100%;
  margin-top:10px;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.14);
}
.quiz-cta.primary{
  background:linear-gradient(135deg, rgba(124,58,237,.95), rgba(236,72,153,.9));
  color:#fff;
}
.quiz-cta.done{
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.85);
  border-color:rgba(255,255,255,.10);
}
.quiz-cta.win{
  background:linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.90));
  color:#08140c;
  border-color:rgba(34,197,94,.35);
}
.quiz-cta.fail{
  background:rgba(255,107,107,.12);
  color:#ffd1d1;
  border-color:rgba(255,107,107,.25);
}
.quiz-cta:disabled{
  opacity:.9;
  cursor:not-allowed;
}
.quiz-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.12);
  margin-top:8px;
  opacity:.9;
}
.quiz-pill b{ font-weight:800; }

    /* === YouTube Carousel === */
.yt-carousel{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:10px 2px 6px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.yt-carousel::-webkit-scrollbar{ height:6px; }
.yt-carousel::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.12); border-radius:8px; }

.yt-card{
  flex:0 0 70%;
  max-width:70%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  overflow:hidden;
  position:relative;
  scroll-snap-align:start;
}
@media (min-width: 768px){
  .yt-card{ flex-basis:340px; max-width:340px; }
}
.yt-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#111;
}
.yt-play{
  position:absolute;
  left:12px;
  bottom:12px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.20);
  color:#fff;
  border-radius:999px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.85rem;
  backdrop-filter: blur(6px);
}
.yt-title{
  padding:10px 12px 12px;
  font-size:.9rem;
  line-height:1.25rem;
  font-weight:600;
  opacity:.92;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* === Video Modal === */
.yt-modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.yt-modal{
  width:min(960px, 96vw);
  background:#0b0f16;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
}
.yt-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.yt-modal-head strong{ font-size:.95rem; }
.yt-modal-close{
  background:transparent;
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  border-radius:10px;
  padding:6px 10px;
}
.yt-modal-body{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
}
.yt-modal-body iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}

.me-val-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:22px; /* ikon boyutu */
  line-height:1;
}

.me-hidden-count{
  display:none !important; /* sayı görünmesin */
}


/* Yeşil nokta pulse */
.dot{
  position: relative;
  animation: dotPulse 1.25s ease-in-out infinite;
  transform-origin:center;
}

/* İstersen halo efekti */
.dot::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  background:inherit;          /* dot hangi renkse aynı */
  opacity:.35;
  filter: blur(1px);
  animation: dotHalo 1.25s ease-in-out infinite;
}

@keyframes dotPulse{
  0%   { opacity:.25; transform: scale(.92); }
  50%  { opacity:1;   transform: scale(1);   }
  100% { opacity:.25; transform: scale(.92); }
}

@keyframes dotHalo{
  0%   { opacity:0;   transform: scale(.9);  }
  50%  { opacity:.45; transform: scale(1.25); }
  100% { opacity:0;   transform: scale(.9);  }
}


/* =========================
   Global Page Loader
========================= */
.page-loader{
  position:fixed;
  inset:0;
  z-index:100000; /* modallerin üstü */
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.page-loader.open{ display:flex; }

.page-loader-box{
  width:min(360px, 88vw);
  border-radius:16px;
  padding:18px 16px;
  text-align:center;
  background:rgba(10,15,22,.92);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 70px rgba(0,0,0,.4);
}

.page-loader-spinner{
  width:44px;
  height:44px;
  margin:0 auto 10px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.9);
  animation: pageSpin .8s linear infinite;
}

.page-loader-text{
  font-weight:800;
  letter-spacing:.2px;
  opacity:.95;
}

@keyframes pageSpin{
  to { transform: rotate(360deg); }
}

/* Hediyeler tıklanabilir hissi */
.me-click{ cursor:pointer; user-select:none; }
.me-click:active{ transform: translateY(1px); }

/* Bottom sheet modal */
.bn-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.bn-modal.is-open{ display:block; }

.bn-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.bn-sheet{
  position:absolute;
  left:0; right:0; bottom:0;
  background:#fff;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  box-shadow: 0 -18px 50px rgba(0,0,0,.18);
  transform: translateY(110%);
  transition: transform .22s ease;
  max-height: 78vh;
  display:flex;
  flex-direction:column;
}

.bn-modal.is-open .bn-sheet{ transform: translateY(0); }

.bn-sheet-head{
  padding:10px 14px 8px;
  border-bottom:1px solid rgba(0,0,0,.06);
  position:relative;
}

.bn-sheet-grab{
  width:44px;
  height:5px;
  border-radius:999px;
  background:rgba(0,0,0,.14);
  margin:4px auto 10px;
}

.bn-sheet-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  font-size:16px;
}

.bn-sheet-ico{ font-size:18px; line-height:1; }

.bn-sheet-close{
  position:absolute;
  right:10px;
  top:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
}

.bn-sheet-body{
  padding:14px 16px 18px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  color:#1f2430;
  line-height:1.55;
  font-size:14px;
}

.bn-sheet-body p{ margin:0 0 12px; }
.bn-sheet-body p:last-child{ margin-bottom:0; }

.text-center {
    text-align:center !important;
}

.head{ position:relative; }
.head-share{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.14);
  color:#fff;
  border-radius:10px;
  padding:6px 10px;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}
.head-share:active{ transform: translateY(1px); }

.share-button {
    display:none !important;
}

.comment .mini{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.comment .chip.react{ display:inline-flex; align-items:center; gap:8px; }
.comment .chip.react .cnt{ font-size:12px; opacity:.85; }
.comment .chip.react[aria-pressed="true"]{ transform: translateY(-1px); }

.comment .mini{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.comment .chip.react{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.comment .chip.react .cnt{
  font-size:12px;
  opacity:.85;
}

/* Yorum gönder butonu loading */
.btn.is-loading{
  opacity:.85;
  cursor:not-allowed;
  pointer-events:none; /* asıl kilit */
  position:relative;
  padding-left:42px;   /* spinner için yer */
}

.btn.is-loading::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:18px;
  height:18px;
  margin-top:-9px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,.95);
  animation: btnSpin .7s linear infinite;
}

@keyframes btnSpin{
  to{ transform: rotate(360deg); }
}

    /* Cevap anahtarı görünümü (Puan/Quiz modalı dili) */
#quizKeyBody .qk-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
}
#quizKeyBody .qk-q{
  font-weight:800;
  margin-bottom:10px;
}
#quizKeyBody .qk-opt{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px;
  background:rgba(0,0,0,.10);
  margin-bottom:8px;
  line-height:1.35;
}
#quizKeyBody .qk-opt.correct{
  border-color: rgba(34,197,94,.40);
  background: rgba(34,197,94,.10);
}
#quizKeyBody .qk-opt .badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  font-size:.75rem;
  font-weight:800;
}
#quizKeyBody .qk-solution{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(0,0,0,.10);
}
#quizKeyBody .qk-solution strong{
  display:block;
  margin-bottom:6px;
  font-weight:800;
}
