/* ============================================================
   OYUN PORTALI - LANDING STİLLERİ
   ============================================================ */
:root {
    --p-bg: #080c14;
    --p-surface: var(--p-surface);
    --p-surface-2: #16203a;
    --p-border: rgba(148, 163, 184, .14);
    --p-text: var(--p-text);
    --p-muted: var(--p-muted);
    --p-muted-2: var(--p-muted-2);
    --p-accent: #22c55e;
    --p-sky: #38bdf8;
    --p-warn: #f59e0b;
    --p-purple: #a855f7;
    --p-radius: 18px;
    --p-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:
        radial-gradient(1200px 640px at 12% -10%, rgba(34, 197, 94, .12), transparent 60%),
        radial-gradient(1000px 560px at 100% 0%, rgba(56, 189, 248, .12), transparent 55%),
        var(--p-bg);
    color: var(--p-text);
    font-family: var(--p-font);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}
a { color: inherit; }

/* ---------- NAVBAR ---------- */
.p-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 26px;
    background: var(--p-nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--p-border);
}
.p-logo {
    display: flex; align-items: center; gap: 11px;
    font-weight: 800; font-size: 16px; text-decoration: none;
    letter-spacing: .3px;
}
.p-logo .mark {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 12px; font-size: 21px;
    background: linear-gradient(135deg, rgba(34, 197, 94, .26), rgba(56, 189, 248, .2));
    border: 1px solid rgba(34, 197, 94, .38);
}
.p-logo span.txt {
    background: linear-gradient(90deg, var(--p-green-text-2), #38bdf8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-nav .links { display: flex; gap: 6px; margin-left: 10px; }
.p-nav .links a {
    padding: 8px 13px; border-radius: 10px;
    color: var(--p-muted); text-decoration: none;
    font-size: 13.5px; font-weight: 600;
    transition: .18s;
}
.p-nav .links a:hover { background: rgba(148,163,184,.09); color: var(--p-text); }
.p-nav .spacer { flex: 1; }
.p-nav .auth { display: flex; align-items: center; gap: 10px; }
.p-user {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 20px;
    background: var(--p-surface); border: 1px solid var(--p-border);
    font-size: 13px; font-weight: 600; color: var(--p-text-soft);
}
.p-user.nav-me { gap: 9px; }

/* --- Navbar avatar + rozet ---------------------------------
   Not: social.css yüklenmeyen sayfalarda (örn. portal ana sayfa)
   avatar <img> boyutsuz kalıp ekranı kaplamasın diye bu kurallar
   portal.css içinde de tanımlıdır. */
.p-nav .auth img,
.p-nav .auth .ava-dot {
    width: 24px; height: 24px; flex: 0 0 24px;
    max-width: 24px; max-height: 24px;
    object-fit: cover; display: grid; place-items: center;
    border-radius: 8px;
    font-size: 12px; font-weight: 800; color: #06121f;
}
.p-nav .auth img { border: 1px solid var(--p-hair-2); }

.nav-badge {
    display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 2px;
    border-radius: 10px; background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 800; text-align: center; line-height: 16px;
}

/* ---------- KULLANICI AÇILIR MENÜSÜ (hesap menüsü) ---------- */
.nav-user { position: relative; }

button.p-user.nav-me {
    cursor: pointer; font-family: inherit; color: var(--p-text-soft);
    transition: background .18s, border-color .18s, color .18s;
}
.p-user.nav-me:hover,
.nav-user.open .p-user.nav-me {
    background: rgba(148,163,184,.15); color: var(--p-text-strong);
    border-color: rgba(148,163,184,.42);
}
.p-user.nav-me .caret {
    font-size: 10px; line-height: 1; color: var(--p-muted);
    transition: transform .18s;
}
.nav-user:hover .p-user.nav-me .caret,
.nav-user.open .p-user.nav-me .caret { transform: rotate(180deg); color: var(--p-text-soft); }

/* avatarın köşesindeki bildirim rozeti (menü kapalıyken de görünür) */
.nav-me .ava-wrap { position: relative; display: inline-flex; }
.nav-dot {
    position: absolute; top: -6px; right: -6px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: 9px; background: #ef4444; color: #fff;
    font-size: 9.5px; font-weight: 800; line-height: 1;
    border: 1.5px solid var(--p-menu-2);
    box-shadow: 0 2px 6px rgba(239,68,68,.45);
}

.nav-drop {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
    min-width: 236px; padding: 7px;
    background: linear-gradient(180deg, var(--p-menu-1), var(--p-menu-2));
    border: 1px solid var(--p-border); border-radius: 15px;
    box-shadow: 0 22px 48px rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .17s, transform .17s, visibility .17s;
}
/* butondan menüye geçerken arada kapanmasın diye görünmez köprü */
.nav-drop::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

.nav-user:hover .nav-drop,
.nav-user:focus-within .nav-drop,
.nav-user.open .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }

.nd-head {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px 11px; margin-bottom: 5px;
    border-bottom: 1px solid rgba(148,163,184,.14);
}
.nd-head .nd-ava { object-fit: cover; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #06121f; }
.nd-id { min-width: 0; }
.nd-nm { display: block; font-size: 13px; font-weight: 700; color: var(--p-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-un { display: block; font-size: 11px; color: var(--p-muted); }

.nav-drop a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 10px;
    color: var(--p-text-soft); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: .15s;
}
.nav-drop a:hover { background: rgba(148,163,184,.13); color: var(--p-text-strong); }
.nav-drop a.on { background: rgba(34,197,94,.13); color: var(--p-active-text); }
.nav-drop a .nd-ic { width: 18px; text-align: center; font-size: 14px; }
.nav-drop a .nav-badge { margin-left: auto; }
.nav-drop .nd-sep { height: 1px; margin: 6px 4px; background: rgba(148,163,184,.14); }
.nav-drop a.nd-out { color: var(--p-red-text); }
.nav-drop a.nd-out:hover { background: rgba(239,68,68,.15); color: var(--p-red-text-2); }

/* ============================================================
   KAYDIRMA ÇUBUKLARI (tüm dikey + yatay scroll alanları)
   Renkler temaya göre assets/themes.css içindeki --p-scroll-* ile gelir.
   ============================================================ */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--p-scroll-thumb, rgba(148,163,184,.42)) var(--p-scroll-track, rgba(4,8,16,.3));
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
    background: var(--p-scroll-track, rgba(4,8,16,.3));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(180deg, var(--p-scroll-thumb, rgba(148,163,184,.42)), var(--p-scroll-thumb, rgba(148,163,184,.28)));
    border: 3px solid transparent;      /* çubuğu inceltir */
    background-clip: padding-box;
    min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--p-scroll-hover, #22c55e);
    border: 3px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active { filter: brightness(1.15); }
::-webkit-scrollbar-corner { background: transparent; }

/* Yatay kaydırma alanları (tablo, kod bloğu, şerit) */
::-webkit-scrollbar-track:horizontal { border-radius: 10px; }

/* ============================================================
   HAREKET KAYDI / BİLDİRİM ÖĞELERİ (panel + çiftlik ortak)
   ============================================================ */
.lk-item {
    position: relative;
    display: flex; align-items: flex-start; gap: 11px;
    padding: 11px 12px; border-radius: 12px;
    background: var(--p-card); border: 1px solid var(--p-border);
}
.lk-item.unread { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.3); }
.lk-item .lk-ic  { font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.lk-item .lk-txt { flex: 1; min-width: 0; }
.lk-item .lk-t   { font-size: 12.5px; font-weight: 700; }
.lk-item .lk-b   { font-size: 11.5px; color: var(--p-muted); margin-top: 2px; }
.lk-item .lk-m   { font-size: 10.5px; color: var(--p-muted-2); margin-top: 3px; }
.lk-item .lk-m b.plus  { color: var(--p-green-text); }
.lk-item .lk-m b.minus { color: var(--p-red-text); }
.lk-item .lk-dot {
    width: 7px; height: 7px; flex: 0 0 7px; margin-top: 5px;
    border-radius: 50%; background: var(--p-active-text); opacity: 0;
}
.lk-item.unread .lk-dot { opacity: 1; }
.lk-empty {
    padding: 22px; text-align: center; font-size: 12.5px; color: var(--p-muted-2);
    border: 1.5px dashed rgba(148,163,184,.22); border-radius: 12px;
}

/* tür bazlı renkli şerit */
.lk-item.kind-sale       { border-left: 3px solid var(--p-warn-text); }
.lk-item.kind-harvest    { border-left: 3px solid var(--p-green-text); }
.lk-item.kind-crop_ready { border-left: 3px solid var(--p-green-text-2); }
.lk-item.kind-prod_ready,
.lk-item.kind-collect    { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-warn       { border-left: 3px solid #ef4444; }
.lk-item.kind-level      { border-left: 3px solid var(--p-purple-text); }
.lk-item.kind-aid        { border-left: 3px solid var(--p-warn-text); }

/* Hayvan bildirimleri */
.lk-item.kind-animal_ready  { border-left: 3px solid var(--p-sky-text-2, var(--p-sky-text)); }
.lk-item.kind-animal_hungry { border-left: 3px solid var(--p-warn-text); }
.lk-item.kind-animal_warn,
.lk-item.kind-animal_dead   { border-left: 3px solid #ef4444; }
.lk-item.kind-animal_buy,
.lk-item.kind-animal_sell   { border-left: 3px solid var(--p-green-text); }
.lk-item.kind-animal_feed,
.lk-item.kind-animal_collect{ border-left: 3px solid var(--p-sky-text); }

/* Pazar & NPC sözleşmesi bildirimleri */
.lk-item.kind-market_news       { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-contract_new      { border-left: 3px solid var(--p-warn-text); }
.lk-item.kind-contract_warn     { border-left: 3px solid #f97316; }
.lk-item.kind-contract_expired  { border-left: 3px solid #ef4444; }
.lk-item.kind-contract_done     { border-left: 3px solid var(--p-green-text); }
.lk-item.kind-contract_cancel   { border-left: 3px solid var(--p-muted); }

/* P2P pazar, banka ve alarm bildirimleri */
.lk-item.kind-p2p_list,
.lk-item.kind-p2p_expired       { border-left: 3px solid var(--p-muted); }
.lk-item.kind-p2p_sell,
.lk-item.kind-bank_interest     { border-left: 3px solid var(--p-warn-text); }
.lk-item.kind-p2p_buy           { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-p2p_cancel,
.lk-item.kind-p2p_expire_wait   { border-left: 3px solid #f97316; }
.lk-item.kind-bank_deposit,
.lk-item.kind-bank_withdraw     { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-bank_borrow       { border-left: 3px solid var(--p-purple-text); }
.lk-item.kind-bank_repay        { border-left: 3px solid var(--p-green-text); }
.lk-item.kind-bank_loan_due,
.lk-item.kind-bank_loan_interest,
.lk-item.kind-bank_penalty      { border-left: 3px solid #ef4444; }
.lk-item.kind-alert_set         { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-alert_hit         { border-left: 3px solid var(--p-warn-text); }

/* Sosyal bildirimler (arkadaşlık / mesaj) */
.lk-item.kind-friend_request { border-left: 3px solid var(--p-green-text); }
.lk-item.kind-friend_accept  { border-left: 3px solid var(--p-sky-text); }
.lk-item.kind-friend_decline { border-left: 3px solid var(--p-muted); }
.lk-item.kind-friend_remove  { border-left: 3px solid #f97316; }
.lk-item.kind-message        { border-left: 3px solid var(--p-purple-text); }
.lk-item.kind-chat_mention   { border-left: 3px solid var(--p-warn-text); }

/* Bildirim bağlantıları (arkadaşlık isteği / mesaj → ilgili sayfaya gider) */
a.lk-item, .lk-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .15s;
}
a.lk-item:hover, .lk-link:hover { background: rgba(148, 163, 184, .1); }

/* panel (dashboard) kartı */
.lk-card .lk-list { display: flex; flex-direction: column; gap: 7px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.lk-card .lk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; }
.lk-card .lk-head h3 { font-size: 17px; font-weight: 800; }
.lk-card .lk-head .sub { font-size: 11.5px; color: var(--p-muted); }

/* ---- navbar bildirim zili ---- */
.nav-me-wrap { position: relative; }
.nav-bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border-radius: 50%;
    cursor: pointer; font-family: inherit; color: var(--p-text);
    background: var(--p-surface); border: 1px solid var(--p-border);
    transition: background .18s, border-color .18s;
}
.nav-bell:hover,
.nav-me-wrap.open .nav-bell { background: rgba(148,163,184,.15); border-color: rgba(148,163,184,.42); }
.nav-bell .nb-ic { font-size: 17px; line-height: 1; }
.nav-bell .nb-n {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center; border-radius: 9px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
    border: 2px solid #0b1120;
}
.nav-bell .nb-n[hidden] { display: none; }

.nd-bell { min-width: 336px; max-width: 92vw; }
.nav-me-wrap:hover .nd-bell,
.nav-me-wrap:focus-within .nd-bell,
.nav-me-wrap.open .nd-bell { opacity: 1; visibility: visible; transform: translateY(0); }

.nd-bell-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 11px 10px; margin-bottom: 2px;
    border-bottom: 1px solid rgba(148,163,184,.14);
    font-size: 12.5px; font-weight: 800;
}
.nd-bell-head .sub { font-size: 10.5px; font-weight: 600; color: var(--p-muted); }
.nd-bell-list {
    display: flex; flex-direction: column; gap: 6px;
    max-height: 336px; overflow-y: auto; padding: 7px;
}
.nd-bell-list .lk-item { padding: 9px 10px; border-radius: 10px; }
.nd-bell-list .lk-t { font-size: 12px; }
.nd-bell-list .lk-b { font-size: 11px; }
.nd-bell-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 11px 3px; border-top: 1px solid rgba(148,163,184,.14);
}
.nd-bell-foot a { font-size: 12px; font-weight: 700; color: var(--p-accent); text-decoration: none; }
.nd-bell-foot a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .nav-bell { width: 38px; height: 38px; }
    .nd-bell { min-width: 288px; }
    .nd-bell-list { max-height: 260px; }
}

/* ---------- BUTONLAR ---------- */
.p-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px;
    font-weight: 700; font-size: 13.5px;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .15s, filter .2s, background .2s;
    font-family: inherit;
}
.p-btn:active { transform: translateY(1px); }
.p-btn.primary { background: linear-gradient(180deg, #22c55e, #16a34a); color: #04140a; }
.p-btn.primary:hover { filter: brightness(1.08); }
.p-btn.ghost { background: rgba(148,163,184,.1); color: var(--p-text-soft); border-color: var(--p-border); }
.p-btn.ghost:hover { background: rgba(148,163,184,.16); color: var(--p-text-strong); }
.p-btn.sky { background: rgba(56,189,248,.14); color: var(--p-sky-text); border-color: rgba(56,189,248,.4); }
.p-btn.sky:hover { background: rgba(56,189,248,.22); }
.p-btn.sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.p-btn.lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }
.p-btn.block { width: 100%; }
.p-btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- HERO ---------- */
.p-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 26px 40px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 44px;
    align-items: center;
}
.p-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 20px;
    background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.32);
    color: var(--p-green-text); font-size: 12px; font-weight: 700; letter-spacing: .5px;
    margin-bottom: 20px;
}
.p-hero h1 {
    font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -.5px;
    margin-bottom: 18px;
}
.p-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--p-green-text-2), #38bdf8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-hero p.lead {
    color: var(--p-muted); font-size: 16.5px; max-width: 520px; margin-bottom: 28px;
}
.p-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.p-hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.p-hero-stats .s .v { font-size: 26px; font-weight: 800; color: var(--p-accent); }
.p-hero-stats .s .l { font-size: 11.5px; color: var(--p-muted-2); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.p-hero-art {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(34,197,94,.16), rgba(56,189,248,.1));
    border: 1px solid var(--p-border);
    display: grid; place-items: center;
    font-size: 120px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.p-hero-art::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.08), transparent 55%);
}

/* ---------- BÖLÜMLER ---------- */
.p-section { max-width: 1180px; margin: 0 auto; padding: 34px 26px; }
.p-section-head { margin-bottom: 26px; }
.p-section-head h2 {
    font-size: 27px; font-weight: 800; letter-spacing: -.3px;
    display: flex; align-items: center; gap: 11px;
}
.p-section-head p { color: var(--p-muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- OYUN KARTLARI ---------- */
.p-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}
.p-game {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.p-game::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--g, #22c55e);
}
.p-game:hover { transform: translateY(-5px); border-color: var(--p-border); box-shadow: 0 24px 50px rgba(0,0,0,.45); }

.p-game-top {
    display: flex; align-items: center; gap: 15px;
    padding: 24px 22px 16px;
}
.p-game-icon {
    width: 66px; height: 66px; flex: 0 0 66px;
    display: grid; place-items: center;
    border-radius: 16px; font-size: 32px;
    background: color-mix(in srgb, var(--g, #22c55e) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--g, #22c55e) 45%, transparent);
}
.p-game-title { min-width: 0; }
.p-game-title h3 { font-size: 18px; font-weight: 800; }
.p-game-title .slug { font-size: 11.5px; color: var(--p-muted-2); font-family: Consolas, monospace; }

.p-game-desc { padding: 0 22px 18px; color: var(--p-muted); font-size: 13.5px; flex: 1; }

.p-game-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(148,163,184,.09);
}
.p-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 20px;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.p-status.ready { background: rgba(34,197,94,.16); color: var(--p-green-text-2); border: 1px solid rgba(34,197,94,.35); }
.p-status.soon  { background: rgba(245,158,11,.14); color: var(--p-warn-text); border: 1px solid rgba(245,158,11,.35); }
.p-status.warn  { background: rgba(239,68,68,.14); color: var(--p-red-text); border: 1px solid rgba(239,68,68,.35); }

.p-game.soon { opacity: .78; }
.p-game.soon:hover { transform: none; }

/* Yakında teaser kartı */
.p-teaser {
    display: grid; place-items: center; text-align: center;
    padding: 40px 24px;
    border: 1.5px dashed rgba(148,163,184,.22);
    border-radius: var(--p-radius);
    color: var(--p-muted); background: rgba(148,163,184,.03);
}
.p-teaser .big { font-size: 42px; margin-bottom: 10px; opacity: .8; }
.p-teaser b { color: var(--p-text-soft); display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- ÖZELLİKLER ---------- */
.p-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.p-feature {
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border);
    border-radius: 15px;
    padding: 22px;
}
.p-feature .ic { font-size: 28px; margin-bottom: 12px; }
.p-feature h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.p-feature p { color: var(--p-muted); font-size: 13px; }

/* ---------- CTA ---------- */
.p-cta {
    max-width: 1180px; margin: 20px auto; padding: 46px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(56,189,248,.12));
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 24px;
}
.p-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.p-cta p { color: var(--p-muted); margin-bottom: 22px; }

/* ---------- FOOTER ---------- */
.p-footer {
    border-top: 1px solid var(--p-border);
    margin-top: 30px;
    padding: 26px;
    text-align: center;
    color: var(--p-muted-2);
    font-size: 12.5px;
}
.p-footer a { color: var(--p-muted); text-decoration: none; margin: 0 8px; }
.p-footer a:hover { color: var(--p-sky); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .p-hero { grid-template-columns: 1fr; padding: 46px 20px 24px; gap: 30px; }
    .p-hero h1 { font-size: 38px; }
    .p-hero-art { max-width: 320px; margin: 0 auto; font-size: 90px; }
}
@media (max-width: 640px) {
    .p-nav { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
    /* Mobilde menü gizlenmesin: yatay kaydırılabilir şerit olsun */
    .p-nav .links {
        order: 3; width: 100%; margin: 4px 0 0;
        overflow-x: auto; padding-bottom: 2px;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .p-nav .links::-webkit-scrollbar { height: 6px; }
    .p-nav .links::-webkit-scrollbar-thumb { border-width: 1px; border-radius: 6px; }
    .p-nav .links a { padding: 7px 11px; font-size: 12.5px; white-space: nowrap; }
    .p-logo span.txt { font-size: 14px; }
    /* Kullanıcı adı metni gizlenir, avatar kalır */
    .p-user .nm { display: none; }
    .p-section { padding: 26px 16px; }
    .p-hero { padding: 34px 16px 18px; }
    .p-hero h1 { font-size: 31px; }
    .p-hero p.lead { font-size: 15px; }
    .p-hero-actions .p-btn { flex: 1; }
    .p-hero-stats { gap: 20px; }
    .p-games { grid-template-columns: 1fr; }
    .p-cta { margin: 16px; padding: 34px 20px; }
}


/* ============================================================
   🎒 SABİT TOPLAMA GÖSTERGESİ (tüm sayfalarda)
   ------------------------------------------------------------
   Devam eden toplama aksiyonunu sayfanın alt-ortasında sabit gösterir.
   Markup: includes/layout.php → gatherBar()  ·  JS: assets/gather-bar.js
   (sohbet baloncuğu sağ altta, oyun kontrolleri köşelerde → ortada çakışmaz)
   ============================================================ */
.gb {
    position: fixed;
    /* 💬 sohbet baloncuğu sağ altta → gösterge onun ALTINA girmesin:
       sağdan 92px boşluk bırakılır (baloncuk 20+58=78px yer kaplar) */
    left: 10px; right: 92px; bottom: 14px; margin: 0 auto;
    max-width: 560px;
    z-index: 58;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px 9px 13px;
    border-radius: 999px;
    color: #e8eefc;
    background: linear-gradient(90deg, rgba(34, 197, 94, .22), rgba(8, 12, 22, .96) 55%);
    border: 1px solid rgba(34, 197, 94, .48);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    /* oyun içi dokunmatik kontrolleri engellemesin (yalnızca düğmeler tıklanır) */
    pointer-events: none;
}
.gb .gb-go, .gb .gb-x { pointer-events: auto; }
.gb[hidden] { display: none; }
.gb .gb-ic { flex: 0 0 auto; font-size: 19px; line-height: 1; }
.gb .gb-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gb .gb-txt b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb .gb-txt span { font-size: 11px; color: #a8b6cd; font-variant-numeric: tabular-nums; }
.gb .gb-txt span b { display: inline; font-size: 11.5px; color: #bbf7d0; font-weight: 800; }
.gb .gb-txt span b#gb-left { color: #fde68a; }
.gb .gb-go {
    flex: 0 0 auto; padding: 6px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap;
    color: #052e16; background: linear-gradient(180deg, #4ade80, #22c55e);
    border: 1px solid rgba(34, 197, 94, .7);
}
.gb .gb-go:hover { filter: brightness(1.08); }
.gb .gb-x {
    flex: 0 0 auto; padding: 5px 9px; font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
    color: #fecaca; background: rgba(239, 68, 68, .2);
    border: 1px solid rgba(239, 68, 68, .45); border-radius: 999px;
}
.gb .gb-x:hover:not([disabled]) { background: rgba(239, 68, 68, .34); color: #fff; }
.gb .gb-x[disabled] { opacity: .5; cursor: not-allowed; }

/* gösterge üstünde biriken bildirimler (chat baloncuğunun altına girmez) */
.gb-toasts {
    position: fixed;
    left: 10px; right: 92px; bottom: 68px; margin: 0 auto;
    max-width: 420px;
    z-index: 59; display: flex; flex-direction: column; align-items: center; gap: 6px;
    pointer-events: none;
}
.gb-t {
    max-width: 100%;
    padding: 8px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; text-align: center;
    color: #dcfce7; background: rgba(6, 20, 12, .94);
    border: 1px solid rgba(34, 197, 94, .5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
    transition: opacity .7s ease, transform .7s ease;
}
.gb-t.err { color: #fee2e2; border-color: rgba(239, 68, 68, .5); }
.gb-t.out { opacity: 0; transform: translateY(6px); }

@media (max-width: 620px) {
    .gb { bottom: 10px; padding: 8px 9px 8px 11px; gap: 8px; }
    .gb .gb-txt b { font-size: 12px; }
    .gb .gb-txt span { font-size: 10.5px; }
    .gb-toasts { bottom: 62px; }
}

/* ÇİFTLİK OYUNU UYARLAMASI: sayfanın altında yapışkan "sepet" çubuğu var
   (farm.css .depo-basket) → gösterge ve bildirimler onun üstünde durur.
   (chat.css de sohbet baloncuğunu aynı sebeple 92px'e çıkarır.) */
body:has(.farm-wrap) .gb        { bottom: 92px; }
body:has(.farm-wrap) .gb-toasts { bottom: 146px; }

/* ============================================================
   🍪 ÇEREZ ONAY BANNER'I
   Markup: includes/consent.php → cookieConsentBanner()
   JS    : assets/cookie-banner.js (localStorage: 'cookie_consent')
   ============================================================ */
.ck {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 900; width: calc(100% - 24px); max-width: 780px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 13px 16px; border-radius: 14px;
    background: #0f172a; color: #e2e8f0;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    font-size: 13px; line-height: 1.5;
    animation: ckIn .26s ease-out;
}
.ck[hidden] { display: none; }
@keyframes ckIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

.ck-main { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 320px; }
.ck-ic   { font-size: 20px; line-height: 1.2; }
.ck-txt b { display: block; font-size: 13px; margin-bottom: 2px; color: #f1f5f9; }
.ck-txt p { margin: 0; color: #cbd5e1; }
.ck-txt a { color: #7dd3fc; text-decoration: underline; }

.ck-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ck-btn {
    border: 1px solid transparent; border-radius: 10px; cursor: pointer;
    padding: 8px 14px; font-size: 12.5px; font-weight: 700; text-decoration: none;
    white-space: nowrap; transition: .16s;
}
.ck-ok { background: #22c55e; color: #04140a; }
.ck-ok:hover { background: #16a34a; }
.ck-no { background: rgba(148,163,184,.16); color: #e2e8f0; border-color: rgba(148,163,184,.4); }
.ck-no:hover { background: rgba(148,163,184,.28); }
.ck-dt { background: transparent; color: #cbd5e1; border-color: rgba(148,163,184,.35); }
.ck-dt:hover { color: #f1f5f9; border-color: rgba(148,163,184,.6); }

@media (max-width: 560px) {
    .ck { bottom: 10px; padding: 12px 13px; }
    .ck-btns { width: 100%; justify-content: flex-end; }
}

/* Çiftlik sayfasında alt "sepet" çubuğunun üstünde dur */
body:has(.farm-wrap) .ck { bottom: 96px; }

/* ---------- KAYIT ONAY KUTULARI (auth/register.php) ---------- */
.consent-list { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.consent-item {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12.5px; line-height: 1.55; cursor: pointer;
}
.consent-item input[type="checkbox"] {
    flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; cursor: pointer;
    accent-color: #22c55e;
}
.consent-item span { color: inherit; opacity: .95; }
.consent-item a { color: #38bdf8; text-decoration: underline; }
.consent-item .req { color: #f87171; font-size: 11px; font-weight: 800; }
.consent-item .opt { color: #94a3b8; font-size: 11px; font-weight: 800; }

