/* =========================================================
   TAM YENİ DİZAYN — style.css (v3, İŞIQLI TEMA)
   Orijinal mavi (#476098) ruhuna sadiq, amma müasir + animasiyalı.
   Struktur v2 ilə eynidir (dashboard/panel/leaderboard) — yalnız
   rəng tokenləri və bəzi vizual detallar yenilənib.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  --bg: #eef2f9;
  --bg-alt: #e4e9f4;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --border: #dde3ee;
  --ink: #1c2a3e;
  --muted: #6b7789;
  --brand: #3f5f9e;
  --brand-dark: #2c4373;
  --accent: #ff8a4c;
  --accent-dark: #e56f30;
  --gold: #f4b400;
  --silver: #9aa5b5;
  --bronze: #c97a3d;
  --danger: #d9364a;
  --online: #16a34a;
  --radius: 14px;
  --shadow: 0 14px 30px -16px rgba(44, 67, 115, .28);
  --shadow-sm: 0 3px 12px rgba(44, 67, 115, .08);
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', 'Open Sans', Geneva, sans-serif, arial, verdana;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  margin: 0 auto;
  max-width: 100%;
  line-height: 1.55;
}

a:link, a:visited{ color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus{ color: var(--accent-dark); }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
img{ border: 0; vertical-align: middle; max-width: 100%; }

/* =========================================================
   HEADER / SIDEBAR
   ========================================================= */
.header{
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 15px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 45%, var(--accent) 130%);
  background-size: 220% 220%;
  animation: gradientShift 12s ease infinite;
  position: fixed;
  top: 0;
  height: 60px !important;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(44,67,115,.28);
}
@keyframes gradientShift{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.main{ margin: 0 auto; display: block; margin-top: 60px; padding: 14px; max-width: 1180px; }
.mainInner{ display: table; height: 100%; width: 100%; text-align: center; }
.mainInner div{
  display: table-cell; vertical-align: middle;
  font-family: var(--font-display); font-size: 2.4em; font-weight: 800;
  letter-spacing: 1.25px; color: var(--brand-dark);
}

#sidebarMenu{
  height: 100vh; position: fixed; top: 0; left: 0; width: 220px;
  padding-top: 60px; transform: translateX(-260px);
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
  background: linear-gradient(180deg, var(--brand-dark), #1c2f52);
  z-index: 9; box-shadow: var(--shadow);
}
.sidebarMenuInner{ margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebarMenuInner li{
  list-style: none; color: #fff; text-transform: uppercase; font-size: 12.5px;
  letter-spacing: .4px; padding: 18px 20px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.1); transition: background .15s ease, padding-left .15s ease;
}
.sidebarMenuInner li:hover{ background: rgba(255,255,255,.08); padding-left: 26px; }
.sidebarMenuInner li span{ display: block; font-size: 12px; color: rgba(255,255,255,.55); }
.sidebarMenuInner li a{ color: #fff; text-transform: uppercase; font-weight: 600; text-decoration: none; }
.sidebarMenuInner li a:hover{ color: var(--accent); }

input[type=checkbox]{ display: none; }
input[type="checkbox"]:checked ~ #sidebarMenu{ transform: translateX(0); }
.sidebarIconToggle{ cursor: pointer; position: absolute; z-index: 99; height: 22px; width: 22px; top: 22px; left: 15px; }
.spinner{ position: absolute; height: 3px; width: 100%; border-radius: 3px; background-color: #fff; transition: all .3s; }
.horizontal{ position: relative; float: left; margin-top: 3px; transition: all .3s; }
.diagonal.part-1{ position: relative; float: left; transition: all .3s; }
.diagonal.part-2{ position: relative; float: left; margin-top: 3px; transition: all .3s; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal{ opacity: 0; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1{ transform: rotate(135deg); margin-top: 8px; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2{ transform: rotate(-135deg); margin-top: -9px; }

/* =========================================================
   LEGACY KLASLAR (digər səhifələr üçün)
   ========================================================= */
.fon{ background: var(--bg); padding: 10px; }
.xeber{ background: var(--surface); padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.title{ font-family: var(--font-display); color: #fff; padding: 12px 14px; font-weight: 700; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); box-shadow: var(--shadow-sm); }
.table{ padding: 10px 8px; text-align: center; font-size: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); transition: background .15s ease; }
.table:hover{ background: var(--surface-2); }
.table a{ display: block; text-decoration: none; }
.link, .xeber, .menu, .table, .title, .logo, .head, .foot, .page, .blok, .copy, .ads{ margin-right: 2px; margin-left: 2px; }
.link, .menu{ padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--brand); display: block; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s ease, border-left-color .15s ease, background .15s ease; }
.link:hover{ transform: translateX(2px); border-left-color: var(--accent); background: var(--surface-2); }
.xm{ display: block; background: var(--brand); padding: 12px; color: #fff; font-size: 13px; text-align: center; border-radius: 10px; transition: background .15s ease; }
.xm:hover{ background: var(--brand-dark); }
.ar{ display: block; padding: 0; padding-right: 20px; position: relative; }
.ar::after{ content: "›"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); }
.count, .rm{ font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; float: right; margin-top: -3px; color: #fff; background: var(--brand); }
.yer{ font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #fff; background: var(--brand-dark); padding: 4px 8px; border-radius: 7px; margin: 3px; min-width: 22px; display: inline-block; }
.error{ background: #fdeceb; color: var(--danger); border: 1px solid #f3c3c3; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; }
.foot{ color: #fff; padding: 16px; background: linear-gradient(120deg, var(--brand-dark), #16233f); font-size: 12.5px; }
.foot a{ color: #fff; }
.foot a:hover{ color: var(--accent); }
.card-top{ border-radius: 10px 10px 0 0; }
.card-bottom{ border-radius: 0 0 10px 10px; }
.price{ color: var(--accent-dark); font-weight: 700; font-family: var(--font-mono); }
.visually-hidden{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   DASHBOARD DÜZÜLÜŞÜ (index.php) — struktur v2 ilə eyni
   ========================================================= */
.dashboard{ display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 880px){ .dashboard{ grid-template-columns: 1fr; } }

.content-main{ display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.content-side{ display: flex; flex-direction: column; gap: 18px; position: sticky; top: 74px; }
@media (max-width: 880px){ .content-side{ position: static; } }

/* panellərin növbəli giriş animasiyası */
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .5s ease both;
  transition: box-shadow .2s ease, transform .2s ease;
}
.panel:hover{ box-shadow: var(--shadow); }
.content-main .panel:nth-child(1){ animation-delay: .02s; }
.content-main .panel:nth-child(2){ animation-delay: .08s; }
.content-main .panel:nth-child(3){ animation-delay: .14s; }
.content-main .panel:nth-child(4){ animation-delay: .2s; }

.panel-head{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .3px;
  color: #fff;
  padding: 14px 16px;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.panel-head .dot{
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,138,76,.6);
  animation: pulse 1.8s ease-out infinite;
}
.panel-body{ padding: 14px 16px; }

/* Xəbər kartları */
.news-card + .news-card{ border-top: 1px solid var(--border); }
.news-card{ padding: 6px 0; font-size: 13.5px; color: var(--ink); }

/* Satılan saytlar grid */
.shop-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 520px){ .shop-grid{ grid-template-columns: 1fr; } }
.shop-card{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.shop-card:hover{ border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.shop-card .name{ font-weight: 700; display: block; margin-bottom: 4px; }
.shop-card .info{ color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }

/* qiymət nişanına şimmer effekti */
.price{ position: relative; display: inline-block; }
.price::after{
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,138,76,.35), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ left: -60%; }
  60%{ left: 130%; }
  100%{ left: 130%; }
}

/* Xidmətlər tile grid */
.quick-links{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 620px){ .quick-links{ grid-template-columns: repeat(2, 1fr); } }
.tile{
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 16px 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tile:hover{ border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--brand-dark); }
.tile i{ font-size: 20px; color: var(--brand); transition: transform .2s ease; }
.tile:hover i{ transform: scale(1.15); color: var(--accent); }
.tile .badge-count{
  font-family: var(--font-mono); font-size: 11px; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 1px 7px; margin-top: -4px;
}

/* Ticker (marquee əvəzi) */
.ticker-wrap{ overflow: hidden; white-space: nowrap; padding: 12px 16px; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); }
.ticker-wrap span{ display: inline-block; padding-left: 100%; animation: ticker 20s linear infinite; font-weight: 600; color: #fff; font-size: 13px; }
@keyframes ticker{ 0%{ transform: translateX(0); } 100%{ transform: translateX(-100%); } }

/* Reytinq leaderboard */
.leaderboard{ display: flex; flex-direction: column; }
.lb-row{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.lb-row:last-child{ border-bottom: none; }
.lb-row:hover{ background: var(--surface-2); border-left-color: var(--brand); transform: translateX(2px); }
.lb-row.lb-gold{ border-left-color: var(--gold); background: linear-gradient(90deg, rgba(244,180,0,.10), transparent); }
.lb-row.lb-silver{ border-left-color: var(--silver); background: linear-gradient(90deg, rgba(154,165,181,.12), transparent); }
.lb-row.lb-bronze{ border-left-color: var(--bronze); background: linear-gradient(90deg, rgba(201,122,61,.10), transparent); }
.lb-num{
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 7px; min-width: 24px; text-align: center; padding: 3px 0;
}
.lb-gold .lb-num{ background: var(--gold); color: #3a2900; border-color: var(--gold); }
.lb-silver .lb-num{ background: var(--silver); color: #22262d; border-color: var(--silver); }
.lb-bronze .lb-num{ background: var(--bronze); color: #2e1500; border-color: var(--bronze); }
.lb-name{ flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-online{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #fff; background: var(--online); padding: 3px 8px; border-radius: 999px;
}
.pulse-dot{ width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%{ box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.show-more-btn{
  width: 100%; background: var(--surface-2); font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); border-top: none; padding: 12px; color: var(--brand);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.show-more-btn:hover{ background: var(--brand); color: #fff; }

/* Online widget */
.online-widget{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.online-widget .count{ font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--online); }
.online-widget .label{ font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.online-widget .year-badges{ display: flex; gap: 6px; }
.online-widget .year-badges span{ font-family: var(--font-mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; color: var(--muted); }


/* =========================================================
   HEADER v2 (logo şəkli əvəzinə mətn + WhatsApp badge)
   ========================================================= */
.header-inner{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
}

.brand{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name{
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: .3px;
    background: linear-gradient(120deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-badge{
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff !important;
  padding: 10px 15px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.contact-badge:hover{ background: #25D366; border-color: #25D366; transform: translateY(-1px); }
.contact-badge i{ font-size: 15px; }
@media (max-width: 420px){
  .contact-badge span{ display: none; } /* mobil: yalnız ikon */
}

/* =========================================================
   FOOTER v2
   ========================================================= */
.footer-modern{
  background: linear-gradient(120deg, var(--brand-dark), #16233f);
  color: #fff;
  padding: 22px 16px;
  margin-top: 20px;
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-brand{ display: flex; flex-direction: column; gap: 2px; }
.footer-logo{ font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.footer-copy{ font-size: 11.5px; color: rgba(255,255,255,.6); }
.footer-links{ display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a{ color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; }
.footer-links a:hover{ color: var(--accent); }
.footer-credit{ font-size: 11.5px; color: rgba(255,255,255,.5); }
.footer-credit b{ color: var(--accent); }
@media (max-width: 600px){
  .footer-inner{ flex-direction: column; align-items: flex-start; text-align: left; }
}