/* ==============================================
   MasaKeyfi - Ana Sayfa Stilleri
   ============================================== */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");
  :root { --gold:#e8c84a; --gold-dark:#c9a82e; --bg:#062033; --bg2:#0a2d47; --card:#0f3d65; --text:#ffffff; --text-muted:rgba(255,255,255,0.5); --green:#4ade80; --red:#f87171; }
  * { box-sizing:border-box; margin:0; padding:0; }
  html { overscroll-behavior-y:none; }
  body { font-family:"Nunito",sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; -webkit-user-select:none; -moz-user-select:none; user-select:none; -webkit-touch-callout:none; overscroll-behavior-y:none; }
  input,textarea { -webkit-user-select:auto; -moz-user-select:auto; user-select:auto; }
  
  header { position:sticky; top:0; z-index:1000; background:linear-gradient(90deg,#0a2b42,#164363); border-bottom:2px solid var(--gold); padding:12px 25px; display:flex; align-items:center; justify-content:space-between; color:white; box-shadow:0 5px 15px rgba(0,0,0,0.3); flex-wrap:wrap; gap:12px; }
  .logo { font-size:22px; font-weight:900; letter-spacing:-0.5px; cursor:pointer; text-decoration:none; color:#fff; }
  .logo span { color:var(--gold); }
  
  .header-stats { display: none; }
  .header-stat .label { font-size:10px; color:rgba(255,255,255,.5); text-transform:uppercase; }
  .header-stat .val { font-weight:900; font-size:16px; color:#fff; }
  .header-stat .val.gold { color:var(--gold); }
  .header-stat .val.green { color:var(--green); }
  
  #header-guest { display:flex; gap:8px; }
  
  .hdr-btn { padding:8px 14px; border-radius:8px; border:none; font-family:"Nunito",sans-serif; font-weight:800; font-size:13px; cursor:pointer; transition:all .2s; }
  .hdr-btn-outline { background:rgba(255,255,255,.07); color:#fff; border:1px solid rgba(255,255,255,.15); }
  .hdr-btn-outline:hover { background:rgba(255,255,255,.15); }
  .hdr-btn-profile { background:rgba(255,255,255,.07); color:#fff; border:1px solid rgba(255,255,255,.12); }
  .hdr-btn-admin { background:linear-gradient(135deg,var(--gold),#c8a820); color:#1a1000; }
  .hdr-btn-red { background:#ff4444; color:#fff; }
  .hdr-btn-red:hover { background:#cc2222; }
  @media (max-width:700px) { .header-stats{display:none;}   }
  .btn { padding:9px 20px; border-radius:10px; border:none; font-family:"Nunito",sans-serif; font-weight:700; font-size:14px; cursor:pointer; transition:all 0.2s; }
  .btn-gold { background:var(--gold); color:#1a1a00; }
  .btn-gold:hover { background:var(--gold-dark); transform:translateY(-1px); }
  .btn-outline { background:rgba(255,255,255,0.08); color:var(--text); border:1px solid rgba(255,255,255,0.2); }
  main { position:relative; z-index:1; max-width:1200px; margin:0 auto; padding:40px 24px; }
  .portal-title { text-align:center; margin-bottom:48px; }
  .portal-title h1 { font-size:clamp(28px,5vw,48px); font-weight:900; color:var(--gold); letter-spacing:-1px; margin-bottom:8px; }
  .portal-title p { color:var(--text-muted); font-size:16px; font-weight:600; letter-spacing:3px; text-transform:uppercase; }
  /* --- YENİ KISA VE YATAY OYUN KARTLARI --- */
  
  
  
  
  

  
  
  
  
  
  .game-icon { 
    font-size: 38px; 
    margin: 0; 
  }
  
  .game-title { 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--gold); 
    margin: 0; 
  }
  
  
  
  

  /* Gereksiz detayları (online rozeti ve oyuncu sayısı) gizledik */
  .game-status, .game-players { 
    display: none; 
  }
  .modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:1000; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
  .modal-overlay.open { display:flex; }
  .modal { 
  background: var(--bg2); 
  border: 2px solid rgba(232,200,74,0.2); 
  padding: 16px 20px; /* İç boşlukları 22px'den 16px'e düşürdük */
  width: 90%; /* Mobilde sağdan soldan ekran kenarlarına sıfırlanmasın */
  max-width: 350px; /* Genişliği biraz daha kompakt hale getirdik */
  height: 410px; /* Kutunun boyunu 470px'den 410px'e indirerek dikey boşlukları tamamen sıktık */
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  animation: modalIn 0.3s ease; 
  position: relative; 
  }
  @keyframes modalIn { from{opacity:0;transform:translateY(20px) scale(0.97);} to{opacity:1;transform:translateY(0) scale(1);} }
  @keyframes modalPop { 0%{transform:scale(0.9);opacity:0;} 100%{transform:scale(1);opacity:1;} }
  .modal-title { 
  font-size: 19px; 
  font-weight: 900; 
  color: var(--gold); 
  margin-bottom: 8px; /* 16px olan boşluğu 8px'e düşürdük */
  text-align: center; 
  }
  .auth-tabs { 
  display: flex; 
  gap: 8px; 
  margin-bottom: 10px; /* 16px olan boşluğu 10px'e düşürdük */
  }
  .auth-tab { flex:1; padding:10px; border-radius:10px; border:none; font-family:"Nunito",sans-serif; font-weight:700; font-size:14px; cursor:pointer; transition:all 0.2s; }
  .input-group { 
  margin-bottom: 8px; /* Kutuların arasındaki mesafeyi 14px'den 8px'e çektik */
  }
  .input-group input { 
  width: 100%; 
  padding: 10px 14px; /* 12px olan iç yüksekliği 10px yaparak kutuları kibarlaştırdık */
  background: rgba(0,0,0,0.3); 
  border: 1.5px solid rgba(255,255,255,0.1); 
  border-radius: 8px; 
  color: var(--text); 
  font-family: "Nunito", sans-serif; 
  font-size: 13px; 
  font-weight: 600; 
  outline: none; 
  transition: border-color 0.2s; 
  }
  .input-group input:focus { border-color:var(--gold); }
  .input-group input::placeholder { color:var(--text-muted); }
  #auth-error { color:var(--red); font-size:13px; font-weight:600; margin-bottom:12px; min-height:18px; text-align:center; }
  .divider { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin: 6px 0; /* Boşluğu minimuma indirdik */
  color: var(--text-muted); 
  font-size: 11px; 
  font-weight: 600; 
  }
  .divider::before,.divider::after { content:""; flex:1; height:1px; background:rgba(255,255,255,0.1); }
  .close-modal { position:absolute; top:16px; right:16px; background:rgba(255,255,255,0.08); border:none; color:var(--text); width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
  .loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000050;

  align-items: center;
  justify-content: center;

  padding: 18px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(26, 92, 135, 0.55),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #031522,
      #06283f 55%,
      #031522
    );

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.loading-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mk-loader-panel {
  position: relative;

  width: min(940px, 94vw);
  min-height: 270px;

  display: grid;
  grid-template-columns:
    minmax(180px, 0.8fr)
    minmax(330px, 1.4fr)
    minmax(180px, 0.8fr);

  align-items: center;
  gap: 24px;

  padding: 28px 34px;

  overflow: hidden;

  border: 2px solid #e8c84a;
  border-radius: 26px;

  background:
    radial-gradient(
      circle at center,
      rgba(232, 200, 74, 0.13),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      rgba(13, 57, 84, 0.98),
      rgba(3, 23, 38, 0.98)
    );

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.72),
    0 0 35px rgba(232, 200, 74, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);

  animation:
    mkLoaderPanelIn 0.45s
    cubic-bezier(.18,.85,.25,1.15);
}

.mk-loader-panel::before {
  content: "";

  position: absolute;
  inset: -120px;

  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(232,200,74,.055) 0deg 8deg,
      transparent 8deg 22deg
    );

  animation:
    mkLoaderRays 12s linear infinite;

  pointer-events: none;
}

.mk-loader-brand,
.mk-loader-center,
.mk-loader-cards {
  position: relative;
  z-index: 2;
}

.mk-loader-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mk-loader-logo {
  color: #fff;

  font-size: clamp(28px, 4vw, 48px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -2px;

  text-shadow:
    0 4px 10px rgba(0,0,0,.7);
}

.mk-loader-logo span {
  color: #e8c84a;
}

.mk-loader-subtitle {
  margin-top: 10px;

  color: rgba(255,255,255,.48);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.mk-loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mk-okey-row {
  height: 112px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mk-okey-tile {
  position: relative;

  width: 64px;
  height: 92px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid #d3c8b3;
  border-right: 3px solid #b8aa92;
  border-bottom: 6px solid #a99a84;
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #fffdf7,
      #ddd3c0
    );

  box-shadow:
    6px 11px 18px rgba(0,0,0,.48),
    inset 2px 2px 4px rgba(255,255,255,.9),
    inset -3px -5px 7px rgba(0,0,0,.13);

  opacity: 0;

  animation:
    mkOkeyEnter 1.8s
    ease-in-out infinite;
}

.mk-okey-tile:nth-child(1) {
  animation-delay: 0s;
}

.mk-okey-tile:nth-child(2) {
  animation-delay: 0.18s;
}

.mk-okey-tile:nth-child(3) {
  animation-delay: 0.36s;
}

.mk-okey-tile:nth-child(4) {
  animation-delay: 0.54s;
}

.mk-okey-number {
  font-family:
    "Arial Black",
    Arial,
    sans-serif;

  font-size: 35px;
  font-weight: 1000;
  line-height: 1;
}

.mk-okey-symbol {
  margin-top: 7px;

  font-size: 17px;
  font-weight: 1000;
}

.mk-red {
  color: #a81d1d;
}

.mk-blue {
  color: #0878d2;
}

.mk-black {
  color: #171717;
}

.mk-yellow {
  color: #b98700;
}

.mk-loader-text {
  margin-top: 16px;

  color: #f6d45a;

  font-size: clamp(14px, 2vw, 19px);
  font-weight: 1000;
  letter-spacing: 0.3px;

  text-align: center;

  text-shadow:
    0 2px 6px rgba(0,0,0,.7);
}

.mk-loader-dots::after {
  content: "";

  display: inline-block;
  width: 24px;

  text-align: left;

  animation:
    mkLoaderDots 1.2s steps(4,end) infinite;
}

.mk-loader-cards {
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-card {
  position: absolute;

  width: 78px;
  height: 112px;

  padding: 8px;

  border: 2px solid #dedede;
  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #e8e8e8
    );

  box-shadow:
    7px 12px 20px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.95);

  transform-origin: bottom center;

  animation:
    mkCardFloat 2.2s
    ease-in-out infinite;
}

.mk-card:nth-child(1) {
  transform: translateX(-42px) rotate(-12deg);
  animation-delay: 0s;
}

.mk-card:nth-child(2) {
  transform: translateX(0) rotate(0deg);
  animation-delay: 0.18s;
}

.mk-card:nth-child(3) {
  transform: translateX(42px) rotate(12deg);
  animation-delay: 0.36s;
}

.mk-card.red {
  color: #be1e2d;
}

.mk-card.black {
  color: #111;
}

.mk-card-top {
  font-size: 24px;
  font-weight: 1000;
  line-height: 0.9;
}

.mk-card-suit {
  margin-top: 3px;
  font-size: 22px;
}

.mk-card-center {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 40px;
}

.mk-loader-shine {
  position: absolute;
  z-index: 3;

  top: -40%;
  left: -35%;

  width: 28%;
  height: 190%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.24),
      transparent
    );

  transform: rotate(18deg);

  animation:
    mkLoaderShine 2.7s
    ease-in-out infinite;

  pointer-events: none;
}

@keyframes mkLoaderPanelIn {
  from {
    opacity: 0;
    transform: scale(.88) translateY(14px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes mkOkeyEnter {
  0%,
  100% {
    opacity: .38;
    transform:
      translateY(10px)
      scale(.88);
    filter: brightness(.72);
  }

  35%,
  65% {
    opacity: 1;
    transform:
      translateY(-7px)
      scale(1.06);
    filter: brightness(1.18);
  }
}

@keyframes mkCardFloat {
  0%,
  100% {
    margin-top: 10px;
    filter: brightness(.82);
  }

  50% {
    margin-top: -10px;
    filter: brightness(1.14);
  }
}

@keyframes mkLoaderShine {
  0% {
    left: -40%;
  }

  55%,
  100% {
    left: 125%;
  }
}

@keyframes mkLoaderDots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

@media screen and (max-width: 760px) {
  .mk-loader-panel {
  width: 90vw;
  max-width: 720px;
  min-height: 190px;

  grid-template-columns:
    120px
    minmax(220px, 1fr)
    120px;

  gap: 8px;

  padding: 14px 14px;
}

  .mk-loader-logo {
    font-size: 29px;
  }

  .mk-loader-subtitle {
    font-size: 8px;
  }

  .mk-okey-row {
  height: 78px;
  gap: 4px;
}

  .mk-okey-tile {
  width: 42px;
  height: 62px;


    border-radius: 9px;
    border-bottom-width: 5px;
  }

  .mk-okey-number {
    font-size: 25px;
  }

  .mk-okey-symbol {
    margin-top: 4px;
    font-size: 12px;
  }

  .mk-loader-text {
    margin-top: 8px;
    font-size: 13px;
  }

  .mk-loader-cards {
    height: 88px;
  }

  .mk-card {
    width: 52px;
    height: 76px;
  }

  .mk-card:nth-child(1) {
    transform:
      translateX(-24px)
      rotate(-10deg);
  }

  .mk-card:nth-child(2) {
    transform:
      translateX(0)
      rotate(0deg);
  }

  .mk-card:nth-child(3) {
    transform:
      translateX(24px)
      rotate(10deg);
  }

  .mk-card-top {
    font-size: 18px;
  }

  .mk-card-suit {
    font-size: 16px;
  }

  .mk-card-center {
    font-size: 28px;
  }
}

  /* ── ADMİN PANELİ CSS ── */
  #admin-panel{position:fixed;inset:0;background:linear-gradient(160deg,#061a2e,#0a2d47);z-index:4000;display:none;flex-direction:column;overflow:hidden;}
  .adm-wrap{display:flex;flex-direction:column;height:100%;max-width:1300px;margin:0 auto;width:100%;padding:16px;gap:0;}
  .adm-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #e8c84a;padding-bottom:12px;margin-bottom:12px;flex-shrink:0;}
  .adm-head h2{color:#e8c84a;font-size:clamp(14px,3vw,18px);font-weight:900;margin:0;display:flex;align-items:center;gap:8px;}
  .adm-head button{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:background .2s;}
  .adm-head button:hover{background:rgba(255,60,60,.3);}
  .adm-menu{display:flex;gap:6px;margin-bottom:14px;flex-shrink:0;flex-wrap:wrap;}
  .adm-menu-btn{flex:1;min-width:100px;padding:10px 14px;border-radius:10px;border:1.5px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:rgba(255,255,255,.6);font-family:"Nunito",sans-serif;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px;}
  .adm-menu-btn:hover{background:rgba(255,255,255,.1);color:#fff;}
  .adm-menu-btn.active{background:linear-gradient(135deg,rgba(232,200,74,.2),rgba(200,168,32,.1));border-color:#e8c84a;color:#e8c84a;}
  .adm-tab{display:none;flex:1;overflow-y:auto;overflow-x:hidden;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:rgba(232,200,74,.2) transparent;}
  .adm-tab.active{display:flex;}
  .adm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;flex-shrink:0;}
  .adm-stat{background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px;text-align:center;}
  .adm-stat .label{font-size:10px;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;}
  .adm-stat .val{font-size:clamp(16px,3vw,24px);font-weight:900;}
  .adm-search-bar{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap;}
  .adm-search-bar input{flex:1;min-width:150px;padding:10px 14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:10px;color:#fff;font-size:13px;outline:none;font-family:"Nunito",sans-serif;}
  .adm-search-bar input:focus{border-color:rgba(232,200,74,.5);}
  .adm-search-bar button{padding:10px 16px;background:linear-gradient(135deg,#e8c84a,#c8a820);color:#1a1000;border:none;border-radius:10px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;font-family:"Nunito",sans-serif;}
  #admin-player-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;scrollbar-color:rgba(232,200,74,.2) transparent;min-height:200px;}
  .adm-player-row{display:flex;align-items:center;gap:10px;padding:10px 12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:12px;transition:background .15s;flex-wrap:wrap;}
  .adm-player-row:hover{background:rgba(255,255,255,.08);}
  .adm-player-row.banned{background:rgba(255,60,60,.07);border-color:rgba(255,60,60,.2);}
  .adm-av{width:40px;height:40px;border-radius:50%;border:2px solid rgba(232,200,74,.3);object-fit:cover;cursor:pointer;flex-shrink:0;}
  .adm-info{flex:1;min-width:120px;}
  .adm-name{font-size:13px;font-weight:800;color:#fff;margin-bottom:2px;display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
  .adm-sub{font-size:11px;color:rgba(255,255,255,.4);}
  .adm-ban-badge{font-size:10px;font-weight:700;padding:2px 8px;border-radius:8px;}
  .adm-ban-badge.chat{background:rgba(255,165,0,.2);color:#ffaa44;border:1px solid rgba(255,165,0,.3);}
  .adm-ban-badge.game{background:rgba(255,60,60,.2);color:#ff8888;border:1px solid rgba(255,60,60,.3);}
  .adm-btns{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;}
  .adm-btn{padding:7px 13px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer;border:none;transition:all .15s;font-family:"Nunito",sans-serif;}
  .adm-btn-msg{background:rgba(100,180,255,.15);color:#88ccff;border:1px solid rgba(100,180,255,.3);}
  .adm-btn-ban{background:rgba(255,165,0,.15);color:#ffaa44;border:1px solid rgba(255,165,0,.3);}
  .adm-btn-unban{background:rgba(80,200,80,.15);color:#88ff88;border:1px solid rgba(80,200,80,.3);}
  .adm-section{background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;flex-shrink:0;}
  .adm-section h3{font-size:14px;font-weight:800;margin:0;display:flex;align-items:center;gap:6px;}
  .adm-section p{font-size:12px;color:rgba(255,255,255,.4);margin:0;line-height:1.5;}
  .adm-input-full{width:100%;padding:10px 14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:13px;outline:none;font-family:"Nunito",sans-serif;box-sizing:border-box;}
  .adm-input-full:focus{border-color:rgba(232,200,74,.5);}
  .adm-input-full::placeholder{color:rgba(255,255,255,.3);}
  .adm-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;}
  .adm-row-item{display:flex;flex-direction:column;gap:5px;}
  .adm-row-item label{font-size:11px;color:rgba(255,255,255,.5);font-weight:700;}
  .adm-row-item select{padding:8px 10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:12px;outline:none;font-family:"Nunito",sans-serif;}
  .adm-row-item input[type=number]{width:80px;padding:8px 10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:12px;outline:none;font-family:"Nunito",sans-serif;}
  .adm-row-item input[type=color]{width:48px;height:36px;padding:2px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;cursor:pointer;}
  .adm-btn-send{padding:10px 20px;background:linear-gradient(135deg,#e8c84a,#c8a820);color:#1a1000;border:none;border-radius:8px;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;font-family:"Nunito",sans-serif;width:100%;}
  .adm-ticker-list{display:flex;flex-direction:column;gap:6px;max-height:120px;overflow-y:auto;}
  .adm-ticker-item{display:flex;align-items:center;gap:10px;padding:8px 12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:8px;font-size:12px;}
  .adm-ticker-item span{flex:1;color:rgba(255,255,255,.8);}
  .adm-ticker-del{padding:5px 12px;background:rgba(255,60,60,.2);color:#ff8888;border:1px solid rgba(255,60,60,.3);border-radius:6px;font-size:11px;font-weight:700;cursor:pointer;flex-shrink:0;}
  @media(max-width:600px){
    .adm-wrap{padding:12px;}
    .adm-stats{grid-template-columns:repeat(3,1fr);gap:6px;}
    .adm-stat{padding:10px 6px;}
    .adm-stat .label{font-size:9px;}
    .adm-menu-btn{font-size:12px;padding:9px 8px;}
    .adm-player-row{gap:8px;}
    .adm-btns{width:100%;}
    .adm-btn{flex:1;text-align:center;padding:8px 6px;}
  }
  #admin-ban-modal{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:5000;display:none;align-items:center;justify-content:center;padding:20px;}
  .adm-ban-box{background:#071e2e;border:2px solid #e8c84a;border-radius:16px;padding:24px;max-width:420px;width:100%;animation:modalPop .25s ease-out;}
  .adm-ban-box h3{color:#e8c84a;font-size:15px;font-weight:900;margin-bottom:16px;}
  .adm-ban-row{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
  .adm-ban-row label{font-size:12px;color:rgba(255,255,255,.6);font-weight:700;}
  .adm-ban-row select,.adm-ban-row textarea{padding:9px 12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:12px;outline:none;width:100%;}
  .adm-ban-row textarea{resize:vertical;min-height:70px;}
  .adm-ban-btns{display:flex;gap:8px;margin-top:4px;}
  .adm-ban-btns button{flex:1;padding:10px;border-radius:8px;font-size:13px;font-weight:800;cursor:pointer;border:none;}
  #admin-msg-modal{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:5000;display:none;align-items:center;justify-content:center;padding:20px;}
  .adm-msg-box{background:#071e2e;border:2px solid #e8c84a;border-radius:16px;padding:24px;max-width:420px;width:100%;animation:modalPop .25s ease-out;}
  .adm-msg-box h3{color:#e8c84a;font-size:15px;font-weight:900;margin-bottom:14px;}
  .adm-msg-box textarea{width:100%;padding:10px 12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:13px;outline:none;resize:vertical;min-height:100px;}
  .adm-msg-btns{display:flex;gap:8px;margin-top:12px;}
  .adm-msg-btns button{flex:1;padding:10px;border-radius:8px;font-size:13px;font-weight:800;cursor:pointer;border:none;}
  @keyframes pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}

  /* ── OYUN İZLEME CSS ── */
  .izleme-game-tabs{display:flex;gap:8px;margin-bottom:14px;flex-shrink:0;}
  .izleme-game-tab{padding:7px 16px;border-radius:8px;border:1.5px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:rgba(255,255,255,.5);font-family:"Nunito",sans-serif;font-size:12px;font-weight:700;cursor:pointer;transition:all .2s;}
  .izleme-game-tab.active{border-color:#44aaff;color:#44aaff;background:rgba(68,170,255,.1);}
  .izleme-game-tab.soon{opacity:.4;cursor:not-allowed;}
  .izleme-masa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;overflow-y:auto;flex:1;}
  .izleme-masa-kart{background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:14px;cursor:pointer;transition:all .2s;}
  .izleme-masa-kart:hover{background:rgba(68,170,255,.1);border-color:#44aaff;}
  .izleme-masa-kart .masa-no{font-size:20px;font-weight:900;color:#e8c84a;margin-bottom:6px;}
  .izleme-masa-kart .masa-durum{font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;display:inline-block;margin-bottom:8px;}
  .durum-playing{background:rgba(74,222,128,.15);color:#4ade80;border:1px solid rgba(74,222,128,.3);}
  .durum-waiting{background:rgba(255,200,50,.1);color:#ffc832;border:1px solid rgba(255,200,50,.2);}
  .izleme-masa-kart .masa-oyuncular{font-size:11px;color:rgba(255,255,255,.5);line-height:1.6;}
  .izleme-masa-kart .masa-oyuncu-item{display:flex;align-items:center;gap:5px;}
  .izleme-detay{display:flex;gap:12px;flex:1;overflow:hidden;}
  .izleme-detay-sol{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;}
  .izleme-detay-sag{width:260px;flex-shrink:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;}
  .izleme-geri-btn{padding:7px 14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#fff;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;flex-shrink:0;}
  .izleme-card{background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px;}
  .izleme-card-title{font-size:11px;font-weight:800;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;}
  .izleme-oyuncu-blok{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:10px;padding:10px;margin-bottom:8px;}
  .izleme-oyuncu-blok.aktif-sira{border-color:#e8c84a;background:rgba(232,200,74,.06);}
  .izleme-oyuncu-ust{display:flex;align-items:center;gap:8px;margin-bottom:8px;cursor:pointer;}
  .izleme-oyuncu-ust img{width:32px;height:32px;border-radius:50%;border:2px solid rgba(255,255,255,.2);}
  .izleme-oyuncu-ust .isim{font-size:13px;font-weight:800;color:#fff;flex:1;}
  .izleme-oyuncu-ust .puan{font-size:12px;font-weight:700;color:#e8c84a;}
  .izleme-oyuncu-ust .sira-badge{font-size:10px;padding:2px 7px;border-radius:6px;background:#e8c84a;color:#1a1a00;font-weight:900;}
  .izleme-istaka{display:flex;flex-wrap:wrap;gap:3px;}
  .adm-tile{width:28px;height:40px;border-radius:4px;background:#fcfcfc;border:1px solid #ccc;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:900;line-height:1;box-shadow:1px 1px 2px rgba(0,0,0,.3);}
  .adm-tile.r{color:#d61a1a;border-color:#cc0000;} .adm-tile.b{color:#1a75ff;border-color:#0044cc;} .adm-tile.g{color:#e6a800;border-color:#cc8800;} .adm-tile.k{color:#111;border-color:#333;} .adm-tile.ok{background:#1a0a3a;border-color:#e8c84a;color:#f5d84a;}
  .adm-atik-tile{width:24px;height:34px;border-radius:3px;background:#fcfcfc;border:1px solid #ccc;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:900;}
  .adm-atik-tile.r{color:#d61a1a;} .adm-atik-tile.b{color:#1a75ff;} .adm-atik-tile.g{color:#e6a800;} .adm-atik-tile.k{color:#111;}
  .izleme-grup{display:flex;gap:2px;padding:5px 8px;background:rgba(0,0,0,.2);border-radius:6px;border:1px solid rgba(255,255,255,.06);margin-bottom:4px;}
  .izleme-chat-mesaj{padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);margin-bottom:5px;}
  .izleme-chat-mesaj .cm-isim{font-size:10px;font-weight:800;color:#e8c84a;margin-bottom:2px;}
  .izleme-chat-mesaj .cm-metin{font-size:12px;color:rgba(255,255,255,.8);}
  .izleme-info-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
  .izleme-chip{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.7);}
  .izleme-chip.gold{color:#e8c84a;border-color:rgba(232,200,74,.3);}
  .izleme-chip.green{color:#4ade80;border-color:rgba(74,222,128,.3);}

  /* ── PROFİL / LİSTE CSS ── */
  @keyframes modalPopP { from{transform:scale(.92);opacity:0;} to{transform:scale(1);opacity:1;} }
  #profile-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Profil penceresinin dış ölçüsü */
#profile-modal .pm-box {
    position: relative;

    width: min(980px, 97vw);
    height: min(540px, 94vh);
    min-height: 0;

    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    grid-template-rows: 1fr;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top left,
            rgba(32, 105, 150, 0.30),
            transparent 38%
        ),
        linear-gradient(145deg, #0b304b, #061c2e);

    border: 3px solid #e8c84a;
    border-radius: 22px;

    box-shadow:
        0 24px 65px rgba(0,0,0,0.78),
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 28px rgba(232,200,74,0.17);

    animation: modalPopP 0.22s ease-out;
}

/* Soldaki sabit profil alanı */
.pm-top {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 22px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(20,75,110,0.45),
            rgba(4,25,42,0.55)
        );

    border-right: 1px solid rgba(255,255,255,0.10);

    overflow: hidden;
}

/* Sağ tarafın üstündeki menü butonları */
.pm-tabs {
    position: absolute;
    top: 20px;
    left: 265px;
    right: 20px;

    height: 68px;

    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;

    padding: 0;

    background: transparent;
    border: none;

    z-index: 5;
}

/* Arkadaşlar / İstekler / Mesajlar / Mağaza */
.pm-tab {
    min-width: 0;
    height: 58px;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 2px solid rgba(255,255,255,0.14);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(32,74,105,0.95),
            rgba(10,40,63,0.95)
        );

    color: rgba(255,255,255,0.75);

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;

    cursor: pointer;

    box-shadow:
        0 7px 14px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.12);

    transition:
        transform 0.15s,
        border-color 0.15s,
        background 0.15s,
        color 0.15s;
}

.pm-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(232,200,74,0.55);
    color: #fff;
}

.pm-tab.active {
    color: #1a1000;

    border-color: #ffe477;

    background:
        linear-gradient(
            180deg,
            #f4d354,
            #bd850d
        );

    box-shadow:
        0 8px 18px rgba(232,200,74,0.30),
        inset 0 1px 0 rgba(255,255,255,0.42);
}
/* PROFİLDE OKUNMAMIŞ MESAJ UYARILARI */

.pm-tab.prof-notification-alert,
.pm-tab.prof-notification-alert.active {
  color: #fff !important;
  border-color: #ff7373 !important;

  background:
    linear-gradient(
      180deg,
      #d34242,
      #781919
    ) !important;

  box-shadow:
    0 0 18px rgba(255, 60, 60, 0.75),
    inset 0 1px 0 rgba(255,255,255,.20) !important;

  animation: profileNotificationPulse 0.9s infinite !important;
}

.friend-item.unread-message-row {
  border: 2px solid #ff5555 !important;

  background:
    linear-gradient(
      135deg,
      rgba(190, 35, 35, 0.38),
      rgba(255,255,255,.05)
    ) !important;

  box-shadow:
    0 0 16px rgba(255, 45, 45, 0.50);

  animation: unreadMessagePulse 0.9s infinite;
}

.friend-item.unread-message-row .friend-item-name {
  color: #ffb1b1 !important;
}

.unread-message-badge {
  min-width: 21px;
  height: 21px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border: 1px solid #ff9797;
  border-radius: 11px;

  background: #e52d2d;
  color: #fff;

  font-size: 10px;
  font-weight: 900;

  box-shadow: 0 0 8px rgba(255,50,50,.65);
}

@keyframes profileNotificationPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.035);
    filter: brightness(1.28);
  }
}

@keyframes unreadMessagePulse {
  0%, 100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  50% {
    transform: translateX(3px);
    filter: brightness(1.22);
  }
}

/* Sağdaki değişen içerik alanı */
.pm-body {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;
    min-height: 0;

    padding: 104px 20px 18px;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: rgba(232,200,74,0.55) rgba(0,0,0,0.20);
}

.pm-body::-webkit-scrollbar {
    width: 7px;
}

.pm-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
}

.pm-body::-webkit-scrollbar-thumb {
    background: rgba(232,200,74,0.60);
    border-radius: 8px;
}

/* İç ekranlar */
.pm-tab-pane {
    display: none;
    min-height: 100%;
}

.pm-tab-pane.active {
    display: block;
}

/* Mobil yatay ekran */
@media screen and (orientation: landscape) and (max-height: 520px) {
    #profile-modal {
        padding: 5px;
    }

    #profile-modal .pm-box {
        width: 98vw;
        height: 96vh;

        grid-template-columns: 190px minmax(0, 1fr);

        border-radius: 16px;
    }

    .pm-top {
        padding: 12px 10px;
        gap: 6px;
    }

    .pm-tabs {
        left: 202px;
        top: 10px;
        right: 12px;

        height: 54px;
        gap: 6px;
    }

    .pm-tab {
        height: 48px;

        padding: 5px 7px;

        border-radius: 10px;

        font-size: 11px;
    }

    .pm-body {
        padding:
            70px
            12px
            10px;
    }
}
  .pm-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px;}
  .pm-stat-card{background:rgba(255,255,255,.05);border-radius:10px;padding:10px;text-align:center;}
  .pm-stat-card .label{font-size:9px;color:rgba(255,255,255,.4);text-transform:uppercase;margin-bottom:4px;}
  .pm-stat-card .value{font-size:19px;font-weight:900;}
  @media(max-width:480px){.pm-stat-grid{grid-template-columns:repeat(2,1fr);}.pm-tab{font-size:10px;padding:8px 2px;}}
  .friend-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);margin-bottom:8px;}
  .friend-item img{width:42px;height:42px;border-radius:50%;border:2px solid rgba(232,200,74,.4);object-fit:cover;flex-shrink:0;}
  .friend-item-info{flex:1;min-width:0;}
  .friend-item-name{font-size:13px;font-weight:800;color:#fff;margin-bottom:2px;}
  .friend-item-sub{font-size:11px;color:rgba(255,255,255,.45);}
  .friend-item-btns{display:flex;gap:6px;flex-shrink:0;}
  .fib{padding:5px 10px;border-radius:7px;font-size:11px;font-weight:700;cursor:pointer;border:none;transition:all .15s;font-family:inherit;}
  .fib-profile{
  background:rgba(232,200,74,.14);
  color:#f4d354;
  border:1px solid rgba(232,200,74,.35);
}
  .fib-msg{background:rgba(100,180,255,.15);color:#88ccff;border:1px solid rgba(100,180,255,.3);}
  .fib-del{background:rgba(255,80,80,.12);color:#ff8888;border:1px solid rgba(255,80,80,.25);}
  .fib-acc{background:rgba(80,200,80,.15);color:#88ff88;border:1px solid rgba(80,200,80,.3);}
  .fib-rej{background:rgba(255,80,80,.12);color:#ff8888;border:1px solid rgba(255,80,80,.25);}
/* ═══════════════════════════════════════
   YENİ SABİT MESAJ PENCERESİ
   ═══════════════════════════════════════ */

#msg-modal {
  position: fixed;
  inset: 0;
  z-index: 4600;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: rgba(0,0,0,.90);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Profil kartına benzeyen sabit dış çerçeve */
.msg-box {
  position: relative;

  width: min(820px, 96vw);
  height: min(560px, 92vh);
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(32,105,150,.30),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      #0b304b,
      #061c2e
    );

  border: 3px solid #e8c84a;
  border-radius: 22px;

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 28px rgba(232,200,74,.17);

  animation: modalPopP .22s ease-out;
}

/* Üst sabit başlık */
.msg-box-head {
  min-height: 76px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 16px;

  background:
    linear-gradient(
      180deg,
      rgba(25,82,118,.95),
      rgba(8,40,63,.96)
    );

  border-bottom: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 7px 16px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.08);

  z-index: 3;
}

.msg-user-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;

  object-fit: cover;

  background: #1a4a6b;

  border: 2px solid #e8c84a;
  border-radius: 50%;

  box-shadow:
    0 5px 12px rgba(0,0,0,.45),
    0 0 10px rgba(232,200,74,.18);
}

.msg-head-info {
  flex: 1;
  min-width: 0;
}

.msg-box-head h3 {
  overflow: hidden;

  margin: 0 0 3px;

  color: #f4d354;

  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-head-subtitle {
  color: rgba(255,255,255,.48);

  font-size: 11px;
  font-weight: 700;
}

.msg-box-head > button {
  width: 38px;
  height: 38px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: rgba(0,0,0,.28);
  color: #fff;

  border: 1px solid rgba(255,255,255,.17);
  border-radius: 11px;

  font-family: inherit;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

/* Yalnızca bu alan kayar */
#msg-thread {
  flex: 1 1 0;
  min-height: 0;

  display: flex;
  flex-direction: column;
  gap: 11px;

  padding: 18px 20px;

  overflow-x: hidden;
  overflow-y: auto;

  background:
    radial-gradient(
      circle at center,
      rgba(20,85,125,.10),
      transparent 60%
    ),
    rgba(0,0,0,.14);

  scrollbar-width: thin;
  scrollbar-color:
    rgba(232,200,74,.60)
    rgba(0,0,0,.15);

  overscroll-behavior: contain;
  touch-action: pan-y;

  -webkit-overflow-scrolling: touch;
}

#msg-thread::-webkit-scrollbar {
  width: 8px;
}

#msg-thread::-webkit-scrollbar-track {
  background: rgba(0,0,0,.15);
  border-radius: 8px;
}

#msg-thread::-webkit-scrollbar-thumb {
  background: rgba(232,200,74,.58);
  border-radius: 8px;
}

/* Mesaj balonları */
.dm-msg {
  position: relative;

  max-width: 76%;

  padding: 11px 14px 8px;

  color: #fff;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;

  word-break: break-word;
  overflow-wrap: anywhere;

  box-shadow:
    0 6px 13px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.dm-msg.me {
  align-self: flex-end;

  background:
    linear-gradient(
      145deg,
      rgba(22,112,67,.96),
      rgba(8,65,39,.96)
    );

  border: 1px solid rgba(104,235,157,.28);
  border-radius: 15px 15px 3px 15px;
}

.dm-msg.them {
  align-self: flex-start;

  background:
    linear-gradient(
      145deg,
      rgba(39,82,111,.97),
      rgba(17,52,76,.97)
    );

  border: 1px solid rgba(130,196,240,.22);
  border-radius: 15px 15px 15px 3px;
}

.dm-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;

  margin-top: 5px;

  color: rgba(255,255,255,.46);

  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.dm-del-btn {
  padding: 1px 4px;

  background: transparent;
  color: rgba(255,170,170,.62);

  border: none;

  font-size: 12px;
  cursor: pointer;
}

/* Alt sabit mesaj yazma alanı */
.msg-input-area {
  min-height: 72px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px 14px;

  background:
    linear-gradient(
      180deg,
      rgba(8,40,63,.96),
      rgba(5,28,45,.98)
    );

  border-top: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 -7px 15px rgba(0,0,0,.20);

  z-index: 3;
}

.msg-input-area input {
  min-width: 0;
  height: 48px;
  flex: 1;

  padding: 0 15px;

  outline: none;

  background: rgba(1,21,35,.88);
  color: #fff;

  border: 2px solid rgba(255,255,255,.11);
  border-radius: 12px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  transition:
    border-color .15s,
    box-shadow .15s,
    background .15s;
}

.msg-input-area input::placeholder {
  color: rgba(255,255,255,.34);
}

.msg-input-area input:focus {
  background: rgba(2,30,49,.98);

  border-color: #e8c84a;

  box-shadow:
    0 0 0 3px rgba(232,200,74,.10);
}

.msg-input-area button {
  width: 58px;
  height: 48px;
  flex-shrink: 0;

  padding: 0;

  background:
    linear-gradient(
      180deg,
      #f4d354,
      #bd850d
    );

  color: #1a1000;

  border: 2px solid #ffe477;
  border-radius: 12px;

  font-family: inherit;
  font-size: 21px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(232,200,74,.20),
    inset 0 1px 0 rgba(255,255,255,.38);
}

/* MOBİL YATAY */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #msg-modal {
    padding: 5px;
  }

  .msg-box {
    width: 98vw;
    height: 96vh;

    border-radius: 16px;
  }

  .msg-box-head {
    min-height: 55px;

    padding: 6px 10px;
    gap: 8px;
  }

  .msg-user-avatar {
    width: 39px;
    height: 39px;
  }

  .msg-box-head h3 {
    margin-bottom: 1px;

    font-size: 14px;
  }

  .msg-head-subtitle {
    font-size: 9px;
  }

  .msg-box-head > button {
    width: 31px;
    height: 31px;

    border-radius: 9px;

    font-size: 21px;
  }

  #msg-thread {
    min-height: 0;

    padding: 10px 12px;
    gap: 7px;

    overflow-y: scroll;

    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .dm-msg {
    max-width: 82%;

    padding: 7px 10px 5px;

    font-size: 12px;
    line-height: 1.35;
  }

  .dm-msg-meta {
    margin-top: 3px;

    font-size: 8px;
  }

  .msg-input-area {
    min-height: 54px;

    padding: 6px 9px;
    gap: 7px;
  }

  .msg-input-area input {
    height: 39px;

    padding: 0 11px;

    border-radius: 9px;

    font-size: 11px;
  }

  .msg-input-area button {
    width: 48px;
    height: 39px;

    border-radius: 9px;

    font-size: 17px;
  }
}
  #avatar-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;

  overflow: hidden !important;
  touch-action: none !important;
}

.av-picker-box {
  background: #071e2e;
  border: 2px solid #e8c84a;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  width: 100%;

  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;

  animation: modalPopP .22s ease-out;
  position: relative;
}
  .av-picker-box h3{color:#e8c84a;font-size:16px;font-weight:900;margin-bottom:14px;text-align:center;}
  #avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px;}
  @media(max-width:480px){#avatar-grid{grid-template-columns:repeat(4,1fr);}}
  .av-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:10px;cursor:pointer;border:2px solid transparent;transition:all .15s;background:rgba(255,255,255,.04);}
  .av-item:hover{background:rgba(232,200,74,.1);border-color:rgba(232,200,74,.3);}
  .av-item.av-selected{background:rgba(232,200,74,.15);border-color:#e8c84a;}
  .av-item img{width:52px;height:52px;border-radius:50%;object-fit:cover;}
  .av-name{font-size:9px;color:rgba(255,255,255,.6);text-align:center;line-height:1.2;}
  .av-picker-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;

  border: 2px solid #ffaaaa;
  border-radius: 12px;

  background: linear-gradient(#f04b4b, #a91515);
  color: #fff;

  font-size: 27px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
  z-index: 5;
}
  #player-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: rgba(0,0,0,.90);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#portal-player-card {
  position: relative;

  width: min(900px, 96vw);
  min-height: 250px;
  max-height: 92vh;

  display: grid;
  grid-template-columns: 180px minmax(320px, 1fr) 210px;
  gap: 14px;

  padding: 20px;

  background:
    radial-gradient(circle at top left, rgba(25,92,133,.32), transparent 38%),
    linear-gradient(145deg,#0b2e49,#061b2d);

  border: 3px solid #e8c84a;
  border-radius: 22px;

  box-shadow:
    0 22px 60px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 26px rgba(232,200,74,.18);

  overflow: hidden;
  animation: modalPopP .22s ease-out;
}

#portal-player-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;

  width: 36px;
  height: 36px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;

  background: rgba(0,0,0,.28);
  color: #fff;

  font-family: inherit;
  font-size: 26px;
  font-weight: 900;
  line-height: 30px;

  cursor: pointer;
}

#portal-player-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 14px;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

#ps-avatar {
  width: 112px;
  height: 112px;

  overflow: hidden;

  background: #1a4a6b;
  border: 4px solid #e8c84a;
  border-radius: 50%;

  box-shadow:
    0 10px 22px rgba(0,0,0,.55),
    0 0 18px rgba(232,200,74,.24);
}

#ps-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ps-name {
  width: 100%;
  margin-top: 12px;

  color: #f4cf46;

  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-shadow: 0 2px 5px rgba(0,0,0,.65);
}

#ps-bot-tag {
  display: none;

  margin-top: 8px;
  padding: 5px 9px;

  color: #ffbb55;
  font-size: 11px;
  font-weight: 900;

  background: rgba(255,170,68,.10);
  border: 1px solid rgba(255,170,68,.30);
  border-radius: 8px;
}

#ps-stats {
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2,minmax(120px,1fr));
  gap: 9px;
  align-content: center;

  padding: 13px;

  overflow-y: auto;

  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

#ps-stats > div {
  min-width: 0;
}

#portal-player-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  padding: 12px;

  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

#ps-friend-area {
  display: none;
}

#portal-player-actions button {
  width: 100%;
  min-height: 52px;

  padding: 10px 12px;

  border: 2px solid transparent;
  border-radius: 13px;

  color: #fff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
}

#ps-friend-btn {
  background: linear-gradient(180deg,#209653,#0d592d);
  border-color: #55d889 !important;
}

#ps-message-btn {
  display: none;

  background: linear-gradient(180deg,#287fc4,#124779);
  border-color: #69baff !important;
}

#ps-gift-btn {
  display: none;

  background: linear-gradient(180deg,#a66a16,#653807);
  border-color: #ffc55c !important;
}
@media screen and (orientation: landscape) and (max-height: 520px) {
  #player-stats-modal {
    padding: 5px;
  }

  #portal-player-card {
    width: 98vw;
    max-height: 96vh;
    min-height: 0;

    grid-template-columns: 145px minmax(250px,1fr) 180px;
    gap: 8px;

    padding: 11px;
    border-radius: 16px;
  }

  #portal-player-left,
  #ps-stats,
  #portal-player-actions {
    padding: 8px;
    border-radius: 11px;
  }

  #ps-avatar {
    width: 82px;
    height: 82px;
    border-width: 3px;
  }

  #ps-name {
    margin-top: 6px;
    font-size: 17px;
  }

  #ps-stats {
    gap: 6px;
  }

  #portal-player-actions {
    gap: 7px;
  }

  #portal-player-actions button {
    min-height: 43px;
    padding: 7px 8px;
    font-size: 12px;
    border-radius: 10px;
  }

  #portal-player-close {
    width: 31px;
    height: 31px;
    font-size: 22px;
    line-height: 26px;
  }
}
#ps-stats .ps-stat-box {
  min-height: 82px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.08),
      rgba(0,0,0,.22)
    );

  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;

  text-align: center;

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

#ps-stats .ps-stat-label {
  color: rgba(255,255,255,.65);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
}

#ps-stats .ps-stat-box strong {
  color: #fff;

  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

#ps-stats .ps-stat-score {
  background:
    linear-gradient(
      145deg,
      rgba(232,200,74,.20),
      rgba(90,60,0,.18)
    );

  border-color: rgba(232,200,74,.42);
}

#ps-stats .ps-stat-score strong {
  color: #f4cf46;
}

#ps-stats .ps-stat-diamond {
  background:
    linear-gradient(
      145deg,
      rgba(40,110,190,.24),
      rgba(5,35,80,.23)
    );

  border-color: rgba(100,180,255,.42);
}

#ps-stats .ps-stat-diamond strong {
  color: #70c4ff;
}

#ps-stats .ps-stat-win strong {
  color: #71f59b;
}

.ps-loading-box {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 150px;
  padding: 20px;

  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.ps-error-box {
  color: #ff8888;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  #ps-stats .ps-stat-box {
    min-height: 61px;
    padding: 6px;
    gap: 3px;
  }

  #ps-stats .ps-stat-label {
    font-size: 9px;
  }

  #ps-stats .ps-stat-box strong {
    font-size: 17px;
  }
}
  #friend-notif-badge{display:none;position:fixed;top:12px;right:60px;z-index:3000;background:#ff4444;color:#fff;font-size:11px;font-weight:900;padding:3px 10px;border-radius:12px;cursor:pointer;box-shadow:0 3px 10px rgba(255,68,68,.5);}
  .tables-grid{display:grid;grid-template-columns:repeat(3,1fr);justify-items:center;gap:50px 20px;padding:20px;max-width:1200px;margin:0 auto;width:100%;}
  @media(max-width:1024px){.tables-grid{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:650px){.tables-grid{grid-template-columns:1fr;}}
  .masa-wrapper{position:relative;width:220px;height:220px;margin:0 auto;display:flex;align-items:center;justify-content:center;}
  .masa-board{background:linear-gradient(135deg,#c0802c,#8e5812);width:120px;height:120px;border-radius:20px;border:4px solid #5a3508;box-shadow:0 10px 20px rgba(0,0,0,0.6),inset 0 0 15px rgba(0,0,0,0.3);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;position:relative;z-index:2;padding:5px 0;}
  .masa-board span{color:#fff;font-weight:900;font-size:18px;text-shadow:1px 1px 2px #000;}
  .masa-board small{color:rgba(255,255,255,0.6);font-size:10px;font-weight:bold;margin-top:2px;}
  .izle-btn{background:rgba(0,0,0,0.65);border:1.5px solid #e8c84a;color:#e8c84a;padding:5px 14px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer;transition:all 0.2s;text-transform:uppercase;box-shadow:0 4px 8px rgba(0,0,0,0.5);margin-top:4px;z-index:10;}
  .oyna-btn{position:absolute;background:#0a2b42;border:3px solid #e8c84a;color:#e8c84a;font-weight:800;border-radius:50%;width:56px;height:56px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;font-size:12px;box-shadow:0 4px 10px rgba(0,0,0,0.5);z-index:3;}
  .oyna-btn:hover{transform:scale(1.15);background:#e8c84a;color:#1a1a00;border-color:#fff;}
  .seat-top{top:0;left:50%;transform:translateX(-50%);}
  .seat-bottom{bottom:0;left:50%;transform:translateX(-50%);}
  .seat-left{top:50%;left:0;transform:translateY(-50%);}
  .seat-right{top:50%;right:0;transform:translateY(-50%);}
  body.game-active>*:not(#game-container){display:none!important;}
  #game-container.fullscreen-mode{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:999999!important;background:#062033;margin:0!important;padding:0!important;}
  
  /* --- CİHAZ YÖNÜ UYARISI CSS --- */
  #rotate-warning {
    display: none; 
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    z-index: 9999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  /* Ekran dik (portrait) olduğunda uyarıyı göster, arkaplanı gizle */
  @media screen and (orientation: portrait) {
    #rotate-warning {
      display: flex !important;
    }
    body > :not(#rotate-warning) {
      display: none !important;
    }
  }
/* ═══════════════════════════════════════
   DÜZENLİ VE SABİT GİRİŞ / KAYIT EKRANI
   ═══════════════════════════════════════ */

#auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 12px;

  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#auth-modal.open {
  display: flex;
}

.auth-horizontal-card {
  position: relative;

  width: min(760px, 96vw);
  height: 340px;
  min-height: 340px;
  max-height: 94vh;

  display: flex;
  flex-direction: column;

  padding: 20px 22px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(35, 108, 153, 0.25),
      transparent 42%
    ),
    linear-gradient(145deg, #0d3653, #061c2e);

  border: 3px solid #e8c84a;
  border-radius: 20px;

  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 0 24px rgba(232, 200, 74, 0.18);
}

.auth-horizontal-close {
  position: absolute;
  top: 10px;
  right: 11px;
  z-index: 10;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;

  background: rgba(0, 0, 0, 0.30);
  color: #fff;

  font-family: inherit;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

.auth-horizontal-title {
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  color: #e8c84a;

  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

#auth-modal .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  flex-shrink: 0;

  margin-bottom: 16px;
}

#auth-modal .auth-tab {
  height: 44px;

  padding: 0 12px;

  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;

  background: linear-gradient(180deg, #174f73, #08273e);
  color: rgba(255, 255, 255, 0.65);

  font-family: inherit;
  font-size: 12px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 5px 11px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#auth-modal .auth-tab.active {
  color: #1a1000;

  border-color: #ffe477;

  background: linear-gradient(180deg, #f4d354, #bd850d);

  box-shadow:
    0 7px 15px rgba(232, 200, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-forms-container {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
}

#auth-giris,
#auth-kayit,
#auth-sifre {
  width: 100%;
  flex: 1;
}

.auth-horizontal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;

  align-items: stretch;
}

.auth-horizontal-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-horizontal-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

#auth-modal .input-group {
  margin: 0;
}

#auth-modal .input-group input {
  width: 100%;
  height: 46px;

  padding: 0 14px;

  outline: none;

  color: #fff;
  background: rgba(2, 25, 42, 0.88);

  border: 2px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

#auth-modal .input-group input::placeholder {
  color: rgba(255, 255, 255, 0.40);
}

#auth-modal .input-group input:focus {
  color: #fff;
  background: rgba(3, 31, 51, 0.98);

  border-color: #e8c84a;

  box-shadow: 0 0 0 3px rgba(232, 200, 74, 0.10);
}

.auth-login-btn,
.auth-forgot-btn {
  width: 100%;
  min-height: 46px;

  border-radius: 10px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 900;

  cursor: pointer;
}

.auth-login-btn {
  border: 2px solid #ffe477;

  background: linear-gradient(180deg, #f4d354, #bd850d);
  color: #1a1000;

  box-shadow:
    0 7px 15px rgba(232, 200, 74, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-forgot-btn {
  border: 1px solid rgba(232, 200, 74, 0.34);

  background: rgba(232, 200, 74, 0.08);
  color: #e8c84a;
}

.auth-horizontal-bottom {
  margin-top: auto;
  padding-top: 13px;
}

.auth-horizontal-divider {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 9px;

  color: rgba(255, 255, 255, 0.38);

  font-size: 9px;
  font-weight: 900;
}

.auth-horizontal-divider::before,
.auth-horizontal-divider::after {
  content: "";

  flex: 1;
  height: 1px;

  background: rgba(255, 255, 255, 0.11);
}

.auth-guest-btn {
  width: 100%;
  height: 46px;

  border: 2px solid #69baff;
  border-radius: 10px;

  background: linear-gradient(180deg, #287fc4, #124779);
  color: #fff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 6px 13px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* KAYIT BÖLÜMÜ */

.auth-horizontal-register {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 46px 46px;
  gap: 10px;
}

.auth-horizontal-register .input-group {
  min-width: 0;
}

.auth-horizontal-register .auth-login-btn {
  grid-column: 1 / -1;
  grid-row: 2;

  height: 46px;
}

/* ŞİFRE YENİLEME */

.auth-reset-text {
  min-height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;
  padding: 8px 12px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 10px;
  font-weight: 700;
  text-align: center;

  background: rgba(0, 0, 0, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
}

#auth-error,
#auth-error-kayit,
#auth-error-sifre {
  height: 20px;
  min-height: 20px;

  margin-top: 5px;

  overflow: hidden;

  color: #ff7b7b;

  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

/* MOBİL YATAY */

@media screen and (orientation: landscape) and (max-height: 520px) {
  .auth-horizontal-card {
    width: min(720px, 97vw);
    height: 310px;
    min-height: 310px;

    padding: 13px 16px;

    border-radius: 16px;
  }

  .auth-horizontal-title {
    height: 25px;

    margin-bottom: 7px;

    font-size: 16px;
  }

  #auth-modal .auth-tabs {
    gap: 7px;
    margin-bottom: 10px;
  }

  #auth-modal .auth-tab {
    height: 36px;

    font-size: 10px;
  }

  .auth-horizontal-form {
    grid-template-columns: minmax(0, 1fr) 165px;
    gap: 8px;
  }

  .auth-horizontal-inputs,
  .auth-horizontal-actions {
    gap: 6px;
  }

  #auth-modal .input-group input,
  .auth-login-btn,
  .auth-forgot-btn {
    height: 38px;
    min-height: 38px;
  }

  .auth-horizontal-register {
    grid-template-rows: 38px 38px;
    gap: 7px;
  }

  .auth-horizontal-register .auth-login-btn {
    height: 38px;
  }

  .auth-horizontal-bottom {
    padding-top: 8px;
  }

  .auth-horizontal-divider {
    margin-bottom: 6px;
  }

  .auth-guest-btn {
    height: 38px;
  }

  .auth-horizontal-close {
    width: 29px;
    height: 29px;

    font-size: 20px;
  }
}
.notification-wrap {
  position: relative;
  display: none;
}





#notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: none;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ff3333;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

#notification-panel {
  position: absolute;
  top: 45px;
  right: 0;
  z-index: 5000;
  display: none;
  flex-direction: column;
  width: 340px;
  max-height: 380px;
  overflow: hidden;
  background: #08283f;
  border: 2px solid #e8c84a;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,.7);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.notification-panel-title {
  color: #e8c84a;
  font-size: 12px;
  font-weight: 900;
}

.notification-clear-all {
  padding: 5px 8px;
  border: 1px solid rgba(255,90,90,.4);
  border-radius: 6px;
  background: rgba(255,60,60,.12);
  color: #ff9999;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

#notification-list {
  padding: 8px;
  overflow-y: auto;
}

.notification-empty {
  padding: 25px 10px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  text-align: center;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,90,90,.4);
  border-radius: 9px;
}

.notification-item-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.notification-item-title {
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.notification-item-text {
  overflow: hidden;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-item-delete {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,80,80,.35);
  border-radius: 6px;
  background: rgba(255,80,80,.13);
  color: #ff8888;
  cursor: pointer;
}

@keyframes notificationShake {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(12deg); }
  95% { transform: rotate(-7deg); }
}
/* PROFİL AYARLAR SEKMESİ */

.profile-settings-box {
  width: 100%;
  min-height: 100%;

  display: flex;
  flex-direction: column;
  gap: 18px;

  padding: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(32,105,150,.20),
      transparent 42%
    ),
    rgba(0,0,0,.16);

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
}

.profile-settings-head {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 15px;

  background: rgba(255,255,255,.05);

  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
}

.profile-settings-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      rgba(232,200,74,.22),
      rgba(110,75,5,.16)
    );

  border: 1px solid rgba(232,200,74,.40);
  border-radius: 14px;

  font-size: 26px;
}

.profile-settings-title {
  margin-bottom: 3px;

  color: #e8c84a;

  font-size: 17px;
  font-weight: 900;
}

.profile-settings-subtitle {
  color: rgba(255,255,255,.48);

  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-settings-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.profile-setting-btn {
  width: 100%;
  min-height: 66px;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 11px 14px;

  border-radius: 13px;

  color: #fff;

  font-family: inherit;
  text-align: left;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.13);
}

.profile-setting-btn-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.22);
  border-radius: 10px;

  font-size: 21px;
}

.profile-setting-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-setting-btn-text strong {
  font-size: 14px;
  font-weight: 900;
}

.profile-setting-btn-text small {
  color: rgba(255,255,255,.55);

  font-size: 10px;
  font-weight: 700;
}

.profile-admin-action {
  background:
    linear-gradient(
      180deg,
      #b98518,
      #694507
    );

  border: 2px solid #f0cf52;
}

.profile-logout-action {
  background:
    linear-gradient(
      180deg,
      #b83b3b,
      #671717
    );

  border: 2px solid #ff7777;
}

.profile-setting-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .profile-settings-box {
    gap: 10px;
    padding: 11px;
  }

  .profile-settings-head {
    padding: 9px;
  }

  .profile-settings-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .profile-settings-title {
    font-size: 14px;
  }

  .profile-setting-btn {
    min-height: 51px;
    padding: 7px 10px;
  }

  .profile-setting-btn-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}
/* ═══════════════════════════════════════
   HEDİYE SEÇİM PENCERESİ
   ═══════════════════════════════════════ */

#gift-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: rgba(0,0,0,.90);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.gift-modal-box {
  width: min(760px, 96vw);
  max-height: 92vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(32,105,150,.28), transparent 40%),
    linear-gradient(145deg,#0b304b,#061c2e);

  border: 3px solid #e8c84a;
  border-radius: 20px;

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    0 0 25px rgba(232,200,74,.18);
}

.gift-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 16px;

  background: rgba(232,200,74,.08);
  border-bottom: 1px solid rgba(232,200,74,.18);
}

.gift-modal-title {
  color: #e8c84a;
  font-size: 18px;
  font-weight: 900;
}

.gift-target-name {
  margin-top: 3px;

  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
}

.gift-modal-head button {
  width: 36px;
  height: 36px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;

  background: rgba(0,0,0,.28);
  color: #fff;

  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.gift-balance {
  padding: 10px 16px;

  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 800;

  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.gift-balance strong {
  color: #70c4ff;
  font-size: 15px;
}

#gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;

  padding: 14px;

  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(232,200,74,.55) transparent;
}

.gift-card {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  padding: 13px 8px;

  border: 2px solid rgba(255,255,255,.10);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.07),
      rgba(0,0,0,.20)
    );

  color: #fff;

  cursor: pointer;

  transition:
    transform .15s,
    border-color .15s,
    background .15s;
}

.gift-card:hover {
  transform: translateY(-2px);

  border-color: #e8c84a;

  background:
    linear-gradient(
      145deg,
      rgba(232,200,74,.14),
      rgba(0,0,0,.18)
    );
}

.gift-card:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.gift-card-emoji {
  font-size: 36px;
  line-height: 1;
}

.gift-card-name {
  min-height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.gift-card-cost {
  padding: 3px 8px;

  border-radius: 9px;

  background: rgba(30,100,180,.18);
  color: #70c4ff;

  font-size: 10px;
  font-weight: 900;
}

#gift-error {
  min-height: 36px;

  padding: 8px 14px 12px;

  color: #ff8888;

  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .gift-modal-box {
    width: 97vw;
    max-height: 96vh;
  }

  .gift-modal-head {
    padding: 8px 11px;
  }

  .gift-modal-title {
    font-size: 14px;
  }

  .gift-modal-head button {
    width: 30px;
    height: 30px;

    font-size: 20px;
  }

  .gift-balance {
    padding: 6px 11px;
  }

  #gift-grid {
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 7px;

    padding: 9px;
  }

  .gift-card {
    gap: 4px;

    padding: 8px 5px;

    border-radius: 10px;
  }

  .gift-card-emoji {
    font-size: 27px;
  }

  .gift-card-name {
    min-height: 24px;

    font-size: 9px;
  }

  .gift-card-cost {
    font-size: 8px;
  }
}
/* PROFİL HEDİYELER SEKMESİ */

.gift-profile-title {
  margin-bottom: 10px;

  color: #e8c84a;

  font-size: 15px;
  font-weight: 900;
}

.gift-history-title {
  margin-top: 18px;
}

.gift-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.gift-collection-card {
  position: relative;

  min-height: 105px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 10px 7px;

  background:
    linear-gradient(
      145deg,
      rgba(232,200,74,.13),
      rgba(0,0,0,.21)
    );

  border: 1px solid rgba(232,200,74,.28);
  border-radius: 13px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 12px rgba(0,0,0,.20);
}

.gift-collection-emoji {
  font-size: 34px;
  line-height: 1;
}

.gift-collection-name {
  min-height: 27px;

  display: flex;
  align-items: center;

  color: #fff;

  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.gift-collection-count {
  position: absolute;
  top: 6px;
  right: 7px;

  min-width: 23px;

  padding: 3px 6px;

  color: #1a1000;
  background: #e8c84a;

  border-radius: 9px;

  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.gift-history-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gift-history-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 11px;

  background: rgba(255,255,255,.045);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
}

.gift-history-item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  object-fit: cover;

  border: 2px solid rgba(232,200,74,.45);
  border-radius: 50%;
}

.gift-history-info {
  flex: 1;
  min-width: 0;
}

.gift-history-sender {
  margin-bottom: 2px;

  color: #fff;

  font-size: 12px;
  font-weight: 900;
}

.gift-history-text {
  color: rgba(255,255,255,.55);

  font-size: 10px;
  font-weight: 700;
}

.gift-history-date {
  flex-shrink: 0;

  color: rgba(255,255,255,.33);

  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.gift-profile-empty {
  min-height: 230px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: rgba(255,255,255,.45);
  text-align: center;
}

.gift-profile-empty > div {
  font-size: 48px;
}

.gift-profile-empty strong {
  color: #e8c84a;

  font-size: 15px;
}

.gift-profile-empty span {
  font-size: 11px;
}

.gift-notification-item {
  border-color: rgba(232,200,74,.50);
  background:
    linear-gradient(
      135deg,
      rgba(145,105,15,.25),
      rgba(255,255,255,.04)
    );
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .gift-collection-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .gift-collection-card {
    min-height: 78px;
    padding: 6px 4px;
  }

  .gift-collection-emoji {
    font-size: 25px;
  }

  .gift-collection-name {
    min-height: 20px;
    font-size: 8px;
  }

  .gift-history-item {
    padding: 6px 8px;
  }

  .gift-history-item img {
    width: 32px;
    height: 32px;
  }
}
/* =========================
   MASAKEYFİ AUTH MODAL
========================= */

.auth-modern-wrap {
  width: 560px !important;
  max-width: 82vw !important;
  margin: 0 auto;
  padding: 18px;
  border: 2px solid #e0bb3f;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 25%, rgba(27, 91, 132, 0.35), transparent 45%),
    linear-gradient(180deg, #0b3554 0%, #062742 100%);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}

.auth-modern-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modern-close:hover {
  background: rgba(255,255,255,0.08);
}

.auth-modern-title {
  text-align: center;
  color: #f0c847;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 1000;
  letter-spacing: -1px;
  margin: 4px 0 18px;
  text-shadow:
    0 2px 0 #8f6b0e,
    0 6px 18px rgba(0,0,0,0.45);
}

.auth-modern-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-modern-tab {
  height: 68px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, #0a2e4a 0%, #08243a 100%);
  color: rgba(255,255,255,0.55);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.auth-modern-tab.active {
  background: linear-gradient(180deg, #f0cc4a 0%, #d49a17 100%);
  color: #131313;
  border-color: #f6db7a;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 8px 18px rgba(0,0,0,0.22);
}

.auth-modern-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modern-input {
  width: 100%;
  height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(74, 116, 149, 0.55);
  background: linear-gradient(180deg, #082843 0%, #061e33 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 0 20px;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.auth-modern-input::placeholder {
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.auth-modern-input:focus {
  border-color: #6db6ff;
  box-shadow: 0 0 0 3px rgba(77, 156, 255, 0.12);
}

.auth-modern-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 6px;
}

.auth-btn-gold {
  height: 78px;
  border-radius: 18px;
  border: 2px solid #f3d46e;
  background: linear-gradient(180deg, #f1cd4d 0%, #d89a13 100%);
  color: #141414;
  font-size: 22px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 10px 20px rgba(0,0,0,0.18);
}

.auth-btn-gold:hover {
  filter: brightness(1.03);
}

.auth-btn-dark {
  height: 78px;
  border-radius: 18px;
  border: 2px solid rgba(229, 176, 37, 0.45);
  background: linear-gradient(180deg, #0b2e49 0%, #08243a 100%);
  color: #f0c847;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.auth-btn-dark:hover {
  background: linear-gradient(180deg, #113757 0%, #0a2941 100%);
}

.auth-modern-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 10px;
  color: rgba(255,255,255,0.34);
  font-weight: 900;
  font-size: 14px;
}

.auth-modern-divider::before,
.auth-modern-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.auth-btn-guest {
  width: 100%;
  height: 78px;
  border-radius: 18px;
  border: 2px solid #61b4ff;
  background: linear-gradient(180deg, #1670c4 0%, #0c4d90 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 10px 20px rgba(0,0,0,0.15);
}

.auth-btn-guest:hover {
  filter: brightness(1.04);
}

.auth-modern-error {
  min-height: 22px;
  color: #ff8d8d;
  font-size: 14px;
  font-weight: 800;
  padding-left: 4px;
}

@media (max-width: 760px) {
  .auth-modern-wrap {
    width: min(96vw, 96vw);
    padding: 14px;
    border-radius: 20px;
  }

  .auth-modern-title {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .auth-modern-tab {
    height: 56px;
    border-radius: 14px;
    font-size: 16px;
  }

  .auth-modern-input {
    height: 60px;
    font-size: 16px;
    border-radius: 14px;
    padding: 0 16px;
  }

  .auth-modern-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .auth-btn-gold,
  .auth-btn-dark,
  .auth-btn-guest {
    height: 60px;
    border-radius: 14px;
    font-size: 16px;
  }

    .auth-modern-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    border-radius: 12px;
  }
}
/* GİRİŞ EKRANI — MOBİL YATAY */
@media screen and (orientation: landscape) and (max-height: 520px) {

  #auth-modal {
    padding: 4px !important;
    overflow: hidden;
  }

  .auth-modern-wrap {
    width: min(780px, 94vw);
    max-height: 96dvh;
    padding: 9px 14px;
    border-radius: 16px;
    overflow-y: auto;
  }

  .auth-modern-title {
    font-size: 20px;
    line-height: 1;
    margin: 0 0 7px;
  }

  .auth-modern-tabs {
    gap: 8px;
    margin-bottom: 8px;
  }

  .auth-modern-tab {
    height: 42px;
    border-radius: 11px;
    font-size: 14px;
  }

  .auth-modern-form {
    gap: 7px;
  }

  .auth-modern-input {
    height: 46px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 14px;
  }

  .auth-modern-error {
    min-height: 12px;
    padding: 0;
    font-size: 10px;
    line-height: 12px;
  }

  .auth-modern-actions {
    grid-template-columns: 1.1fr 1fr;
    gap: 9px;
    margin-top: 3px;
  }

  .auth-btn-gold,
  .auth-btn-dark {
    height: 48px;
    border-radius: 11px;
    font-size: 14px;
  }

  .auth-modern-divider {
    gap: 9px;
    margin: 4px 0;
    font-size: 10px;
  }

  .auth-btn-guest {
    height: 48px;
    border-radius: 11px;
    font-size: 15px;
  }

  .auth-modern-close {
    top: 7px;
    right: 8px;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 20px;
  }
}
/* LOADER — TELEFON YATAY İÇERİK SIĞDIRMA */
@media screen and (orientation: landscape) and (max-height: 520px) {

  .mk-loader-panel {
    width: 94vw !important;
    max-width: 760px !important;
    min-height: 170px !important;

    grid-template-columns:
      105px
      minmax(0, 1fr)
      105px !important;

    gap: 5px !important;
    padding: 10px 12px !important;
  }

  .mk-loader-brand,
  .mk-loader-center,
  .mk-loader-cards {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .mk-loader-logo {
    font-size: 22px !important;
    letter-spacing: -1px !important;
  }

  .mk-loader-subtitle {
    margin-top: 5px !important;
    font-size: 7px !important;
    letter-spacing: 1.5px !important;
    white-space: nowrap;
  }

  .mk-okey-row {
    width: 100% !important;
    height: 70px !important;
    gap: 4px !important;
  }

  .mk-okey-tile {
    width: 39px !important;
    height: 58px !important;
    border-radius: 7px !important;
    border-bottom-width: 4px !important;
  }

  .mk-okey-number {
    font-size: 21px !important;
  }

  .mk-okey-symbol {
    margin-top: 2px !important;
    font-size: 9px !important;
  }

  .mk-loader-text {
    margin-top: 5px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .mk-loader-cards {
    width: 105px !important;
    height: 78px !important;
    position: relative !important;
    overflow: visible !important;
  }

  .mk-card {
    width: 44px !important;
    height: 66px !important;
    padding: 5px !important;
    border-radius: 7px !important;
  }

  .mk-card:nth-child(1) {
    transform:
      translateX(-21px)
      rotate(-9deg) !important;
  }

  .mk-card:nth-child(2) {
    transform:
      translateX(0)
      rotate(0deg) !important;
  }

  .mk-card:nth-child(3) {
    transform:
      translateX(21px)
      rotate(9deg) !important;
  }

  .mk-card-top {
    font-size: 14px !important;
  }

  .mk-card-suit {
    margin-top: 1px !important;
    font-size: 13px !important;
  }

  .mk-card-center {
    font-size: 23px !important;
  }
}

/* =========================================================
   MASAKEYFİ ANA SAYFA — TEK VE TEMİZ PORTAL TEMA BLOĞU
   ========================================================= */

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);

  background-image: url('../../images/arkaplan.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior-y: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 25, 52, 0.08);
}

/* ORTAK ÜST ALAN */
#user-dashboard-bar {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  z-index: 1000;

  min-height: 74px;
  padding: 4px 14px;

  display: grid;
  grid-template-columns: minmax(315px, 1fr) 150px minmax(340px, 1fr);
  align-items: start;
  gap: 10px;

  background: transparent;
  border: 0;
  box-shadow: none;
}

/* OYUNCU KARTI */
.mk-player-panel {
  position: relative;
  width: 340px;
  min-height: 74px;

  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 7px;

  padding: 4px 5px 4px 4px;

  border: 1px solid rgba(255, 215, 95, 0.42);
  border-radius: 42px 14px 14px 42px;

  background:
    linear-gradient(
      180deg,
      rgba(8, 72, 122, 0.58),
      rgba(3, 36, 70, 0.66)
    );

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ALTIN METALİK AVATAR ÇERÇEVESİ */
#header-avatar-wrap {
  position: relative;

  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4px;
  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      #6f4000,
      #d9900b,
      #fff0a0,
      #b86600,
      #ffd45e,
      #7c4700,
      #f5c64f,
      #6f4000
    );

  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.38),
    0 0 8px rgba(255, 202, 59, 0.38),
    inset 0 2px 2px rgba(255, 255, 255, 0.85),
    inset 0 -3px 4px rgba(74, 35, 0, 0.74);

  cursor: pointer;
}

#header-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 3px;

  border: 2px solid rgba(93, 48, 0, 0.82);
  border-radius: 50%;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(255, 224, 114, 0.38);

  pointer-events: none;
}

#header-avatar {
  width: 58px;
  height: 58px;

  display: block;
  object-fit: cover;

  border: 2px solid #082e50;
  outline: 0;
  border-radius: 50%;

  background: #d8e6ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.mk-online-dot {
  position: absolute;
  right: -1px;
  bottom: 4px;

  width: 16px;
  height: 16px;

  border: 2px solid #ffe884;
  border-radius: 50%;

  background: #4bd317;
  box-shadow: 0 0 7px rgba(73, 255, 30, 0.88);
}

/* KULLANICI BİLGİLERİ */
.header-user-info {
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

#header-username {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.42);
}

.mk-level-line {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #fff4bd;
  font-size: 11px;
  font-weight: 900;
}

.mk-level-star {
  font-size: 16px;
  line-height: 1;
}

#user-level-badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
}

/* TEK XP BLOĞU: KOYU MAVİ, KALIN, ALTIN METALİK ÇERÇEVE */
.xp-bar-wrap {
  display: block;
  width: 100%;
  margin-top: 4px;
}

#xp-progress-bar-wrap {
  position: relative;

  width: 100%;
  height: 19px;

  overflow: hidden;

  border: 3px solid transparent;
  border-radius: 12px;

  background:
    linear-gradient(#031d35, #031d35) padding-box,
    linear-gradient(
      180deg,
      #fff1a8 0%,
      #dcae26 24%,
      #784300 54%,
      #eec444 80%,
      #fff0a0 100%
    ) border-box;

  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.64),
    0 2px 5px rgba(0, 0, 0, 0.38),
    0 0 7px rgba(239, 190, 43, 0.30);
}

#xp-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;

  height: 100%;
  border-radius: 8px 0 0 8px;

  background:
    linear-gradient(
      180deg,
      #1699d7 0%,
      #076caf 48%,
      #034877 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -2px 4px rgba(0, 29, 64, 0.58),
    0 0 7px rgba(10, 126, 194, 0.62);
}

#header-xp-text {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  color: #fff;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.96),
    0 0 3px rgba(0, 0, 0, 0.76);

  pointer-events: none;
}

/* VIP ROZETİ */
.mk-vip-badge {
  position: relative;

  width: 54px;
  height: 54px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;

  margin-right: 3px;

  border: 2px solid #d9b347;
  border-radius: 11px;

  background:
    radial-gradient(circle at 50% 24%, rgba(91, 195, 255, 0.40), transparent 38%),
    linear-gradient(160deg, #0a75bb, #073769 76%);

  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mk-vip-badge::before {
  content: '';
  position: absolute;
  inset: -4px;

  border: 1px solid rgba(238, 201, 82, 0.70);
  border-radius: 15px;
  pointer-events: none;
}

.mk-vip-crown {
  color: #f9df73;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

.mk-vip-text {
  margin-top: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

/* ORTA LOGO */
.header-center {
  position: relative;
  height: 64px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: visible;
  padding: 0;
}

.mk-center-logo {
  position: absolute;
  top: -30px;
  left: 50%;

  width: 190px;
  height: 135px;
  max-width: none;

  object-fit: contain;
  transform: translateX(-50%);

  filter:
    drop-shadow(0 8px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(255, 213, 77, 0.18));

  cursor: pointer;
}

/* SAĞ ÜST ALAN */
.header-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

#header-user {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
}

.mk-wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 3px;
}

.mk-wallet-item {
  position: relative;
  min-width: 102px;
  height: 39px;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 3px 5px 3px 8px;

  border: 2px solid transparent;
  border-radius: 13px;

  background:
    linear-gradient(180deg, #164f86, #082e58) padding-box,
    linear-gradient(
      180deg,
      #fff1a4 0%,
      #e1b437 24%,
      #825000 52%,
      #f1ca51 80%,
      #fff2aa 100%
    ) border-box;

  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 6px rgba(255, 206, 72, 0.24);
}

.mk-wallet-icon {
  font-size: 20px;
}

.mk-wallet-value {
  flex: 1;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 1000;
}

.mk-wallet-plus {
  width: 25px;
  height: 25px;

  border: 1px solid #ffe687;
  border-radius: 7px;

  background: linear-gradient(#84dc20, #328f08);
  color: #fff;

  font-size: 18px;
  font-weight: 1000;
  line-height: 20px;

  cursor: pointer;
}

.mk-top-action,
#notification-btn,
#header-back-btn {
  position: relative;
  min-width: 49px;
  height: 49px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 4px 6px;

  border: 2px solid transparent;
  border-radius: 12px;

  background:
    linear-gradient(180deg, #176195, #07365f) padding-box,
    linear-gradient(
      180deg,
      #fff1a4 0%,
      #e1b437 24%,
      #825000 52%,
      #f1ca51 80%,
      #fff2aa 100%
    ) border-box;

  color: #fff;

  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 6px rgba(255, 206, 72, 0.24);

  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.mk-top-action span:first-child {
  font-size: 21px;
  line-height: 1;
}

#notification-btn {
  position: relative;
  font-size: 0;
}

#notification-btn .mk-action-label {
  font-size: 9px;
}

#header-back-btn {
  min-width: 68px;
  flex-direction: row;
}

/* ANA SAYFA */
#app-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#home-portal {
  min-height: 100vh;
  padding: 94px 10px 10px;
  background: transparent;
}

.mk-games-stage {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr 1fr;
  gap: 15px;
  align-items: stretch;
  margin: 0;
}

.game-card {
  position: relative;
  min-height: 350px;
  height: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  padding: 16px 16px 14px;
  overflow: hidden;

  border: 3px solid #e5bd45;
  border-radius: 28px;

  background: rgba(0, 0, 0, 0.72);

  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 10px rgba(255, 208, 79, 0.18);

  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.game-card::before {
  display: none;
}

.game-card.featured {
  border-color: transparent;

  background: rgba(0, 0, 0, 0.62);

  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,.38),
    0 0 14px rgba(255, 213, 76, .42);
}

.game-card.coming-soon {
  opacity: 0.82;
  filter: saturate(.82);
}

.game-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.04);
}

.game-card.coming-soon:hover {
  transform: none;
  filter: none;
}

.mk-popular {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  padding: 6px 14px;

  border: 2px solid #eaff98;
  border-radius: 12px 5px 12px 5px;

  background: linear-gradient(180deg, #79d72e, #2f840d);
  color: #fff;

  font-size: 11px;
  font-weight: 1000;

  transform: rotate(-4deg);

  box-shadow:
    0 4px 8px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.game-logo-img {
  position: relative;
  z-index: 2;

  width: 84%;
  height: 215px;
  object-fit: contain;

  filter: drop-shadow(0 10px 8px rgba(0,0,0,.35));
}

.game-card.featured .game-logo-img {
  width: 88%;
  height: 235px;
}

.game-card.coming-soon .game-logo-img {
  filter:
    grayscale(0.28)
    drop-shadow(0 9px 7px rgba(0, 0, 0, 0.40));
}

.mk-game-meta {
  position: relative;
  z-index: 2;

  margin-top: -4px;

  color: #eefaff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;

  text-shadow: 0 2px 3px rgba(0,0,0,.45);
}

.play-btn {
  position: relative;
  z-index: 2;

  width: min(290px, 88%);
  margin-top: 10px;
  padding: 11px 18px;

  border: 3px solid transparent;
  border-radius: 20px;

  background:
    linear-gradient(180deg, #89e420 0%, #4eb308 52%, #2c8503 100%) padding-box,
    linear-gradient(
      180deg,
      #fff4af 0%,
      #dfb137 24%,
      #7a4800 52%,
      #efc84b 80%,
      #fff1a1 100%
    ) border-box;

  color: #fff;
  font-size: 20px;
  font-weight: 1000;

  text-shadow: 0 2px 2px rgba(0,0,0,.35);

  box-shadow:
    0 6px 0 #1e6904,
    0 10px 14px rgba(0,0,0,.25),
    inset 0 2px 0 rgba(255,255,255,.42);

  cursor: pointer;
}

.play-btn:disabled {
  border: 3px solid transparent;
  border-radius: 20px;

  background:
    linear-gradient(180deg, rgba(215,225,235,.78), rgba(124,144,160,.82)) padding-box,
    linear-gradient(
      180deg,
      #f3f5f7 0%,
      #c4ccd3 35%,
      #7a8792 70%,
      #eff4f7 100%
    ) border-box;

  color: #eef4f8;
  box-shadow:
    0 5px 0 #57697a,
    0 9px 12px rgba(0,0,0,.20);
  cursor: not-allowed;
}
.game-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.04);
  transition: .18s;
}


/* MOBİL YATAY */
@media screen and (orientation: landscape) and (max-height: 620px) {
  #user-dashboard-bar {
    top: 4px;
    min-height: 58px;
    padding: 3px 8px;

    grid-template-columns: minmax(270px, 1fr) 100px minmax(250px, 1fr);
    gap: 6px;
  }

  .mk-player-panel {
  width: 300px;
  min-height: 58px;

  grid-template-columns: 52px 1fr auto;
  gap: 7px;

  padding: 3px 6px 3px 3px;
  border-radius: 36px 12px 12px 36px;
}
.mk-vip-badge {
  grid-column: 3;
  justify-self: end;
  margin: 0;
}
  #header-avatar-wrap {
    width: 52px;
    height: 52px;
    padding: 3px;
  }

  #header-avatar {
    width: 44px;
    height: 44px;
  }

  #header-username {
    font-size: 12px;
  }

  .mk-level-line {
    font-size: 9px;
  }

  .mk-level-star {
    font-size: 13px;
  }

  #xp-progress-bar-wrap {
  width: 100%;
  height: 15px;
  border-width: 2px;
}

  #header-xp-text {
    font-size: 8px;
  }

  .mk-vip-badge {
    width: 39px;
    height: 39px;
  }

  .mk-vip-crown {
    font-size: 10px;
  }

  .mk-vip-text {
    font-size: 8px;
  }

  .header-center {
    height: 50px;
  }

  .mk-center-logo {
  top: -8px;
  width: 155px;
  height: 108px;
}

  .mk-wallet {
    gap: 4px;
    margin-right: 2px;
  }

  .mk-wallet-item {
    min-width: 72px;
    height: 34px;
    padding: 3px 4px 3px 7px;
    border-radius: 11px;
  }

  .mk-wallet-icon {
    font-size: 16px;
  }

  .mk-wallet-value {
    font-size: 11px;
  }

  .mk-wallet-plus {
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 18px;
  }

  .mk-top-action,
  #notification-btn,
  #header-back-btn {
    min-width: 40px;
    height: 40px;
    padding: 2px 4px;
    border-radius: 10px;
    font-size: 8px;
  }

  .mk-top-action span:first-child {
    font-size: 18px;
  }

  #home-portal {
    min-height: auto;
    padding: 84px 10px 10px;
  }

  .games-grid {
    gap: 8px;
  }

  .game-card {
    min-height: 190px;
    padding: 7px;
    border-radius: 16px;
  }

  .game-logo-img,
  .game-card.featured .game-logo-img {
    width: 74%;
    height: 118px;
  }

  .mk-popular {
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 9px;
  }

  .mk-game-meta {
    margin-top: 0;
    font-size: 8px;
  }

  .play-btn {
    width: 90%;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 13px;
    font-size: 14px;
  }

  
  .mk-shop-btn {
  width: 44px;
  min-width: 44px;
  height: 48px;
  padding: 2px;
  border-width: 2px;
  border-radius: 21px 21px 10px 10px;
}

.mk-shop-icon {
  font-size: 20px !important;
}

.mk-shop-text {
  margin-top: 1px;
  font-size: 6px;
}
}

/* DİKEY KÜÇÜK EKRAN */
@media screen and (max-width: 760px) and (orientation: portrait) {
  #user-dashboard-bar {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .header-center {
    order: -1;
    height: 90px;
  }

  .mk-center-logo {
    top: -8px;
    width: 170px;
    height: 118px;
  }

  .mk-player-panel {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .header-right,
  #header-user {
    justify-content: center;
    flex-wrap: wrap;
  }

  #home-portal {
    padding: 14px 10px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .mk-account-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
}
.mk-bell-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
/* ÜSTTEKİ BÜYÜK ALIŞVERİŞ BUTONU */
.mk-shop-btn {
  width: 60px;
  min-width: 60px;
  height: 64px;

  padding: 5px 4px;

  border: 3px solid transparent;
  border-radius: 35px 35px 18px 18px;

  background:
    linear-gradient(
      180deg,
      #249b22 0%,
      #147314 48%,
      #075008 100%
    ) padding-box,
    linear-gradient(
      180deg,
      #fff3a8 0%,
      #e2af2d 25%,
      #754000 52%,
      #f0c64a 79%,
      #fff0a0 100%
    ) border-box;

  box-shadow:
    0 7px 12px rgba(0, 0, 0, 0.38),
    inset 0 2px 0 rgba(255, 255, 255, 0.30),
    inset 0 -4px 6px rgba(0, 48, 0, 0.55),
    0 0 8px rgba(255, 207, 67, 0.34);

  color: #fff;
}

.mk-shop-icon {
  display: block;

  font-size: 35px !important;
  line-height: 1;

  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.48));
}

.mk-shop-text {
  margin-top: 3px;

  color: #fff7bf;

  font-size: 10px;
  font-weight: 1000;
  line-height: 1;

  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.75);
}
@media screen and (orientation: landscape) and (max-height: 620px) {
  #home-games-stage #shared-account-menu {
    transform: translateY(28px);
  }

@media screen and (orientation: landscape) and (max-height: 620px) {
  #lobby-page:has(#lobby-masalar-ekrani[style*="display: block"])
  #lobby-account-area {
    margin-top: 50px;
  }
}

}
/* ═══════════════════════════════════════
   YENİ BAĞIMSIZ PROFİL PENCERESİ
   ═══════════════════════════════════════ */

#new-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: rgba(0,0,0,.91);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.new-profile-box {
  position: relative;

  width: min(950px, 97vw);
  height: min(490px, 94vh);

  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 23px;

  background:
    radial-gradient(
      circle at top left,
      rgba(36,117,168,.34),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 25px 70px rgba(0,0,0,.80),
    0 0 30px rgba(232,200,74,.18),
    inset 0 1px 0 rgba(255,255,255,.12);

  animation: modalPopP .22s ease-out;
}

.new-profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;

  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 2px solid #ff9a9a;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #f25959,
      #991313
    );

  color: #fff;

  font-family: inherit;
  font-size: 22px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 7px 15px rgba(0,0,0,.42),
    0 0 13px rgba(255,55,55,.26),
    inset 0 1px 0 rgba(255,255,255,.30);
}

.new-profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 25px 22px;

  background:
    linear-gradient(
      180deg,
      rgba(25,88,126,.64),
      rgba(4,26,43,.78)
    );

  border-right: 1px solid rgba(255,255,255,.12);
}

.new-profile-avatar-wrap {
  position: relative;
  overflow: visible;

  width: 150px;
  height: 150px;

  padding: 5px;

  border: 4px solid #e8c84a;
  border-radius: 50%;

  background: #175478;

  box-shadow:
    0 12px 25px rgba(0,0,0,.55),
    0 0 22px rgba(232,200,74,.28),
    inset 0 1px 0 rgba(255,255,255,.32);
}

#new-profile-avatar {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  border-radius: 50%;
}

.new-profile-name {
  width: 100%;

  margin-top: 14px;

  overflow: hidden;

  color: #f7d750;

  font-size: 27px;
  font-weight: 1000;
  line-height: 1.1;
  text-align: center;

  white-space: nowrap;
  text-overflow: ellipsis;

  text-shadow:
    0 3px 6px rgba(0,0,0,.68);
}

.new-profile-role {
  margin-top: 8px;
  padding: 5px 14px;

  border: 2px solid #78cbff;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #287fc4,
      #103e6b
    );

  color: #fff;

  font-size: 12px;
  font-weight: 1000;

  box-shadow:
    0 5px 10px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.new-profile-level {
  margin-top: 12px;

  color: #fff;

  font-size: 18px;
  font-weight: 1000;
}

.new-profile-title-text {
  margin-top: 3px;

  color: rgba(255,255,255,.62);

  font-size: 14px;
  font-weight: 800;
}

.new-profile-avatar-btn {
  width: 100%;

  margin-top: 18px;
  padding: 11px 12px;

  border: 2px solid #71caff;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #2b84ca,
      #124775
    );

  color: #fff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.new-profile-right {
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding: 23px 25px;

  overflow-y: auto;
}

.new-profile-heading {
  padding-right: 55px;

  color: #f5d452;

  font-size: 24px;
  font-weight: 1000;

  text-shadow:
    0 2px 5px rgba(0,0,0,.62);
}

.new-profile-xp-area {
  margin-top: 19px;
  padding: 16px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(2,24,40,.68),
      rgba(13,57,84,.54)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 7px 15px rgba(0,0,0,.20);
}

.new-profile-xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  color: rgba(255,255,255,.75);

  font-size: 13px;
  font-weight: 900;
}

#new-profile-xp-total {
  color: #fff;
  font-size: 15px;
}

#new-profile-xp-next {
  text-align: right;
}

.new-profile-xp-track {
  height: 17px;

  margin-top: 10px;

  overflow: hidden;

  border: 2px solid rgba(255,255,255,.11);
  border-radius: 10px;

  background: rgba(0,0,0,.46);

  box-shadow:
    inset 0 3px 6px rgba(0,0,0,.44);
}

#new-profile-xp-bar {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      180deg,
      #ffcf30,
      #f08a0c
    );

  box-shadow:
    0 0 12px rgba(255,174,24,.40),
    inset 0 1px 0 rgba(255,255,255,.38);

  transition: width .3s ease;
}

.new-profile-xp-text {
  margin-top: 7px;

  color: #ffdc67;

  font-size: 13px;
  font-weight: 1000;
  text-align: center;
}

.new-profile-stat-grid {
  flex: 1;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 16px;
}

.new-profile-stat {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 14px 9px;

  border: 2px solid rgba(255,255,255,.12);
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(35,91,126,.92),
      rgba(7,35,56,.96)
    );

  box-shadow:
    0 8px 15px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.new-profile-stat.score,
.new-profile-stat.diamond {
  grid-column: span 3;
}

.new-profile-stat.games,
.new-profile-stat.wins,
.new-profile-stat.rate {
  grid-column: span 2;
}

.new-profile-stat.score {
  border-color: rgba(232,200,74,.50);
}

.new-profile-stat.diamond {
  border-color: rgba(91,194,255,.56);
}

.new-profile-stat-icon {
  font-size: 28px;
}

.new-profile-stat strong {
  max-width: 100%;

  margin-top: 6px;

  overflow: hidden;

  color: #fff;

  font-size: 26px;
  font-weight: 1000;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.new-profile-stat.score strong {
  color: #ffe36b;
}

.new-profile-stat.diamond strong {
  color: #6bc9ff;
}

.new-profile-stat-label {
  margin-top: 5px;

  color: rgba(255,255,255,.60);

  font-size: 11px;
  font-weight: 1000;
  text-align: center;
}

/* Mobil yatay */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-profile-modal {
    padding: 4px;
  }

  .new-profile-box {
    width: 98.5vw;
    height: 97vh;

    grid-template-columns: 215px minmax(0, 1fr);

    border-radius: 16px;
  }

  .new-profile-close {
    top: 7px;
    right: 7px;

    width: 35px;
    height: 35px;

    border-radius: 9px;

    font-size: 18px;
  }

  .new-profile-left {
    padding: 10px 14px;
  }

  .new-profile-avatar-wrap {
    width: 105px;
    height: 105px;

    border-width: 3px;
  }

  .new-profile-name {
    margin-top: 7px;

    font-size: 21px;
  }

  .new-profile-role {
    margin-top: 4px;
    padding: 3px 10px;

    font-size: 9px;
  }

  .new-profile-level {
    margin-top: 6px;

    font-size: 14px;
  }

  .new-profile-title-text {
    font-size: 11px;
  }

  .new-profile-avatar-btn {
    margin-top: 8px;
    padding: 7px 8px;

    font-size: 10px;
  }

  .new-profile-right {
    padding: 11px 13px;
  }

  .new-profile-heading {
    font-size: 18px;
  }

  .new-profile-xp-area {
    margin-top: 8px;
    padding: 9px 11px;
  }

  .new-profile-xp-head {
    font-size: 10px;
  }

  #new-profile-xp-total {
    font-size: 11px;
  }

  .new-profile-xp-track {
    height: 11px;
    margin-top: 6px;
  }

  .new-profile-xp-text {
    margin-top: 3px;

    font-size: 10px;
  }

  .new-profile-stat-grid {
    gap: 7px;
    margin-top: 8px;
  }

  .new-profile-stat {
    padding: 6px 5px;

    border-radius: 10px;
  }

  .new-profile-stat-icon {
    font-size: 19px;
  }

  .new-profile-stat strong {
    margin-top: 2px;

    font-size: 18px;
  }

  .new-profile-stat-label {
    margin-top: 2px;

    font-size: 8px;
  }
}
/* ═══════════════════════════════════════
   YENİ BAĞIMSIZ MAĞAZA PENCERESİ
   ═══════════════════════════════════════ */

#new-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: rgba(0,0,0,.91);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.new-shop-box {
  position: relative;

  width: min(1000px, 97vw);
  height: min(570px, 94vh);
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 23px;

  background:
    radial-gradient(
      circle at top left,
      rgba(43,91,184,.30),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 25px 70px rgba(0,0,0,.80),
    0 0 30px rgba(232,200,74,.18),
    inset 0 1px 0 rgba(255,255,255,.12);

  animation: modalPopP .22s ease-out;
}

.new-shop-close {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 20;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 2px solid #ff9a9a;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #f25959,
      #991313
    );

  color: #fff;

  font-family: inherit;
  font-size: 18px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 7px 15px rgba(0,0,0,.42),
    0 0 13px rgba(255,55,55,.26),
    inset 0 1px 0 rgba(255,255,255,.30);
}

.new-shop-head {
  position: relative;

  display: grid;
  grid-template-columns: 120px 1fr 135px;
  align-items: center;
  gap: 6px;

  height: 34px;
  min-height: 34px;

  padding: 0 48px 0 14px;

  border-bottom: 1px solid rgba(120,210,255,.18);

  background:
    linear-gradient(
      180deg,
      rgba(34,81,145,.96),
      rgba(13,53,102,.96)
    );

  overflow: visible;
}

.new-shop-title {
  color: #f5d452;

  font-size: 25px;
  font-weight: 1000;

  text-shadow:
    0 2px 5px rgba(0,0,0,.62);
}

.new-shop-balance {
  min-width: 190px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;

  padding: 8px 13px;

  border: 1px solid rgba(105,194,255,.42);
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(17,65,112,.94),
      rgba(6,34,63,.96)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 13px rgba(0,0,0,.24);
}

.new-shop-balance > span {
  color: rgba(255,255,255,.52);

  font-size: 10px;
  font-weight: 900;
}

.new-shop-balance strong {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #73d2ff;
  font-size: 10px;
  font-weight: 1000;
}

.shop-balance-diamond {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.new-shop-content {
  flex: 1;
  min-height: 0;

  padding: 12px 14px 18px;

  overflow-y: auto;

  background:
    radial-gradient(
      circle at center,
      rgba(39,92,170,.10),
      transparent 62%
    ),
    rgba(0,0,0,.12);
}

.new-shop-empty {
  width: 100%;
  height: 100%;
  min-height: 260px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 2px dashed rgba(113,202,255,.26);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(32,76,116,.30),
      rgba(4,28,47,.32)
    );

  text-align: center;
}

.new-shop-empty-icon {
  font-size: 58px;

  filter:
    drop-shadow(0 7px 8px rgba(0,0,0,.38));
}

.new-shop-empty-title {
  margin-top: 13px;

  color: #f5d452;

  font-size: 22px;
  font-weight: 1000;
}

.new-shop-empty-text {
  margin-top: 6px;

  color: rgba(255,255,255,.50);

  font-size: 13px;
  font-weight: 800;
}

/* Mobil yatay */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-shop-modal {
    padding: 4px;
  }

  .new-shop-box {
    width: 98.5vw;
    height: 97vh;

    border-radius: 16px;
  }

  .new-shop-close {
    top: 7px;
    right: 7px;

    width: 35px;
    height: 35px;

    border-radius: 9px;

    font-size: 18px;
  }

  .new-shop-head {
    min-height: 61px;

    padding:
      8px
      53px
      8px
      13px;
  }

  .new-shop-title {
    font-size: 18px;
  }

  .new-shop-balance {
    min-width: 145px;

    padding: 5px 9px;

    border-radius: 9px;
  }

  .new-shop-balance > span {
    font-size: 8px;
  }

  .new-shop-balance strong {
    font-size: 15px;
  }

  .new-shop-content {
    padding: 10px;
  }

  .new-shop-empty {
    min-height: 150px;

    border-radius: 12px;
  }

  .new-shop-empty-icon {
    font-size: 38px;
  }

  .new-shop-empty-title {
    margin-top: 7px;

    font-size: 16px;
  }

  .new-shop-empty-text {
    margin-top: 3px;

    font-size: 10px;
  }
}
/* YENİ ARKADAŞLAR PENCERESİ */

#new-friends-modal {
  position: fixed;
  inset: 0;
  z-index: 5300;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.new-friends-box {
  position: relative;

  width: min(500px, 82vw);
  height: min(420px, 82vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(31,132,100,.25),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    0 0 27px rgba(232,200,74,.17),
    inset 0 1px 0 rgba(255,255,255,.11);
}

.new-friends-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;

  width: 39px;
  height: 39px;

  border: 2px solid #ff9999;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #ef5252,
      #991414
    );

  color: #fff;

  font-family: inherit;
  font-size: 20px;
  font-weight: 1000;

  cursor: pointer;
}

.new-friends-head {
  flex-shrink: 0;

  padding: 14px 60px 12px 16px;

  border-bottom: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      180deg,
      rgba(24,91,87,.96),
      rgba(8,48,59,.97)
    );
}

.new-friends-title {
  color: #f5d452;

  font-size: 20px;
  font-weight: 1000;
}

.new-friends-tabs {
  display: flex;
  gap: 8px;

  margin-top: 10px;
}

.new-friends-tab {
  flex: 1;

  padding: 9px 12px;

  border: 2px solid rgba(255,255,255,.14);
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      rgba(34,88,110,.95),
      rgba(8,42,62,.95)
    );

  color: rgba(255,255,255,.72);

  font-family: inherit;
  font-size: 12px;
  font-weight: 1000;

  cursor: pointer;
}

.new-friends-tab.active {
  border-color: #74dfad;

  background:
    linear-gradient(
      180deg,
      #2aae70,
      #11603d
    );

  color: #fff;
}

#new-friends-content {
  flex: 1;
  min-height: 0;

  padding: 13px;

  overflow-y: auto;
}

/* Eski içerik alanı buraya taşındığında */
#new-friends-content > #profile-content {
  display: block;

  width: 100%;
  height: 100%;

  padding: 0;

  overflow-y: auto;
}

/* Mobil yatay */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-friends-modal {
    padding: 4px;
  }

  .new-friends-box {
  width: 70vw;
  max-width: 520px;
  height: 84vh;

  border-radius: 15px;
}

  .new-friends-close {
    top: 6px;
    right: 6px;

    width: 33px;
    height: 33px;

    font-size: 17px;
  }

  .new-friends-head {
    padding: 8px 45px 7px 10px;
  }

  .new-friends-title {
    font-size: 15px;
  }

  .new-friends-tabs {
    margin-top: 5px;
    gap: 6px;
  }

  .new-friends-tab {
    padding: 6px 9px;

    font-size: 10px;
  }

  #new-friends-content {
    padding: 8px;
  }

  #new-friends-content .friend-item {
    padding: 7px 9px;
    margin-bottom: 6px;
  }

  #new-friends-content .friend-item img {
    width: 37px;
    height: 37px;
  }
}
/* ═══════════════════════════════════════
   YENİ MESAJLAR LİSTESİ PENCERESİ
   ═══════════════════════════════════════ */

#new-messages-modal {
  position: fixed;
  inset: 0;
  z-index: 5300;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
}

.new-messages-box {
  position: relative;

  width: min(500px, 82vw);
  height: min(420px, 82vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(43,105,185,.26),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    0 0 27px rgba(232,200,74,.17),
    inset 0 1px 0 rgba(255,255,255,.11);

  pointer-events: auto;
}

.new-messages-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;

  width: 39px;
  height: 39px;

  border: 2px solid #ff9999;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #ef5252,
      #991414
    );

  color: #fff;

  font-family: inherit;
  font-size: 20px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 6px 13px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.new-messages-head {
  min-height: 66px;
  flex-shrink: 0;

  display: flex;
  align-items: center;

  padding: 12px 60px 12px 16px;

  border-bottom: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      180deg,
      rgba(37,92,153,.96),
      rgba(12,48,82,.97)
    );
}

.new-messages-title {
  color: #f5d452;

  font-size: 20px;
  font-weight: 1000;
}

#new-messages-content {
  flex: 1;
  min-height: 0;

  padding: 13px;

  overflow-y: auto;
  overflow-x: hidden;
}

#new-messages-content > #profile-content {
  display: block;

  width: 100%;
  height: 100%;

  padding: 0;

  overflow-y: auto;
  overflow-x: hidden;
}

/* Mobil yatay */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-messages-modal {
    padding: 4px;
  }

  .new-messages-box {
    width: 70vw;
    max-width: 520px;
    height: 84vh;

    border-radius: 15px;
  }

  .new-messages-close {
    top: 6px;
    right: 6px;

    width: 33px;
    height: 33px;

    font-size: 17px;
  }

  .new-messages-head {
    min-height: 48px;

    padding: 7px 45px 7px 11px;
  }

  .new-messages-title {
    font-size: 15px;
  }

  #new-messages-content {
    padding: 8px;
  }

  #new-messages-content .friend-item {
    padding: 7px 9px;
    margin-bottom: 6px;
  }

  #new-messages-content .friend-item img {
    width: 37px;
    height: 37px;
  }
}

/* ═══════════════════════════════════════
   YENİ HEDİYELER PENCERESİ
   ═══════════════════════════════════════ */

#new-gifts-modal {
  position: fixed;
  inset: 0;
  z-index: 5300;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
}

.new-gifts-box {
  position: relative;

  width: min(560px, 84vw);
  height: min(440px, 84vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(170,80,180,.25),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    0 0 27px rgba(232,200,74,.17),
    inset 0 1px 0 rgba(255,255,255,.11);

  pointer-events: auto;
}

.new-gifts-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;

  width: 39px;
  height: 39px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 2px solid #ff9999;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #ef5252,
      #991414
    );

  color: #fff;

  font-family: inherit;
  font-size: 20px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 6px 13px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.new-gifts-head {
  flex-shrink: 0;

  padding: 13px 58px 11px 15px;

  border-bottom: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      180deg,
      rgba(111,48,126,.96),
      rgba(55,23,74,.97)
    );
}

.new-gifts-title {
  color: #f5d452;

  font-size: 20px;
  font-weight: 1000;
}

.new-gifts-tabs {
  display: flex;
  gap: 8px;

  margin-top: 9px;
}

.new-gifts-tab {
  flex: 1;
  min-width: 0;

  padding: 9px 8px;

  border: 2px solid rgba(255,255,255,.14);
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      rgba(76,54,104,.95),
      rgba(39,25,66,.95)
    );

  color: rgba(255,255,255,.72);

  font-family: inherit;
  font-size: 11px;
  font-weight: 1000;
  text-align: center;

  cursor: pointer;
}

.new-gifts-tab.active {
  border-color: #e4a2ff;

  background:
    linear-gradient(
      180deg,
      #a24fc0,
      #64237e
    );

  color: #fff;

  box-shadow:
    0 0 13px rgba(204,105,245,.22),
    inset 0 1px 0 rgba(255,255,255,.22);
}

#new-gifts-content {
  flex: 1;
  min-height: 0;

  padding: 13px;

  overflow-y: auto;
  overflow-x: hidden;
}

#new-gifts-loading,
.new-gifts-empty {
  height: 100%;
  min-height: 180px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255,255,255,.52);

  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* Hediye koleksiyonu */

.new-gift-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.new-gift-collection-item {
  position: relative;

  min-width: 0;
  min-height: 145px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 15px 10px;

  border: 2px solid rgba(225,163,255,.24);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(95,49,116,.74),
      rgba(31,24,57,.92)
    );

  box-shadow:
    0 7px 14px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.09);
}

.new-gift-collection-emoji {
  font-size: 58px;

  filter:
    drop-shadow(0 5px 5px rgba(0,0,0,.38));
}

.new-gift-collection-name {
  width: 100%;

  margin-top: 10px;

  overflow: hidden;

  color: #fff;

  font-size: 15px;
  font-weight: 900;
  text-align: center;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.new-gift-collection-count {
  position: absolute;
  top: 6px;
  right: 6px;

  min-width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border: 1px solid #ffe783;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #f2cd4f,
      #a97108
    );

  color: #211200;

  font-size: 12px;
  font-weight: 1000;

  box-shadow:
    0 4px 8px rgba(0,0,0,.28);
}

/* Hediye gönderenler */

.new-gift-sender-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new-gift-sender-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  padding: 9px 11px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(42,77,105,.78),
      rgba(8,36,57,.92)
    );

  box-shadow:
    0 5px 11px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.new-gift-sender-avatar {
  width: 46px;
  height: 46px;

  object-fit: cover;

  border: 2px solid #e8c84a;
  border-radius: 50%;

  background: #174f75;
}

.new-gift-sender-info {
  min-width: 0;
}

.new-gift-sender-name {
  overflow: hidden;

  color: #f4d354;

  font-size: 13px;
  font-weight: 1000;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.new-gift-sender-gift {
  margin-top: 3px;

  overflow: hidden;

  color: rgba(255,255,255,.75);

  font-size: 11px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.new-gift-sender-date {
  color: rgba(255,255,255,.42);

  font-size: 9px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

/* Mobil yatay */

@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-gifts-modal {
    padding: 4px;
  }

  .new-gifts-box {
    width: 72vw;
    max-width: 560px;
    height: 86vh;

    border-radius: 15px;
  }

  .new-gifts-close {
    top: 6px;
    right: 6px;

    width: 33px;
    height: 33px;

    font-size: 17px;
  }

  .new-gifts-head {
    padding: 7px 44px 7px 10px;
  }

  .new-gifts-title {
    font-size: 15px;
  }

  .new-gifts-tabs {
    gap: 6px;
    margin-top: 5px;
  }

  .new-gifts-tab {
    padding: 6px 5px;

    font-size: 9px;
  }

  #new-gifts-content {
    padding: 8px;
  }

  .new-gift-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .new-gift-collection-item {
    min-height: 105px;
    padding: 8px 5px;
  }

  .new-gift-collection-emoji {
    font-size: 38px;
  }

  .new-gift-collection-name {
    margin-top: 3px;

    font-size: 10px;
  }

  .new-gift-collection-count {
    top: 4px;
    right: 4px;

    min-width: 23px;
    height: 23px;

    font-size: 9px;
  }

  .new-gift-sender-item {
    grid-template-columns: 37px minmax(0, 1fr) auto;

    gap: 7px;

    padding: 6px 8px;
  }

  .new-gift-sender-avatar {
    width: 37px;
    height: 37px;
  }

  .new-gift-sender-name {
    font-size: 11px;
  }

  .new-gift-sender-gift {
    font-size: 9px;
  }

  .new-gift-sender-date {
    font-size: 7px;
  }
}

/* ═══════════════════════════════════════
   YENİ KÜÇÜK AYARLAR PENCERESİ
   ═══════════════════════════════════════ */

#new-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 5300;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 10px;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
}

.new-settings-box {
  position: relative;

  width: min(500px, 82vw);
  height: min(450px, 86vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(210,145,35,.22),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #0b3451,
      #061b2d
    );

  box-shadow:
    0 24px 65px rgba(0,0,0,.78),
    0 0 27px rgba(232,200,74,.17),
    inset 0 1px 0 rgba(255,255,255,.11);

  pointer-events: auto;
}

.new-settings-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;

  width: 39px;
  height: 39px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 2px solid #ff9999;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #ef5252,
      #991414
    );

  color: #fff;

  font-family: inherit;
  font-size: 20px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 6px 13px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.new-settings-head {
  min-height: 65px;
  flex-shrink: 0;

  display: flex;
  align-items: center;

  padding: 12px 58px 12px 16px;

  border-bottom: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(
      180deg,
      rgba(123,84,18,.96),
      rgba(67,42,8,.97)
    );
}

.new-settings-title {
  color: #ffe374;

  font-size: 20px;
  font-weight: 1000;
}

#new-settings-content {
  flex: 1;
  min-height: 0;

  padding: 13px;

  overflow-y: auto;
  overflow-x: hidden;
}

.new-suggestions-btn {
  width: 100%;
  min-height: 68px;

  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 11px;
  padding: 10px 13px;

  border: 2px solid #e8c84a;
  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      #aa7919,
      #684208
    );

  color: #fff;

  font-family: inherit;
  text-align: left;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.new-suggestions-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: rgba(0,0,0,.22);

  font-size: 24px;
}

.new-suggestions-info {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-suggestions-info strong {
  color: #fff2a4;

  font-size: 14px;
  font-weight: 1000;
}

.new-suggestions-info small {
  color: rgba(255,255,255,.62);

  font-size: 10px;
  font-weight: 800;
}

.new-suggestions-arrow {
  color: #ffe374;

  font-size: 28px;
  font-weight: 1000;
}

#new-settings-old-content {
  width: 100%;
}

#new-settings-old-content > #profile-content {
  display: block;

  width: 100%;
  height: auto;

  padding: 0;

  overflow: visible;
}

/*
 * Eski Ayarlar içeriği yeni küçük pencereye
 * geldiğinde dış kutusunu sadeleştir.
 */
#new-settings-old-content .profile-settings-box {
  min-height: 0;

  gap: 10px;

  padding: 0;

  border: none;
  border-radius: 0;

  background: transparent;
}

#new-settings-old-content .profile-settings-head {
  display: none;
}

#new-settings-old-content .profile-settings-actions {
  gap: 9px;
}

#new-settings-old-content .profile-setting-btn {
  min-height: 58px;

  padding: 9px 11px;

  border-radius: 12px;
}

#new-settings-old-content .profile-setting-btn-icon {
  width: 38px;
  height: 38px;
}

/* Mobil yatay */

@media screen and (orientation: landscape) and (max-height: 520px) {
  #new-settings-modal {
    padding: 4px;
  }

  .new-settings-box {
    width: 70vw;
    max-width: 520px;
    height: 86vh;

    border-radius: 15px;
  }

  .new-settings-close {
    top: 6px;
    right: 6px;

    width: 33px;
    height: 33px;

    font-size: 17px;
  }

  .new-settings-head {
    min-height: 48px;

    padding: 7px 44px 7px 11px;
  }

  .new-settings-title {
    font-size: 15px;
  }

  #new-settings-content {
    padding: 8px;
  }

  .new-suggestions-btn {
    min-height: 51px;

    margin-bottom: 7px;
    padding: 6px 8px;
  }

  .new-suggestions-icon {
    width: 35px;
    height: 35px;

    font-size: 19px;
  }

  .new-suggestions-info strong {
    font-size: 11px;
  }

  .new-suggestions-info small {
    font-size: 8px;
  }

  .new-suggestions-arrow {
    font-size: 22px;
  }

  #new-settings-old-content .profile-setting-btn {
    min-height: 48px;

    padding: 6px 8px;
  }

  #new-settings-old-content .profile-setting-btn-icon {
    width: 34px;
    height: 34px;
  }
}
#new-messages-content {
  overflow: hidden !important;
  touch-action: none;
}

#new-messages-content > #profile-content {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
}

#pm-pane-messages.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#msg-thread {
  overflow-y: auto !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#avatar-picker-modal {
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  #avatar-picker-modal {
    align-items: center;
    padding: 8px;
  }

  .av-picker-box {
    max-height: calc(100dvh - 16px) !important;
    margin: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


.shop-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 13px;
}

.shop-package-card {
  position: relative;

  min-height: 185px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  padding: 12px 10px 10px;
  margin-top: 6px;

  overflow: hidden;

  border: 2px solid #2ca8e8;
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(80,210,255,.24),
      transparent 42%
    ),
    linear-gradient(
      160deg,
      rgba(16,70,107,.96),
      rgba(4,28,48,.98)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 0 22px rgba(0,180,255,.08),
    0 11px 22px rgba(0,0,0,.42),
    0 0 13px rgba(40,170,255,.20);
}

.shop-package-card::before {
  content: "";

  position: absolute;
  inset: -60px;

  background:
    linear-gradient(
      120deg,
      transparent 35%,
      rgba(255,255,255,.13) 48%,
      transparent 61%
    );

  transform: translateX(-65%);
  animation: shopCardShine 3.2s infinite;
  pointer-events: none;
}

.shop-package-popular,
.shop-package-best {
  border-color: #e8c84a;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 11px 24px rgba(0,0,0,.44),
    0 0 17px rgba(232,200,74,.34);
}

.shop-package-label {
  position: absolute;
  top: 9px;
  left: 50%;

  transform: translateX(-50%);

  padding: 4px 12px;

  border: 1px solid #ffe783;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #f4d354,
      #a86e08
    );

  color: #241500;

  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;

  box-shadow:
    0 5px 10px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.shop-diamond {
  position: relative;

  margin-bottom: 18px;

  color: #93ecff;

  font-family: Arial Black, sans-serif;
  line-height: 1;

  transform: rotate(45deg);

  text-shadow:
    -3px -3px 0 #d7faff,
    3px 3px 0 #067eb9,
    0 0 15px #22c8ff,
    0 0 32px rgba(20,190,255,.8);

  filter:
    drop-shadow(0 12px 10px rgba(0,0,0,.52));
}

.shop-diamond-small {
  font-size: 78px;
}

.shop-diamond-medium {
  font-size: 93px;
}

.shop-diamond-group {
  position: relative;

  width: 125px;
  height: 100px;

  margin-bottom: 12px;
}


.shop-diamond-group-large span:nth-child(4) {
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%) rotate(45deg);
}

.shop-package-amount {
  position: relative;
  z-index: 2;

  color: #fff;

  font-size: 17px;
  font-weight: 1000;

  text-shadow:
    0 3px 5px rgba(0,0,0,.75);
}

.shop-package-price {
  position: relative;
  z-index: 2;

  margin-top: 4px;

  color: #f6d45a;

  font-size: 14px;
  font-weight: 1000;
}

.shop-package-card button,
.shop-vip-buy button {
  position: relative;
  z-index: 2;

  width: 100%;
  margin-top: 5px;
  padding: 7px 6px;

  border: 2px solid #8fff8f;
  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #62d947,
      #238d28 58%,
      #12631c
    );

  color: #fff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 1000;

  cursor: pointer;

  text-shadow:
    0 2px 3px rgba(0,0,0,.55);

  box-shadow:
    0 5px 0 #0c4d17,
    0 8px 13px rgba(0,0,0,.33),
    inset 0 1px 0 rgba(255,255,255,.38);
}

.shop-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 13px;
  align-items: end;

  margin-top: 10px;
}

.shop-vip-card,
.shop-badge-card {
  min-height: 108px;

  border: 2px solid #e8c84a;
  border-radius: 17px;

  background:
    radial-gradient(
      circle at 16% 50%,
      rgba(232,200,74,.17),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(31,68,93,.97),
      rgba(6,29,48,.98)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 20px rgba(0,0,0,.38),
    0 0 14px rgba(232,200,74,.20);
}

.shop-vip-card {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 108px;
  grid-template-columns: 88px 1fr 135px;
  padding: 7px 10px;
}

.shop-vip-title {
  color: #ffe07b;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;

  text-shadow:
    0 2px 3px rgba(0,0,0,.65);
}

.shop-vip-benefits {
  display: flex;
  flex-direction: column;
  gap: 1px;

  margin-top: 5px;

  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.08;

  text-shadow:
    0 1px 2px rgba(0,0,0,.75);
}
.shop-vip-buy {
  text-align: center;
}

.shop-vip-price {
  color: #fff;
  font-size: 20px;
  font-weight: 1000;

  text-shadow:
    0 2px 4px rgba(0,0,0,.55);
}

.shop-badge-card {
  display: grid;
  align-items: center;
  gap: 13px;
  min-height: 122px;
grid-template-columns: 140px 1fr 24px;
padding: 12px 16px;

  color: #fff;
  text-align: left;

  font-family: inherit;
  cursor: pointer;
}


@keyframes shopCardShine {
  0%,
  45% {
    transform: translateX(-65%);
  }

  75%,
  100% {
    transform: translateX(75%);
  }
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .shop-welcome {
    margin-bottom: 8px;
    padding: 6px 10px;
  }

  .shop-welcome-avatar {
    width: 38px;
    height: 38px;
  }

  .shop-welcome-name {
    font-size: 14px;
  }

  .shop-package-grid {
    gap: 7px;
  }

  .shop-package-card {
    min-height: 162px;
    padding: 7px 7px 6px;
    border-radius: 12px;
  }

  .shop-diamond-small,
  .shop-diamond-medium {
    font-size: 55px;
  }

  .shop-diamond-group {
    width: 95px;
    height: 70px;
    margin-bottom: 5px;
  }

  .shop-diamond-group span {
    font-size: 43px;
  }

  .shop-package-amount {
    font-size: 12px;
  }

  .shop-package-price {
    font-size: 10px;
  }

  .shop-package-card button {
    margin-top: 6px;
    padding: 6px;
    font-size: 9px;
  }

  .shop-bottom-grid {
    margin-top: 2px;
    gap: 7px;
  }

  .shop-vip-card,
  .shop-badge-card {
    min-height: 76px;
  }

  .shop-vip-card {
  grid-template-columns: 58px minmax(0, 1fr) 95px;
  padding: 7px 8px;

  align-items: center;
  column-gap: 6px;
}

.shop-vip-info {
  text-align: left !important;
  justify-self: start !important;
  align-self: center !important;
}

.shop-vip-title {
  text-align: left !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.shop-vip-benefits {
  align-items: flex-start !important;
  text-align: left !important;
  margin-top: 3px !important;
  gap: 0 !important;
}

.shop-vip-benefits span {
  width: 100%;
  text-align: left !important;
}

.shop-vip-buy {
  text-align: center !important;
  justify-self: end !important;
}

  .shop-vip-crown {
    font-size: 43px;
  }

  .shop-vip-title {
  font-size: 14px;
}

.shop-vip-benefits {
  font-size: 10px;
}

.shop-vip-price {
  font-size: 14px;
}

.shop-vip-buy button {
  padding: 6px;
  font-size: 11px;
}
}


@keyframes shopDiamondFloat {
  0%, 100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(-6px) scale(1.06); }
}

.shop-head-user {
  display: flex;
  align-items: center;
  gap: 7px;

  height: 34px;
  overflow: visible;
}

.shop-head-avatar {
  width: 48px;
  height: 48px;

  overflow: hidden;

  margin-top: -16px;
  margin-bottom: -16px;

  border: 3px solid #e8c84a;
  border-radius: 50%;

  background: #123b59;

  box-shadow:
    0 0 12px rgba(232,200,74,.30),
    0 6px 12px rgba(0,0,0,.35);
}

.shop-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-head-user-small {
  color: rgba(255,255,255,.45);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.shop-head-user-name {
  margin: 0;

  color: #f7d85d;

  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
}

.new-shop-title {
  justify-self: center;
  align-self: center;

  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.new-shop-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  height: 26px;
  padding: 0 6px;

  border: 1px solid rgba(105,194,255,.42);
  border-radius: 6px;

  background:
    linear-gradient(
      145deg,
      rgba(17,65,112,.94),
      rgba(6,34,63,.96)
    );
}

.new-shop-balance > span {
  color: rgba(255,255,255,.62);
  font-size: 8px;
  font-weight: 900;
}

.new-shop-balance strong {
  color: #73d2ff;
  font-size: 10px;
  font-weight: 1000;
}

.shop-vip-renew {
  margin-top: 8px;

  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.shop-badge-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  position: relative;
z-index: 2;
}

.shop-badge-tags span {
  padding: 3px 6px;
  border: 1px solid rgba(135,225,255,.55);
  border-radius: 8px;
  background: rgba(19,83,120,.72);
  color: #d8f7ff;
  font-size: 7px;
  font-weight: 1000;
}

.shop-badge-tags span:last-child {
  border-color: rgba(255,125,100,.65);
  background: rgba(142,45,32,.80);
  color: #ffd0c6;
}

.shop-badge-text strong {
  display: block;
  color: #f5d65b;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.02;
}

.shop-vip-card {
  height: 126px;
  min-height: 126px;
  transform: translateY(-6px);
  grid-template-columns: 78px 1fr 125px;
  gap: 7px;
  padding: 5px 10px;

  background:
    linear-gradient(
      135deg,
      rgba(117,76,29,.98),
      rgba(67,38,13,.98)
    );

  border: 2px solid #e8c84a;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 10px 20px rgba(0,0,0,.38),
    0 0 14px rgba(232,200,74,.25);
}

.shop-vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 30%,
      rgba(255,255,255,.08) 48%,
      transparent 66%
    );
  pointer-events: none;
}

.shop-vip-crown {
  font-size: 74px;
}

.shop-badge-card {
  position: relative;
  overflow: hidden;
  border-color: #7ee8ff;

  background:
    radial-gradient(
      circle at 25% 50%,
      rgba(110,220,255,.19),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(22,71,111,.98),
      rgba(35,20,86,.98)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 16px rgba(65,205,255,.34),
    0 0 24px rgba(193,87,255,.24);
}

.shop-badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 28%,
      rgba(255,255,255,.10) 48%,
      transparent 68%
    );
  pointer-events: none;
}

.shop-vip-info {
  padding-left: 8px;
  min-width: 0;
}

.new-shop-balance {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  margin-left: -22px;

  white-space: nowrap;
}

.new-shop-balance > span {
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.new-shop-balance strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;

  color: #fff !important;
  font-size: 13px !important;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .new-shop-head {
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 42px 0 8px !important;
  }

  .shop-head-user {
    height: 22px !important;
  }

  .shop-head-avatar {
    width: 40px !important;
    height: 40px !important;
    margin-top: -9px !important;
    margin-bottom: -9px !important;
  }

  .new-shop-title {
    font-size: 13px !important;
  }

  .new-shop-balance {
    height: 18px !important;
    padding: 0 6px !important;
    margin-left: -12px !important;
  }

  .new-shop-balance > span {
    font-size: 8px !important;
  }

  .new-shop-balance strong {
    font-size: 10px !important;
  }

  .new-shop-close {
    top: 2px !important;
    right: 4px !important;
    width: 27px !important;
    height: 27px !important;
    font-size: 17px !important;
  }
}
.shop-vip-buy button {
  background:
    linear-gradient(
      180deg,
      #4fc8ff,
      #1488d4 58%,
      #075c9d
    ) !important;

  border: 2px solid #9be6ff !important;

  color: #fff !important;

  box-shadow:
    0 5px 0 #064f86,
    0 8px 13px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.45) !important;
}

.shop-badge-card {
  display: block;
  min-height: 138px;
  padding: 0;

  border: none;
  background: transparent;
  box-shadow: none;
}

.shop-badge-title-top {
  margin: 0 0 8px 4px;

  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  text-align: left;

  text-shadow:
    0 2px 4px rgba(0,0,0,.6);
}

.shop-badge-promo {
  position: relative;

  min-height: 110px;
  padding: 14px 210px 14px 18px;

  overflow: hidden;

  border: 2px solid #d97dff;
  border-radius: 18px;

  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 35%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 13% 60%, rgba(255,255,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 18%, rgba(255,255,255,.70) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 76%, rgba(150,255,255,.45) 0 2px, transparent 4px),
    linear-gradient(135deg, #2e7bd0 0%, #1d4f9a 35%, #16286f 100%);

  box-shadow:
    0 0 0 2px rgba(129,233,255,.24) inset,
    0 0 18px rgba(121,229,255,.35),
    0 0 24px rgba(231,113,255,.28);
}

.shop-badge-promo::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 18px;

  background:
    linear-gradient(90deg,
      rgba(255,255,255,.14),
      transparent 22%,
      transparent 78%,
      rgba(255,255,255,.08));

  pointer-events: none;
}

.shop-badge-promo::after {
  content: "";

  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 4px;

  border-radius: 999px;

  background:
    linear-gradient(90deg,
      rgba(255,255,255,0),
      rgba(120,255,255,.95) 20%,
      rgba(240,120,255,.95) 50%,
      rgba(120,255,255,.95) 80%,
      rgba(255,255,255,0));

  box-shadow:
    0 0 10px rgba(120,255,255,.7),
    0 0 16px rgba(240,120,255,.4);

  pointer-events: none;
}

.shop-badge-tags {
  position: absolute;
  top: 8px;
  right: 14px;

  display: flex;
  gap: 6px;
  flex-wrap: wrap;

  z-index: 2;
}

.shop-badge-tags span {
  padding: 3px 7px;

  border: 1px solid rgba(165,230,255,.65);
  border-radius: 10px;

  background: rgba(35,78,126,.88);
  color: #dff8ff;

  font-size: 8px;
  font-weight: 1000;
}

.shop-badge-tags .limited {
  border-color: rgba(255,145,120,.7);
  background: rgba(152,57,48,.92);
  color: #ffe2da;
}

.shop-badge-copy {
  position: relative;
  z-index: 2;

  margin-top: 36px;

  text-align: left;
  transform: translateY(-18px);
}

.shop-badge-copy strong {
  display: block;

  color: #ffe06d;
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.02;

  text-shadow:
    0 2px 4px rgba(0,0,0,.58);
}

.shop-badge-image {
  position: absolute;
  right: 12px;
  bottom: 5px;

  width: 48%;
  height: 82%;

  object-fit: contain;

  filter:
    drop-shadow(0 0 10px rgba(100,220,255,.65))
    drop-shadow(0 0 16px rgba(220,90,255,.45));

  z-index: 2;
}

.shop-product-image {
  width: 78%;
  height: 78px;
  margin-bottom: 4px;
  object-fit: contain;

  filter:
    drop-shadow(0 0 10px rgba(90,220,255,.65))
    drop-shadow(0 12px 10px rgba(0,0,0,.42));
}

.shop-vip-image-box {
  width: 74px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border: 3px solid #e8c84a;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #153b64,
      #08233d
    );

  box-shadow:
    0 8px 18px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 14px rgba(232,200,74,.25);
}

.shop-vip-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-package-card button {
  position: relative;

  width: 100%;
  margin-top: 10px;
  padding: 9px 8px;

  border: 2px solid #c7c7c7 !important;
  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #d2d2d2,
      #a6a6a6 55%,
      #858585
    ) !important;

  color: #565656 !important;

  font-family: inherit;
  font-size: 13px;
  font-weight: 1000;

  cursor: not-allowed;

  text-shadow:
    0 1px 0 rgba(255,255,255,.65);

  box-shadow:
    0 5px 0 #6f6f6f,
    0 8px 13px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.72) !important;

  filter: grayscale(.25);
  opacity: .95;
}

.shop-package-card button::after {
  content: "PASİF";

  position: absolute;
  top: -13px;
  right: -4px;

  padding: 3px 9px;

  border: 1px solid #d8d8d8;
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      #bdbdbd,
      #808080
    );

  color: #ededed;

  font-size: 9px;
  font-weight: 1000;

  text-shadow:
    0 1px 2px rgba(0,0,0,.55);

  box-shadow:
    0 3px 6px rgba(0,0,0,.28);
}

.shop-vip-buy button {
  min-height: 46px;
  padding: 10px 18px !important;

  font-size: 17px !important;
  font-weight: 1000 !important;

  border-radius: 16px !important;

  background:
    linear-gradient(
      180deg,
      #5dd6ff,
      #1598df 55%,
      #0870b7
    ) !important;

  border: 2px solid #b5ecff !important;

  box-shadow:
    0 5px 0 #07598f,
    0 9px 15px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 13px rgba(45,190,255,.38) !important;

  text-shadow:
    0 2px 3px rgba(0,0,0,.55);
}

.apolet-shop-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  margin-bottom: 12px;
}

.apolet-shop-head button {
  position: absolute;
  left: 0;

  padding: 7px 12px;

  border: 1px solid rgba(255,255,255,.22);
  border-radius: 9px;

  background: rgba(0,0,0,.30);
  color: #fff;

  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.apolet-shop-head strong {
  color: #f5d65b;
  font-size: 18px;
  font-weight: 1000;
}

.apolet-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.apolet-shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 11px;

  border: 2px solid rgba(95,200,255,.45);
  border-radius: 15px;

  background:
    radial-gradient(
      circle at center,
      rgba(60,190,255,.14),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      rgba(15,65,100,.96),
      rgba(4,27,46,.98)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 8px 16px rgba(0,0,0,.35);
}

.apolet-preview {
  position: relative;

  width: 112px;
  height: 112px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.apolet-preview-avatar {
  position: absolute;

  width: 70px;
  height: 70px;

  object-fit: cover;

  border-radius: 50%;
  background: #174b6d;
}

.apolet-preview-frame {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  pointer-events: none;

  filter:
    drop-shadow(0 0 7px rgba(90,220,255,.45))
    drop-shadow(0 6px 7px rgba(0,0,0,.45));
}

.apolet-price {
  margin-top: 5px;

  color: #9eeaff;
  font-size: 15px;
  font-weight: 1000;
}

.apolet-shop-card > button {
  width: 100%;

  margin-top: 7px;
  padding: 8px;

  border: 2px solid #8fff8f;
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      #62d947,
      #238d28 58%,
      #12631c
    );

  color: #fff;

  font-family: inherit;
  font-size: 11px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 4px 0 #0c4d17,
    0 7px 11px rgba(0,0,0,.30);
}

/* APOLET MAĞAZASI BUTONLARI */
.apolet-shop-card > button {
  min-height: 34px !important;
  padding: 7px 8px !important;

  font-size: 13px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: 0.3px !important;

  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* SATIN AL — altın metalik */
.apolet-shop-card > button.apolet-buy {
  color: #171000 !important;

  border-color: #ffe681 !important;

  background:
    linear-gradient(
      180deg,
      #fff09b 0%,
      #e8c84a 35%,
      #b98500 72%,
      #765000 100%
    ) !important;

  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.75),
    inset 0 -4px 6px rgba(90,50,0,0.35),
    0 4px 0 #634000,
    0 7px 11px rgba(0,0,0,0.35) !important;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.4) !important;
}

/* KULLAN — yeşil */
.apolet-shop-card > button.apolet-use {
  color: #fff !important;

  border-color: #8fff8f !important;

  background:
    linear-gradient(
      180deg,
      #62d947,
      #238d28 58%,
      #12631c
    ) !important;

  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.4),
    0 4px 0 #0c4d17,
    0 7px 11px rgba(0,0,0,0.3) !important;
}

/* AKTİF */
/* AKTİF — mavi metalik */
.apolet-shop-card > button.apolet-active {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 1000 !important;

  border-color: #8edcff !important;

  background:
    linear-gradient(
      180deg,
      #7edbff 0%,
      #268fc7 38%,
      #0d5d94 72%,
      #073b63 100%
    ) !important;

  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.55),
    inset 0 -4px 7px rgba(0,25,55,0.45),
    0 4px 0 #052f50,
    0 7px 12px rgba(0,0,0,0.35),
    0 0 12px rgba(60,180,255,0.4) !important;

  text-shadow:
    0 2px 3px rgba(0,0,0,0.65) !important;
}

/* SATIN ALMA FLAŞI */
#apolet-purchase-flash {
  position: fixed;
  left: 50%;
  top: 18%;

  transform:
    translate(-50%, -20px)
    scale(0.9);

  z-index: 10000050;

  min-width: 280px;
  padding: 16px 26px;

  text-align: center;

  color: #181000;
  font-size: 17px;
  font-weight: 1000;

  border: 2px solid #fff09b;
  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      #fff29c,
      #e8c84a 55%,
      #ad7900
    );

  box-shadow:
    0 15px 35px rgba(0,0,0,0.55),
    0 0 24px rgba(232,200,74,0.55),
    inset 0 2px 1px rgba(255,255,255,0.7);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#apolet-purchase-flash.show {
  opacity: 1;

  transform:
    translate(-50%, 0)
    scale(1);
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .apolet-shop-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  .apolet-shop-card {
    padding: 7px;
  }

  .apolet-preview {
    width: 82px;
    height: 82px;
  }

  .apolet-preview-avatar {
    width: 52px;
    height: 52px;
  }

  .apolet-price {
    font-size: 11px;
  }

  .apolet-shop-card > button {
  min-height: 29px !important;
  padding: 6px 4px !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
}
}

.header-active-apolet {
  position: absolute;
  inset: -18px;

  width: calc(100% + 36px);
  height: calc(100% + 36px);

  object-fit: contain;
  pointer-events: none;

  z-index: 3;

  display: none;

  filter:
    drop-shadow(0 0 6px rgba(90,220,255,.45))
    drop-shadow(0 6px 6px rgba(0,0,0,.40));
}

#header-avatar {
  position: relative;
  z-index: 2;
}

.mk-online-dot {
  z-index: 4;
}

#header-avatar-wrap {
  overflow: visible !important;
}

#header-active-apolet {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 92px;
  height: 92px;

  transform: translate(-50%, -51%);

  object-fit: contain;
  pointer-events: none;

  display: none;
  z-index: 10;
}

#header-avatar {
  position: relative;
  z-index: 2;
}

.mk-online-dot {
  z-index: 12;
}

.profile-avatar-apolet-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: visible;
}

.profile-avatar-main {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 2;

  border: 3px solid #e8c84a;
  border-radius: 50%;

  background: #1a4a6b;
  object-fit: cover;

  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

.profile-avatar-apolet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 104px;
  height: 104px;

  transform: translate(-50%, -51%);
  object-fit: contain;
  pointer-events: none;
}

#new-profile-avatar {
  position: relative;
  z-index: 2;
}

#new-profile-apolet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 145px;
  height: 145px;

  transform: translate(-50%, -51%);

  object-fit: contain;
  pointer-events: none;

  display: none;
}

#ps-avatar {
  position: relative;
  overflow: visible;
}

.friend-profile-avatar-main {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  object-fit: cover;
}

.friend-profile-apolet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 150px;
  height: 150px;

  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}

#ps-avatar .friend-profile-apolet {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 190px !important;
  height: 190px !important;

  max-width: none !important;
  max-height: none !important;

  transform: translate(-50%, -50%);

  object-fit: contain !important;
  border-radius: 0 !important;

  pointer-events: none;
}

#ps-avatar .friend-profile-avatar-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  #ps-avatar .friend-profile-apolet {
    width: 120px !important;
    height: 120px !important;

    transform: translate(-50%, -50%) !important;
  }
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  #header-active-apolet {
    width: 70px !important;
    height: 70px !important;

    transform: translate(-50%, -50%) !important;
  }
}

.apolet-days-left {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 10;

  min-width: 72px;
  padding: 3px 7px;

  color: #171000;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  white-space: nowrap;

  border: 1px solid #fff09b;
  border-radius: 8px;

  background:
    linear-gradient(
      180deg,
      #fff29c,
      #e8c84a 55%,
      #ad7900
    );

  box-shadow:
    0 3px 8px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.65);

  pointer-events: none;
}
@media screen and (orientation: landscape) and (max-height: 520px) {
  .apolet-days-left {
    top: -3px;
    min-width: 60px;
    padding: 2px 5px;
    font-size: 8px;
  }
}

.shop-badge-copy strong {
  color: transparent !important;

  background:
    linear-gradient(
      180deg,
      #fff4a6 0%,
      #f2cf51 35%,
      #c68b08 68%,
      #7a5000 100%
    );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 1000 !important;

  text-shadow:
    0 2px 5px rgba(0,0,0,.40);
}

.shop-badge-duration {
  display: inline-block;

  margin-top: 6px;
  padding: 4px 9px;

  display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;

  color: #191000;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;

  border: 1px solid #fff0a0;
  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      #fff2a0,
      #e8c84a 55%,
      #a96f00
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 4px 9px rgba(0,0,0,.32);
}

.apolet-shop-back {
  padding: 8px 16px !important;

  color: #171000 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;

  border: 2px solid #ffe886 !important;
  border-radius: 10px !important;

  background:
    linear-gradient(
      180deg,
      #fff3a0 0%,
      #e8c84a 38%,
      #bd8205 72%,
      #754c00 100%
    ) !important;

  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.65),
    inset 0 -3px 5px rgba(90,50,0,.30),
    0 4px 0 #5f3d00,
    0 7px 12px rgba(0,0,0,.34) !important;

  text-shadow:
    0 1px 0 rgba(255,255,255,.42) !important;

  cursor: pointer;
}
/* APOLET MAĞAZASI BAŞLIĞI VE GERİ BUTONU */
.apolet-shop-head {
  min-height: 42px !important;

  display: grid !important;
  grid-template-columns: 105px 1fr 105px !important;
  align-items: center !important;

  margin-bottom: 12px !important;
  position: relative !important;
}

.apolet-shop-head .apolet-shop-back {
  position: relative !important;
  left: auto !important;
  top: auto !important;

  width: 94px !important;
  height: 34px !important;
  padding: 0 10px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  z-index: 20 !important;

  color: #171000 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;

  border: 2px solid #ffe886 !important;
  border-radius: 10px !important;

  background:
    linear-gradient(
      180deg,
      #fff3a0 0%,
      #e8c84a 38%,
      #bd8205 72%,
      #754c00 100%
    ) !important;

  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.65),
    0 4px 0 #5f3d00,
    0 7px 12px rgba(0,0,0,.34) !important;
}

.apolet-shop-head strong {
  grid-column: 2 !important;
  text-align: center !important;
}

/* APOLET TANITIM KARTI YAZILARI */
.shop-badge-copy {
  position: relative !important;
  z-index: 3 !important;

  width: 44% !important;

  margin-top: 25px !important;
  padding-left: 2px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 5px !important;

  transform: none !important;
  text-align: left !important;
}

.shop-badge-copy strong {
  display: block !important;

  font-size: 16px !important;
  line-height: 1.02 !important;
  letter-spacing: -0.3px !important;

  white-space: normal !important;
}

.shop-badge-duration {
  order: -1 !important;

  margin: 0 !important;
  padding: 3px 9px !important;

  font-size: 9px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
/* Giriş yapılmadıysa ana ekran hiç görünmesin */
body.auth-locked header,
body.auth-locked #app-content {
  display: none !important;
}

body.auth-locked #auth-modal {
  display: flex !important;
}

/* ANA SAYFA KAYMASIN */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Ana portal ve oyun kapsayıcıları kaymasın */
#home-portal,
#app-content,
main,
#game-container {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Profil modal dışı kaymasın */
#new-profile-modal,
#profile-modal {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

/* SADECE PROFİL KUTUSUNUN İÇİ KAYSIN */
.new-profile-right,
.pm-body,
#profile-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

/* PROFİL ÜST SEKME ARKASI KAPATICI */
#profile-modal .pm-box::after {
  content: "";

  position: absolute;
  top: 0;
  left: 245px;
  right: 0;

  height: 112px;

  z-index: 4;

  background:
    radial-gradient(
      circle at top left,
      rgba(32, 105, 150, 0.34),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #0b304b,
      #061c2e
    );

  border-top-right-radius: 18px;

  pointer-events: none;
}

/* Sekmeler kapatıcı katmanın üstünde kalsın */
#profile-modal .pm-tabs {
  z-index: 10 !important;
}

/* İçerik sekmelerin altında kalsın */
#profile-modal .pm-body {
  position: relative;
  z-index: 1;
  padding-top: 116px !important;
}

/* Mobil yatay profil için */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #profile-modal .pm-box::after {
    left: 190px;
    height: 72px;
    border-top-right-radius: 14px;
  }

  #profile-modal .pm-body {
    padding-top: 78px !important;
  }
}

/* ARKADAŞ PROFİLİ - ARKADAŞ PENCERESİ İÇİNDE */
#pm-pane-friends.active {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.friend-inline-profile {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.friend-inline-back {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: linear-gradient(180deg,#245d82,#0a304d);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.friend-inline-head {
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(232,200,74,.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left,rgba(232,200,74,.18),transparent 45%),
    linear-gradient(145deg,#0d3c5d,#061f34);
}

.friend-inline-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.friend-inline-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 3px solid #e8c84a;
  border-radius: 50%;
  background: #123c5b;
}

.friend-inline-apolet {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: contain;
  pointer-events: none;
}

.friend-inline-name {
  color: #f4d354;
  font-size: 21px;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-inline-sub {
  margin-top: 3px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 800;
}

.friend-inline-info-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin-top: 10px;
}

.friend-inline-info {
  padding: 8px 5px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(0,0,0,.24);
  text-align: center;
}

.friend-inline-info span {
  display: block;
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 900;
}

.friend-inline-info strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
}

.friend-inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.friend-inline-actions button {
  padding: 10px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.friend-inline-message {
  background: linear-gradient(180deg,#267fc1,#0d456d);
}

.friend-inline-gift {
  background: linear-gradient(180deg,#bd8617,#684006);
}

.friend-inline-game-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
}

.friend-inline-game-tabs button {
  padding: 10px 5px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: linear-gradient(180deg,#245d82,#0a304d);
  color: rgba(255,255,255,.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.friend-inline-game-tabs button.active {
  border-color: #ffe477;
  background: linear-gradient(180deg,#f4d354,#bd850d);
  color: #1a1000;
}

.friend-inline-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

.friend-inline-stat {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: rgba(0,0,0,.25);
}

.friend-inline-stat span {
  display: block;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 900;
}

.friend-inline-stat strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 19px;
  font-weight: 1000;
}

.friend-inline-empty {
  padding: 24px 12px;
  border: 1px dashed rgba(232,200,74,.35);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* DM aynı profil/arkadaş penceresi içinde açılsın */
.pm-tab-pane.dm-inline-pane.active {
  height: 100%;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
}

.pm-tab-pane.dm-inline-pane .msg-box-head {
  flex-shrink: 0;
}

.pm-tab-pane.dm-inline-pane #msg-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
}

.pm-tab-pane.dm-inline-pane .msg-input-area {
  flex-shrink: 0;
}

/* Arkadaş profil kartı içinde sağdaki geri butonu */
.friend-inline-head {
  grid-template-columns: 84px minmax(0,1fr) 46px !important;
  align-items: center;
}

.friend-inline-back-head {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255,255,255,.18);
  border-radius: 12px;

  background:
    linear-gradient(180deg,#245d82,#0a304d);

  color: #fff;

  font-family: inherit;
  font-size: 22px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 6px 12px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.friend-inline-back-head:hover {
  border-color: #e8c84a;
  color: #e8c84a;
}

@media screen and (orientation: landscape) and (max-height: 520px) {
  .friend-inline-head {
    grid-template-columns: 64px minmax(0,1fr) 40px !important;
  }

  .friend-inline-back-head {
    width: 36px;
    height: 36px;
    font-size: 19px;
    border-radius: 10px;
  }
}

/* ARKADAŞ PROFİL ÜST KARTINI DÜZENLE */
.friend-inline-head {
  min-height: 88px !important;
  padding: 9px 12px !important;

  grid-template-columns: 72px minmax(0, 1fr) 42px !important;
  gap: 12px !important;

  align-items: center !important;
}

/* Avatar küçült */
.friend-inline-avatar-wrap {
  width: 72px !important;
  height: 72px !important;
}

.friend-inline-avatar {
  width: 72px !important;
  height: 72px !important;
}

/* Avatar yanındaki bilgi alanını yatay hizala */
.friend-inline-head > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  align-items: center !important;
  min-width: 0 !important;
}

/* İsim alanı */
.friend-inline-name {
  grid-column: 1 !important;
  grid-row: 1 !important;

  font-size: 20px !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.friend-inline-sub {
  grid-column: 1 !important;
  grid-row: 2 !important;

  margin-top: 4px !important;
  font-size: 11px !important;
}

/* Elmas / seviye / CP alanı ismin sağına gelsin */
.friend-inline-info-grid {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(70px, 1fr)) !important;
  gap: 6px !important;

  margin-top: 0 !important;
  align-items: center !important;
}

/* Büyük kutuları küçült */
.friend-inline-info {
  min-height: 44px !important;
  padding: 5px 6px !important;
  border-radius: 10px !important;
}

.friend-inline-info span {
  font-size: 8px !important;
  line-height: 1 !important;
}

.friend-inline-info strong {
  margin-top: 3px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

/* Sağ geri butonu hizası */
.friend-inline-back-head {
  width: 38px !important;
  height: 38px !important;
  font-size: 20px !important;
  border-radius: 10px !important;
}

/* Mobil yatayda daha sıkı görünüm */
@media screen and (orientation: landscape) and (max-height: 520px) {
  .friend-inline-head {
    min-height: 76px !important;
    padding: 7px 10px !important;
    grid-template-columns: 60px minmax(0, 1fr) 38px !important;
    gap: 10px !important;
  }

  .friend-inline-avatar-wrap,
  .friend-inline-avatar {
    width: 60px !important;
    height: 60px !important;
  }

  .friend-inline-head > div:nth-child(2) {
    grid-template-columns: minmax(125px, 160px) minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  .friend-inline-name {
    font-size: 17px !important;
  }

  .friend-inline-sub {
    font-size: 10px !important;
  }

  .friend-inline-info-grid {
    grid-template-columns: repeat(3, minmax(58px, 1fr)) !important;
    gap: 5px !important;
  }

  .friend-inline-info {
    min-height: 38px !important;
    padding: 4px 5px !important;
  }

  .friend-inline-info strong {
    font-size: 12px !important;
  }

  .friend-inline-back-head {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }
}

/* Arkadaş profil üst kutusu - sol profil bilgileri gibi */
.friend-inline-head {
  min-height: 92px !important;
  padding: 9px 12px !important;

  grid-template-columns: 74px minmax(0, 1fr) 40px !important;
  gap: 12px !important;

  align-items: center !important;
}

.friend-inline-avatar-wrap,
.friend-inline-avatar {
  width: 74px !important;
  height: 74px !important;
}

.friend-inline-profile-info {
  min-width: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

  overflow: hidden !important;
}

.friend-inline-avatar-name {
  margin-bottom: 2px;

  color: rgba(255,255,255,.42);

  font-size: 10px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-inline-name {
  margin: 0 !important;

  color: #f4d354 !important;

  font-size: 20px !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-inline-sub {
  margin-top: 3px !important;

  color: rgba(255,255,255,.68) !important;

  font-size: 11px !important;
  font-weight: 800 !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-inline-xp-row {
  margin-top: 5px;

  display: flex;
  justify-content: space-between;
  gap: 8px;

  color: rgba(255,255,255,.65);

  font-size: 9px;
  font-weight: 800;
}

.friend-inline-xp-row span {
  white-space: nowrap;
}

.friend-inline-xpbar {
  margin-top: 3px;

  height: 5px;

  overflow: hidden;

  border-radius: 6px;
  background: rgba(255,255,255,.14);
}

.friend-inline-xpbar > div {
  height: 100%;

  border-radius: 6px;

  background:
    linear-gradient(
      90deg,
      #e8c84a,
      #ff8c00
    );
}

.friend-inline-score-row {
  margin-top: 6px;

  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  font-size: 11px;
  font-weight: 1000;
}

.friend-inline-score-row span:first-child {
  color: #e8c84a;
}

.friend-inline-score-row span:last-child {
  color: #64b0ff;
}

.friend-inline-back-head {
  width: 36px !important;
  height: 36px !important;

  border-radius: 10px !important;

  font-size: 19px !important;
}

/* Eski büyük Elmas/Seviye/CP kutularını görünmez yap */
.friend-inline-info-grid,
.friend-inline-info {
  display: none !important;
}

.fib-gift {
  background: rgba(232, 170, 45, .15);
  color: #ffc85a;
  border: 1px solid rgba(232, 170, 45, .35);
}
/* İstekler sekmesini artık kullanmıyoruz */
.pm-tab[data-ptab="requests"],
#new-requests-tab {
  display: none !important;
}

/* Mesajlar içinde arkadaşlık isteği kartı */
.friend-request-message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.friend-request-message-title {
  color: #e8c84a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}

.friend-request-message-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;

  padding: 10px;

  border: 1px solid rgba(232,200,74,.35);
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(232,200,74,.13),
      rgba(5,30,48,.95)
    );
}

.friend-request-message-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8c84a;
}

.friend-request-message-info {
  min-width: 0;
}

.friend-request-message-info strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-request-message-info span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
}

.friend-request-message-actions {
  display: flex;
  gap: 6px;
}

.friend-request-message-actions button {
  padding: 6px 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.friend-request-accept {
  background: rgba(80,200,80,.18);
  color: #88ff88;
  border: 1px solid rgba(80,200,80,.35);
}

.friend-request-reject {
  background: rgba(255,80,80,.14);
  color: #ff9999;
  border: 1px solid rgba(255,80,80,.32);
}

/* Profil > Hediyeler sekme görünümü */
.gift-profile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;

  margin-bottom: 12px;
}

.gift-profile-tab {
  padding: 10px 8px;

  border: 2px solid rgba(255,255,255,.13);
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(35,91,122,.95),
      rgba(9,44,67,.95)
    );

  color: rgba(255,255,255,.75);

  font-family: inherit;
  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.gift-profile-tab.active {
  color: #1a1000;

  border-color: #ffe477;

  background:
    linear-gradient(
      180deg,
      #f4d354,
      #bd850d
    );

  box-shadow:
    0 8px 18px rgba(232,200,74,.24),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.gift-profile-panel {
  display: none;
}

.gift-profile-panel.active {
  display: block;
}

/* Profil > Ayarlar içinde açılır öneri formu */
.profile-suggestion-action {
  background:
    linear-gradient(
      180deg,
      rgba(35, 95, 125, .95),
      rgba(8, 44, 68, .95)
    ) !important;

  border-color: rgba(232, 200, 74, .35) !important;
}

.profile-suggestion-box {
  display: none;

  padding: 12px;

  border: 1px solid rgba(232, 200, 74, .28);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(232, 200, 74, .10),
      rgba(0, 0, 0, .22)
    );
}

.profile-suggestion-box.open {
  display: block;
}

#profile-suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.profile-suggestion-input,
.profile-suggestion-textarea {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;

  outline: none;

  background: rgba(0,0,0,.32);
  color: #fff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.profile-suggestion-input:focus,
.profile-suggestion-textarea:focus {
  border-color: #e8c84a;
}

.profile-suggestion-textarea {
  min-height: 105px;
  resize: vertical;
}

.profile-suggestion-result {
  display: none;

  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.profile-suggestion-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-suggestion-buttons button {
  padding: 10px;

  border-radius: 10px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.profile-suggestion-buttons button:first-child {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.profile-suggestion-buttons button:last-child {
  background: #e8c84a;
  color: #1a1000;
  border: none;
}

/* PROFİL YENİ DÜZEN: SOLDA DİKEY MENÜ */
#profile-modal .pm-box {
  grid-template-columns: 190px minmax(0, 1fr) !important;
}

/* Sol eski oyuncu alanı artık sadece arka plan + kapat */
#profile-modal .pm-top {
  padding: 12px !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

/* Sol kapatma butonu */
.profile-left-close-btn {
  width: 120px;
  height: 42px;

  border: 2px solid #ff9b9b;
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      #e44b4b,
      #9f1414
    );

  color: #fff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 7px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.profile-left-close-btn:hover {
  filter: brightness(1.12);
}

/* Sekmeler solda alt alta */
#profile-modal .pm-tabs {
  position: absolute !important;

  top: 18px !important;
  left: 16px !important;
  right: auto !important;

  width: 158px !important;
  height: auto !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;

  z-index: 20 !important;
}

#profile-modal .pm-tab {
  width: 100% !important;
  height: 52px !important;

  justify-content: flex-start !important;

  padding: 8px 12px !important;

  font-size: 13px !important;
  text-align: left !important;
}

/* Sağ içerik artık üstten boşluk bırakmasın */
#profile-modal .pm-body {
  padding: 18px 18px 16px !important;
}

/* Sekmelerin arkasındaki eski üst perdeyi kapat */
#profile-modal .pm-box::after {
  display: none !important;
}

/* İstatistik içindeki profil kartı */
.profile-stats-user-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 170px;
  gap: 14px;

  align-items: center;

  margin-bottom: 12px;
  padding: 12px 14px;

  border: 1px solid rgba(232,200,74,.30);
  border-radius: 16px;

  background:
    radial-gradient(circle at top left, rgba(232,200,74,.16), transparent 45%),
    linear-gradient(145deg, rgba(13,60,92,.96), rgba(4,27,44,.98));
}

.profile-stats-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
}

.profile-stats-avatar-main {
  width: 86px;
  height: 86px;

  object-fit: cover;

  border: 3px solid #e8c84a;
  border-radius: 50%;

  background: #123c5b;
}

.profile-stats-avatar-apolet {
  position: absolute;
  inset: -18px;

  width: calc(100% + 36px);
  height: calc(100% + 36px);

  object-fit: contain;
  pointer-events: none;
}

.profile-stats-user-info {
  min-width: 0;
}

.profile-stats-avatar-name {
  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stats-username {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-top: 3px;

  color: #f4d354;

  font-size: 22px;
  font-weight: 1000;

  white-space: nowrap;
  overflow: hidden;
}

.profile-stats-username strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stats-level {
  margin-top: 3px;

  color: rgba(255,255,255,.70);

  font-size: 12px;
  font-weight: 800;
}

.profile-stats-xp-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-top: 7px;

  color: rgba(255,255,255,.65);

  font-size: 10px;
  font-weight: 800;
}

.profile-stats-xpbar {
  height: 6px;

  margin-top: 3px;

  overflow: hidden;

  border-radius: 7px;
  background: rgba(255,255,255,.14);
}

.profile-stats-xpbar > div {
  height: 100%;

  border-radius: 7px;

  background:
    linear-gradient(
      90deg,
      #e8c84a,
      #ff8c00
    );
}

.profile-stats-score-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;

  margin-top: 7px;

  font-size: 12px;
  font-weight: 1000;
}

.profile-stats-score-row span:first-child {
  color: #e8c84a;
}

.profile-stats-score-row span:last-child {
  color: #64b0ff;
}

.profile-stats-avatar-btn {
  min-height: 48px;

  padding: 10px 12px;

  border: 2px solid #5dc6ff;
  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      #2d98d4,
      #0b5d91
    );

  color: #fff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 1000;

  cursor: pointer;

  box-shadow:
    0 6px 14px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.28);
}

/* Mobil yatay sıkı görünüm */
@media screen and (orientation: landscape) and (max-height: 520px) {
  #profile-modal .pm-box {
    grid-template-columns: 150px minmax(0, 1fr) !important;
  }

  #profile-modal .pm-tabs {
    left: 10px !important;
    top: 10px !important;
    width: 126px !important;
    gap: 6px !important;
  }

  #profile-modal .pm-tab {
    height: 42px !important;
    font-size: 11px !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
  }

  #profile-modal .pm-body {
    padding: 10px !important;
  }

  .profile-stats-user-card {
    grid-template-columns: 62px minmax(0, 1fr) 130px;
    gap: 10px;

    padding: 8px 10px;
    margin-bottom: 9px;
  }

  .profile-stats-avatar-wrap,
  .profile-stats-avatar-main {
    width: 62px;
    height: 62px;
  }

  .profile-stats-username {
    font-size: 17px;
  }

  .profile-stats-level {
    font-size: 10px;
  }

  .profile-stats-xp-row {
    font-size: 8px;
  }

  .profile-stats-score-row {
    font-size: 10px;
    gap: 9px;
  }

  .profile-stats-avatar-btn {
    min-height: 38px;
    font-size: 11px;
    padding: 7px 8px;
  }
}
/* ÜST BAR MAĞAZA BUTONU */
.mk-header-shop-btn {
  position: relative;

  width: 112px;
  height: 72px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  padding: 5px 8px;

  border: 4px solid transparent;
  outline: none;
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #31a95b,
      #0f7036 70%
    ) padding-box,

    linear-gradient(
      135deg,
      #fff7b0 0%,
      #f4d354 18%,
      #9b6209 34%,
      #ffe98a 50%,
      #b8790d 68%,
      #fff2a3 84%,
      #7b4b00 100%
    ) border-box;

  box-shadow:
    0 7px 16px rgba(0,0,0,.45),
    0 0 18px rgba(244,211,84,.45),
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -4px 8px rgba(0,0,0,.20);

  cursor: pointer;
  overflow: hidden;

  font-family: inherit;
}

.mk-header-shop-btn::before {
  content: "";

  position: absolute;
  inset: -3px;

  border-radius: 16px;

  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255,255,255,.35) 45%,
      transparent 70%
    );

  transform: translateX(-120%);
  animation: mkShopShine 2.6s ease-in-out infinite;

  pointer-events: none;
}

.mk-header-shop-img-wrap {
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform-origin: left bottom;

  animation: mkShopWheelie 1.8s ease-in-out infinite;
}

.mk-header-shop-img-wrap img {
  max-width: 66px;
  max-height: 44px;

  object-fit: contain;

  filter:
    drop-shadow(0 3px 4px rgba(0,0,0,.55))
    drop-shadow(0 0 5px rgba(255,219,91,.35));
}

.mk-header-shop-text {
  display: block;

  line-height: 1;

  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .5px;

  background:
    linear-gradient(
      180deg,
      #fff4a8 0%,
      #e7bd3c 36%,
      #9b5b05 58%,
      #ffe17a 100%
    );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

    text-shadow: none;
}

.mk-header-shop-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

@keyframes mkShopWheelie {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }

  45% {
    transform: rotate(-8deg) translateY(-2px);
  }

  60% {
    transform: rotate(-4deg) translateY(-1px);
  }
}

@keyframes mkShopShine {
  0% {
    transform: translateX(-130%);
  }

  55%, 100% {
    transform: translateX(130%);
  }
}

/* Mobil yatayda mağaza butonu sıkı dursun */
@media screen and (orientation: landscape) and (max-height: 520px) {
  .mk-header-shop-btn {
    width: 96px;
    height: 62px;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 3px 6px;
  }

  .mk-header-shop-img-wrap {
    height: 30px;
  }

  .mk-header-shop-img-wrap img {
    max-width: 56px;
    max-height: 37px;
  }

  .mk-header-shop-text {
    font-size: 14px;
  }
}

/* MOBİL MODAL / PANEL KAYDIRMA DÜZELTME */
#avatar-picker-modal,
#new-shop-modal,
#admin-panel {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.av-picker-box,
.new-shop-content,
#new-shop-content,
.adm-tab,
#admin-player-list,
.adm-ticker-list,
.izleme-masa-grid,
.izleme-detay-sol,
.izleme-detay-sag {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.adm-wrap {
  min-height: 0 !important;
  overflow: hidden !important;
}

#new-shop-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.apolet-shop-grid {
  touch-action: pan-y !important;
}

@media (max-width: 600px) {
  .av-picker-box {
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}



.new-gift-sender-item {
  align-items: center;
  gap: 10px;
}

.new-gift-sender-info {
  min-width: 0;
  flex: 1;
}

.new-gift-sender-date-inline {
  margin-top: 3px;
  color: rgba(255,255,255,.38);
  font-size: 10px;
  font-weight: 800;
}

.new-gift-sender-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
  max-width: 380px;
}

.new-gift-sender-actions .fib {
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
}

.new-gift-sender-actions .fib:disabled {
  opacity: .55;
  cursor: default;
}

@media (max-width: 700px) {
  .new-gift-sender-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .new-gift-sender-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    margin-left: 52px;
  }

  .new-gift-sender-actions .fib {
    font-size: 9px;
    padding: 5px 7px;
  }
}

/* --- GENEL AYARLAR VE ARKA PLAN --- */
:root {
  --mk-red: #d32f2f;
  --mk-blue: #1976d2;
  --mk-black: #212121;
  --mk-yellow: #fbc02d;
  --panel-bg: rgba(20, 25, 35, 0.85);
}

.loading-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, #2a354a 0%, #0d1117 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* --- ANA PANEL (Buzlu Cam Efekti) --- */
.mk-loader-panel {
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px 60px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  transform: translateY(30px) scale(0.95);
  animation: panelEntrance 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Panel İçi Parlama Efekti */
.mk-loader-shine {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shineSweep 3s infinite;
}

/* --- LOGO VE BAŞLIK --- */
.mk-loader-brand { text-align: center; }

.mk-loader-logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.mk-loader-logo span { color: var(--mk-yellow); }

.mk-loader-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0aec0;
  letter-spacing: 5px;
  margin-top: 5px;
}

/* --- OKEY TAŞLARI (3D GERÇEKÇİLİK) --- */
.mk-okey-row {
  display: flex;
  gap: 15px;
  perspective: 800px;
}

.mk-okey-tile {
  width: 50px;
  height: 70px;
  background: linear-gradient(135deg, #fdfbf7 0%, #e6e2d6 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* 3D Kemik/Plastik Taş Efekti */
  box-shadow: 
    -2px -2px 5px rgba(255,255,255,0.8) inset,
    2px 2px 5px rgba(0,0,0,0.1) inset,
    0 8px 15px rgba(0,0,0,0.4),
    0 15px 10px -5px rgba(0,0,0,0.2);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(-50px) rotateX(45deg);
  animation: tileDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mk-okey-tile:nth-child(1) { animation-delay: 0.2s; }
.mk-okey-tile:nth-child(2) { animation-delay: 0.35s; }
.mk-okey-tile:nth-child(3) { animation-delay: 0.5s; }
.mk-okey-tile:nth-child(4) { animation-delay: 0.65s; }

.mk-okey-number { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.mk-okey-symbol { font-size: 1rem; margin-top: 2px; }

.mk-red { color: var(--mk-red); }
.mk-blue { color: var(--mk-blue); }
.mk-black { color: var(--mk-black); }
.mk-yellow { color: var(--mk-yellow); }

/* --- İSKAMBİL KAĞITLARI (YELPAZE EFEKTİ) --- */
.mk-loader-cards {
  position: relative;
  width: 120px;
  height: 80px;
  display: flex;
  justify-content: center;
}

.mk-card {
  position: absolute;
  width: 50px;
  height: 75px;
  background: white;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  font-weight: bold;
  transform-origin: bottom center; /* Dönüş noktası alt orta */
  opacity: 0;
  animation: cardFan 1s cubic-bezier(0.175, 0.885, 0.32, 1.27) forwards;
}

.mk-card.black { color: var(--mk-black); }
.mk-card.red { color: var(--mk-red); }

.mk-card-top { font-size: 0.8rem; text-align: left; line-height: 1;}
.mk-card-suit { font-size: 0.8rem; text-align: left; line-height: 1; margin-top: -2px;}
.mk-card-center { font-size: 1.5rem; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }

/* Kağıtların sırayla açılması */
.mk-card:nth-child(1) { animation-delay: 0.8s; } /* Sol */
.mk-card:nth-child(2) { animation-delay: 0.9s; z-index: 2; } /* Orta */
.mk-card:nth-child(3) { animation-delay: 1.0s; } /* Sağ */

/* --- YÜKLENİYOR METNİ --- */
.mk-loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mk-loader-text {
  color: #cbd5e1;
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 500;
  animation: pulseText 2s infinite ease-in-out;
}

/* Animasyonlu Noktalar (Pure CSS) */
.mk-loader-text::after {
  content: '';
  animation: loadingDots 1.5s infinite steps(4, end);
}

/* --- KEYFRAMES (ANİMASYON EĞRİLERİ) --- */
@keyframes panelEntrance {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes shineSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

@keyframes tileDrop {
  0% { opacity: 0; transform: translateY(-50px) rotateX(45deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes cardFan {
  0% { opacity: 0; transform: translateY(20px) rotate(0deg); }
  100% { opacity: 1; }
}

/* Sadece Iskambil kartlarının final pozisyonlarını ayarlıyoruz */
.mk-card:nth-child(1) { animation-name: cardFanLeft; }
.mk-card:nth-child(2) { animation-name: cardFanCenter; }
.mk-card:nth-child(3) { animation-name: cardFanRight; }

@keyframes cardFanLeft {
  0% { opacity: 0; transform: translateY(20px) rotate(0deg); }
  100% { opacity: 1; transform: translateX(-30px) rotate(-15deg); }
}
@keyframes cardFanCenter {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(-5px) scale(1.05); }
}
@keyframes cardFanRight {
  0% { opacity: 0; transform: translateY(20px) rotate(0deg); }
  100% { opacity: 1; transform: translateX(30px) rotate(15deg); }
}

@keyframes pulseText {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes loadingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

#header-back-btn {
  width: 58px !important;
  min-width: 58px !important;
  height: 50px !important;

  color: transparent !important;
  font-size: 0 !important;

  padding: 1px 0 1px !important;
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;

  background: linear-gradient(180deg, #ff3b32, #b80000) !important;
  border: 2px solid #ffd35a !important;
  border-radius: 9px !important;
}

#header-back-btn .mk-back-icon {
  width: 43px !important;
  height: 34px !important;
  display: block !important;
  margin-top: -1px !important;
  flex-shrink: 0 !important;
}

#header-back-btn .mk-back-icon path {
  fill: #ffffff !important;
  stroke: rgba(0,0,0,.38) !important;
  stroke-width: 5px !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}

#header-back-btn .mk-back-label {
  display: block !important;

  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  line-height: 10px !important;
  letter-spacing: .4px !important;

  text-shadow: 0 1px 2px rgba(0,0,0,.7) !important;
}

#header-back-btn:hover {
  filter: brightness(1.08) !important;
}

#header-back-btn:active {
  transform: translateY(3px) !important;

  box-shadow:
    0 1px 0 #650000,
    0 4px 8px rgba(0,0,0,.45),
    inset 0 2px 5px rgba(0,0,0,.35) !important;
}

/* Profil içi ve mesaj içi geri butonları: şekilli ok */
.friend-inline-back-head,
.pm-tab-pane.dm-inline-pane .msg-box-head > button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;

  background: linear-gradient(180deg, #ff302a, #bd0000) !important;
  border: 2px solid #ffd35a !important;
  border-radius: 10px !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;

  box-shadow:
    0 4px 0 #650000,
    0 8px 12px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.35) !important;

  cursor: pointer !important;
  overflow: hidden !important;
}

.friend-inline-back-head::before,
.pm-tab-pane.dm-inline-pane .msg-box-head > button::before {
  content: "" !important;

  width: 31px !important;
  height: 27px !important;

  display: block !important;

  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M47 13 L9 45 L47 77 L47 59 C75 59 93 69 108 83 C102 51 82 32 47 32 Z' fill='white' stroke='rgba(0,0,0,0.45)' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") !important;

  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.65))
    drop-shadow(0 0 2px rgba(255,255,255,.25)) !important;
}

.friend-inline-back-head:hover,
.pm-tab-pane.dm-inline-pane .msg-box-head > button:hover {
  filter: brightness(1.08) !important;
}

.friend-inline-back-head:active,
.pm-tab-pane.dm-inline-pane .msg-box-head > button:active {
  transform: translateY(2px) !important;

  box-shadow:
    0 1px 0 #650000,
    0 4px 8px rgba(0,0,0,.45),
    inset 0 2px 5px rgba(0,0,0,.35) !important;
}

/* =====================================================
   MasaKeyfi - Site/Lobi Tek Sahne Sistemi
   Ana sayfa + lobi tek sahne gibi ölçeklenir
   ===================================================== */

body.mk-site-fit-active {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

/* ÜST BİLGİ ALANI */
body.mk-site-fit-active #user-dashboard-bar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;

  width: 980px !important;
  min-width: 980px !important;
  height: 82px !important;

  padding: 6px 14px !important;
  margin: 0 !important;

  transform-origin: 0 0 !important;

  display: grid !important;
  grid-template-columns: 310px 1fr 310px !important;
  align-items: start !important;
  gap: 12px !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  z-index: 1000 !important;
}

body.mk-site-fit-active #user-dashboard-bar > * {
  min-width: 0 !important;
}

/* ANA SAHNE */
body.mk-site-fit-active #app-content {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;

  width: 980px !important;
  min-width: 980px !important;
  height: 500px !important;

  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;

  overflow: hidden !important;
  transform-origin: 0 0 !important;

  z-index: 1 !important;
}

/* ANA SAYFA */
body.mk-site-fit-active #home-portal {
  width: 980px !important;
  height: 500px !important;

  padding: 82px 18px 10px !important;
  margin: 0 !important;

  overflow: hidden !important;
}

body.mk-site-fit-active #home-games-stage {
  width: 944px !important;
  max-width: none !important;
  margin: 0 auto !important;
}

body.mk-site-fit-active .games-grid {
  display: grid !important;

  grid-template-columns: repeat(3, 292px) !important;
  justify-content: center !important;
  align-items: start !important;

  gap: 14px !important;
}

body.mk-site-fit-active .game-card {
  width: 292px !important;
  height: 218px !important;
  min-height: 218px !important;

  padding: 12px 13px !important;

  border-radius: 22px !important;
}

body.mk-site-fit-active .game-logo-img,
body.mk-site-fit-active .game-card.featured .game-logo-img {
  width: 86% !important;
  height: 145px !important;

  object-fit: contain !important;
}

body.mk-site-fit-active .mk-game-meta {
  margin-top: 2px !important;

  font-size: 10px !important;
  line-height: 1.1 !important;
}

body.mk-site-fit-active .play-btn {
  width: 92% !important;
  min-height: 35px !important;

  margin-top: 6px !important;
  padding: 6px 10px !important;

  border-radius: 15px !important;

  font-size: 14px !important;
  font-weight: 1000 !important;
}

body.mk-site-fit-active .mk-popular {
  top: 9px !important;
  left: 9px !important;

  padding: 5px 12px !important;

  font-size: 10px !important;
}

/* LOBİ AYNI SAHNEDE */
body.mk-site-fit-active #game-container {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;

  width: 980px !important;
  height: 500px !important;

  overflow: hidden !important;
}

body.mk-site-fit-active #lobby-page {
  position: absolute !important;
  inset: 0 !important;

  width: 980px !important;
  height: 500px !important;

  overflow: hidden !important;
}

body.mk-site-fit-active #lobby-butonlar {
  width: 944px !important;
  max-width: none !important;

  grid-template-columns: repeat(3, 292px) !important;
  justify-content: center !important;
  gap: 14px !important;

  padding: 82px 18px 10px !important;
}

body.mk-site-fit-active .lb-btn {
  width: 292px !important;
  height: 218px !important;
  min-height: 218px !important;
}

/* LOBİ MASA SEÇİM SAHNESİ */
body.mk-site-fit-active .lb-masalar-ust {
  width: 944px !important;
  max-width: none !important;

  padding: 82px 18px 0 !important;
  margin: 0 auto 8px !important;
}

body.mk-site-fit-active .lb-yatay-alan {
  width: 980px !important;
  max-width: none !important;

  margin: 74px auto 0 !important;
  padding: 0 10px 10px !important;

  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  gap: 7px !important;
}

body.mk-site-fit-active .lb-masa-grid {
  padding: 12px 10px 16px !important;
  gap: 16px !important;
}

body.mk-site-fit-active .lb-masa-wrapper {
  flex: 0 0 205px !important;
  width: 205px !important;
  height: 205px !important;
}

/* Oyuna iframe girince bu sistem bırakılır */
body.mk-game-frame-open {
  overflow: hidden !important;
}

body.mk-game-frame-open #user-dashboard-bar,
body.mk-game-frame-open #app-content {
  transform: none !important;
}