/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hero-title, .cat-title, .section-title h2, .raffle-title, .logo-text, .auth-head h1 {
    font-family: 'Lexend', sans-serif !important;
    letter-spacing: -0.02em;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

#main {
    flex: 1;
    padding-top: 88px; /* fixed header height */
    padding-bottom: 40px;
}

/* =========================================================================
   Header / Navbar
   ========================================================================= */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 78px;
    background: rgba(15, 30, 80, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(15, 30, 80, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    height: 64px;
}
#header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-right-guest {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-right-guest .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background .18s;
    white-space: nowrap;
}
.nav-right-guest .btn-login:hover { background: rgba(255,255,255,.22); }
.nav-right-guest .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s, box-shadow .18s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
.nav-right-guest .btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245,158,11,.5);
}
.drawer-only { display: none !important; }

/* User Menu Dropdown */
.user-menu { position: relative; }
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 0;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    color: #fff;
    cursor: pointer;
    transition: background .18s;
}
.user-menu-trigger:hover { background: rgba(255,255,255,.22); }
.user-menu .user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.user-menu .user-avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.user-menu-chev {
    font-size: 11px;
    opacity: .8;
    transition: transform .2s;
}
.user-menu.open .user-menu-chev { transform: rotate(180deg); }
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15,23,42,.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 100;
}
.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.08));
}
.user-info-card .user-info-text { min-width: 0; flex: 1; }
.user-info-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-info-card small {
    display: block;
    font-size: 11.5px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.user-menu-link:hover {
    background: #f1f0fb;
    color: #5b21b6;
}
.user-menu-link.admin:hover { background: #fef2f2; color: #dc2626; }
.user-menu-link.danger { color: #dc2626; }
.user-menu-link.danger:hover { background: #fee2e2; color: #991b1b; }
.user-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 4px;
}
.logo .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}
.logo .logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.logo .logo-sub {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
}

.nav-menu ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu > ul > li > a,
.nav-menu > ul > li > form > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,.92);
    font-weight: 600;
    font-size: 14.5px;
    transition: background .18s, color .18s;
    white-space: nowrap;
    background: transparent;
    border: 0;
}
.nav-menu > ul > li > a:hover,
.nav-menu > ul > li.active > a {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.nav-menu .chev { font-size: 11px; opacity: .8; margin-left: 2px; }

/* Dropdown */
.nav-menu .drop-down { position: relative; }
.nav-menu .drop-down > ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 36px rgba(15,23,42,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}
.nav-menu .drop-down:hover > ul,
.nav-menu .drop-down.open > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .drop-down > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
}
.nav-menu .drop-down > ul > li > a:hover {
    background: #f1f0fb;
    color: #5b21b6;
}

/* Wallet */
.wallet-item .wallet-balance,
.nav-right .wallet-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.wallet-item .wallet-balance:hover,
.nav-right .wallet-balance:hover { background: rgba(255,255,255,.22); }

/* Notification bell */
.notif-item { position: relative; }
.notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    position: relative;
}
.notif-btn:hover { background: rgba(255,255,255,.18); }
.notif-dot {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    font-weight: 700;
    border: 2px solid #5b21b6;
}
.notif-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 360px;
    max-height: 460px;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(15,23,42,.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.notif-menu.open { display: flex; }
.notif-menu {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,.18), 0 4px 14px rgba(15,23,42,.08);
    border: 1px solid rgba(15,23,42,.06);
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    background: #fff;
}
.notif-header h6 { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.notif-header h6 i { color: #6366f1; }
.notif-see-all {
    color: #6366f1;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    transition: background .15s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.notif-see-all:hover { background: #e0e7ff; transform: translateX(2px); }
.notif-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.notif-close-btn:hover { background: #fee2e2; color: #ef4444; }

.notif-body {
    overflow-y: auto;
    padding: 8px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
}
.notif-body::-webkit-scrollbar { width: 6px; }
.notif-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.notif-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    border: 1px solid transparent;
}
.notif-row:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 22px rgba(15,23,42,.10);
    z-index: 2;
}
.notif-row.unread { background: #fff; border-color: rgba(99,102,241,.18); }

.notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.notif-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    word-break: break-word;
}
.notif-time {
    font-size: 11.5px;
    font-weight: 500;
}
.notif-unread-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}

/* Bildirim tipi renkleri (icon kutusu + zaman renkleri) */
.notif-security  .notif-icon { background: #dbeafe; color: #1d4ed8; }
.notif-security  .notif-title,
.notif-security  .notif-time { color: #1d4ed8; }

.notif-success   .notif-icon { background: #d1fae5; color: #047857; }
.notif-success   .notif-title,
.notif-success   .notif-time { color: #047857; }

.notif-support   .notif-icon { background: #ede9fe; color: #6d28d9; }
.notif-support   .notif-time { color: #6d28d9; }

.notif-reward    .notif-icon { background: #fce7f3; color: #be185d; }
.notif-reward    .notif-time { color: #be185d; }

.notif-celebrate .notif-icon { background: #fef3c7; color: #b45309; }
.notif-celebrate .notif-title,
.notif-celebrate .notif-time { color: #b45309; }

.notif-purchase  .notif-icon { background: #ffedd5; color: #c2410c; }
.notif-purchase  .notif-time { color: #c2410c; }

.notif-mention   .notif-icon { background: #fef9c3; color: #a16207; }
.notif-mention   .notif-title,
.notif-mention   .notif-time { color: #a16207; }

.notif-welcome   .notif-icon { background: #cffafe; color: #0e7490; }
.notif-welcome   .notif-time { color: #0e7490; }

.notif-default   .notif-icon { background: #f1f5f9; color: #475569; }
.notif-default   .notif-time { color: #64748b; }

.notif-empty {
    padding: 36px 24px;
    text-align: center;
    color: #94a3b8;
}
.notif-empty i { font-size: 36px; color: #cbd5e1; margin-bottom: 8px; display: block; }
.notif-empty p { margin: 0; font-size: 13px; }

/* Bildirimler tam liste sayfası */
.notif-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.notif-page-header h3 { margin: 0; }
.notif-count {
    font-size: 12px;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.notif-page-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notif-page .notif-row {
    background: #f8fafc;
}
.notif-page .notif-row:hover { background: #fff; }

/* Logout */
.logout-item .logout-btn {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.logout-item .logout-btn:hover { background: #ef4444; }

/* CTA buttons in nav */
.btn-cta {
    background: #fbbf24;
    color: #111827 !important;
}
.btn-cta:hover { background: #f59e0b; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 0;
    padding: 9px 12px;
    border-radius: 8px;
}

/* =========================================================================
   Hero (centered, kuppo-style)
   ========================================================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e1e63 0%, #4338ca 50%, #6d28d9 100%);
    color: #fff;
    border-radius: 24px;
    padding: 48px 28px;
    margin-bottom: 28px;
    overflow: hidden;
    text-align: center;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.hero-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
    max-width: 720px;
}

/* Wallet button */
.hero-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    transition: background .2s, transform .15s;
    min-width: 320px;
    text-align: left;
}
.hero-wallet-btn:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.hero-wallet-btn.critical {
    background: rgba(239,68,68,.18);
    border-color: rgba(239,68,68,.45);
}
.hw-icon {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fbbf24;
}
.hero-wallet-btn.critical .hw-icon { color: #fecaca; background: rgba(239,68,68,.30); }
.hw-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hw-label { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.hw-amount { font-size: 22px; font-weight: 800; }
.hw-hint { font-size: 11.5px; opacity: .9; color: #fde68a; margin-top: 2px; }
.hero-wallet-btn.critical .hw-hint { color: #fecaca; }
.hw-arrow { color: rgba(255,255,255,.7); }

/* Promo card slider */
.promo-card {
    background: rgba(16, 185, 129, .18);
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 12px;
    padding: 12px 18px;
    width: 100%;
    max-width: 560px;
    text-align: center;
    position: relative;
}
.promo-slide {
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: promoFadeIn 0.4s ease;
}
.promo-slide.active { display: inline-flex; }
@keyframes promoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.promo-slide i { color: #34d399; font-size: 16px; }
.promo-slide strong { color: #fde68a; font-weight: 800; }
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.promo-dots span {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,.30);
    cursor: pointer;
    transition: background .2s;
}
.promo-dots span.active { background: #34d399; }

/* Quick nav 3 buttons */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.quick-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.quick-nav-item i { color: #fbbf24; }
.quick-nav-item:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }

@media (max-width: 600px) {
    .hero { padding: 32px 16px 72px; }
    .hero-title { font-size: 28px; }
    .hero-wallet-btn { min-width: 0; width: 100%; }
}

/* =========================================================================
   Categories grid
   ========================================================================= */
.section-title {
    text-align: center;
    margin-bottom: 24px;
}
.section-title h2 {
    font-size: 13px;
    color: #6d28d9;
    letter-spacing: 2px;
    margin: 0 0 4px;
    font-weight: 700;
}
.section-title p {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.cat-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    color: inherit;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(91,33,182,.18);
}
.cat-image {
    height: 160px;
    background: #f3f4f8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b21b6;
    font-size: 48px;
    overflow: hidden;
}
.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-badge {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.cat-badge span {
    background: #4f46e5 !important; /* Indigo/Purple like the image */
    color: #fff !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    white-space: nowrap;
}
.cat-badge span i { font-size: 12px; }

.cat-content { padding: 14px; }
.cat-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 10px;
    min-height: 42px;
    color: #111827;
}
.cat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.stock-info {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.cat-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    font-weight: 800;
    color: #111827;
    margin-left: auto;
    text-align: right;
}
.cat-old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
    font-size: 13px;
    margin-right: 4px;
}

/* =========================================================================
   Category detail page
   ========================================================================= */
.cat-page {
    max-width: 880px;
    margin: 0 auto;
}
.cat-page-title {
    background: #eef0f6;
    border-radius: 14px 14px 0 0;
    padding: 26px 28px;
    text-align: center;
}
.cat-page-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}
.cat-page-body {
    background: #fff;
    border-radius: 0 0 14px 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
}

.price-row {
    text-align: center;
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 18px;
}
.price-row .price {
    color: #16a34a;
    font-size: 17px;
    margin-left: 6px;
}
.price-row .old-price {
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 14px;
}

.buy-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.buy-actions form { margin: 0; }
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: 0;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
    transition: transform .15s, box-shadow .15s, opacity .15s;
    text-decoration: none;
    min-width: 240px;
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .45); }
.btn-buy.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-gift {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6b7280;
    color: #fff;
    border: 0;
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-gift:hover { background: #4b5563; }

.stock-row {
    text-align: center;
    margin-bottom: 22px;
}
.stock-row p { margin: 4px 0; color: #4b5563; font-size: 14px; }
.stock-row strong { color: #1f2937; }
.stock-row .stock-note { font-size: 12px; color: #6b7280; }

/* Recent buyers strip */
.recent-buyers {
    background: #f9f8ff;
    border-radius: 14px;
    padding: 16px 18px 18px;
    margin-bottom: 22px;
}
.recent-buyers h6 {
    text-align: center;
    margin: 0 0 14px;
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 2px;
    font-weight: 700;
}
.recent-buyers h6 i { color: #f59e0b; margin-right: 5px; }
.avatar-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.10);
}
.avatar-item small {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Info cards (Rehber / Hizmet / Uyarılar) */
.info-card {
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.info-card h3 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 18px;
    color: #1f2937;
}
.banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.banner:last-child { margin-bottom: 0; }
.banner-green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.banner-green i { color: #10b981; }
.banner-blue {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    font-weight: 500;
}
.banner-blue i { color: #3b82f6; }

.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.detail-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef0f5;
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list .dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 6px;
}
.detail-list strong { color: #1f2937; font-size: 14px; }
.detail-list p { margin: 4px 0 0; color: #4b5563; font-size: 13.5px; }

.warnings-card {
    background: #fffbeb;
    border-color: #fde68a;
}
.warn-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.warn-list li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    color: #78350f;
    font-size: 13.5px;
    line-height: 1.5;
}
.warn-list li i {
    color: #d97706;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cat-page-title h2 { font-size: 17px; }
    .cat-page-body { padding: 18px; }
    .btn-buy { width: 100%; min-width: 0; }
}

/* =========================================================================
   Profile page (sekmeli)
   ========================================================================= */
.profile-page { max-width: 920px; margin: 0 auto; }

.profile-header {
    background: linear-gradient(135deg, #0f1e50 0%, #1e3a8a 50%, #3b3088 100%);
    color: #fff;
    padding: 26px 28px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.profile-header h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.profile-header p { margin: 0; font-size: 13.5px; opacity: .9; }
.profile-avatar-block { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.profile-username { font-weight: 700; font-size: 16px; }
.profile-role { margin-top: 4px; }

.rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-tabs {
    background: #fff;
    display: flex;
    gap: 6px;
    padding: 4px 18px 0;
    border-bottom: 1px solid #eef0f5;
    overflow-x: auto;
    scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a {
    padding: 12px 14px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.profile-tabs a:hover { color: #4338ca; }
.profile-tabs a.active {
    color: #4338ca;
    border-bottom-color: #6366f1;
}

.profile-body {
    background: #fff;
    padding: 26px 28px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.info-banner-blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-banner-blue i { color: #3b82f6; margin-top: 2px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.form-grid .form-group small,
.form-narrow .form-group small {
    color: #9ca3af;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}
.form-narrow { max-width: 480px; }

.section-h { margin: 0 0 6px; font-size: 16px; color: #1f2937; }
.section-desc { color: #6b7280; font-size: 13.5px; margin: 0 0 14px; }

.security-list { display: flex; flex-direction: column; gap: 10px; }
.security-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 10px;
    transition: transform .15s, background .15s;
}
.security-row:hover { transform: scale(1.01); background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.security-title { font-size: 13px; font-weight: 600; color: #1e3a8a; line-height: 1.4; }
.security-time { font-size: 11.5px; color: #64748b; margin-top: 4px; }

.avatar-edit { text-align: center; padding: 20px 0; }
.avatar-preview {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 14px 30px rgba(99,102,241,.35);
}

/* Stat grid (istatistikler) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}
.stat-blue   .stat-icon { background: #dbeafe; color: #1d4ed8; }
.stat-purple .stat-icon { background: #ede9fe; color: #6d28d9; }
.stat-orange .stat-icon { background: #fed7aa; color: #c2410c; }
.stat-green  .stat-icon { background: #d1fae5; color: #047857; }
.stat-value { font-size: 22px; font-weight: 800; color: #1f2937; line-height: 1.2; }
.stat-value .unit { font-size: 14px; font-weight: 600; color: #6b7280; }
.stat-label { font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.stat-stars { margin-top: 6px; color: #f59e0b; font-size: 13px; }

.rank-card {
    border: 2px solid;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
}
.rank-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rank-label { color: #6b7280; font-size: 12px; margin-bottom: 4px; }
.rank-meta { color: #6b7280; font-size: 12px; margin-top: 4px; }

/* =========================================================================
   Para Kazan
   ========================================================================= */
.earn-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.earn-stat {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
    border: 1px solid #f3f4f8;
    transition: transform .15s;
}
.earn-stat:hover { transform: translateY(-2px); }
.es-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.es-value { font-size: 20px; font-weight: 800; color: #1f2937; line-height: 1; }
.es-label { font-size: 13px; color: #4b5563; margin-top: 4px; }
.es-meta  { font-size: 11px; color: #9ca3af; margin-top: 4px; display: flex; align-items: center; gap: 4px; }

.earn-panel { background: #fff; }
.ep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #6d28d9; }
.ep-head i { font-size: 20px; }
.ep-head h3 { margin: 0; color: #6d28d9; font-size: 18px; }
.ep-head.between { justify-content: flex-start; }
.ep-head .ml-auto { margin-left: auto; }

.opportunity {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}
.op-title { color: #6d28d9; font-size: 15px; margin: 0 0 12px; }
.op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.op-item {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    align-items: flex-start;
    transition: transform .15s, box-shadow .15s;
}
.op-item:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(109,40,217,.12); }
.op-i { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.op-item strong { display: block; color: #1f2937; font-size: 13.5px; margin-bottom: 3px; }
.op-item p { margin: 0; color: #6b7280; font-size: 12.5px; line-height: 1.4; }

.warn-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.warn-banner i { color: #dc2626; font-size: 18px; margin-top: 2px; }
.warn-banner strong { display: block; color: #b91c1c; margin-bottom: 4px; }
.warn-banner p { margin: 0; color: #7f1d1d; font-size: 13px; line-height: 1.5; }

.progress-block { padding: 8px 0; }
.pb-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-title { color: #1f2937; font-weight: 700; }
.pb-sub { color: #6b7280; font-size: 13px; margin-top: 2px; }
.pb-stats { display: flex; gap: 18px; }
.pb-stats span { display: block; color: #9ca3af; font-size: 11.5px; }
.pb-stats strong { color: #6d28d9; font-size: 16px; }
.pb-track {
    background: #f3f4f8;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}
.pb-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 999px;
    transition: width .4s;
}
.pb-milestones {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pb-mile {
    text-align: center;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}
.pb-mile i { font-size: 16px; display: block; margin-bottom: 4px; }
.pb-mile.on { color: #6d28d9; }
.pb-mile.on i { color: #8b5cf6; }
.pb-note { text-align: center; color: #6b7280; font-size: 13px; margin: 0; }
.pb-note strong { color: #6d28d9; }

.ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ref-title { font-weight: 700; color: #1f2937; }
.invite-code-display {
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.ic-label { color: #9ca3af; font-size: 11px; letter-spacing: 1px; font-weight: 700; }
.ic-code { color: #6d28d9; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.ic-link {
    background: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 12.5px;
    word-break: break-all;
    display: block;
    margin-top: 4px;
}

/* =========================================================================
   Daily Reward
   ========================================================================= */
.reward-card {
    max-width: 480px;
    margin: 20px auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px 26px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(15,23,42,.08);
    border-top: 4px solid #8b5cf6;
}
.reward-top h2 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #6d28d9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reward-emoji { font-size: 26px; }
.reward-username { color: #4b5563; font-size: 14px; }
.reward-balance {
    font-size: 32px;
    font-weight: 800;
    color: #6d28d9;
    margin-bottom: 18px;
}
.reward-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.rs-item {
    background: #f5f3ff;
    border-radius: 10px;
    padding: 12px;
}
.rs-label { color: #6d28d9; font-size: 11.5px; margin-bottom: 4px; font-weight: 600; }
.rs-value { color: #1f2937; font-weight: 800; font-size: 16px; }

.btn-claim {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 8px 22px rgba(139,92,246,.35);
    transition: transform .15s, box-shadow .15s;
}
.btn-claim:hover { transform: translateY(-1px); }
.btn-claim.disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

.reward-countdown {
    margin-top: 14px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
}
.cd-label { color: #6b7280; font-size: 12px; }
.cd-time { color: #1f2937; font-weight: 700; margin-top: 4px; }

.lucky-bet {
    margin-top: 22px;
    padding: 16px;
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 12px;
}
.lucky-bet p { margin: 0 0 8px; font-size: 13px; color: #7c2d12; line-height: 1.5; }
.lucky-bet p strong { color: #c2410c; }
.lucky-bet .lucky-note { font-size: 12px; }
.lucky-bet button { margin-top: 6px; }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 16px;
    color: #6d28d9;
    font-size: 13px;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    transition: background .15s;
}
.back-home:hover { background: #f5f3ff; }

/* =========================================================================
   Transaction history (filter pills + cards)
   ========================================================================= */
.tx-panel { padding-bottom: 14px; }
.tx-head h3 { margin: 0 0 14px; color: #1f2937; font-size: 18px; }
.tx-head h3 i { color: #6366f1; margin-right: 6px; }

.tx-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tx-filters a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, color .15s, transform .15s;
}
.tx-filters a:hover { background: #e2e8f0; transform: translateY(-1px); }
.tx-filters a.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.tx-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #f3f4f8;
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform .15s, box-shadow .15s;
}
.tx-row:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.tx-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-label { font-weight: 700; color: #1f2937; font-size: 14px; }
.tx-desc  { font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.tx-side { text-align: right; }
.tx-amount { font-weight: 800; font-size: 15px; }
.tx-date { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }

.tx-topup  .tx-icon  { background: #dcfce7; color: #15803d; }
.tx-topup  .tx-amount { color: #15803d; }
.tx-spend  .tx-icon  { background: #fee2e2; color: #b91c1c; }
.tx-spend  .tx-amount { color: #b91c1c; }
.tx-reward .tx-icon  { background: #dcfce7; color: #047857; }
.tx-reward .tx-amount { color: #047857; }
.tx-invite .tx-icon  { background: #ede9fe; color: #6d28d9; }
.tx-invite .tx-amount { color: #6d28d9; }
.tx-refund .tx-icon  { background: #dbeafe; color: #1d4ed8; }
.tx-refund .tx-amount { color: #1d4ed8; }
.tx-points .tx-icon  { background: #fef3c7; color: #b45309; }
.tx-points .tx-amount { color: #b45309; }

/* =========================================================================
   Auth (login / register) cards
   ========================================================================= */
.auth-shell {
    max-width: 460px;
    margin: 30px auto;
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.auth-shell h1 {
    margin: 0 0 6px;
    font-size: 24px;
    text-align: center;
}
.auth-shell p.muted {
    text-align: center;
    color: #6b7280;
    margin: 0 0 22px;
}
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-shell-enhanced {
    width: 100%;
    max-width: 500px;
    padding: 28px 28px 24px;
    border: 1px solid #e9eaf3;
}
.auth-head {
    text-align: center;
    margin-bottom: 18px;
}
.auth-head-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b21b6, #2563eb);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}
.auth-footnote {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: #6b7280;
}
.auth-footnote a {
    color: #4f46e5;
    font-weight: 700;
}
.auth-help {
    color: #6b7280;
    font-size: 12px;
    display: block;
    margin-top: 6px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fafafe;
    transition: border-color .18s, box-shadow .18s;
}
.form-control:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.18);
    background: #fff;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    font-size: 14.5px;
    transition: transform .12s, opacity .18s;
    cursor: pointer;
    color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, #5b21b6, #2563eb);
    color: #fff;
}
.btn-primary:hover { opacity: .94; }
.btn-block { width: 100%; }
.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}
@media (max-width: 640px) {
    .auth-page {
        min-height: auto;
    }
    .auth-shell-enhanced {
        padding: 22px 18px 18px;
        margin-top: 12px;
    }
}

/* =========================================================================
   Alerts
   ========================================================================= */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 14px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.auth-popout {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(10px);
}
.auth-popout.open { display: flex; }
.auth-popout-card {
    width: min(430px, 100%);
    display: grid;
    justify-items: stretch;
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    border: 1px solid rgba(226, 232, 240, .9);
    text-align: center;
}
.auth-popout-card .auth-head-icon {
    margin-left: auto;
    margin-right: auto;
}

body:has(.auth-popout.open) {
    overflow: hidden;
}

body.auth-popout-active {
    overflow: hidden;
}
.auth-popout-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
}
.auth-popout-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 600;
}
.auth-code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 800;
}
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 16px;
}
.auth-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.auth-resend-form {
    margin-top: 12px;
}
.auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4f46e5;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 14px;
    box-shadow: none;
    transition: all 0.2s;
}
.auth-link-btn:hover {
    background: #f1f5f9;
    border-color: #4f46e5;
    color: #4338ca;
    transform: translateY(-1px);
}
.auth-footnote .auth-link-btn {
    border: none;
    background: none;
    color: #6366f1;
    font-size: 14px;
    padding: 0;
    min-height: auto;
}
.auth-footnote .auth-link-btn:hover {
    color: #4f46e5;
    text-decoration: underline;
    transform: none;
}

/* Auth Popouts */
.auth-popout-card {
    animation: authPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-popout-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 16px 0 8px;
    letter-spacing: -0.5px;
}
.auth-popout-card .muted {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}
.btn-ghost {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.btn-ghost:hover {
    background: #f1f5f9;
    color: #475569;
}


/* =========================================================================
   Tables / lists
   ========================================================================= */
.card-panel {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15,23,42,.06);
    margin-bottom: 20px;
}
.card-panel h3 { margin: 0 0 14px; }

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef0f5;
    font-size: 14px;
}
.table th { background: #faf9ff; font-weight: 700; color: #4b5563; }
.table tr:last-child td { border-bottom: 0; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-muted   { background: #e5e7eb; color: #374151; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}

/* Mobile nav responsive rules are fully handled in the
   @media (max-width: 992px) block near the end of this file
   (white slide-in drawer) and in mobile.css. */

/* =========================================================================
   Home: Liderlik / Çekilişler / Yorumlar
   ========================================================================= */
.home-section { margin: 40px 0; }

/* Liderlik */
.leaderboard-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15,23,42,.06);
    border: 1px solid #eef0f5;
}
.leaderboard-card > summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transition: filter .15s;
}
.leaderboard-card > summary::-webkit-details-marker { display: none; }
.leaderboard-card > summary:hover { filter: brightness(1.05); }
.lb-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.lb-text { flex: 1; display: flex; flex-direction: column; }
.lb-text strong { font-size: 15px; font-weight: 700; }
.lb-text small  { font-size: 12px; opacity: .85; margin-top: 2px; }
.lb-chev { font-size: 13px; transition: transform .2s; }
.leaderboard-card[open] .lb-chev { transform: rotate(180deg); }
.lb-body { padding: 8px 14px 16px; }

/* Başlık satırı */
/* Başlık satırı */
.lb-header-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 120px 100px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lb-header-rank { text-align: center; display: block; }
.lb-header-user { text-align: left; display: block; }
.lb-header-badge { text-align: center; display: block; }
.lb-header-spent { text-align: center; display: block; }
.lb-header-prize { text-align: center; display: block; }

.lb-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 120px 100px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px dashed #eef0f5;
    transition: transform .15s, background .15s;
    border-radius: 8px;
}
.lb-row:hover { background: #f8fafc; transform: scale(1.01); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { font-weight: 800; color: #6366f1; font-size: 14px; text-align: center; display: block; }
.lb-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lb-avatar {
    width: 34px; height: 34px;
    border-radius: 999px;
    color: #fff; font-weight: 700; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.lb-name { color: #1f2937; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rank-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
    justify-content: center;
    width: 100%; box-sizing: border-box;
}
.rank-bronze { background:#fde68a; color:#92400e; }
.rank-silver { background:#e2e8f0; color:#475569; }
.rank-gold   { background:#fef08a; color:#b45309; }
.lb-points {
    background: #fef9c3;
    color: #b45309;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    width: 100%; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.lb-prize {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.lb-no-prize {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
}

/* Çekilişler */
.raffle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.raffle-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 20px 24px 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,23,42,.08);
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.raffle-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 40px rgba(99,102,241,.15);
    border-color: #c7d2fe;
}
.raffle-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.raffle-prize-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(99,102,241,.25);
}
.raffle-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    color: #1e293b;
    text-align: center;
}
.raffle-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
    text-align: center;
}
.raffle-prize-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: fit-content;
}
.raffle-prize-box i { font-size: 18px; color: #f59e0b; }
.raffle-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.raffle-stat {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
}
.raffle-stat i { 
    font-size: 20px; 
    color: #6366f1;
    width: 24px;
    text-align: center;
}
.raffle-stat div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.raffle-stat strong { 
    font-size: 18px; 
    font-weight: 800; 
    color: #1e293b;
    line-height: 1;
}
.raffle-stat span { 
    font-size: 11px; 
    color: #64748b;
    font-weight: 600;
}
.raffle-date {
    background: #fffbeb !important;
    border: 2px solid #fbbf24 !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: #92400e !important;
    font-weight: 900 !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2) !important;
    text-transform: uppercase;
}
.raffle-date i { color: #f59e0b !important; font-size: 20px !important; }

.raffle-date span { letter-spacing: 0.5px; }

.raffle-joined {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 8px;
}
.raffle-joined i { color: #10b981; }
.raffle-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
    text-decoration: none;
}
.raffle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.raffle-btn-more {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.raffle-btn-more:hover {
    box-shadow: 0 6px 20px rgba(16,185,129,.4);
}

/* Çekiliş Katılım Modal */
.raffle-join-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.raffle-join-modal.open { display: flex; }
.raffle-join-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
}
.raffle-join-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 28px;
    max-width: 400px;
    width: 100%;
    margin: auto;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    animation: raffleModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes raffleModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.raffle-join-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 0;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.raffle-join-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}
.raffle-join-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}
.raffle-join-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin: 0 0 4px;
}
.raffle-join-desc {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 20px;
}
.raffle-join-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.raffle-join-info-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.raffle-join-info-item i {
    font-size: 18px;
    color: #6366f1;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.raffle-join-info-item div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.raffle-join-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.raffle-join-balance,
.raffle-join-cost {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
}
.raffle-join-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.raffle-join-minus,
.raffle-join-plus {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.raffle-join-minus:hover,
.raffle-join-plus:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    transform: scale(1.06);
}
.raffle-join-input {
    flex: 1;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}
.raffle-join-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.raffle-join-total {
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    border: 1.5px solid #a5b4fc;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.raffle-join-total span {
    font-size: 13px;
    color: #4338ca;
    font-weight: 600;
}
.raffle-join-total-cost {
    font-size: 15px;
    font-weight: 800;
    color: #4338ca;
}
.raffle-join-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}
.raffle-join-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.raffle-join-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.raffle-join-confirm {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: 0;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.raffle-join-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.raffle-join-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Yorumlar */
.online-pill {
    background: #10b981;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    width: max-content;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16,185,129,.30);
}
.online-pill .dot {
    width: 8px; height: 8px; border-radius: 999px; background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.30);
}
.online-pill i { cursor: pointer; opacity: .8; }
.online-pill i:hover { opacity: 1; }

.rank-info-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
}
.rank-info-card > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.rank-info-card > summary::-webkit-details-marker { display: none; }
.rank-info-card > summary > i:first-child { color: #fbbf24; }
.rank-info-card > summary > i:last-child { margin-left: auto; transition: transform .2s; }
.rank-info-card[open] > summary > i:last-child { transform: rotate(180deg); }
.rank-info-body {
    background: #fff;
    color: #1f2937;
    padding: 16px 18px;
    border-radius: 0 0 14px 14px;
}
.rank-info-label { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.rank-info-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rank-medal {
    width: 44px; height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.rank-name { font-size: 16px; font-weight: 700; }
.rank-spent { font-size: 12px; color: #6b7280; }
.rank-helpful {
    margin-left: auto;
    background: #cffafe;
    color: #0e7490;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.comment-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
    border: 1px solid #eef0f5;
}
.cf-row { display: flex; gap: 12px; align-items: flex-start; }
.cf-avatar {
    width: 38px; height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #1f2937;
    font-weight: 700;
    flex-shrink: 0;
}
.cf-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    min-height: 44px;
    resize: vertical;
}
.cf-input:focus { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }

.cf-toggles { margin-top: 10px; }
.cf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: #1e3a8a;
    cursor: pointer;
}
.cf-toggle input { display: none; }
.cf-switch {
    width: 28px; height: 16px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: background .15s;
}
.cf-switch::before {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    top: 2px; left: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform .15s;
}
.cf-toggle input:checked + .cf-switch { background: #3b82f6; }
.cf-toggle input:checked + .cf-switch::before { transform: translateX(12px); }

.cf-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
}
.cf-image-btn {
    background: #ede9fe;
    color: #6d28d9;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cf-image-btn:hover { background: #ddd6fe; }
.cf-submit {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(139,92,246,.35);
}
.cf-submit:hover { transform: translateY(-1px); }

.comments-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: stretch;
}
.cf-select {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 10px 36px 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9 1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .2s, box-shadow .2s;
}
.cf-select:hover { border-color: rgba(99, 102, 241, 0.4); }
.cf-select:focus {
    outline: 0;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.cf-search {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    padding: 0 6px 0 14px;
}
.cf-search:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.cf-search-icon {
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    transition: color .2s;
}
.cf-search:focus-within .cf-search-icon { color: #6366f1; }
.cf-search input {
    flex: 1;
    border: 0;
    padding: 10px 8px;
    font-size: 13.5px;
    outline: 0;
    background: transparent;
    color: #1e293b;
    font-weight: 500;
}
.cf-search input::placeholder { color: #94a3b8; }
.cf-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cf-search button {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .2s;
}
.cf-search button:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: scale(1.08);
}

/* Arama durum mesaji */
.comment-search-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #4f46e5;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}
.comment-search-status i { font-size: 12px; }
.comment-search-status strong { font-weight: 800; color: #4338ca; }
.comment-search-status em { font-style: normal; color: #1e293b; font-weight: 600; }

/* Liste arama yapilirken hafif solgun */
.comment-list.is-searching {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity .2s;
}

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px;
    padding: 16px;
    transition: transform .15s, box-shadow .15s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.comment-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.06); }

.cc-head { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    margin-bottom: 10px !important;
}

.cc-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    font-size: 16px !important;
    color: #fff !important;
}

.cc-meta { 
    display: flex !important; 
    flex-direction: column !important;
    flex: 1 !important; 
    min-width: 0 !important;
}

.cc-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.cc-username {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1e293b !important;
}

.cc-handle {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.cc-status-pill {
    font-size: 10px !important;
    color: #94a3b8;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 1px 8px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.cc-status-pill.online {
    color: #10b981;
    background: #f0fdf4;
    border-color: #dcfce7;
}
.cc-status-pill.recent {
    color: #d97706;
    background: #fffbeb;
    border-color: #fde68a;
}
.cc-status-pill.week,
.cc-status-pill.old {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.cc-status-pill .cc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Rozetler ve Butonlar (Premium Efektler) */
.comment-card [class*="badge-glow-"],
.comment-card .action-like,
.comment-card .action-reply {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 24px !important; 
    padding: 0 10px !important; 
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer !important;
}

.comment-card .action-like:hover, 
.comment-card .action-reply:hover {
    transform: scale(1.04) translateY(-1px) !important;
}

.cc-time { color: #94a3b8 !important; font-size: 11.5px !important; margin: 4px 0 !important; display: block !important; }
.cc-text { margin: 10px 0 !important; color: #334155 !important; font-size: 14.5px !important; line-height: 1.5 !important; }


/* =========================================================================
   Sıfırdan Görevler ve Modal Sistemi
   ========================================================================= */
.kp-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important; /* Standart Modallar */
    display: none;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 80px 16px 40px !important;
    overflow-y: auto !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px) !important;
}
.kp-modal.open { display: flex !important; }

.kp-modal-card {
    position: relative !important;
    background: #fff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 640px !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4) !important;
    margin: 0 auto !important;
    animation: kpSlide .3s ease-out !important;
}

/* Görev Kartları Tasarımı */
.task-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.task-card:hover { border-color: #6366f1; background: #fff; }
.task-card.done { border-color: #10b981; background: #f0fdf4; opacity: 0.9; }

/* Ödül Bildirimi (En Üst Katman) */
#reward-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20000 !important; /* Modallardan daha üstte */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}
.rp-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(12px) !important;
}
.rp-card {
    position: relative !important;
    z-index: 2 !important;
    background: #fff !important;
    border-radius: 32px !important;
    width: 100% !important;
    max-width: 400px !important;
    padding: 40px !important;
    text-align: center !important;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6) !important;
    animation: rpIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes rpIn { from { opacity: 0; transform: scale(0.8) translateY(40px); } to { opacity: 1; transform: scale(1) translateY(0); } }



.kp-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef0f5;
}
.kp-head-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.kp-head-text { flex: 1; min-width: 0; }
.kp-head-text h3 { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; }
.kp-head-text small { color: #6b7280; font-size: 12px; }
.kp-points-badge {
    background: #fff7ed;
    color: #b45309;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #fdba74;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.kp-points-badge i { color: #f59e0b; }
.kp-close {
    background: none;
    border: 0;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color .15s;
}
.kp-close:hover { color: #1f2937; }

.kp-modal-body {
    padding: 16px 22px 22px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Shop sections */
.kp-section-title {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 14px 0 10px;
    font-size: 13px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kp-section-title i { color: #6366f1; }
.kp-section-title small { color: #9ca3af; font-size: 11.5px; margin-left: 4px; }
.kp-section-title:first-of-type { margin-top: 0; }

.kp-sell-row, .kp-market-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: transform .15s, box-shadow .15s;
}
.kp-sell-row:hover, .kp-market-row:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.kp-product { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.kp-prod-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.kp-product strong { display: block; font-size: 13.5px; color: #1f2937; }
.kp-product small  { color: #6b7280; font-size: 11.5px; }
.kp-stock {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}
.kp-qty {
    width: 70px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
}
.kp-qty-input {
    width: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}
.kp-sell-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.kp-sell-btn:hover { transform: translateY(-1px); }

.kp-buy-ticket-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform .15s;
}
.kp-buy-ticket-btn:hover { transform: translateY(-1px); }
.kp-buy-ticket-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kp-buy-cat-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform .15s;
}
.kp-buy-cat-btn:hover { transform: translateY(-1px); }
.kp-buy-cat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kp-qty-ticket, .kp-qty-cat {
    width: 70px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.kp-market-info { flex: 1; min-width: 0; }
.kp-market-info strong { display: block; color: #1f2937; font-size: 13.5px; }
.kp-market-info small  { color: #6b7280; font-size: 11.5px; line-height: 1.35; display: block; margin-top: 2px; }
.kp-market-price { text-align: right; min-width: 72px; }
.kp-market-price .kp-price { font-weight: 800; color: #1f2937; font-size: 14px; }
.kp-market-price small { color: #9ca3af; font-size: 10.5px; display: block; }
.kp-buy-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

/* Kategori kartları - modern stil */
.kp-category-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
}
.kp-category-row:hover {
    background: #fff;
    border-color: #6366f1;
}
.kp-category-row .kp-prod-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}
.kp-category-row .kp-market-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.kp-category-row .kp-market-info small {
    font-size: 12px;
    color: #64748b;
}
.kp-category-row .kp-stock {
    margin-left: 0;
    margin-right: 6px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.kp-category-row .kp-market-price {
    min-width: 80px;
}
.kp-category-row .kp-market-price .kp-price {
    font-size: 16px;
    font-weight: 800;
    color: #6366f1;
}
.kp-qty-input-cat {
    width: 70px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}
.kp-buy-cat-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: transform .15s, box-shadow .15s;
}
.kp-buy-cat-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.kp-buy-cat-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.kp-buy-btn:hover { transform: translateY(-1px); }
.kp-buy-btn.disabled, .kp-buy-btn[disabled] {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Görevler modal */
.tasks-body { background: #f8fafc; }
.task-group-title {
    color: #6366f1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.task-group-title > span {
    width: 4px;
    height: 14px;
    background: #6366f1;
    border-radius: 999px;
    display: inline-block;
}
.task-group-title:first-of-type { margin-top: 0; }

.task-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    transition: transform .15s, box-shadow .15s;
}
.task-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.06); }
.task-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.task-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.task-info { flex: 1; min-width: 0; }
.task-info strong { display: block; font-size: 14px; color: #1f2937; }
.task-info p { margin: 4px 0; font-size: 12.5px; color: #6b7280; line-height: 1.4; }
.task-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
.task-reward-pill {
    background: #fef3c7;
    color: #b45309;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid #fde68a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.task-level-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.tier-grid-9 { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.tier-step {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    transition: transform .15s;
}
.tier-step:hover { transform: scale(1.04); }
.tier-step.active {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}
.tier-step .tier-amt {
    display: block;
    font-size: 11px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 4px;
}
.tier-step.active .tier-amt { color: #1d4ed8; }
.tier-step .tier-rwd {
    display: block;
    font-size: 9.5px;
    color: #b45309;
    background: #fef3c7;
    padding: 3px 4px;
    border-radius: 6px;
    line-height: 1.2;
    font-weight: 700;
}

.task-progress { padding-top: 4px; }
.tp-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.tp-track {
    background: #f1f5f9;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.tp-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
}
.tp-foot {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #6b7280;
}
.task-status {
    color: #6366f1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.task-rwd-count { font-weight: 700; }

/* Mobile tweaks */
@media (max-width: 600px) {
    .kp-modal { padding: 30px 12px; }
    .kp-modal-head { flex-wrap: wrap; }
    .kp-points-badge { order: 3; flex: 1; }
    .raffle-title { padding-right: 0; margin-top: 38px; }
    .cf-actions { justify-content: stretch; }
    .cf-actions button { flex: 1; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; padding: 10px; display: flex; justify-content: space-around; }
    .bottom-nav a { color: #6b7280; }
    .bottom-nav a.active { color: #6366f1; }
    .page-layout { padding-bottom: 60px; }
    .touch-target { padding: 16px; }
    .ios-fix { padding-top: 20px; }
}

.lb-empty, .comment-empty, .task-empty {
    text-align: center;
    padding: 28px 18px;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}
.lb-empty i, .comment-empty i, .task-empty i {
    display: block;
    font-size: 26px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.lb-empty a, .task-empty a { color: #6366f1; font-weight: 600; }

/* Yorum form mesaj satırı */
.cf-msg {
    margin-top: 10px;
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 8px;
    display: none;
}
.cf-msg.loading { display: block; background: #eff6ff; color: #1d4ed8; }
.cf-msg.success { display: block; background: #ecfdf5; color: #047857; }
.cf-msg.error   { display: block; background: #fef2f2; color: #b91c1c; }

/* Like butonu aktif */
.cc-like-btn.liked { background: #fee2e2; color: #dc2626; }
.cc-like-btn.liked i { color: #dc2626; }

/* Görev tier — claimed / claim-ready */
.tier-step.claimed {
    background: #d1fae5;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 2px rgba(16,185,129,.18);
    opacity: .85;
    position: relative;
}
.tier-step.claimed .tier-amt { color: #047857; }
.tier-step.claimed .tier-rwd { background: #10b981; color: #fff; }
.tier-check {
    position: absolute;
    top: 4px; right: 4px;
    width: 16px; height: 16px;
    background: #10b981;
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tier-step[data-claim] {
    cursor: pointer;
    animation: tierPulse 1.4s infinite;
}
.tier-step[data-claim]:hover {
    transform: scale(1.06);
    background: #fef3c7;
    border-color: #fbbf24;
}
.tier-claim-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(239,68,68,.45);
}
@keyframes tierPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.6); }
    50%      { box-shadow: 0 0 0 6px rgba(251,191,36,0); }
}

/* Tek-tier görev için "Ödülü Al" butonu */
.task-claim-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: 0;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(245,158,11,.35);
    animation: tierPulse 1.4s infinite;
}
.task-claim-btn:hover { transform: translateY(-1px); }
.task-status.done { color: #10b981; }
.task-card.claiming { opacity: .6; pointer-events: none; }

/* Bilet satış miktar input — daha hizalı */
.kp-sell-row .kp-qty { appearance: textfield; -moz-appearance: textfield; }
.kp-sell-row .kp-qty::-webkit-outer-spin-button,
.kp-sell-row .kp-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Navbar Kuppo Points pillinin hover'ı */
.kp-nav-pts:hover { background: rgba(255,255,255,.16); }

/* Quick-nav görev claim noktası */
.quick-nav-item { position: relative; }
.quick-nav-dot {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(239,68,68,.55);
    animation: claimDotPulse 1.4s infinite;
}
.quick-nav-item.has-claim {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 14px rgba(251,191,36,.25);
}
@keyframes claimDotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Hesaplarım: hesap kartları (id yok, payload + tarih) */
.purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.purchase-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .2s;
}
.purchase-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.purchase-head { display: flex; align-items: center; gap: 10px; }
.purchase-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eff6ff; color: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.purchase-title { font-weight: 700; flex: 1; }
.purchase-price { color: #10b981; font-weight: 700; font-size: 13px; }
.purchase-date { font-size: 12px; color: #6b7280; display: flex; gap: 6px; align-items: center; }
.purchase-payload {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    color: #1f2937;
    word-break: break-all;
    user-select: all;
}
.purchase-actions { display: flex; gap: 8px; margin-top: 4px; }
.purchase-actions .btn { flex: 1; padding: 7px 10px; font-size: 12.5px; }


/* Satın Alma Başarı Modal */
.purchase-success-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.purchase-success-modal.open { display: flex; }
.purchase-success-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}
.purchase-success-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    margin: auto;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    animation: purchaseModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
@keyframes purchaseModalIn {
    from { opacity: 0; transform: scale(0.8) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.purchase-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: successIconPulse 0.6s ease-out;
}
@keyframes successIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.purchase-success-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px;
}
.purchase-success-card p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px;
}
.purchase-success-price {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.purchase-success-price i {
    font-size: 24px;
    color: #3b82f6;
}
.purchase-success-price span {
    font-size: 24px;
    font-weight: 800;
    color: #1e40af;
}
.purchase-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.purchase-success-btn {
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .2s;
    text-decoration: none;
}
.purchase-success-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.purchase-success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.purchase-success-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.purchase-success-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* =========================================================================
   Mobile Responsive — Telefon & Tablet Optimizasyonu
   ========================================================================= */
@media (max-width: 992px) {
    /* Main Layout */
    #main { padding-top: 70px !important; }
    .container { padding: 0 16px !important; }

    /* Header & Navigation */
    #header { height: 64px !important; }
    .logo img { height: 44px !important; width: auto !important; }
    
    .nav-menu {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: auto !important;
        width: 280px !important;
        height: calc(100vh - 64px) !important;
        background: #fff !important;
        box-shadow: 4px 0 28px rgba(0,0,0,0.18) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateX(-108%) !important;
        display: block !important;
        padding: 24px !important;
        overflow-y: auto !important;
        color: #1e293b !important;
        z-index: 1000 !important;
    }
    .nav-menu.active, .nav-menu.open { transform: translateX(0) !important; }
    .nav-menu ul { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .nav-menu > ul > li > a, .nav-menu > ul > li > form > button { 
        color: #475569 !important; 
        padding: 14px 18px !important; 
        border-radius: 14px !important; 
        background: #f8fafc !important; 
        border: 1px solid #f1f5f9 !important; 
        width: 100% !important; 
        justify-content: flex-start !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }
    .nav-menu > ul > li.active > a { background: #6366f1 !important; color: #fff !important; border-color: #6366f1 !important; }
    
    /* Alt Menü (Dropdown) Mobil Fix - KESİN ÇÖZÜM */
    .nav-menu .drop-down > ul { 
        display: none !important; 
        position: static !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        background: #f8fafc !important; 
        width: 100% !important; 
        padding: 0 0 0 20px !important; 
        border-left: 3px solid #6366f1 !important;
        margin-top: 8px !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .nav-menu .drop-down.open > ul { 
        display: block !important; 
    }
    .nav-menu .drop-down > a .chev { transition: transform 0.3s; }
    .nav-menu .drop-down.open > a .chev { transform: rotate(180deg); }


    /* Bildirimler */
    .notif-menu { 
        display: none; 
        position: fixed !important; 
        top: 64px !important; 
        right: 0 !important; 
        left: 0 !important; 
        width: 100vw !important; 
        height: calc(100vh - 64px) !important; 
        border-radius: 0 !important; 
        box-shadow: none !important;
        z-index: 1001 !important;
        background: #fff !important;
    }
    .notif-menu.open { display: flex !important; flex-direction: column !important; }


    /* Kategori Yazıları */
    .cat-card, .cat-title, .cat-price, .stock-info { color: #111827 !important; }
}

/* --- Premium Comment Interactions & Aesthetic Revamp --- */
.comment-card .cc-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    font-size: 18px !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.comment-card .comment-card .cc-avatar {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    font-size: 14px !important;
}

.comment-card .cc-meta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.comment-card .cc-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.comment-card .cc-username {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1e293b !important;
}

.comment-card .cc-handle {
    color: #94a3b8 !important;
    font-size: 14px !important;
}

.comment-card .cc-status-pill {
    font-size: 11px !important;
    padding: 2px 8px !important;
}

/* Rozetlerin Kusursuz Hizalanması */
.comment-card [class*="badge-glow-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 24px !important; 
    padding: 0 10px !important; 
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Buton Büyüme Animasyonları */
.comment-card .action-like, 
.comment-card .action-reply, 
.comment-card .reply-submit, 
.comment-card .reply-cancel,
.cf-submit,
.cf-image-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer !important;
    transform-origin: center;
}

.comment-card .action-like:hover, 
.comment-card .action-reply:hover, 
.comment-card .reply-submit:hover,
.cf-submit:hover,
.cf-image-btn:hover {
    transform: scale(1.04) translateY(-1px) !important;
}



/* Modern & Soft Yanıt Kutusu */
.reply-box-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
    margin-top: 15px !important;
    position: relative !important;
    animation: premiumPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Textarea - KESİN ÇÖZÜM */
textarea.reply-input {
    width: 100% !important;
    min-height: 110px !important;
    border: 2px solid #f1f5f9 !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    padding: 15px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
    display: block !important;
}

textarea.reply-input:focus {
    background: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1) !important;
}

/* =========================================================================
   Yorum yaniti modern tasarimi (thread + reply)
   ========================================================================= */
.comment-thread { margin-bottom: 18px; }

/* Yanit konteyneri - sol tarafta dikey baglayici cizgi ile */
.thread-replies {
    position: relative;
    margin-top: 10px;
    margin-left: 24px;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.thread-replies::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 18px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        rgba(99,102,241,0.35) 0%,
        rgba(139,92,246,0.25) 50%,
        rgba(99,102,241,0.10) 100%);
}

/* Yanit kartinin kendisi - daha sade, daha sikistirilmis */
.comment-card.reply-card {
    background: rgba(248, 250, 252, 0.72) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: transform .15s, box-shadow .2s, border-color .2s !important;
}
.comment-card.reply-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12) !important;
    transform: translateY(-1px);
}

/* Yanit kartinin sol tarafindan dikey cizgiye uzanan kucuk baglayici */
.thread-reply-wrap { position: relative; }
.thread-reply-wrap::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 22px;
    width: 28px;
    height: 2px;
    background: rgba(99,102,241,0.30);
    border-radius: 2px;
}

/* Yanit ust etiketi: "Yanit: @kullanici" */
.cc-reply-mention {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 3px 10px 3px 8px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.10));
    color: #4f46e5;
    border: 1px solid rgba(99,102,241,0.20);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    line-height: 1.4;
}
.cc-reply-mention i {
    font-size: 10px;
    transform: scaleX(-1);
}
.cc-reply-mention strong {
    font-weight: 700;
    color: #4338ca;
}
.cc-reply-mention:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}
.cc-reply-mention:hover strong { color: #fff; }

/* Yanit kartinda meta yaziklarini bir tik kucult */
.comment-card.reply-card .cc-username { font-size: 14px !important; }
.comment-card.reply-card .cc-handle { font-size: 12px !important; }
.comment-card.reply-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 8px 0 !important;
}

/* "X yaniti daha goster" - thread-replies icinde oldugu icin margin-left sifir */
.show-more-replies {
    margin: 4px 0 0 0;
    align-self: flex-start;
    position: relative;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    color: #4f46e5;
    border: 1px solid rgba(99,102,241,0.18);
    padding: 9px 18px 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(99,102,241,0.08);
    transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.show-more-replies::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 2px;
    background: rgba(99,102,241,0.30);
    border-radius: 2px;
}
.show-more-replies i {
    font-size: 11px;
    transition: transform .25s ease;
}
.show-more-replies:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(99,102,241,0.32);
}
.show-more-replies:hover i {
    transform: translateY(2px);
}
.show-more-replies:active {
    transform: translateY(0);
}

/* Mobil */
@media (max-width: 600px) {
    .thread-replies { margin-left: 12px; padding-left: 22px; }
    .thread-reply-wrap::before { left: -22px; width: 18px; }
    .show-more-replies { font-size: 12.5px; padding: 8px 14px; }
    .show-more-replies::before { left: -22px; width: 18px; }
    .cc-reply-mention { font-size: 11px; }
}

/* "Daha Fazla Yorum Yukle" - modern gradient pill */
.load-more-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: 0;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.30), 0 2px 6px rgba(99, 102, 241, 0.15);
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s, filter .2s;
    position: relative;
    overflow: hidden;
}
.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity .25s;
}
.load-more-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(99, 102, 241, 0.40); }
.load-more-btn:hover::before { opacity: 1; }
.load-more-btn:active { transform: translateY(0); }
.load-more-btn:disabled, .load-more-btn.is-loading {
    cursor: progress;
    filter: saturate(0.85) brightness(1.05);
    transform: none;
}
.load-more-btn .lmb-icon {
    width: 22px; height: 22px; border-radius: 999px;
    background: rgba(255,255,255,0.18);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: transform .25s ease;
}
.load-more-btn:hover .lmb-icon { transform: translateY(2px); }
.load-more-btn .lmb-text { position: relative; z-index: 1; }

/* Yeni eklenen yorum kartlari icin yumusak girisle */
.cl-fade-in {
    animation: clFadeIn 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes clFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* "Yanit: @kullanici" tiklamasinda ust yorumda kisa parlatma efekti */
.comment-card.comment-flash {
    animation: commentFlash 1.8s ease-out;
}
@keyframes commentFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55), 0 4px 15px rgba(0,0,0,0.05);
        border-color: rgba(99, 102, 241, 0.7) !important;
        background: rgba(238, 242, 255, 0.85) !important;
    }
    35% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.18), 0 8px 24px rgba(99, 102, 241, 0.18);
        border-color: rgba(99, 102, 241, 0.6) !important;
        background: rgba(238, 242, 255, 0.65) !important;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 4px 15px rgba(0,0,0,0.05);
        border-color: rgba(255,255,255,0.4) !important;
        background: rgba(255, 255, 255, 0.6) !important;
    }
}

/* =========================================================================
   MOBİL BOTTOM NAV + KAPSAMLI TELEFON OPTİMİZASYONU
   ========================================================================= */

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.48);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* Bottom nav — masaüstünde gizli */
.mob-bottom-nav { display: none; }

@media (max-width: 768px) {
    /* ── BOTTOM NAV ─────────────────────────────────────────── */
    .mob-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 58px;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -6px 24px rgba(15,23,42,.09);
        z-index: 1200;
        align-items: stretch;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 2px;
        color: #94a3b8;
        font-size: 9px;
        font-weight: 700;
        text-decoration: none;
        transition: color .2s;
        padding: 4px 0;
        letter-spacing: .2px;
    }
    .mob-nav-item i { font-size: 18px; line-height: 1; }
    .mob-nav-item.active,
    .mob-nav-item:hover { color: #6366f1; }
    .mob-nav-center { position: relative; margin-top: -16px; flex: 1.1; }
    .mob-nav-center-btn {
        width: 48px; height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 20px;
        box-shadow: 0 6px 20px rgba(99,102,241,.45);
        margin-bottom: 2px;
    }
    .mob-nav-center.active .mob-nav-center-btn { filter: brightness(1.1); }
    .mob-nav-center span:last-child { margin-top: 2px; }

    /* ── MAIN PADDING (bottom nav için) ─────────────────────── */
    #main { padding-bottom: 76px !important; }

    /* ── INPUT — iOS zoom engeli ─────────────────────────────── */
    input, textarea, select { font-size: 16px !important; }

    /* ── TAM GENİŞLİK BUTONLAR ───────────────────────────────── */
    .btn-block, .btn-buy { width: 100% !important; box-sizing: border-box; }

    /* ── LEADERBOARD GRİD — 3 sütuna küçült ─────────────────── */
    .lb-header-row,
    .lb-row { grid-template-columns: 36px 1fr 90px !important; gap: 8px !important; }
    .lb-header-badge, .lb-header-prize { display: none !important; }
    .lb-row > *:nth-child(3),
    .lb-row > *:nth-child(5) { display: none !important; }
    .lb-row > *:nth-child(4) { display: flex !important; }

    /* ── PROFİL TABS — yatay kaydırma ───────────────────────── */
    .profile-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-bottom: 2px !important;
        scrollbar-width: none;
    }
    .profile-tabs::-webkit-scrollbar { display: none; }
    .profile-tabs a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    .profile-header {
        flex-direction: column !important;
        gap: 14px !important;
        text-align: center !important;
    }
    .profile-avatar-block {
        align-items: center !important;
    }

    /* ── STAT GRID — 2×2 ────────────────────────────────────── */
    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* ── TABLOLAR — yatay kaydırma ───────────────────────────── */
    table.table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 0;
    }

    /* ── ÇEKİLİŞLER — tek sütun ──────────────────────────────── */
    .cl-tickets { grid-template-columns: 1fr !important; gap: 10px !important; }
    .cl-ticket  { width: 100% !important; padding: 14px 16px !important; gap: 12px !important; }
    .cl-ticket .thint { display: none !important; }
    .cl-ticket .tcount { font-size: 22px !important; }
    .cl-grid    { grid-template-columns: 1fr !important; }
    .cl-past-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cl-past-card table { min-width: 380px; }

    /* ── HESAPLARIM ─────────────────────────────────────────── */
    .hs-filters {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-bottom: 4px !important;
        scrollbar-width: none;
    }
    .hs-filters::-webkit-scrollbar { display: none; }
    .cat-filter-btn { flex-shrink: 0 !important; }
    .hs-row-head    { display: none !important; }
    .hs-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .hs-items-grid  { grid-template-columns: 1fr !important; }
    .hs-item-actions { width: 100% !important; }
    .hs-item .btn-group { flex-wrap: wrap !important; gap: 8px !important; }
    .hs-item .btn-group button,
    .hs-item .btn-group a { flex: 1 1 0; text-align: center; justify-content: center; }

    /* ── DAVET ET — 2×2 stat, tek sütun açıklamalar ──────────── */
    .earn-stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .op-grid    { grid-template-columns: 1fr !important; gap: 12px !important; }

    /* ── CARD PANEL ─────────────────────────────────────────── */
    .card-panel { padding: 18px 16px !important; }

    /* ── HERO ───────────────────────────────────────────────── */
    .hero-quick-nav { flex-wrap: wrap !important; gap: 6px !important; }
    .quick-nav-item {
        min-width: 72px !important;
        padding: 10px 8px !important;
        font-size: 10px !important;
    }
    .quick-nav-item i { font-size: 17px !important; }

    /* ── KATEGORİ ───────────────────────────────────────────── */
    .cat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .cat-title { font-size: 12.5px !important; }
    .cat-price { font-size: 15px !important; }

    /* ── BÖLÜM BAŞLIĞI ──────────────────────────────────────── */
    .section-title h2 { font-size: 18px !important; }
    .section-title    { margin-bottom: 14px !important; }

    /* ── BAKIYE SAYFASI ─────────────────────────────────────── */
    .card-panel > form .form-group { margin-bottom: 14px !important; }

    /* ── AUTH SAYFALAR ──────────────────────────────────────── */
    .auth-card { padding: 24px 18px !important; border-radius: 20px !important; }

    /* ── MODAL — tam ekran ──────────────────────────────────── */
    .kp-modal-card {
        max-width: 100% !important;
        margin: auto 0 0 !important;
        border-radius: 24px 24px 0 0 !important;
    }
    .kp-modal { align-items: flex-end !important; padding: 0 !important; }

    /* ── PURCHASES GRİD ─────────────────────────────────────── */
    .purchases-grid { grid-template-columns: 1fr !important; }

    /* ── DESTEK — form ve tablo ─────────────────────────────── */
    .ticket-row { flex-direction: column !important; gap: 8px !important; }

    /* ── RAFFLE MODAL — input büyük ─────────────────────────── */
    .raffle-count-input { font-size: 18px !important; height: 48px !important; }

    /* ── LB SPENT (4. sütun) yazı boyutu ───────────────────── */
    .lb-spent { font-size: 12px !important; }
}

/* =========================================================================
   Header stabilite + scrollbar gutter (sayfa geçişlerinde kayma önler)
   ========================================================================= */
html { scrollbar-gutter: stable; }

@media (min-width: 993px) {
    .nav-right {
        min-width: 280px;
        justify-content: flex-end;
    }
}

/* =========================================================================
   Anasayfa açılır/kapanır bölümler (<details>)
   ========================================================================= */
.home-collapse {
    border-radius: 18px;
    overflow: hidden;
}
.home-collapse > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 4px 12px;
    user-select: none;
    border-radius: 12px;
    transition: background .18s;
}
.home-collapse > summary::-webkit-details-marker { display: none; }
.home-collapse > summary:hover {
    background: rgba(99,102,241,.06);
}
.home-collapse > summary .section-title {
    margin-bottom: 0;
}
.home-collapse-chev {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    color: #fff;
    font-size: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 12px rgba(99,102,241,.25);
}
.home-collapse[open] .home-collapse-chev { transform: rotate(180deg); }
.home-collapse > summary:hover .home-collapse-chev {
    box-shadow: 0 6px 16px rgba(99,102,241,.4);
}
.home-collapse-body {
    animation: collapseSlide .3s ease;
}
@keyframes collapseSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
