:root{
  --bg:#141a22; /* lighter base */
  --panel:#1c2433; /* lighter panel */
  --text:#eef2fa;
  --muted:#a8b0c2;
  --primary:#e44747;
  --tile:#222d40; /* lighter tile */
  --tileRing:rgba(228,71,71,.18);
  --success:#23d18b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    linear-gradient(180deg, rgba(8,9,12,.65), rgba(8,9,12,.72)),
    url('Metin2PP.png') center/cover fixed no-repeat,
    var(--bg);
}

.bg-overlay{
  position:fixed;inset:0;
  background:radial-gradient(1200px 600px at 50% -10%, rgba(255,0,60,.12), transparent 60%),
             linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.35));
  pointer-events:none;
}


.layout{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  padding:24px;
  width:min(820px, 100%);
  margin:0 auto;
  justify-items:center;
}

.panel{min-height: unset}
.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
.panel-title{margin:0 0 12px;font-size:18px;color:var(--text);text-align:center}

/* Left (Telegram) */
.tg-card{display:flex;flex-direction:column;gap:12px;text-align:center}
.tg-header{display:flex;align-items:center;gap:12px}
.tg-avatar{width:40px;height:40px;border-radius:12px;background:#2aabee;display:grid;place-items:center;font-weight:700}
.wa-avatar{background:#25D366}
.wa-avatar img{width:22px;height:22px;display:block}
.tg-meta{display:flex;flex-direction:column}
.tg-name{font-weight:700}
.tg-hint{color:var(--muted);font-size:12px}
.tg-text{color:var(--muted);margin:0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700}
.btn-primary{background:var(--primary);color:white;box-shadow:none}
.btn-primary:hover{filter:brightness(1.08)}

/* Center */
.center-panel{display:flex;flex-direction:column;align-items:center;gap:14px;width:min(760px,100%);text-align:center}
.brand{display:flex;flex-direction:column;align-items:center;margin-top:8px}
.brand-mark{width:68px;height:68px;object-fit:cover;border-radius:14px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.45))}
.brand-name{font-size:48px;margin:6px 0 0;letter-spacing:.3px}

.contact-line{margin:8px 0 8px;color:#eadddf;background:rgba(228,71,71,.08);padding:10px 14px;border:1px solid rgba(228,71,71,.28);border-radius:12px;text-align:center}
.rainbow-text{
  font-size:18px;
  font-weight:700;
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #42e695, #3bb2b8, #6a6cff, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: rainbowShift 8s linear infinite;
}
@keyframes rainbowShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.contact-line a{color:#fff}

.section-title{margin:10px 0 8px;color:var(--muted);font-weight:600;letter-spacing:.3px}

.social-list{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:4px;align-items:center}
.social-tile{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;background:var(--tile);border:1px solid rgba(255,255,255,.14);padding:12px;border-radius:12px;text-decoration:none;color:var(--text);box-shadow:0 5px 14px rgba(0,0,0,.18)}
.social-tile:hover{transform:translateY(-2px);transition:transform .15s ease}
.icon-wrap{width:40px;height:40px;display:grid;place-items:center;background:#151c2a;border-radius:10px;border:1px solid rgba(255,255,255,.12)}
.icon-wrap img{width:28px;height:28px;filter:none}
.social-tile .label{font-size:14px;color:#e8ebf3}

/* Servers */
.server-grid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:12px}
.server-item{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--tile);padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);text-decoration:none;color:var(--text)}
.server-item img{width:100%;height:96px;object-fit:cover;border-radius:8px}
.server-item .placeholder{width:100%;height:100px;border-radius:8px;display:grid;place-items:center;background:repeating-conic-gradient(from 45deg, rgba(255,255,255,.06) 0 15deg, rgba(255,255,255,.03) 15deg 30deg)}
.server-item span{font-size:13px;color:#e8e9f2}
.hint{margin-top:12px;color:var(--muted);font-size:12px}

/* Responsive */
@media (max-width:640px){
  .brand-name{font-size:40px}
}

/* 1920x1080 desktop layout */
@media (min-width:1200px){
  .layout{
    width:1120px;
  }
}

@media (min-width:1500px){
  .layout{
    width:1280px;
  }
}

@media (min-width:1700px){
  .layout{
    width:1400px;
  }
}

@media (min-width:1800px){
  .layout{
    display:grid;
    grid-template-columns: 1fr 380px;
    align-items:start;
    gap:16px;
    padding:16px;
    width:1180px; /* fits nicely centered on 1920 */
    justify-content:center;
    justify-items:center;
    margin:0 auto;
  }
  .center-panel{width:100%;gap:10px}
  .card{padding:16px}
  .panel-title{margin:0 0 8px}
  .brand{margin-top:0}
  .brand-mark{width:62px;height:62px}
  .brand-name{font-size:42px;margin:6px 0 0}
  .social-list{gap:8px}
  .social-tile{padding:10px;gap:10px}
  .icon-wrap{width:36px;height:36px}
  .icon-wrap img{width:26px;height:26px}
  .social-tile .label{font-size:13px}
  .contact-line{padding:6px 10px;margin:2px 0 2px}
  .servers-card, .telegram-card{width:100%}
  .server-grid{grid-template-columns:1fr 1fr;gap:10px}
  .server-item{gap:6px;padding:8px}
  .server-item img{height:86px}
  .server-item .placeholder{height:86px}
  .hint{display:none}
}


