/**
 * TARTHEM2 - Prémium Sötét Fantasy Weboldal Stíluslap
 * Mélyfekete, vörös-bordó, arany akcentusok, üveghatás és Metin2 hangulat
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #070405;
    --bg-card: rgba(18, 10, 11, 0.92);
    --bg-card-hover: rgba(28, 14, 16, 0.96);
    --bg-glass: rgba(14, 7, 8, 0.82);
    
    --red-glow: #e61a29;
    --red-primary: #b8121f;
    --red-dark: #660a12;
    --red-deep: #380509;
    
    --gold-bright: #ffda66;
    --gold-main: #cbac7b;
    --gold-dark: #7d6440;
    
    --text-primary: #f5ebe1;
    --text-secondary: #c4b5a5;
    --text-muted: #827263;
    
    --border-gold: rgba(203, 172, 123, 0.35);
    --border-red: rgba(230, 26, 41, 0.35);
    --border-dark: #2a1114;
    
    --shadow-red: 0 0 25px rgba(230, 26, 41, 0.45);
    --shadow-gold: 0 0 15px rgba(203, 172, 123, 0.3);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 1. RESET ÉS ALAP BEÁLLÍTÁSOK */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* 2. 3D WEBGL HÁTTÉR ÉS PARALLAX RÉTEGEK */
#tarthem-webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

.tarthem-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(138, 14, 23, 0.15) 0%, rgba(7, 4, 5, 0.68) 70%),
        radial-gradient(circle at 10% 30%, rgba(99, 10, 16, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(99, 10, 16, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(30, 5, 7, 0.5) 0%, transparent 75%);
    z-index: 2;
    pointer-events: none;
}

.tarthem-site-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 3. FEJLÉC ÉS HERO SZEKCIÓ */
.tarthem-header {
    width: 100%;
    position: relative;
    padding-top: 15px;
    background: linear-gradient(180deg, rgba(30, 8, 10, 0.65) 0%, transparent 100%);
}

.tarthem-header-stage {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px 0 24px;
    min-height: 200px;
}

/* Karakter illusztrációk a fejléc két oldalán */
.header-hero-left, .header-hero-right {
    flex: 0 0 180px;
    height: 130px;
    position: relative;
    pointer-events: none;
}

.header-hero-left img, .header-hero-right img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(230, 26, 41, 0.55));
    transition: var(--transition);
}

.header-hero-left img {
    mask-image: linear-gradient(to right, black 65%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.header-hero-right img {
    mask-image: linear-gradient(to left, black 65%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%), linear-gradient(to bottom, black 70%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    float: right;
}

/* Középső Logó & Címer */
.header-logo-container {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.tarthem-main-logo {
    max-width: 540px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 22px rgba(230, 26, 41, 0.8)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.95));
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.tarthem-main-logo:hover {
    transform: scale(1.025);
    filter: drop-shadow(0 0 35px rgba(255, 40, 55, 0.95)) drop-shadow(0 15px 35px rgba(0, 0, 0, 1));
}

/* 4. FŐ NAVIGÁCIÓ (METIN2 STÍLUS) */
.tarthem-nav-wrapper {
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid var(--border-red);
    border-bottom: 1px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(32, 10, 12, 0.94) 0%, rgba(14, 5, 6, 0.98) 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.tarthem-nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
}

.tarthem-nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.tarthem-nav-menu li {
    position: relative;
}

.tarthem-nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    color: var(--gold-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.tarthem-nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(184, 18, 31, 0.7) 0%, rgba(102, 10, 18, 0.9) 100%);
    opacity: 0;
    border-radius: 2px;
    z-index: -1;
    transition: var(--transition);
}

.tarthem-nav-menu a:hover,
.tarthem-nav-menu a.is-active {
    color: #fff;
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px rgba(230, 26, 41, 0.7), inset 0 0 10px rgba(255, 218, 102, 0.3);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.tarthem-nav-menu a:hover::before,
.tarthem-nav-menu a.is-active::before {
    opacity: 1;
}

/* Hang némító / állapot gomb */
.sound-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-main);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.sound-toggle-btn:hover {
    color: #fff;
    border-color: var(--red-glow);
    box-shadow: var(--shadow-red);
}

.sound-toggle-btn.is-muted .sound-on-icon { display: none; }
.sound-toggle-btn:not(.is-muted) .sound-off-icon { display: none; }

/* Mobil menü gomb */
.tarthem-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-red);
    color: var(--gold-main);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

/* 5. FŐ TARTALOM ÉS SPA NÉZETEK */
.tarthem-main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 28px auto 40px auto;
    padding: 0 20px;
    position: relative;
}

/* SPA nézetek váltása */
.tarthem-view {
    display: none;
    animation: fadeInView 0.35s ease forwards;
}

.tarthem-view.is-active {
    display: block;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. FŐOLDALI ELRENDEZÉS (HOMEPAGE 3-OSZLOPOS GRID A MOCKUP ALAPJÁN) */
.home-grid-layout {
    display: grid;
    grid-template-columns: 290px 1fr 310px;
    gap: 22px;
    align-items: start;
}

/* Díszes Kártyák (Glassmorphic Fantasy Card) */
.tarthem-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(102, 10, 18, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* Rúnás és aranyozott sarokdíszek */
.tarthem-panel::before,
.tarthem-panel::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--gold-main);
    pointer-events: none;
    z-index: 5;
}

.tarthem-panel::before {
    top: 4px;
    left: 4px;
    border-top: 2px solid var(--gold-main);
    border-left: 2px solid var(--gold-main);
}

.tarthem-panel::after {
    bottom: 4px;
    right: 4px;
    border-bottom: 2px solid var(--gold-main);
    border-right: 2px solid var(--gold-main);
}

/* Kártya Fejléc */
.panel-header {
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(102, 10, 18, 0.8) 0%, rgba(35, 8, 10, 0.9) 100%);
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--gold-bright);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(255, 218, 102, 0.4);
}

.panel-body {
    padding: 20px;
    position: relative;
}

/* BAL OSZLOP: SZERVER INFO KÁRTYA */
.server-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(10, 5, 6, 0.75);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    margin-bottom: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
}

.status-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: statusPulse 1.8s infinite;
}

.status-badge.is-offline .status-pulse {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.server-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(203, 172, 123, 0.15);
    font-size: 13.5px;
}

.server-stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-val {
    font-weight: 700;
    color: var(--gold-bright);
    font-family: var(--font-heading);
}

.stat-val.rate-badge {
    color: #ff8533;
    text-shadow: 0 0 8px rgba(255, 133, 51, 0.5);
}

/* KÖZÉPSŐ OSZLOP: HERO BANNER ÉS KÁRTYÁK */
.home-center-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero-banner {
    background: linear-gradient(180deg, rgba(25, 7, 9, 0.85) 0%, rgba(10, 4, 5, 0.95) 100%), url('../images/banner-castle.png') center/cover no-repeat;
    border: 1px solid var(--border-red);
    border-radius: 6px;
    padding: 38px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), inset 0 0 45px rgba(230, 26, 41, 0.25);
    overflow: hidden;
}

.home-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(230, 26, 41, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.banner-welcome-tag {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 0 20px rgba(230, 26, 41, 0.85), 0 4px 15px rgba(0, 0, 0, 0.95);
    margin-bottom: 10px;
}

.banner-title span {
    color: var(--red-glow);
}

.banner-subtitle {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 580px;
    margin: 0 auto 24px auto;
}

.banner-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Alsó 3 kártya sor */
.home-trio-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 5px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.trio-card:hover {
    transform: translateY(-4px);
    border-color: var(--red-glow);
    box-shadow: var(--shadow-red);
    background: var(--bg-card-hover);
}

.trio-card-icon {
    font-size: 32px;
    color: var(--gold-bright);
    filter: drop-shadow(0 0 10px rgba(255, 218, 102, 0.5));
}

.trio-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.05em;
}

.trio-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* JOBB OSZLOP: JÁTÉKOS BELÉPÉS ÉS LETÖLTÉS GOMB */
.home-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-login-panel .form-group {
    margin-bottom: 14px;
}

.tarthem-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(8, 4, 5, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.tarthem-input:focus {
    outline: none;
    border-color: var(--red-glow);
    box-shadow: 0 0 12px rgba(230, 26, 41, 0.45);
    background: rgba(14, 6, 8, 0.95);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
}

.login-links a {
    color: var(--gold-main);
    text-decoration: none;
    transition: var(--transition);
}

.login-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* NAGY LETÖLTÉS GOMB (JOBB ALUL A MOCKUP ALAPJÁN) */
.home-big-download-card {
    background: linear-gradient(180deg, rgba(140, 14, 23, 0.95) 0%, rgba(60, 6, 10, 0.98) 100%);
    border: 1px solid var(--gold-main);
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.home-big-download-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    transform: rotate(25deg) translateY(-100%);
    animation: shineSweep 4s infinite;
}

@keyframes shineSweep {
    0% { transform: rotate(25deg) translateY(-120%); }
    30% { transform: rotate(25deg) translateY(120%); }
    100% { transform: rotate(25deg) translateY(120%); }
}

.home-big-download-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 30px rgba(230, 26, 41, 0.85), inset 0 0 15px rgba(255, 218, 102, 0.5);
    border-color: var(--gold-bright);
}

.big-download-icon {
    font-size: 38px;
    color: var(--gold-bright);
    margin-bottom: 6px;
    filter: drop-shadow(0 0 12px rgba(255, 218, 102, 0.8));
}

.big-download-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.big-download-sub {
    font-size: 12px;
    color: var(--gold-main);
    margin-top: 3px;
}

/* 7. GOMBOK (METIN2 STÍLUS) */
.tarthem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.tarthem-btn-primary {
    background: linear-gradient(180deg, #d91424 0%, #800c15 100%);
    border-color: var(--gold-bright);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tarthem-btn-primary:hover {
    background: linear-gradient(180deg, #ff2435 0%, #a80f1c 100%);
    box-shadow: 0 0 25px rgba(230, 26, 41, 0.85);
    transform: translateY(-2px);
}

.tarthem-btn-gold {
    background: linear-gradient(180deg, #cbac7b 0%, #87693d 100%);
    border-color: #ffe6b3;
    color: #1a0f05;
    text-shadow: none;
    font-weight: 800;
}

.tarthem-btn-gold:hover {
    background: linear-gradient(180deg, #e5c158 0%, #9e7b45 100%);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.tarthem-btn-ghost {
    background: rgba(15, 6, 8, 0.65);
    border-color: var(--border-gold);
    color: var(--gold-main);
}

.tarthem-btn-ghost:hover {
    background: rgba(102, 10, 18, 0.5);
    border-color: var(--red-glow);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.tarthem-btn-block {
    width: 100%;
}

/* 8. ALOLDALAK STRUKTÚRÁJA (KÉTOSZLOPOS BELSŐ ELRENDEZÉS A MOCKUP SZERINT) */
.subpage-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* Bal oldalsáv menü */
.subpage-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    padding: 16px 12px;
}

.subpage-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subpage-nav-btn {
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    background: rgba(10, 5, 6, 0.6);
    border: 1px solid rgba(203, 172, 123, 0.15);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.subpage-nav-btn:hover,
.subpage-nav-btn.is-active {
    background: linear-gradient(90deg, rgba(140, 14, 23, 0.8) 0%, rgba(40, 8, 10, 0.9) 100%);
    border-color: var(--gold-main);
    color: #fff;
    box-shadow: 0 0 14px rgba(230, 26, 41, 0.5);
    transform: translateX(4px);
}

/* Fő tartalom kártya aloldalakon */
.subpage-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    padding: 28px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

/* REGISZTRÁCIÓ OLDAL SPECIFIKUS ELEMEK */
.register-flex-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: center;
}

.register-perks-panel {
    border-left: 1px solid rgba(203, 172, 123, 0.2);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.register-knight-img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(230, 26, 41, 0.6));
    margin-bottom: 16px;
}

.perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.perks-list li {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.perks-list li span.check-icon {
    color: #2ecc71;
    font-weight: 900;
}

/* RANGLISTA OLDAL SPECIFIKUS ELEMEK */
.ranking-table-wrapper {
    overflow-x: auto;
    margin-top: 18px;
}

.tarthem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.tarthem-table th {
    background: rgba(35, 9, 12, 0.9);
    border-bottom: 2px solid var(--gold-main);
    padding: 12px 14px;
    font-family: var(--font-heading);
    color: var(--gold-bright);
    text-align: left;
    letter-spacing: 0.06em;
}

.tarthem-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(203, 172, 123, 0.1);
    color: var(--text-primary);
}

.tarthem-table tbody tr {
    transition: var(--transition);
}

.tarthem-table tbody tr:hover {
    background: rgba(140, 14, 23, 0.25);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
}

.rank-badge-1 {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    box-shadow: 0 0 10px #ffd700;
}

.rank-badge-2 {
    background: linear-gradient(135deg, #e0e0e0, #808080);
    color: #000;
    box-shadow: 0 0 8px #e0e0e0;
}

.rank-badge-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
    box-shadow: 0 0 8px #cd7f32;
}

.empire-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 700;
}

.empire-tag.shinsoo { background: rgba(231, 76, 60, 0.25); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.4); }
.empire-tag.chunjo  { background: rgba(243, 156, 18, 0.25); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.4); }
.empire-tag.jinno   { background: rgba(52, 152, 219, 0.25); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.4); }

/* HÍREK OLDAL SPECIFIKUS ELEMEK */
.news-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tarthem-news-card {
    background: rgba(12, 6, 7, 0.75);
    border: 1px solid var(--border-gold);
    border-radius: 5px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.tarthem-news-card:hover {
    border-color: var(--red-glow);
    background: rgba(45, 10, 14, 0.85);
    box-shadow: 0 0 18px rgba(230, 26, 41, 0.4);
    transform: translateX(4px);
}

.news-card-info {
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
}

.news-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-badge.updates { background: rgba(192, 38, 45, 0.35); color: #ff4d58; border: 1px solid #c0262d; }
.news-badge.fixes   { background: rgba(39, 174, 96, 0.35); color: #2ecc71; border: 1px solid #27ae60; }
.news-badge.events  { background: rgba(230, 126, 34, 0.35); color: #f39c12; border: 1px solid #e67e22; }
.news-badge.community { background: rgba(41, 128, 185, 0.35); color: #3498db; border: 1px solid #2980b9; }

.news-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.news-card-summary {
    font-size: 13px;
    color: var(--text-secondary);
}

.news-arrow-icon {
    font-size: 22px;
    color: var(--gold-main);
    transition: var(--transition);
}

.tarthem-news-card:hover .news-arrow-icon {
    color: var(--red-glow);
    transform: translateX(6px);
}

/* 9. MODAL ABLAK (HÍR RÉSZLETEK) */
.tarthem-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 20px;
}

.tarthem-modal-backdrop.is-open {
    display: grid;
    animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tarthem-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    max-width: 680px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), var(--shadow-red);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--gold-main);
    font-size: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* 10. TOAST ÉRTESÍTÉSEK */
#tarthem-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.tarthem-toast {
    background: rgba(20, 8, 10, 0.96);
    border: 1px solid var(--gold-main);
    border-radius: 5px;
    padding: 14px 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 360px;
}

.tarthem-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.tarthem-toast--success { border-color: #2ecc71; box-shadow: 0 0 18px rgba(46, 204, 113, 0.4); }
.tarthem-toast--error   { border-color: #e74c3c; box-shadow: 0 0 18px rgba(231, 76, 60, 0.5); }
.tarthem-toast--info    { border-color: var(--gold-main); box-shadow: var(--shadow-gold); }

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

/* 11. LÁBLÉC */
.tarthem-footer {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--border-red);
    background: linear-gradient(180deg, rgba(15, 6, 8, 0.95) 0%, #030202 100%);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-bright);
}

/* 12. RESZPONZIVITÁS */
@media (max-width: 1100px) {
    .home-grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .home-center-col {
        grid-column: 1 / -1;
        order: -1;
    }
    .header-hero-left, .header-hero-right {
        display: none;
    }
}

@media (max-width: 820px) {
    .subpage-layout {
        grid-template-columns: 1fr;
    }
    .register-flex-body {
        grid-template-columns: 1fr;
    }
    .register-perks-panel {
        border-left: none;
        border-top: 1px solid rgba(203, 172, 123, 0.2);
        padding-left: 0;
        padding-top: 20px;
    }
    .tarthem-mobile-toggle {
        display: block;
    }
    .tarthem-nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: rgba(14, 5, 6, 0.98);
        border-bottom: 2px solid var(--border-gold);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
    }
    .tarthem-nav-menu.is-open {
        display: flex;
    }
    .tarthem-nav-menu a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .home-grid-layout {
        grid-template-columns: 1fr;
    }
    .home-trio-row {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}
