/* ==========================================================================
   CROSSFIRE OFFICIAL / MERCENARY FORCES THEME - VIETNAMESE EDITION
   Based on Crossfire West Portal Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
    --yellow: #ffba00;
    --yellow-hover: #e5a700;
    --yellow-light: #ffd033;
    --yellow-dark: #c89100;
    
    --bg-body: #eceff3;
    --bg-dark: #0e0f12;
    --bg-card: #16171b;
    --bg-card-hover: #1c1d22;
    --bg-card-alt: #121316;
    --bg-input: #1e2025;
    
    --border-dark: #26282f;
    --border-light: #e0e3e8;
    --border-gold: rgba(255, 186, 0, 0.4);
    
    --text-white: #ffffff;
    --text-dark: #111111;
    --text-gray: #8e929b;
    --text-muted: #646872;
    --text-dim: #b0b4bd;
    
    --success: #2ed573;
    --danger: #ff4757;
    --font-heading: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    font-family: var(--font-body);
    background-color: #0c0d10;
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background fog/combat atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 10%, rgba(255,186,0,0.04) 0%, transparent 60%),
        url('img/1009836.jpg') center top / cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #121316;
}

.brand-sub {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 64px;
    margin: 0;
}

.nav-menu li {
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 1.35rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #22252a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu li a:hover {
    color: #000;
    background: rgba(0,0,0,0.04);
}

/* Active Nav Item - Inverted Black Trapezoid */
.nav-menu li.active a {
    background: #141518;
    color: var(--yellow);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    padding: 0 1.6rem;
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--yellow);
}

/* Right Nav Buttons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    flex-shrink: 0;
}

.nav-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: filter 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login {
    background: #ffb800;
    color: #111;
}
.btn-login:hover {
    background: #f0ad00;
}

.btn-register {
    background: #ffc400;
    color: #111;
    border-left: 1px solid rgba(0,0,0,0.08);
}
.btn-register:hover {
    background: #eeb700;
}

.btn-download-nav {
    background: var(--yellow);
    color: #111;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
    padding: 0 1.6rem 0 1.8rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-download-nav:hover {
    background: var(--yellow-hover);
}

/* Logged In Dropdown */
.nav-user-dropdown {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.9rem;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nav-user-trigger:hover {
    background: rgba(0,0,0,0.08);
}

.nav-user-rank-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    background: #16171b;
    border: 1px solid var(--border-dark);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1000;
}

.nav-user-dropdown:hover .nav-dropdown-content,
.nav-user-dropdown.open .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: #ccc;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(255,186,0,0.08);
    color: var(--yellow);
    padding-left: 1.4rem;
}

.nav-dropdown-content .admin-link {
    color: var(--yellow);
    font-weight: 700;
}

/* ==========================================================================
   HERO BANNER (HOMEPAGE)
   ========================================================================== */
.hero-portal {
    position: relative;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    background: 
        radial-gradient(circle at center 40%, rgba(255,255,255,0.3) 0%, rgba(230,234,240,0.7) 60%, rgba(235,238,242,0.95) 100%),
        url('img/1009836.jpg') center top / cover no-repeat;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.hero-portal-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.65), 0 0 30px rgba(0,0,0,0.3);
    margin-bottom: 1.2rem;
    line-height: 1.05;
}

.btn-play-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.9rem 3.5rem;
    text-decoration: none;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
    box-shadow: 0 6px 20px rgba(255, 186, 0, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-play-free:hover {
    background: #ffcc00;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 186, 0, 0.6);
}

/* ==========================================================================
   HOMEPAGE GRID UNITS (Image 1 & 11)
   ========================================================================== */
.portal-container {
    max-width: 1280px;
    margin: -140px auto 3rem;
    position: relative;
    z-index: 10;
    padding: 0 1.25rem;
}

.grid-units-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-bottom: 2rem;
}

.unit-card {
    position: relative;
    background: #141518;
    border: 1px solid #22242b;
    border-radius: 2px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.unit-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 0 15px rgba(255,186,0,0.2);
}

.unit-featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 440px;
}

.unit-img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.unit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.unit-card:hover .unit-img-wrap img {
    transform: scale(1.05);
}

.unit-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(10,11,14,0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.unit-featured .unit-overlay {
    padding: 2rem;
}

.unit-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unit-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.unit-featured .unit-title {
    font-size: 2.2rem;
    color: #ffffff;
}

.unit-dates {
    font-size: 0.82rem;
    color: var(--yellow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Slider Pagination Dots (Left Featured Unit) */
.slider-dots {
    display: flex;
    gap: 6px;
    margin-top: 0.75rem;
}

.slider-dot {
    width: 18px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.slider-dot.active {
    background: var(--yellow);
    width: 32px;
}

/* Read More News Button */
.read-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

.btn-read-more {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 3.5rem;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn-read-more:hover {
    background: var(--yellow-light);
    transform: scale(1.03);
}

/* ==========================================================================
   SECTION TITLES (/ GAME MODES /)
   ========================================================================== */
.section-headline {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.section-headline h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-headline h2 span.slash {
    color: var(--yellow);
    font-weight: 400;
}

/* ==========================================================================
   GAME MODES SECTION (Image 2)
   ========================================================================== */
.game-modes-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 4.5rem;
}

.mode-box {
    position: relative;
    height: 240px;
    background: #141518;
    border: 1px solid #23252c;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.mode-box:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
}

.mode-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.mode-box:hover .mode-bg {
    transform: scale(1.06);
}

.mode-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10,11,14,0.95) 80%);
    text-align: center;
}

.mode-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.btn-mode-explore {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.mode-box:hover .btn-mode-explore {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #111;
}

/* ==========================================================================
   MERCENARIES LINEUP & DOSSIER SHOWCASE (Images 2 & 3)
   ========================================================================== */
.mercenaries-container {
    margin-bottom: 5rem;
}

/* Dossier Showcase */
.mercenary-showcase {
    background: linear-gradient(135deg, rgba(22, 23, 27, 0.96) 0%, rgba(14, 15, 18, 0.98) 100%);
    border: 1px solid #282a32;
    border-left: 4px solid var(--yellow);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.mercenary-showcase::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.showcase-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.showcase-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.showcase-role {
    font-size: 0.9rem;
    color: var(--yellow-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-desc {
    color: #b0b4be;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 0 1rem 0;
}

.showcase-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.75rem;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.meta-label {
    color: #717582;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.meta-val {
    color: #fff;
    font-weight: 600;
}

.text-gold {
    color: var(--yellow) !important;
}

/* Horizontal Lineup */
.mercenaries-lineup {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 1rem 0 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) #1a1b20;
}

.mercenaries-lineup::-webkit-scrollbar {
    height: 6px;
}
.mercenaries-lineup::-webkit-scrollbar-track {
    background: #121316;
}
.mercenaries-lineup::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 3px;
}

.mercenary-item {
    flex: 0 0 150px;
    height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #101114;
    border: 1px solid #1f2128;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mercenary-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.65;
    transition: all 0.35s ease;
}

.mercenary-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0.5rem 0.75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 85%);
    text-align: center;
    opacity: 0.85;
    transform: translateY(0);
    transition: all 0.25s ease;
}

.mercenary-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.mercenary-role {
    font-size: 0.72rem;
    color: #8a8e99;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

/* Hover or Active Mercenary - Lights up in vibrant color and expands */
.mercenary-item:hover,
.mercenary-item.active {
    flex: 0 0 240px;
    border-color: var(--yellow);
    box-shadow: 0 0 30px rgba(0,0,0,0.9), 0 0 18px rgba(255,186,0,0.35);
    z-index: 5;
}

.mercenary-item:hover .mercenary-photo,
.mercenary-item.active .mercenary-photo {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
}

.mercenary-item:hover .mercenary-info,
.mercenary-item.active .mercenary-info {
    opacity: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 75%);
}

.mercenary-item:hover .mercenary-name,
.mercenary-item.active .mercenary-name {
    color: var(--yellow);
}

.mercenary-item:hover .mercenary-role,
.mercenary-item.active .mercenary-role {
    color: #fff;
}

/* ==========================================================================
   TACTICAL CARDS & NOTCHES (Military Style Cuts)
   ========================================================================== */
.tactical-box {
    background: #16171b;
    border: 1px solid #282a32;
    position: relative;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Gold Corner Notches (as in Image 4, 5, 6, 9, 10) */
.tactical-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.tactical-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

/* ==========================================================================
   DOWNLOAD PAGE (Image 6)
   ========================================================================== */
.deployment-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.deployment-header h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.deployment-header p {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 1rem auto 4rem;
}

.dl-card {
    background: #16171b;
    border: 1px solid #282a32;
    position: relative;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

.dl-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 12px; height: 12px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.dl-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.dl-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.dl-card-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-download-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.1rem;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 0 8px 24px rgba(255, 186, 0, 0.35);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-download-big:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 186, 0, 0.5);
}

.dl-meta {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Requirements Table */
.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.req-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    color: #bbb;
}

.req-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ==========================================================================
   RANKING PAGE (Image 7)
   ========================================================================== */
.ranking-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.ranking-header h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ranking-header p {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.ranking-toolbar {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ranking-tabs {
    display: flex;
    gap: 4px;
}

.ranking-tab-btn {
    padding: 0.65rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0% 100%);
    background: #1c1d22;
    color: #999;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-tab-btn:hover {
    color: #fff;
    background: #252830;
}

.ranking-tab-btn.active {
    background: var(--yellow);
    color: #111;
}

.ranking-search {
    position: relative;
}

.ranking-search input {
    background: #141518;
    border: 1px solid #262830;
    color: #fff;
    padding: 0.65rem 1.25rem 0.65rem 2.5rem;
    font-size: 0.85rem;
    width: 280px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0% 100%);
    outline: none;
    transition: border-color 0.2s;
}

.ranking-search input:focus {
    border-color: var(--yellow);
}

.ranking-search::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Tactical Dark Ranking Table */
.ranking-table-box {
    max-width: 1200px;
    margin: 0 auto 4rem;
    background: #141518;
    border: 1px solid #23252c;
    border-radius: 2px;
    position: relative;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.ranking-table-box::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.ranking-table-box::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 10px; height: 10px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.ranking-table-main {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table-main th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.1rem 1rem;
    border-bottom: 2px solid var(--yellow);
    background: #18191e;
    text-align: left;
}

.ranking-table-main td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #ccc;
    vertical-align: middle;
}

.ranking-table-main tr:hover td {
    background: rgba(255, 186, 0, 0.03);
}

.rank-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #777;
    text-align: center;
    width: 50px;
}

.rank-top-1 { color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,0.4); }
.rank-top-2 { color: #e0e0e0; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.rank-top-3 { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.3); }

.rank-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 60px;
}

.rank-badge-col img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.rank-lvl-pill {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--yellow);
    background: rgba(255, 186, 0, 0.12);
    border: 1px solid rgba(255, 186, 0, 0.3);
    padding: 1px 6px;
    border-radius: 2px;
}

.rank-name-col strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    display: block;
    letter-spacing: 0.5px;
}

.rank-clan-sub {
    font-size: 0.72rem;
    color: #666;
    text-transform: uppercase;
}

.rank-stat-sub {
    font-size: 0.68rem;
    color: #555;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   PROFILE PAGE (Image 8)
   ========================================================================== */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

/* Profile Banner Card */
.profile-banner-card {
    background: #18191e;
    border: 1px solid #282a32;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-banner-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 12px; height: 12px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.profile-banner-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.profile-rank-box {
    width: 90px;
    height: 90px;
    background: rgba(255,186,0,0.06);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-rank-box img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.profile-meta-top h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.profile-meta-role {
    font-size: 0.95rem;
    color: #bbb;
    margin: 0.35rem 0 0.75rem;
}

.profile-meta-numbers {
    display: flex;
    gap: 2rem;
}

.profile-meta-num-item {
    display: flex;
    flex-direction: column;
}

.profile-meta-num-item span.lbl {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.profile-meta-num-item span.val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.profile-clan-tag {
    margin-left: auto;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #aaa;
    text-align: right;
}

/* 4 Stats Cards in a row */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.p-stat-card {
    background: #18191e;
    border: 1px solid #282a32;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.p-stat-lbl {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.p-stat-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
}

.p-stat-sub {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Two Columns: Weapons & Ban/Match Log */
.profile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.p-box {
    background: #18191e;
    border: 1px solid #282a32;
    padding: 1.5rem;
    position: relative;
}

.p-box::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 2px solid var(--yellow);
    border-left: 2px solid var(--yellow);
}

.p-box::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 8px; height: 8px;
    border-bottom: 2px solid var(--yellow);
    border-right: 2px solid var(--yellow);
}

.p-box-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Weapon progress bars */
.weapon-stat-item {
    margin-bottom: 1rem;
}

.weapon-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #ccc;
    margin-bottom: 4px;
}

.weapon-stat-bar {
    height: 6px;
    background: #252830;
    border-radius: 1px;
    overflow: hidden;
}

.weapon-stat-fill {
    height: 100%;
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(255,186,0,0.5);
}

/* Match Log */
.match-log-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
}

.match-badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.match-victory {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.match-defeat {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.inventory-tile {
    background: #131417;
    border: 1px solid #23252c;
    padding: 0.75rem;
    text-align: center;
    border-radius: 2px;
    transition: all 0.2s;
}

.inventory-tile:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.inventory-tile img {
    width: 60px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.inventory-tile-name {
    font-size: 0.75rem;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   NEWS & EVENTS PAGE (Images 4 & 5)
   ========================================================================== */
.news-feed-header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
}

.news-feed-header h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.news-filter-bar {
    text-align: center;
    margin-bottom: 3rem;
}

.news-filter-bar a {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.news-filter-bar a:hover,
.news-filter-bar a.active {
    color: var(--yellow);
    font-weight: 700;
}

.news-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.news-card-dark {
    background: #18191e;
    border: 1px solid #282a32;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: all 0.25s;
}

.news-card-dark:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
}

.news-card-dark::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 2px solid var(--yellow);
    border-left: 2px solid var(--yellow);
    z-index: 3;
}

.news-card-thumb {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(24,25,30,0.9) 100%);
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-cat {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--yellow);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.news-card-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.btn-news-detail {
    margin-top: auto;
    display: block;
    width: 100%;
    background: #111215;
    border: 1px solid #2d3038;
    color: var(--yellow);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-news-detail:hover {
    background: var(--yellow);
    color: #111;
    border-color: var(--yellow);
}

/* Single News Article Detail Layout (Image 5) */
.article-detail-layout {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 0 1rem;
}

.article-main-card {
    background: #18191e;
    border: 1px solid #282a32;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.article-main-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.article-main-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.article-main-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin: 1.5rem 0 2rem;
    border: 1px solid #2e313b;
}

.article-body-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.article-body-text p {
    margin-bottom: 1.25rem;
}

.article-body-text ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #aaa;
}

.article-sidebar-box {
    background: #18191e;
    border: 1px solid #282a32;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.article-sidebar-box::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 8px; height: 8px;
    border-top: 2px solid var(--yellow);
    border-left: 2px solid var(--yellow);
}

.article-sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-meta-row {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.sidebar-meta-row span.lbl {
    color: #777;
    text-transform: uppercase;
    font-size: 0.72rem;
    display: block;
}

.sidebar-meta-row span.val {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   AUTH PAGES: LOGIN & REGISTER (Images 9 & 10)
   ========================================================================== */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: #18191e;
    border: 1px solid #282a32;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 2.2rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}

.auth-card-wide {
    max-width: 580px;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 3px solid var(--yellow);
    border-left: 3px solid var(--yellow);
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 3px solid var(--yellow);
    border-right: 3px solid var(--yellow);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--yellow);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 1.8rem;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.auth-form-group input {
    width: 100%;
    background: #121316;
    border: 1px solid #2d3038;
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: var(--yellow);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-auth-submit {
    display: block;
    width: 100%;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s;
}

.btn-auth-submit:hover {
    background: #ffcc00;
    box-shadow: 0 4px 15px rgba(255,186,0,0.4);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
}

.auth-links a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Captcha Verification Box (Image 10 & 15) */
.captcha-container {
    background: #121316;
    border: 1px dashed var(--yellow);
    padding: 0.9rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.captcha-code {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 14px;
    text-indent: 14px;
    user-select: none;
}

/* Registration page also runs inside the launcher's legacy WebBrowser control. */
.page-register .auth-wrapper {
    min-height: 0;
    justify-content: flex-start;
    padding: 0.35rem 1rem 0.5rem;
}

.page-register .auth-card-wide {
    max-width: 760px;
    padding: 0.85rem 1.25rem;
    color: #f2f3f5;
    border-color: #3a3d45;
}

.page-register .auth-card {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
}

.page-register .auth-title {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    color: #ffd033;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.page-register .auth-form-row {
    display: block;
    margin: 0 -8px;
    font-size: 0;
}

.page-register .auth-form-row .auth-form-group {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    padding: 0 6px;
    margin-bottom: 0.35rem;
    font-size: 16px;
}

.page-register .auth-form-group label {
    color: #c3c6ce;
    font-size: 0.68rem;
    line-height: 1.15;
    margin-bottom: 0.15rem;
}

.page-register .auth-form-group input {
    background: #101115;
    border-color: #494c55;
    color: #fff;
    padding: 0.42rem 0.65rem;
    font-size: 0.85rem;
    height: 36px;
}

.page-register form > .auth-form-group {
    margin-top: 0.25rem !important;
    margin-bottom: 0.45rem;
}

.page-register .auth-form-group small {
    font-size: 0.66rem !important;
    line-height: 1.2;
    margin-top: 3px !important;
}

.page-register .auth-form-group input:focus {
    border-color: #ffba00;
}

.page-register .captcha-container {
    border-color: #ffba00;
    padding: 0.2rem;
    margin-bottom: 0.35rem;
}

.page-register .captcha-code,
.page-register .auth-links a {
    color: #ffba00;
}

.page-register .captcha-code {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 7px;
    text-indent: 7px;
}

.page-register .btn-auth-submit {
    background: #ffba00;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    padding: 0.55rem;
    margin-top: 0.5rem;
}

.page-register .btn-auth-submit:hover {
    background: #ffcc00;
}

.page-register .auth-links {
    margin-top: 0.45rem;
}

@media (max-width: 1100px) {
    .page-register .brand-title,
    .page-register .nav-menu li a,
    .page-register .nav-auth-btn {
        font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    }

    .page-register .nav-menu li a,
    .page-register .nav-menu li.active a {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        font-size: 0.8rem;
        letter-spacing: 0;
    }

    .page-register .nav-menu li.active a {
        color: #ffba00;
    }

    .page-register .nav-referral-guest {
        display: none;
    }

    .page-register .nav-auth-btn {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .page-register .nav-menu {
        display: none;
    }

    .page-register .nav-container {
        height: auto;
        min-height: 64px;
        padding: 0 0.5rem;
    }

    .page-register .brand-sub {
        display: none;
    }

    .page-register .nav-auth-btn {
        height: 48px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.68rem;
    }

    .page-register .auth-wrapper {
        padding: 1rem 0.75rem 2rem;
    }

    .page-register .auth-card-wide {
        padding: 1.25rem 1rem;
    }

    .page-register .auth-form-row .auth-form-group {
        width: 100%;
    }
}

/* ==========================================================================
   SETTINGS PAGE (Images 14 & 15)
   Clean White / Light Design
   ========================================================================== */
.settings-container {
    max-width: 1100px;
    margin: 3rem auto 5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding: 0 1rem;
}

.settings-sidebar {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.settings-sidebar-header {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--yellow);
}

.settings-nav {
    list-style: none;
}

.settings-nav-item a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #555;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.settings-nav-item a:hover {
    background: #f8f9fa;
    color: #111;
}

.settings-nav-item.active a {
    background: #fafafa;
    color: #111;
    border-left-color: var(--yellow);
}

.settings-panel {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.settings-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.settings-panel-sub {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.settings-form-group {
    margin-bottom: 1.5rem;
}

.settings-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.settings-form-group input {
    width: 100%;
    background: #f7f8fa;
    border: 1px solid #dcdfe6;
    color: #222;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.settings-form-group input:focus {
    border-color: var(--yellow);
    background: #fff;
}

.btn-settings-yellow {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings-yellow:hover {
    background: #ffcc00;
}

/* ==========================================================================
   FOOTER (Image 3)
   ========================================================================== */
footer {
    background: #08090a;
    border-top: 1px solid #1c1d22;
    padding: 3.5rem 1rem 2rem;
    color: #777;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    text-align: center;
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 38px;
    filter: brightness(0.9);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.footer-col-links {
    list-style: none;
}

.footer-col-links li {
    margin-bottom: 0.45rem;
}

.footer-col-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-col-links a:hover {
    color: var(--yellow);
}

.footer-bottom-row {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #555;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    color: #777;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social-icons a:hover {
    color: var(--yellow);
}

/* ==========================================================================
   ALERTS & FEEDBACK
   ========================================================================== */
.alert {
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    border-radius: 2px;
}

.alert-error {
    background: rgba(255, 71, 87, 0.12);
    border-left: 4px solid #ff4757;
    color: #ff6b81;
}

.alert-success {
    background: rgba(46, 213, 115, 0.12);
    border-left: 4px solid #2ed573;
    color: #7bed9f;
}

/* ==========================================================================
   REFERRAL SYSTEM CTA STYLES (MỜI BẠN BÈ +5.000 GCOIN)
   ========================================================================== */
.nav-gcoin-badge {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: #111318;
    border: 1px solid rgba(255, 186, 0, 0.45);
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-gcoin-badge:hover {
    background: #1a1c24;
    border-color: #ffd700;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.35);
    transform: translateY(-1px);
}

.nav-gcoin-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.nav-gcoin-amount {
    color: #ffd700;
    font-weight: 800;
    font-size: 0.92rem;
}

.nav-gcoin-unit {
    font-size: 0.72rem;
    color: #b0b4bd;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-referral-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: linear-gradient(135deg, #e65c00 0%, #f39c12 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(230, 92, 0, 0.35);
    transition: all 0.2s ease;
    overflow: hidden;
}

.nav-referral-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.55);
    filter: brightness(1.08);
    color: #fff !important;
}

.nav-referral-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.nav-referral-text {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-referral-badge {
    background: #111;
    color: #ffd033;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 208, 51, 0.3);
    line-height: 1.2;
}

.nav-referral-guest {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.4);
}

.nav-referral-guest:hover {
    box-shadow: 0 4px 14px rgba(42, 82, 152, 0.6);
}

.nav-referral-guest .nav-referral-badge {
    background: #ffd033;
    color: #111;
    border-color: #ffd033;
}

/* Banner Mời bạn bè trên trang Profile */
.profile-referral-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 186, 0, 0.12) 0%, rgba(20, 22, 28, 0.95) 100%);
    border: 1px solid rgba(255, 186, 0, 0.35);
    border-left: 5px solid var(--yellow);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.profile-referral-cta-card .prc-badge {
    display: inline-block;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 6px;
}

.profile-referral-cta-card .prc-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.profile-referral-cta-card .prc-desc {
    font-size: 0.86rem;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
}

.profile-referral-cta-card .prc-desc strong {
    color: var(--yellow);
}

.btn-prc-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #ffba00 0%, #e67e22 100%);
    color: #111 !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(255, 186, 0, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-prc-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 186, 0, 0.65);
    color: #000 !important;
}

.btn-prc-action .btn-prc-main {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-prc-action .btn-prc-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .profile-referral-cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn-prc-action {
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .grid-units-layout {
        grid-template-columns: 1fr;
    }
    .unit-featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .game-modes-row {
        grid-template-columns: 1fr;
    }
    .download-grid,
    .article-detail-layout,
    .profile-columns,
    .profile-stats-row,
    .settings-container {
        grid-template-columns: 1fr;
    }
    .profile-banner-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-clan-tag {
        margin-left: 0;
        text-align: center;
    }
}
