@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg-primary: #060608;
    --bg-secondary: #0d0d12;
    --bg-tertiary: #121217;
    --accent: #fa1b5a; /* Fatality signature red */
    --accent-glow: rgba(250, 27, 90, 0.45);
    --accent-gradient: linear-gradient(135deg, #fa1b5a 0%, #aa0e3a 100%);
    --text-main: #d1d2d6;
    --text-muted: #6f7078;
    --text-bright: #ffffff;
    --border-color: #1e1e24;
    --border-hover: #fa1b5a;
    --border-glow: rgba(250, 27, 90, 0.2);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 50% 0%, #150c11 0%, #060608 60%);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    background-attachment: fixed;
}

a {
    color: var(--text-bright);
    text-decoration: none;
    transition: all 0.15s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Page Layout Wrapper */
.p-pageWrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation (1:1 Fatality Theme Style) */
header {
    background-color: rgba(13, 13, 18, 0.95);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 10px var(--accent-glow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo-text span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Forum Navigation Link Bar */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    font-weight: 700;
}

.nav-link {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 26px 15px;
    display: inline-block;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    background-color: rgba(250, 27, 90, 0.02);
}

/* User Profile Options (Upper Right) */
.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background-color: var(--bg-tertiary);
    color: var(--text-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: all 0.2s;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px var(--accent);
}

.username-display {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.username-display:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent-glow);
}

.btn-login {
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(250, 27, 90, 0.3);
    transition: all 0.2s;
}

.btn-login:hover {
    box-shadow: 0 5px 15px rgba(250, 27, 90, 0.5);
    transform: translateY(-1px);
}

/* Grid Layout (XenForo structure) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 50px;
}

/* Page Section Tabs */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Fatality-styled Blocks */
.block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.block-header {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-top: 2px solid var(--accent); /* Red glowing line on top of panels */
    padding: 14px 20px;
    font-weight: 800;
    color: var(--text-bright);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-body {
    padding: 20px;
    background-color: rgba(13, 13, 18, 0.4);
}

/* Shoutbox / Chat Widget (Fatality Redesign) */
.shoutbox-list {
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
    margin-bottom: 15px;
}

.shoutbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    background-color: rgba(18, 18, 23, 0.3);
    border: 1px solid rgba(255,255,255,0.02);
    padding: 8px 12px;
    border-radius: 4px;
}

.shout-avatar {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    font-size: 11px;
}

.shout-user {
    font-weight: 700;
    color: var(--text-bright);
}

.shout-user.admin {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.shout-user.dev {
    color: #ff3b75;
    text-shadow: 0 0 8px var(--accent-glow);
}

.shout-text {
    color: var(--text-main);
    flex: 1;
}

.shout-time {
    color: var(--text-muted);
    font-size: 10px;
}

.shoutbox-form {
    display: flex;
    gap: 12px;
}

/* Inputs & Form Controls (Retro Hacker Dark Style) */
.input-text {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    flex: 1;
    transition: all 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--border-glow);
}

.btn-action {
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(250, 27, 90, 0.2);
    transition: all 0.2s;
}

.btn-action:hover {
    box-shadow: 0 5px 15px rgba(250, 27, 90, 0.5);
}

/* XenForo Forum Nodes (1:1 styling) */
.node-list {
    display: flex;
    flex-direction: column;
}

.node-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 13, 18, 0.2);
    transition: background-color 0.2s;
}

.node-row:hover {
    background-color: rgba(250, 27, 90, 0.01);
}

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

.node-icon {
    font-size: 24px;
    margin-right: 20px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.node-main {
    flex: 1;
}

.node-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.node-title a {
    color: var(--text-bright);
}

.node-title a:hover {
    color: var(--accent);
}

.node-description {
    color: var(--text-muted);
    font-size: 12px;
}

.node-stats {
    display: flex;
    gap: 25px;
    color: var(--text-muted);
    font-size: 11px;
    padding: 0 25px;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    display: block;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 12px;
}

.node-extra {
    width: 220px;
    font-size: 11px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.node-extra-title {
    font-weight: 700;
    color: var(--text-bright);
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Sidebar Styling */
.sidebar-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.sidebar-header {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    padding: 12px 18px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-bright);
}

.sidebar-body {
    padding: 15px 18px;
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 12px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.stats-row span {
    font-weight: 700;
    color: var(--text-bright);
}

/* Registration / Login Modal (Premium Glossy Dark Redesign) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 3, 5, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 6px;
    width: 440px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px var(--accent-glow);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.select-input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.select-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--border-glow);
}

/* Store Pricing & Subscriptions Cards */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.store-card {
    background-color: rgba(18, 18, 23, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.25s;
}

.store-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(250, 27, 90, 0.1);
    transform: translateY(-3px);
}

.store-price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-bright);
    margin: 15px 0;
    text-shadow: 0 0 15px rgba(255,255,255,0.05);
}

/* Support Tickets Dashboard Styling */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    background-color: rgba(18, 18, 23, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.ticket-item:hover {
    border-color: var(--accent);
}

.ticket-title {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 13px;
}

.ticket-status {
    background-color: #ffa500;
    color: #000;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status.resolved {
    background-color: #00ff66;
    color: #000;
}

/* Footer Section */
footer {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    .nav-menu {
        margin: 15px 0;
    }
}

/* Premium Forum Category Lock Styles */
.block.locked {
    position: relative;
}

.block.locked .node-list {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.35;
}

.lock-overlay {
    position: absolute;
    top: 45px; /* below the block header */
    left: 0;
    width: 100%;
    height: calc(100% - 45px);
    background-color: rgba(6, 6, 8, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.lock-message {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    max-width: 320px;
}

.lock-message h4 {
    font-family: var(--font-display);
    color: var(--text-bright);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.lock-message p {
    color: var(--text-muted);
    font-size: 11px;
}
