/* =====================================================================
   Görünüm cilası (app.css üzerine biner). Kaldırmak için _head.blade.php içindeki polish.css satırını silin.
   ===================================================================== */

/* ---------- Genel ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3 { letter-spacing: -.02em; }
::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn.primary { background-size: 140% 100%; background-position: 0 0; }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 38%, transparent); }
.btn:active { transform: translateY(0) scale(.985); }
.card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.badge { letter-spacing: .01em; }
.input, .select, .textarea { transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.ico { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }

/* gündüz / gece logosu */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.brand img, .site-nav .brand img { max-height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.brand-name { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Üst menü (genel site) ---------- */
.site-nav { position: sticky; top: 10px; z-index: 50; margin-top: 12px; padding: 9px 12px 9px 16px; gap: 18px;
    background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 18px; box-shadow: 0 6px 24px rgba(30, 40, 90, .06); transition: box-shadow .25s ease, background .25s ease; }
.site-nav.scrolled { box-shadow: 0 12px 34px rgba(30, 40, 90, .14); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.site-nav .brand { font-size: 19px; gap: 10px; flex-shrink: 0; }
.site-nav .links { gap: 4px; }
.site-nav .links > a, .site-nav .more-btn { position: relative; padding: 8px 13px; border-radius: 11px; font-size: 14.5px; color: var(--muted); transition: background .15s ease, color .15s ease; }
.site-nav .links > a:hover, .site-nav .more-btn:hover { background: var(--surface-2); color: var(--text); }
.site-nav .links > a.on { background: var(--info-bg); color: var(--primary); }
.site-nav .more-menu { margin-top: 10px; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 220px; }
.site-nav .more-menu a { border-radius: 10px; padding: 9px 12px; }
.site-nav .iconbtn { width: 38px; height: 38px; border-radius: 11px; }

.mobile-menu { position: sticky; top: 76px; z-index: 49; margin-top: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; grid-template-columns: 1fr 1fr; gap: 6px; max-height: calc(100vh - 100px); overflow-y: auto; }
.mobile-menu a { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 14.5px; }
.mobile-menu a:hover { background: var(--info-bg); color: var(--primary); }
.mobile-menu .mm-cta { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.mobile-menu .mm-cta a { justify-content: center; }
.mobile-menu .mm-cta a.primary { background: var(--grad); color: #fff; }

@media (max-width: 900px) {
    .site-nav { top: 6px; margin-top: 8px; padding: 8px 10px 8px 12px; gap: 8px; border-radius: 16px; }
    .site-nav .brand { margin-right: auto; font-size: 17px; }
    .site-nav .brand img { max-height: 34px; max-width: 150px; }
    .site-nav .btn.sm:not(.primary) { display: none; }          /* mobilde yalnızca ana düğme kalır, diğeri menüde */
    .mobile-menu { display: grid; top: 62px; }
    .mobile-menu[hidden], .mobile-menu[style*="display: none"] { display: none !important; }
}
@media (max-width: 420px) {
    .mobile-menu { gap: 6px; padding: 10px; }
    .mobile-menu a { padding: 12px 10px; font-size: 14px; gap: 7px; }
    .site-nav .btn.primary.sm { padding: 7px 11px; }
}

/* ---------- Ana sayfa ---------- */
.hero-site { position: relative; padding: 54px 0 34px; }
.hero-site::before { content: ""; position: absolute; inset: -40px 0 auto 0; height: 420px; overflow: hidden; z-index: -1; pointer-events: none;
    background: radial-gradient(420px 260px at 18% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), radial-gradient(380px 240px at 82% 20%, color-mix(in srgb, var(--primary-2, var(--primary)) 14%, transparent), transparent 70%); }
.hero-site h1 { font-weight: 800; }
.hero-site .btn.lg { box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
.counter { text-align: center; padding: 20px 14px; position: relative; overflow: hidden; }
.counter b { display: block; font-size: clamp(26px, 3.4vw, 36px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sec { padding: 52px 0; }
.sec > h2 { text-align: left; }

/* Son başarılı işlemler */
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 6px 12px; border-radius: 999px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.live-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: liveIn .5s ease both; }
.live-card:nth-child(2) { animation-delay: .06s; } .live-card:nth-child(3) { animation-delay: .12s; } .live-card:nth-child(4) { animation-delay: .18s; } .live-card:nth-child(5) { animation-delay: .24s; } .live-card:nth-child(6) { animation-delay: .3s; }
.live-card b { display: block; font-size: 14.5px; line-height: 1.25; }
.live-card small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.live-ago { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ok); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
@keyframes liveIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .live-grid { grid-template-columns: 1fr; } .live-ago { font-size: 11.5px; } }

.live-toast { position: fixed; left: 18px; bottom: 20px; z-index: 55; display: flex; align-items: center; gap: 12px; width: min(340px, calc(100vw - 36px)); padding: 12px 12px 12px 14px;
    background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateX(-14px) scale(.98); transition: opacity .3s ease, transform .3s ease; }
.live-toast[hidden] { display: none; }
.live-toast.on { opacity: 1; transform: none; }
.live-toast b { display: block; font-size: 14px; }
.live-toast small { display: block; color: var(--muted); font-size: 12.5px; }
.live-toast button { background: none; border: 0; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; }
.live-toast button:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .live-toast { left: 12px; right: 12px; width: auto; bottom: auto; top: 74px; z-index: 48; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .live-card, .live-dot i { animation: none; } .live-toast { transition: none; } }

/* ---------- Numara paneli ---------- */
.buy3 { gap: 16px; align-items: start; }
.b-col { border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.b-head { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); }
.b-list { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }
.b-item { transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; border-radius: 14px; }
.b-item:hover { background: var(--surface-2); transform: translateX(2px); }
.b-item.on { background: var(--info-bg); border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: inset 3px 0 0 var(--primary); }
.b-price { background: var(--info-bg); color: var(--primary); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; }
.b-item:hover .b-price { background: var(--primary); color: #fff; }
.server-tabs button { padding: 5px 11px; font-size: 12.5px; }
.modal { border-radius: 22px; box-shadow: 0 30px 80px rgba(10, 15, 40, .35); animation: modalIn .22s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
    .buy3 { gap: 12px; }
    .b-list { max-height: 46vh; }
    .page-h h1 { font-size: 24px; }
    .modal { width: calc(100vw - 24px); max-height: 90vh; overflow-y: auto; }
}

/* ---------- Panel (müşteri + yönetim) ---------- */
.side { box-shadow: 1px 0 0 var(--line); }
.nav a { position: relative; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav a:hover { transform: translateX(2px); }
.nav a.active { box-shadow: inset 3px 0 0 var(--primary); font-weight: 700; }
.nav .grp { margin-top: 4px; }
.top { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(30, 40, 90, .04); }
.content { padding: 26px 28px 60px; }
.page-h { padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 24px; }
.page-h h1 { font-size: clamp(24px, 3vw, 30px); }
.card > h3 { display: flex; align-items: center; gap: 8px; }
.table th { background: var(--surface-2); position: sticky; top: 0; z-index: 1; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.table th:first-child { border-top-left-radius: 10px; } .table th:last-child { border-top-right-radius: 10px; }
.table tbody tr { transition: background .12s ease; }
.table-wrap { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat .ico, .stat > span:first-child { box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 22%, transparent); }
.alert { border-radius: 14px; }
.pill-tabs button { transition: all .15s ease; }
.pill-tabs button:hover:not(.on) { border-color: var(--primary); color: var(--primary); }

@media (max-width: 900px) {
    .content { padding: 18px 14px 80px; }
    .top { padding: 10px 14px; }
    .side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(10, 15, 40, .35); }
    .side.open { transform: none; }
    .table-wrap { border-radius: 12px; }
    .form-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Giriş / kayıt ---------- */
.auth-card, .auth .card { border-radius: 22px; box-shadow: var(--shadow-lg); }

/* ---------- Alt bilgi ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot a { transition: color .15s ease; }
.site-foot a:hover { color: var(--primary); }

@media (max-width: 720px) { .hide-sm { display: none; } }

/* Bakiye paketleri */
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.pkg { position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px 8px 12px; cursor: pointer; font-family: inherit; color: var(--text); transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.pkg b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pkg:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.pkg.on { border-color: var(--primary); background: var(--info-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pkg.off, .pkg:disabled { opacity: .4; cursor: not-allowed; }
.pkg-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pkg-sum { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.pkg-sum b { font-size: 20px; }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 3D avatarlar: şeffaf PNG için yumuşak zemin */
img.avatar, .avatar-grid .av img, #avPreview { background: var(--info-bg); border-radius: 50%; object-fit: cover; }
