:root {
    --bg-dark: #050505;
    --bg-panel: rgba(10, 10, 10, 0.85);
    --bg-input: rgba(0, 0, 0, 0.5);
    --bg-glass: rgba(20, 20, 20, 0.6);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --color-vampire: #8a0303;
    --color-vampire-hover: #b30404;
    --color-werewolf: #c5a059;
    --color-werewolf-hover: #dcb86c;
    --color-gold: #ffd700;
    --color-blood: #ff3333;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --primary-color: var(--color-blood);
    /* Default primary */
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #020202;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    background: radial-gradient(circle at 20% 30%, rgba(138, 3, 3, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(138, 3, 3, 0.1) 0%, transparent 40%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('../img/bg-texture.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--color-blood);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-gold);
}

/* Bootstrap helper resets (if needed to maintain game feel) */
.container {
    max-width: 1400px !important;
}

/* Glassmorphism & Premium UI Utilities */
.glass-panel {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

.item-slot-bg {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

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

.text-blood {
    color: var(--color-blood);
}

.fw-black {
    font-weight: 900;
}



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

.text-end {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.d-none {
    display: none;
}

.rounded-circle {
    border-radius: 50%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    max-width: 100%;
    height: auto;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-vampire) 0%, #600000 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(138, 3, 3, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-vampire-hover) 0%, #800000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 3, 3, 0.6);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: #5a0000;
    color: #fff;
    border: 1px solid #ff3333;
}

.btn-warning {
    background: #b8860b;
    color: #fff;
    border: 1px solid #ffd700;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.card-body {
    padding: 1rem;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.form-group,
.mb-3 {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-input);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: var(--color-blood);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 51, 51, 0.25);
}

/* Navigation */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-blood);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--color-gold);
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Responsive Grid & Nav */
@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-8 {
        width: 66.666%;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg-dark);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-collapse.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-toggler {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 5px 10px;
        font-size: 1.5rem;
        cursor: pointer;
        display: block;
    }
}