html:has(.towny-body),
html:has(.towny-body) body {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.92);
}

:root {
    --color-primary: #f97316;
    --color-secondary: #ea580c;
    --color-accent: #f97316;
    --color-background: #1e1e1e;
    --color-background-soft: #242424;
    --color-surface: #2a2a2a;
    --color-surface-elevated: #323232;
    --color-surface-muted: #3a3a3a;
    --color-surface-header: #2e2e2e;
    --color-text: rgba(255, 255, 255, 0.92);
    --color-text-muted: rgba(255, 255, 255, 0.58);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-strong: rgba(255, 255, 255, 0.2);
    --color-footer-bg: #181c22;
    --towny-primary: #f97316;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 8px 28px -8px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    --shadow-lift: 0 14px 40px -12px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.towny-body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
}

.towny-body main {
    background: linear-gradient(180deg, var(--color-background-soft) 0%, var(--color-background) 100%);
}

.towny-page-content {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 1rem 4rem;
}

@media (min-width: 768px) {
    .towny-page-content {
        padding-top: 3.5rem;
        padding-bottom: 5rem;
    }
}

/* ── Hero shell (duyuru + logo + kartlar — arka plan sadece burada biter) ── */
.towny-hero-shell {
    position: relative;
    background: linear-gradient(180deg, #2e2e2e 0%, #262626 50%, #1e1e1e 100%);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.towny-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    isolation: isolate;
    background: transparent;
}

.towny-nav-sticky {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: visible;
    background: rgba(12, 12, 14, 0.52);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.towny-body:has(.towny-lightrope-band) .towny-nav-sticky {
    border-bottom: none;
    box-shadow: none;
}

.towny-lightrope-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: -5px;
    padding: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
    line-height: 0;
}

.towny-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.5);
    pointer-events: none;
    z-index: 0;
}

.towny-hero-zone-inner {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.towny-hero-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    padding: 0.35rem 0 0.65rem;
}

@media (min-width: 768px) {
    .towny-hero-top {
        grid-template-columns: minmax(0, 260px) 1fr minmax(0, 260px);
        gap: 1.25rem;
        align-items: center;
    }
}

.towny-hero-logo {
    text-align: center;
    order: -1;
}

@media (min-width: 768px) {
    .towny-hero-logo {
        order: 0;
    }
}

.towny-hero-logo img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .towny-hero-logo img {
        width: 11.5rem;
        height: 11.5rem;
    }
}

.towny-hero-logo-fallback {
    width: 10rem;
    height: 10rem;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.towny-hero-logo-fallback span {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.towny-server-name-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(59, 158, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.towny-nav {
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.towny-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: visible;
}

.towny-nav-top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
}

.towny-nav-links--desktop {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
}

.towny-nav-mobile-dropdown {
    display: none;
}

.towny-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.towny-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.towny-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    flex-wrap: wrap;
}

.towny-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .towny-nav-toggle {
        display: flex;
    }

    .towny-nav-links--desktop {
        display: none !important;
    }

    .towny-nav-mobile-dropdown {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 0.5rem 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.35rem;
    }

    .towny-nav-mobile-dropdown.is-open {
        display: flex;
    }

    .towny-nav-mobile-dropdown .towny-nav-link {
        width: auto;
        min-width: min(100%, 15rem);
        max-width: 100%;
        justify-content: center;
        padding: 0.7rem 1.35rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .towny-nav-mobile-dropdown .towny-nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .towny-nav-mobile-dropdown .towny-nav-link--active {
        background: rgba(249, 115, 22, 0.14);
        border-color: rgba(249, 115, 22, 0.4);
    }

    .towny-nav-mobile-dropdown .towny-nav-link--active::after {
        left: 1.25rem;
        right: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .towny-nav-mobile-dropdown {
        display: none !important;
    }

    .towny-nav-links--desktop {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .towny-nav-links--desktop::-webkit-scrollbar {
        display: none;
    }
}

.towny-compact-header {
    display: none;
}

/* ── Duyuru bandı (kayan yazı) ── */
.towny-announcement-bar {
    padding: 0.75rem 0 0.5rem;
}

.towny-announcement-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 38rem;
    margin: 0 auto;
    background: #2a2a2a;
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-strong);
    padding: 0.5rem 0.875rem;
    overflow: hidden;
}

.towny-announcement-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.towny-announcement-ticker {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.towny-announcement-ticker.is-static {
    display: flex;
    align-items: center;
}

.towny-announcement-static-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.towny-announcement-ticker.is-scrolling {
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.towny-announcement-marquee {
    display: inline-flex;
    gap: 4rem;
    white-space: nowrap;
    animation: towny-marquee 24s linear infinite;
}

.towny-announcement-marquee span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
}

@keyframes towny-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.towny-announcement-btn {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    transition: background 0.2s;
    white-space: nowrap;
}

.towny-announcement-btn:hover {
    background: var(--color-secondary);
}

/* ── IP / Discord bilgi kartları ── */
.towny-info-card {
    background: linear-gradient(145deg, #323844 0%, #2a2f38 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-strong);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 9.5rem;
}

.towny-info-card-top {
    display: flex;
    justify-content: flex-start;
}

.towny-info-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.towny-info-card-status.is-online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.towny-info-card-status.is-offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.towny-info-card-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.towny-info-card-status.is-online .towny-info-card-dot {
    animation: towny-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes towny-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.towny-info-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.towny-info-card-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    word-break: break-all;
}

.towny-info-card-value--sm {
    font-size: 0.9375rem;
    font-weight: 700;
}

.towny-info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.towny-info-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
}

.towny-info-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.towny-info-card-icon--discord {
    background: rgba(88, 101, 242, 0.2);
    color: #a5b4fc;
}

.towny-info-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.towny-info-card-btn:hover {
    background: var(--color-secondary);
}

.towny-info-card-btn--full {
    width: 100%;
    margin-top: auto;
    padding: 0.55rem 0.75rem;
}

/* legacy hero */
.towny-hero {
    display: none;
}

.towny-announcement-wrap,
.towny-announcement-pill,
.towny-announcement-text,
.towny-announcement-link {
    display: none;
}

.towny-logo-pulse {
    animation: towny-logo-breathe 3.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes towny-logo-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.towny-server-ip-card {
    display: none;
}

.towny-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 0.75rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.towny-nav-link svg {
    width: 1.125rem;
    height: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}

.towny-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.towny-nav-link:hover svg {
    color: #ffffff;
}

.towny-nav-link--active {
    color: #fff;
}

.towny-nav-link--active svg {
    color: var(--color-accent);
}

.towny-nav-link--active::after {
    content: '';
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.towny-nav-link--highlight {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.towny-nav-link--highlight:hover {
    background: var(--color-secondary);
}

.towny-nav-link--highlight::after {
    display: none;
}

.towny-nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.towny-nav-cart-btn:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #303030 100%);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.towny-nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #333333 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.375rem 0.75rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.towny-nav-profile-btn:hover {
    background: linear-gradient(180deg, #3a3a3a 0%, #303030 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.towny-nav-profile-menu {
    position: relative;
    z-index: 30;
}

.towny-nav-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    cursor: default;
}

.towny-nav-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 13rem;
    background: linear-gradient(165deg, #353535 0%, #2a2a2a 55%, #242424 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 0.5rem;
    z-index: 50;
}

.towny-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    border-radius: 0.625rem;
}

.towny-nav-dropdown-item svg {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.towny-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.towny-nav-dropdown-item:hover svg {
    color: rgba(255, 255, 255, 0.75);
}

.towny-nav-dropdown-item--danger {
    color: #f87171;
}

.towny-nav-dropdown-item--danger svg {
    color: #f87171;
}

.towny-nav-dropdown-item--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.towny-nav-dropdown-divider {
    border-top: 1px solid var(--color-border);
    margin: 0.25rem 0;
}

.towny-nav-auth-link {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s, color 0.2s;
}

.towny-nav-auth-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.towny-card {
    background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-strong);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.towny-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 255, 255, 0.24);
}

/* Ana içerik vs yan sütun kart tonları */
.towny-body main .space-y-6 > .towny-card {
    background: #2a2a2a;
}

.towny-body main .towny-card.p-8.text-center {
    background: #2a2a2a;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.18);
}

.towny-body main .space-y-6 > .towny-card > h3 {
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border);
}

.towny-btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.towny-btn-primary:hover {
    background: var(--color-secondary);
}

.towny-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.towny-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-border-strong);
}

.towny-badge {
    display: inline-flex;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.towny-badge-update { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.towny-badge-event { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.towny-badge-announcement { background: rgba(34, 197, 94, 0.15); color: #86efac; }

.towny-countdown {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.towny-countdown-digit {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    min-width: 4rem;
}

/* ── Hızlı erişim (footer üstü) ── */
.towny-quick-actions {
    width: 100%;
    padding: 1.25rem 0;
}

.towny-quick-actions-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .towny-quick-actions-inner {
        grid-template-columns: repeat(3, 1fr);
        max-width: 72rem;
        margin: 0 auto;
    }
}

.towny-quick-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #2a2a2a;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1rem 1.125rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.towny-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(255, 255, 255, 0.22);
}

.towny-quick-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
}

.towny-quick-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

.towny-quick-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.towny-quick-card--blue .towny-quick-card-icon { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.towny-quick-card--amber .towny-quick-card-icon { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.towny-quick-card--orange .towny-quick-card-icon { background: rgba(234, 88, 12, 0.2); color: #fdba74; }

/* ── Alt şerit (sunucu + son kayıtlar) — tam genişlik ── */
.towny-pre-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .towny-pre-footer {
        grid-template-columns: minmax(380px, 42%) 1fr;
    }
}

.towny-server-info-box {
    position: relative;
    background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid var(--color-border-strong);
}

.towny-server-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0;
}

.towny-server-info-inner {
    position: relative;
    z-index: 1;
}

.towny-server-info-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}

.towny-pre-footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.towny-server-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.towny-server-info-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    white-space: nowrap;
}

.towny-server-info-meta strong {
    color: #4ade80;
    font-weight: 800;
}

.towny-recent-registrations-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 45%, #7c2d12 100%);
    padding: 1.25rem 2rem;
}

@media (min-width: 1024px) {
    .towny-recent-registrations-bar {
        flex-direction: row;
        align-items: center;
    }
}

.towny-recent-registrations-info {
    flex-shrink: 0;
    min-width: 12rem;
}

.towny-recent-registrations-sub {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.towny-recent-registrations-players {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    overflow-x: auto;
    flex: 1;
}

.towny-recent-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 4.5rem;
    transition: transform 0.2s;
}

.towny-recent-player-card:hover {
    transform: translateY(-2px);
}

.towny-recent-player-card img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    object-fit: cover;
    margin-bottom: 0.35rem;
}

.towny-recent-player-card .name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.towny-recent-player-card .ago {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-top: 0.125rem;
}

/* legacy status strip */
.towny-status-strip {
    display: none;
}

/* ── Footer ── */
.towny-footer {
    background: var(--color-footer-bg);
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid var(--color-border-strong);
}

.towny-footer-main {
    width: 100%;
    padding: 2rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
}

.towny-footer-main > div:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .towny-footer-main {
        padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 2rem;
    }

    .towny-footer-main > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .towny-footer-main {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: clamp(1.5rem, 3vw, 3.5rem);
        padding: 2.75rem clamp(1.25rem, 4vw, 3.5rem);
    }

    .towny-footer-main > div:first-child {
        grid-column: auto;
    }
}

.towny-footer-heading {
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f97316;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f97316;
    display: inline-block;
}

.towny-footer-about {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.towny-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.towny-footer-link:hover {
    color: white;
}

.towny-footer-link svg {
    width: 1rem;
    height: 1rem;
    opacity: 0.7;
}

.towny-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem clamp(1.25rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
}

.towny-footer-bottom > span:first-child {
    justify-self: start;
}

.towny-footer-bottom > span:last-child {
    justify-self: end;
}

.towny-footer-disclaimer-inline {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.6875rem;
    text-align: center;
    justify-self: center;
}

@media (max-width: 768px) {
    .towny-footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }

    .towny-footer-bottom > span:first-child,
    .towny-footer-bottom > span:last-child {
        justify-self: center;
    }

    .towny-footer-heading {
        display: block;
        width: 100%;
    }

    .towny-pre-footer-title {
        font-size: 0.9375rem;
    }

    .towny-server-info-box,
    .towny-recent-registrations-bar {
        padding: 1rem 1.25rem;
    }

    .towny-server-info-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .towny-recent-registrations-players {
        gap: 0.875rem;
    }
}

/* ── Sidebar widgets ── */
.towny-sidebar-widget {
    background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-strong);
    overflow: hidden;
}

.towny-sidebar-widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #2a2a2a;
    border-bottom: 1px solid var(--color-border-strong);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.towny-wheel-history-widget .towny-wheel-history-header {
    background: linear-gradient(135deg, #2a2418 0%, #2a2a2a 100%);
}

.towny-wheel-history-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    flex-shrink: 0;
}

.towny-wheel-history-list {
    padding: 0.5rem;
    min-height: 17.5rem;
}

.towny-wheel-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem 0.75rem;
    border-top: 1px solid var(--color-border-strong);
}

.towny-wheel-history-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.towny-wheel-history-page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.towny-wheel-history-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.towny-wheel-history-page-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 3rem;
    text-align: center;
}

.towny-wheel-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.towny-wheel-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.towny-wheel-history-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.towny-wheel-history-item + .towny-wheel-history-item {
    margin-top: 0.125rem;
}

.towny-wheel-history-item-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.towny-wheel-history-item-icon--credit {
    background: rgba(59, 158, 255, 0.15);
    color: #3b9eff;
}

.towny-wheel-history-item-icon--item {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.towny-wheel-history-item-icon--nothing {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
}

.towny-wheel-history-item-icon--default {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.towny-wheel-history-item-body {
    flex: 1;
    min-width: 0;
}

.towny-wheel-history-item-prize {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.towny-wheel-history-item-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

.towny-player-search-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #272626;
}

.towny-player-search-input {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    background: #3c3d41;
    color: var(--color-text);
}

.towny-player-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.towny-player-search-input:focus {
    border-color: var(--color-accent);
}

.towny-player-search-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.towny-player-search-btn:hover {
    background: var(--color-secondary);
}

.towny-wheel-widget {
    text-align: center;
    padding-bottom: 1rem;
    background: #271d16;
}

.towny-wheel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 1rem 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: calc(100% - 2rem);
}

.towny-wheel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.towny-wheel-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0 1rem;
}

.towny-discord-embed {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Hero kartları (cam efekt — sidebar hariç) ── */
.towny-hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    text-align: left;
    border-radius: 1rem;
    padding: 1rem 1.125rem;
    text-decoration: none;
    color: inherit;
    cursor: default;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}

.towny-hero-card:not(.towny-hero-card--sidebar) {
    background: rgba(16, 18, 24, 0.38);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button.towny-hero-card--ip:not(.towny-hero-card--sidebar) {
    background: rgba(14, 22, 18, 0.42);
    border: 1px solid rgba(34, 197, 94, 0.38);
    cursor: pointer;
}

button.towny-hero-card--ip:hover {
    box-shadow: 0 8px 28px -8px rgba(34, 197, 94, 0.35), 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.55);
}

.towny-hero-card--discord:not(.towny-hero-card--sidebar) {
    background: rgba(18, 18, 30, 0.42);
    border: 1px solid rgba(88, 101, 242, 0.38);
}

a.towny-hero-card--link {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

a.towny-hero-card--link:not(.towny-hero-card--sidebar):hover {
    box-shadow: 0 8px 28px -8px rgba(88, 101, 242, 0.28), 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Sidebar Discord — çarkıfelek altı, sabit koyu kutu */
.towny-hero-card--sidebar {
    background: #2a2a2a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.towny-hero-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.towny-hero-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.towny-hero-card-icon--green {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.towny-hero-card-icon--discord {
    background: rgba(88, 101, 242, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.towny-hero-card-pill {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.towny-hero-card-pill.is-online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.towny-hero-card-pill.is-offline {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.towny-hero-card-ip-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.towny-hero-card-ip-content {
    flex: 1;
    min-width: 0;
}

.towny-hero-card-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.towny-hero-card-stat strong {
    font-size: 1.125rem;
    font-weight: 800;
    color: #4ade80;
}

.towny-hero-card-stat svg {
    color: #4ade80;
    flex-shrink: 0;
}

.towny-hero-card-ip {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.towny-hero-card-hint {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.towny-hero-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a5b4fc;
    margin: 0;
}

.towny-hero-card-sub {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0.125rem 0 0;
    line-height: 1.3;
}

.towny-hero-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.towny-hero-card-action--discord {
    background: #5865f2;
    color: #fff;
}

.towny-hero-card-action--discord:hover {
    background: #4752c4;
}

.towny-discord-embed-in-card {
    margin-top: 0.375rem;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #2f3136;
}

/* legacy gaming kartlar */
.towny-gaming-card {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    background: transparent;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.towny-gaming-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.55), rgba(16, 185, 129, 0.15));
    filter: blur(0.5px);
}

.towny-gaming-card-glow--discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.7), rgba(114, 137, 218, 0.2));
}

.towny-gaming-card-inner {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: linear-gradient(145deg, #0f1419 0%, #1a1f26 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    min-height: 7.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.towny-gaming-card--ip .towny-gaming-card-inner {
    border-color: rgba(34, 197, 94, 0.25);
}

.towny-gaming-card--discord .towny-gaming-card-inner {
    border-color: rgba(88, 101, 242, 0.35);
}

.towny-gaming-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.towny-gaming-card-icon--ip {
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.towny-gaming-card-icon--discord {
    background: rgba(88, 101, 242, 0.2);
    color: #7289da;
    box-shadow: 0 0 14px rgba(88, 101, 242, 0.4);
}

.towny-gaming-card-body {
    flex: 1;
    min-width: 0;
}

.towny-gaming-card-stat {
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.towny-gaming-card-stat-num {
    font-size: 1.125rem;
    font-weight: 800;
    color: #4ade80;
    margin-right: 0.35rem;
}

.towny-gaming-card-stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.towny-gaming-card-ip {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-break: break-all;
    margin: 0.15rem 0;
}

.towny-gaming-card-hint {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.towny-gaming-card-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
}

.towny-gaming-card-badge.is-online {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.towny-gaming-card-badge.is-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.towny-gaming-card-label-discord {
    font-size: 0.625rem;
    font-weight: 700;
    color: #7289da;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.towny-gaming-card-discord-stat {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0.2rem 0;
}

.towny-gaming-card-discord-cta-sm {
    font-size: 0.625rem;
    font-weight: 600;
    color: #f0abfc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.towny-gaming-card-discord-cta {
    font-size: 0.875rem;
    font-weight: 800;
    color: #a5b4fc;
    text-transform: uppercase;
    margin: 0.1rem 0 0.35rem;
    line-height: 1.2;
}

.towny-gaming-card-discord-btn {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}

/* Discord davet kartı (sidebar embed fallback) */
.towny-discord-invite-card {
    background: #2f3136;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(88, 101, 242, 0.25);
}

.towny-discord-invite-header {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

.towny-discord-invite-logo-wrap {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.towny-discord-invite-brand {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.towny-discord-invite-title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #fff;
    margin: 0.1rem 0 0;
}

.towny-discord-invite-stat {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0 0;
}

.towny-discord-invite-members {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    color: #b9bbbe;
}

.towny-discord-invite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 1rem 1rem;
    padding: 0.65rem 1rem;
    background: #5865f2;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.towny-discord-invite-btn:hover {
    background: #4752c4;
}

/* ── Yılbaşı süsleri ── */
.towny-lightrope {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-height: 1.35rem;
    box-sizing: border-box;
    margin: 0;
    margin-top: 0;
    padding: 0.2rem 0.35rem 0.1rem;
    position: relative;
    background: transparent;
    border-bottom: none;
    pointer-events: none;
    overflow: visible;
}

.towny-lightrope::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    top: 0.35rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}

.towny-lightrope-bulb {
    width: 0.55rem;
    height: 0.85rem;
    border-radius: 50% 50% 45% 45%;
    position: relative;
    z-index: 1;
    margin-top: 0.38rem;
    margin-bottom: 0;
    flex-shrink: 0;
    animation: towny-bulb-blink 1.4s ease-in-out infinite;
}

.towny-lightrope-bulb:nth-child(5n+1) { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.towny-lightrope-bulb:nth-child(5n+2) { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.towny-lightrope-bulb:nth-child(5n+3) { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.towny-lightrope-bulb:nth-child(5n+4) { background: #eab308; box-shadow: 0 0 6px #eab308; }
.towny-lightrope-bulb:nth-child(5n+5) { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

@keyframes towny-bulb-blink {
    0%, 100% { opacity: 1; filter: brightness(1.2); }
    50% { opacity: 0.35; filter: brightness(0.6); }
}

.towny-snow-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
}

/* legacy - keep for compat */
.towny-announcement-wrap,
.towny-announcement-pill,
.towny-announcement-text,
.towny-announcement-link {
    display: none;
}

.towny-footer-ip-bar {
    display: none;
}

.towny-rich-content h1 { font-size: 1.875rem; font-weight: 700; margin: 1.5rem 0 1rem; color: rgba(255,255,255,0.95); }
.towny-rich-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.25rem 0 0.75rem; color: rgba(255,255,255,0.9); }
.towny-rich-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1rem 0 0.5rem; color: rgba(255,255,255,0.85); }
.towny-rich-content p { margin: 0.75rem 0; line-height: 1.7; color: rgba(255,255,255,0.65); }
.towny-rich-content ul, .towny-rich-content ol { margin: 0.75rem 0 0.75rem 1.5rem; color: rgba(255,255,255,0.65); }
.towny-rich-content a { color: var(--towny-primary, #3b9eff); text-decoration: underline; }
.towny-rich-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1rem 0; }
.towny-content-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.towny-content-table th, .towny-content-table td { border: 1px solid rgba(255,255,255,0.1); padding: 0.625rem 0.875rem; text-align: left; color: rgba(255,255,255,0.75); }
.towny-content-table th { background: rgba(255,255,255,0.06); font-weight: 600; color: rgba(255,255,255,0.9); }
.towny-content-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

/* Gallery story strip */
.towny-story-strip-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1rem 1.125rem 1.125rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(42, 42, 42, 0.96) 0%, rgba(34, 34, 34, 0.98) 100%);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-card);
    position: relative;
}

.towny-story-strip-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.07) 0%, transparent 42%);
}

.towny-story-strip-wrap > * {
    position: relative;
    z-index: 1;
}

.towny-story-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.towny-story-strip-wrap h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid var(--color-primary);
    padding-left: 0.625rem;
}

.towny-story-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.35rem 0.25rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.towny-story-strip::-webkit-scrollbar { height: 4px; }
.towny-story-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 4px; }
.towny-story-ring-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    scroll-snap-align: start;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.towny-story-ring {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    transition: background 0.35s ease, opacity 0.35s ease;
}

.towny-story-ring--seen {
    background: #3f3f46;
    opacity: 0.88;
}

.towny-story-ring--seen .towny-story-ring-img {
    border-color: #52525b;
    opacity: 0.82;
}
.towny-story-ring-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}
.towny-story-ring-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 5.5rem;
}

.towny-story-username {
    color: rgba(255, 255, 255, 0.82);
}

.towny-story-username--seen {
    color: rgba(255, 255, 255, 0.45);
}

.towny-story-ring--add {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(234, 88, 12, 0.55));
    display: flex;
    align-items: center;
    justify-content: center;
}

.towny-story-add-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.25);
}

.towny-story-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.towny-story-share-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.towny-story-share-btn--disabled,
.towny-story-share-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.towny-gallery-quota {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
}

.towny-gallery-quota--compact {
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.towny-gallery-quota--unlimited {
    color: rgba(255, 255, 255, 0.55);
}

.towny-gallery-quota--blocked {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.22);
}

.towny-gallery-quota-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.towny-gallery-quota-stats strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
}

.towny-gallery-quota-warning {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fca5a5;
}

.towny-story-empty-hint {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

.towny-story-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.towny-story-upload-form {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

/* Story viewer (Instagram style) */
.towny-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.towny-story-viewer-inner {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: min(90vh, 720px);
    background: #111;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.towny-story-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    color: white;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.towny-story-progress {
    display: flex;
    gap: 4px;
    padding: 0.75rem 0.75rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}
.towny-story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.towny-story-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.05s linear;
}
.towny-story-progress-bar.active { background: rgba(255,255,255,0.3); }
.towny-story-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem 0.75rem;
    color: white;
    position: relative;
    z-index: 4;
}
.towny-story-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 0.5rem;
}
.towny-story-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}
.towny-story-caption {
    padding: 0.75rem 1rem 1rem;
    color: white;
    font-size: 0.875rem;
    line-height: 1.5;
}
.towny-story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0,0,0,0.25);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
}
.towny-story-nav-prev { left: 0.5rem; }
.towny-story-nav-next { right: 0.5rem; }

/* Gallery grid */
.towny-gallery-card {
    background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-strong);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.towny-gallery-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}
.towny-gallery-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-surface-muted);
}
.towny-gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.towny-gallery-card:hover .towny-gallery-card-img { transform: scale(1.03); }

.towny-gallery-view-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.towny-story-view-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.towny-story-viewers {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    max-height: 10rem;
    overflow-y: auto;
}

.towny-story-viewers-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.towny-story-viewers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.towny-story-viewer-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Chat widget */
.towny-chat-widget { display: flex; flex-direction: column; }
.towny-chat-messages {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    scroll-behavior: smooth;
}
.towny-chat-messages::-webkit-scrollbar { width: 4px; }
.towny-chat-messages::-webkit-scrollbar-thumb { background: #404040; border-radius: 4px; }
.towny-chat-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}
.towny-chat-message.is-staff .towny-chat-bubble {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.35);
}
.towny-chat-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
    align-self: center;
}
.towny-chat-bubble {
    flex: 1;
    min-width: 0;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-strong);
    border-radius: 0.75rem;
    padding: 0.375rem 0.625rem;
}
.towny-chat-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.125rem;
}
.towny-chat-username {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}
.towny-chat-staff-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #3b82f6;
    color: white;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
}
.towny-chat-time {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}
.towny-chat-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    word-break: break-word;
}
.towny-chat-form {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
}
.towny-chat-input {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 0.75rem;
    outline: none;
    background: var(--color-surface-muted);
    color: var(--color-text);
}
.towny-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.towny-chat-input:focus { border-color: var(--color-accent); }
.towny-chat-send {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.towny-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Koyu tema: Tailwind utility geçersiz kılmaları (public site) ── */
.towny-body .text-gray-900,
.towny-body .text-gray-800,
.towny-body .text-gray-700,
.towny-body .text-gray-600,
.towny-body .text-gray-500,
.towny-body .text-gray-400 {
    font-weight: 700 !important;
}

.towny-body .text-gray-900 { color: rgba(255, 255, 255, 0.98) !important; }
.towny-body .text-gray-800 { color: rgba(255, 255, 255, 0.95) !important; }
.towny-body .text-gray-700 { color: rgba(255, 255, 255, 0.92) !important; }
.towny-body .text-gray-600 { color: rgba(255, 255, 255, 0.88) !important; }
.towny-body .text-gray-500 { color: rgba(255, 255, 255, 0.78) !important; }
.towny-body .text-gray-400 { color: rgba(255, 255, 255, 0.65) !important; }

.towny-body .bg-white { background-color: var(--color-surface-elevated) !important; }
.towny-body .bg-gray-50 { background-color: var(--color-surface-muted) !important; }
.towny-body .bg-gray-100 { background-color: #3a3a3a !important; }
.towny-body .bg-primary-50 { background-color: rgba(249, 115, 22, 0.14) !important; }
.towny-body .bg-red-50 { background-color: rgba(239, 68, 68, 0.12) !important; }
.towny-body .bg-amber-100 { background-color: rgba(245, 158, 11, 0.15) !important; }
.towny-body .bg-blue-50 { background-color: rgba(59, 130, 246, 0.12) !important; }
.towny-body .bg-green-100 { background-color: rgba(34, 197, 94, 0.12) !important; }

.towny-body .border-gray-50,
.towny-body .border-gray-100,
.towny-body .border-gray-200 {
    border-color: var(--color-border) !important;
}

.towny-body .divide-gray-50 > :not([hidden]) ~ :not([hidden]),
.towny-body .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--color-border) !important;
}

.towny-body .hover\:bg-gray-50:hover,
.towny-body .hover\:bg-gray-50\/50:hover,
.towny-body .hover\:bg-gray-50\/80:hover {
    background-color: var(--color-surface-muted) !important;
}

.towny-body .hover\:bg-gray-100:hover {
    background-color: #404040 !important;
}

.towny-body .hover\:bg-primary-50:hover {
    background-color: rgba(249, 115, 22, 0.12) !important;
}

.towny-body .hover\:text-primary-700:hover {
    color: #fdba74 !important;
}

.towny-body .from-primary-100 { --tw-gradient-from: rgba(249, 115, 22, 0.15) !important; }
.towny-body .to-primary-200 { --tw-gradient-to: rgba(249, 115, 22, 0.08) !important; }
.towny-body .from-gray-100 { --tw-gradient-from: rgba(255, 255, 255, 0.09) !important; }
.towny-body .to-gray-200 { --tw-gradient-to: rgba(255, 255, 255, 0.05) !important; }

.towny-body .input-field {
    background-color: var(--color-surface-muted) !important;
    border-color: var(--color-border-strong) !important;
    color: var(--color-text) !important;
}

.towny-body .input-field::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.towny-body .input-field.bg-gray-50 {
    background-color: #3a3a3a !important;
}

.towny-body .card {
    background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%) !important;
    border-color: var(--color-border-strong) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--color-text);
}

.towny-body .prose,
.towny-body .prose-sm,
.towny-body .prose-lg {
    color: rgba(255, 255, 255, 0.7);
}

.towny-body .prose h1,
.towny-body .prose h2,
.towny-body .prose h3,
.towny-body .prose h4 {
    color: rgba(255, 255, 255, 0.92);
}

.towny-body .prose a {
    color: var(--color-primary);
}

.towny-body .prose strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Nav */
.towny-body .towny-nav .towny-nav-link {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.towny-body .towny-nav .towny-nav-link svg {
    color: rgba(255, 255, 255, 0.92) !important;
}

.towny-body .towny-nav .towny-nav-link--active {
    color: #ffffff !important;
}

.towny-body .towny-nav .towny-nav-link--active svg {
    color: var(--color-accent) !important;
}

/* Bölüm başlıkları — footer turuncu vurgusu */
.towny-body main h2.text-xl,
.towny-body main h2.text-lg {
    border-left: 3px solid var(--color-accent);
    padding-left: 0.75rem;
}

/* Story strip nick */
.towny-story-ring-meta span {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Forum grup başlığı */
.towny-body .bg-gray-50.border-b {
    background: var(--color-surface-header) !important;
    border-color: var(--color-border-strong) !important;
}

/* İçerik alanı liste satırları */
.towny-body main .divide-y > * {
    border-color: var(--color-border) !important;
}

/* Kredi sayfası bilgi kartı */
.towny-body .bg-blue-50 {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

.towny-body .text-blue-900 { color: #bfdbfe !important; }
.towny-body .text-blue-800 { color: #93c5fd !important; }
.towny-body .text-blue-600 { color: #60a5fa !important; }
.towny-body .text-green-600 { color: #4ade80 !important; }
.towny-body .text-red-600 { color: #f87171 !important; }
.towny-body .text-amber-600 { color: #fbbf24 !important; }
.towny-body .bg-primary-500 { background-color: var(--color-accent) !important; }
.towny-body .text-primary-500 { color: var(--color-accent) !important; }

.towny-body .text-primary-600 { color: #fb923c !important; }
.towny-body .text-primary-400 { color: #fdba74 !important; }

/* ── Anasayfa güncel duyurular (forum) ── */
.towny-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.towny-section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    border-radius: 2px;
    background: var(--color-primary);
}

.towny-announcement-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.towny-announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.towny-announcement-item:hover {
    background: var(--color-surface-elevated);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.towny-announcement-thumb {
    width: 7.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.towny-announcement-thumb-fallback {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.85;
}

.towny-announcement-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.towny-announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.towny-announcement-cat {
    color: var(--color-primary);
}

.towny-announcement-dot {
    opacity: 0.45;
}

.towny-announcement-title {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.towny-announcement-excerpt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.towny-announcement-author {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
    margin-top: auto;
}

@media (max-width: 640px) {
    .towny-announcement-item {
        flex-direction: column;
    }

    .towny-announcement-thumb {
        width: 100%;
        height: 8rem;
    }
}

/* Scrollbar */
.towny-body ::-webkit-scrollbar { width: 8px; height: 8px; }

/* ── Form inputs (hesap ayarları) ── */
.towny-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s;
}
.towny-input:focus {
    border-color: var(--towny-primary, var(--color-primary));
}

/* ── Çarkıfelek ── */
.towny-wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 28rem;
}

.towny-wheel-stage {
    position: relative;
    width: min(100%, 22rem);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.towny-wheel-pointer {
    position: absolute;
    top: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.65rem solid transparent;
    border-right: 0.65rem solid transparent;
    border-top: 1.1rem solid var(--towny-primary, #f97316);
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.towny-wheel-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4), var(--shadow-lift);
    position: relative;
    overflow: hidden;
}

.towny-wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    pointer-events: none;
}

.towny-wheel-center-btn {
    position: absolute;
    z-index: 4;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--towny-primary, #f97316), #c2410c);
    border: 3px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s, opacity 0.15s;
}
.towny-wheel-center-btn:hover:not(:disabled) { transform: scale(1.05); }
.towny-wheel-center-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.towny-wheel-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.towny-wheel-fee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.8125rem;
    line-height: 1;
}

.towny-wheel-fee-label {
    color: var(--color-text-muted, #9ca3af);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.towny-wheel-fee-value {
    color: var(--color-primary, #f59e0b);
    font-weight: 700;
}

.towny-wheel-result {
    text-align: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    animation: towny-wheel-pop 0.35s ease-out;
}
.towny-wheel-result--win {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}
.towny-wheel-result--lose {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.towny-wheel-prizes-modal {
    background: var(--color-surface-elevated, #323232);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 24rem;
    width: 90vw;
    color: var(--color-text);
}

@keyframes towny-wheel-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Forum CKEditor */
.forum-ckeditor .ck.ck-editor__main > .ck-editor__editable {
    min-height: 220px;
    border-radius: 0 0 0.75rem 0.75rem;
    background: #fff;
    color: #1f2937;
}

.forum-ckeditor .ck.ck-toolbar {
    border-radius: 0.75rem 0.75rem 0 0;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.forum-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.forum-post-content table {
    width: 100%;
    border-collapse: collapse;
}

.forum-post-content th,
.forum-post-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}
.towny-body ::-webkit-scrollbar-track { background: var(--color-background); }
.towny-body ::-webkit-scrollbar-thumb { background: #4a5160; border-radius: 4px; }
.towny-body ::-webkit-scrollbar-thumb:hover { background: #5c6474; }

/* Hesabım paneli */
.towny-account-page { min-height: 60vh; }
.towny-account-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.88) 0%, rgba(36, 36, 36, 0.55) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.towny-account-hero-inner {
    max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 2rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.towny-account-profile { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.towny-account-avatar {
    width: 5rem; height: 5rem; border-radius: 9999px;
    border: 3px solid rgba(255, 140, 50, 0.35); object-fit: cover; flex-shrink: 0;
}
.towny-account-name-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.towny-account-username { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.2; }
.towny-account-role-badge {
    display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 600; background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.1);
}
.towny-account-meta { margin-top: 0.35rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }
.towny-account-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.towny-account-action-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; font-size: 0.875rem;
}
.towny-account-content {
    max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 3rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.towny-account-grid-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.towny-account-grid-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1024px) { .towny-account-grid-top { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .towny-account-grid-bottom { grid-template-columns: 1fr; }
    .towny-account-hero-inner { flex-direction: column; align-items: flex-start; }
}
.towny-account-card {
    background: rgba(42, 42, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
}
.towny-account-card-head {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.9); margin-bottom: 1rem;
}
.towny-account-card-head-between { justify-content: space-between; }
.towny-account-balance { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.towny-account-balance span { font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.towny-account-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towny-account-server-status { margin-bottom: 0.5rem; }
.towny-account-status-pill {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.65rem;
    border-radius: 9999px; font-size: 0.8rem; font-weight: 600;
}
.towny-account-status-pill.is-online { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.towny-account-status-pill.is-offline { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.towny-account-status-pill.is-neutral { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); }
.towny-account-status-dot { width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: currentColor; }
.towny-account-server-meta, .towny-account-server-ip { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }
.towny-account-server-ip { margin-top: 0.15rem; font-family: ui-monospace, monospace; }
.towny-account-summary-rows { display: flex; flex-direction: column; gap: 0.85rem; }
.towny-account-summary-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-size: 0.875rem; color: rgba(255, 255, 255, 0.55);
}
.towny-account-email { color: #f0a0a8; font-size: 0.85rem; text-align: right; word-break: break-all; }
.towny-account-link { font-size: 0.8rem; font-weight: 600; color: var(--color-primary, #f97316); }
.towny-account-link:hover { text-decoration: underline; }
.towny-account-empty { font-size: 0.875rem; color: rgba(255, 255, 255, 0.45); text-align: center; }
.towny-account-card > .towny-account-empty { padding: 0.75rem 0; }
.towny-account-mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.towny-account-mini-list li {
    display: flex; justify-content: space-between; gap: 0.75rem;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.65);
}
.towny-account-tabs-wrap {
    margin-top: 0.5rem;
    background: rgba(36, 36, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.towny-account-tabs {
    display: flex; flex-wrap: wrap; gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
    background: rgba(30, 30, 30, 0.92);
    padding: 0 0.35rem;
}
.towny-account-tab {
    padding: 0.85rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.5);
    background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.towny-account-tab:hover { color: rgba(255, 255, 255, 0.8); }
.towny-account-tab.is-active {
    color: var(--color-primary, #f97316); border-bottom-color: var(--color-primary, #f97316);
}
.towny-account-tab-panel {
    background: rgba(38, 38, 38, 0.88);
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0.85rem 0.5rem 1rem;
    min-height: 10rem;
}
.towny-account-tab-panel .towny-account-empty {
    margin: 0.5rem 0.75rem;
    padding: 2.25rem 1.5rem;
    min-height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}
.towny-account-list { list-style: none; margin: 0; padding: 0 0.5rem; }
.towny-account-list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
}
.towny-account-list-item:last-child { margin-bottom: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.towny-account-list-main {
    display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; color: rgba(255, 255, 255, 0.85);
}
.towny-account-list-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex-shrink: 0;
}
