/* ——— Referans mockup: iç sayfa düzenleri ——— */

.inner-wrap {
    padding-top: var(--nav-h);
    min-height: calc(100dvh - var(--nav-h));
}

@supports not (height: 100dvh) {
    .inner-wrap {
        min-height: calc(100vh - var(--nav-h));
    }
}

/* Topluluk banner (ana sayfa) */
.community-banner {
    margin: var(--section-y-md) var(--gutter-x) 0;
    padding: clamp(2.75rem, 4vw, 3.75rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-panel);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 42%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 12, 28, 0.82) 55%, rgba(5, 5, 5, 0.9) 100%),
        url("../img/community-bg.png") center/cover;
    background-blend-mode: normal, normal, normal;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 0 0 40px rgba(var(--primary-rgb), 0.06);
}
.community-banner h2 {
    font-size: clamp(1.15rem, 1.5vw + 0.9rem, 1.45rem);
    letter-spacing: 3px;
    margin-bottom: 0.85rem;
    text-shadow: 0 0 48px rgba(var(--primary-rgb), 0.4);
}
.community-banner p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-size: 0.8rem;
}

/* ——— Oyunlar sayfası ——— */
.games-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    padding: calc(var(--nav-h) + var(--section-y-md)) var(--gutter-x) var(--section-y-lg);
    max-width: var(--content-wide);
    margin: 0 auto;
}
.games-page__side-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.games-page__cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.games-page__cat:hover,
.games-page__cat.is-active {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.35);
    padding-left: 6px;
}
.games-page__cat small {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 700;
}
.games-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.games-page__head h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 2px;
}
.games-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-chip {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(13, 17, 23, 0.6);
    cursor: pointer;
    transition: var(--transition);
}
.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.2);
}
.games-page__search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 18px;
    min-width: min(100%, 320px);
}
.games-page__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.8rem;
}
.games-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.games-page__grid .game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}
.games-page__grid .game-card {
    height: 100%;
}
.games-page__grid .card-overlay {
    padding: 1.1rem;
}
.games-page__grid .card-overlay h3 {
    font-size: 0.75rem;
}
.games-page__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

@media (max-width: 1200px) {
    .games-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .games-page {
        grid-template-columns: 1fr;
        padding-top: 5.5rem;
    }
    .games-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .games-page__grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Oyun detay ——— */
.game-detail__hero {
    position: relative;
    min-height: clamp(440px, 52vh, 620px);
    margin-top: var(--nav-h);
    background-size: cover;
    background-position: center top;
    border-bottom: 1px solid var(--border);
}
.game-detail__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 18%, rgba(5, 5, 5, 0.55) 55%, rgba(5, 5, 5, 0.92) 100%);
}
.game-detail__hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--content-norm);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter-x) 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 360px);
    gap: 2.5rem;
    align-items: end;
}
.game-detail__title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.game-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.game-detail__tags span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--primary);
}
.game-detail__meta {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.game-detail__meta-label {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.game-detail__meta-value {
    color: #fff;
    font-weight: 600;
}
.game-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.game-detail__panel {
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}
.game-detail__panel .btn-download {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}
.game-detail__stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-top: 1px solid var(--border);
}
.game-detail__body {
    max-width: var(--content-norm);
    margin: 0 auto;
    padding: var(--section-y-lg) var(--gutter-x) calc(var(--section-y-lg) + 1rem);
}
.game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.game-tabs button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}
.game-tabs button:hover,
.game-tabs button.is-active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.game-tab-panel {
    display: none;
    font-size: 0.8rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}
.game-tab-panel.is-active {
    display: block;
}
.game-tab-panel pre,
.game-tab-panel .sys-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    font-family: ui-monospace, monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    margin-top: 1rem;
}
.comment-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 10px;
}

@media (max-width: 900px) {
    .game-detail__hero-inner {
        grid-template-columns: 1fr;
    }
}

/* ——— Topluluk ——— */
.comm-page {
    padding-top: var(--nav-h);
}
.comm-hero {
    min-height: clamp(300px, 36vh, 420px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem var(--gutter-x) 3rem;
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 84% 18%, rgba(var(--primary-rgb), 0.2), transparent 34%),
        linear-gradient(135deg, rgba(8, 14, 24, 0.96), rgba(4, 8, 14, 0.98));
}
.comm-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.comm-hero p {
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
    font-size: 0.85rem;
}
.comm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    padding: var(--section-y-lg) var(--gutter-x) var(--section-y-lg);
    max-width: var(--content-norm);
    margin: 0 auto;
    align-items: start;
}
.comm-composer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.comm-composer textarea {
    width: 100%;
    min-height: 88px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    font-size: 0.8rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    font-family: inherit;
}
.comm-composer textarea::placeholder {
    color: rgba(139, 148, 158, 0.7);
}
.comm-composer__foot {
    display: flex;
    justify-content: flex-end;
}
.comm-feed__label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}
.comm-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.comm-post__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.comm-post__user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comm-post__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 0.75rem;
}
.comm-post__name {
    font-weight: 800;
    font-size: 0.8rem;
}
.comm-post__time {
    font-size: 0.6rem;
    color: var(--text-muted);
}
.comm-post__body {
    font-size: 0.8rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}
.comm-post__actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}
.comm-post__actions button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.comm-post__actions button:hover {
    color: var(--primary);
}
.comm-aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.comm-aside-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #fff;
}
.comm-friend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
}
.comm-friend:last-child {
    border-bottom: none;
}
.comm-friend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 8px #3fb950;
}
.comm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.comm-tags a {
    font-size: 0.6rem;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
}
.comm-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1000px) {
    .comm-layout {
        grid-template-columns: 1fr;
    }
}

/* ——— Turnuvalar ——— */
.tour-page {
    padding-top: var(--nav-h);
}
.tour-hero {
    padding: 4rem var(--gutter-x) 2.5rem;
    border-bottom: 1px solid var(--border);
}
.tour-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin-bottom: 0.75rem;
}
.tour-hero p {
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.65;
    font-size: 0.85rem;
}
.tour-wrap {
    padding: var(--section-y-md) var(--gutter-x) var(--section-y-lg);
    max-width: var(--content-norm);
    margin: 0 auto;
}
.tour-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin: 2.5rem 0 1.25rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    color: #fff;
}
.tour-section-title:first-child {
    margin-top: 0;
}
.tour-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.85rem;
    transition: var(--transition);
}
.tour-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.tour-card.is-muted {
    opacity: 0.72;
}
.tour-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.tour-card.is-muted .tour-card__icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.tour-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.tour-card__meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tour-card__prize {
    text-align: right;
}
.tour-card__prize strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    color: #ffd700;
}
.tour-card__prize span {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.tour-card__action .btn-signup {
    white-space: nowrap;
}
.tour-card__badge {
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .tour-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tour-card__prize {
        text-align: center;
    }
    .tour-card__icon {
        margin: 0 auto;
    }
}

/* ——— Haberler ——— */
.news-page {
    padding-top: var(--nav-h);
}
.news-hero {
    padding: 4rem var(--gutter-x) 2rem;
    border-bottom: 1px solid var(--border);
}
.news-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin-bottom: 0.75rem;
}
.news-hero p {
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.65;
}
.news-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    padding: var(--section-y-md) var(--gutter-x) var(--section-y-lg);
    max-width: var(--content-norm);
    margin: 0 auto;
    align-items: start;
}
.news-featured {
    position: relative;
    border-radius: var(--radius-panel);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: clamp(380px, 42vh, 520px);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.news-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, transparent 55%);
}
.news-featured__body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}
.news-featured__tag {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.news-featured h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}
.news-featured p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.news-list-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}
.news-list-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}
.news-list-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}
.news-list-item h3 {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
}
.news-list-item span {
    font-size: 0.6rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* ——— Destek ——— */
.support-page {
    padding-top: var(--nav-h);
}
.support-hero {
    padding: 4rem var(--gutter-x) 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.support-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}
.support-hero p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    font-size: 0.82rem;
}
.support-search {
    max-width: 720px;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.06);
}
.support-search i {
    color: var(--primary);
    font-size: 1.1rem;
}
.support-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
}
.support-search input::placeholder {
    color: rgba(139, 148, 158, 0.75);
}
.support-hero__lead {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
}
.support-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.5rem var(--gutter-x) 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.support-cat {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.support-cat:hover {
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.14);
}
.support-cat i {
    font-size: 1.45rem;
    color: var(--primary);
    flex-shrink: 0;
}
.support-cat__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.support-cat strong {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.support-cat__action {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.support-faq-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem var(--gutter-x) 5rem;
}
.support-faq-wrap h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    text-align: center;
}
.support-faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    overflow: hidden;
}
.support-faq summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-faq summary::-webkit-details-marker {
    display: none;
}
.support-faq summary::before {
    content: '+';
    color: var(--primary);
    font-weight: 900;
    font-size: 1rem;
}
.support-faq details[open] summary::before {
    content: '−';
}
.support-faq .support-faq__a {
    padding: 0 1.25rem 1.1rem 2.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .support-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .support-cats {
        grid-template-columns: 1fr;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Genel boş / arama (eski yardımcılar) */
.search-wrapper {
    max-width: 640px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
}
.search-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 0.85rem;
}
.empty-state {
    text-align: center;
    padding: 4rem var(--gutter-x);
    color: var(--text-muted);
}
.empty-state i,
.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.5;
}
.empty-state h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* ——— Giriş / Kayıt ——— */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    margin-top: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 5rem;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.97) 100%),
        url("../img/hero-bg-1.png") center/cover no-repeat;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(13, 17, 23, 0.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.auth-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    text-align: center;
    margin-bottom: 0.35rem;
    letter-spacing: 2px;
}
.auth-card__lead {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
.auth-card__accent {
    color: var(--primary);
}
.auth-card .btn-download.auth-card__submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
}
.auth-alert__action {
    margin-top: 10px;
}
.auth-alert__action a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}
.auth-alert__action a:hover {
    color: var(--primary);
}
.auth-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.auth-input:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.2);
}
.auth-alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}
.auth-alert--error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.auth-alert--success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.auth-foot {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.auth-foot a {
    color: var(--primary);
    font-weight: 800;
}

/* ——— Dashboard ——— */
.db-page {
    background: var(--bg-dark);
    min-height: 100vh;
}
.db-wrapper {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    margin-top: var(--nav-h);
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
}
/* Panel yokken tek çocuk yanlışlıkla 240px sütuna düşmesin (oyunlar vb. tam genişlik) */
.db-wrapper:not(:has(.db-sidebar)) {
    grid-template-columns: 1fr;
}
.db-sidebar {
    background: rgba(13, 17, 23, 0.85);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.db-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}
.db-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}
.db-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.db-nav-item.is-active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}
.db-nav-item i,
.db-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.db-content {
    padding: 2.5rem 8% 4rem;
    max-width: 1100px;
}
.db-content--games {
    max-width: min(var(--content-norm, 1400px), 100%);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}
/* Ana panel: içerik ~60vw ile ortada, yanlarda ferah boşluk; kartlar arası sıkı */
.db-content--dashboard {
    width: min(100%, 60vw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.25rem 1rem 3.5rem;
    box-sizing: border-box;
}
.db-content--dashboard .db-content__head {
    margin-bottom: 0.55rem;
}
.db-content--dashboard .db-grid {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.db-content--dashboard .db-recent__title,
.db-content--dashboard .db-recent > h4 {
    padding-bottom: 0.45rem;
    margin-bottom: 0.5rem;
}
.db-content--dashboard .activity-list {
    gap: 0.35rem;
}
.db-content--dashboard .activity-item {
    padding: 0.72rem 0.85rem;
}
.db-content--flush {
    padding: 0;
    max-width: none;
}
.db-content--profile {
    max-width: none;
    padding: 1.25rem 6% 4rem 1rem;
}
.games-page--in-panel {
    padding: 1.25rem 4% 3rem 0.5rem;
    grid-template-columns: 220px minmax(0, 1fr);
}
.tour-page--in-panel {
    padding-top: 0;
}
.tour-page--in-panel .tour-hero {
    padding-top: 1.5rem;
}
.game-detail--panel .game-detail__hero {
    margin-top: 0;
}
.profile-page--in-panel {
    margin-top: 0;
    padding: 0 0 2rem;
    max-width: none;
}
.db-content__head {
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1.25rem;
}
.db-content__head h1,
.db-content__head h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
}
.db-content__head p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
    letter-spacing: 0.3px;
}
.db-content__accent {
    color: var(--primary);
}
.db-content__role {
    color: var(--text-muted);
    font-weight: 600;
}
.db-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.db-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
}
.db-stat-card__label,
.db-stat-card h5 {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}
.db-stat-card__val,
.db-stat-card .val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
}
.db-stat-card__val--money {
    color: #34d399;
}
.db-stat-card__val--level {
    color: var(--primary);
}
.db-stat-card__val--link {
    font-size: 0.95rem;
}
.db-stat-card__link {
    font-size: 0.7rem;
}
.db-recent {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}
.db-recent__title,
.db-recent > h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.act-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.act-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.act-icon svg {
    width: 18px;
    height: 18px;
}
.act-icon--success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.act-icon--warn {
    background: rgba(255, 184, 0, 0.12);
    color: #ffb800;
}
.act-val--muted {
    color: var(--text-muted);
}
.act-val--ok {
    color: #34d399;
}
.act-val--warn {
    color: #ffb800;
}
.act-text__title,
.act-text h6 {
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 3px;
}
.act-text p {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.act-val {
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .db-wrapper {
        grid-template-columns: 1fr;
    }
    .db-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .db-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .db-content--dashboard {
        width: 100%;
        padding-left: max(1rem, var(--gutter-tight));
        padding-right: max(1rem, var(--gutter-tight));
    }
    .db-grid {
        grid-template-columns: 1fr;
    }
    .games-page--in-panel {
        grid-template-columns: 1fr;
        padding: 1rem 4%;
    }
}

/* ——— Profil ——— */
.profile-page {
    margin-top: var(--nav-h);
    padding: var(--section-y-lg) var(--gutter-x) calc(var(--section-y-lg) + 1rem);
    max-width: var(--content-norm);
    margin-left: auto;
    margin-right: auto;
}
.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}
.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
}
.profile-avatar__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.profile-avatar__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar__inner svg {
    width: 44px;
    height: 44px;
    color: var(--primary);
}
.profile-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.profile-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: 1px;
}
.profile-header .profile-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}
.profile-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
}
.panel-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.profile-info-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
}
.profile-info-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}
.profile-wallet-balance {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.profile-wallet-balance .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}
.profile-wallet-balance .cur {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 800;
}
.profile-wallet-balance p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}
