@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --gold-main: #D4AF37;
    --gold-light: #F4D06F;
    --black-deep: #121212;
    --black-soft: #1A1A1A;
    --white-muted: #E0E0E0;
    --border-color: #222222;
    --nav-height: 90px;
}

body.prestige-body {
    background-color: var(--black-deep);
    color: var(--white-muted);
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* TEXT UTILITIES */
.text-gold {
    color: var(--gold-main) !important;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: #aaa !important;
}

/* TYPOGRAPHY HARMONIZATION */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    line-height: 1.2;
}

p {
    line-height: 1.5;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.hero-title-v2 {
    line-height: 1.1 !important;
}

/* BUTTONS */
.btn-gold,
.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    padding: 0.7rem 2rem;
    min-width: 160px;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.5;
    text-align: center;
    border: 1px solid var(--gold-main);
}

.btn-gold {
    background-color: var(--gold-main);
    color: #000;
}

.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    color: #000;
}

.btn-gold-outline {
    background-color: transparent;
    color: var(--gold-main);
}

.btn-gold-outline:hover {
    background-color: var(--gold-main);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
    min-width: 140px;
}

/* NAVIGATION */
.top-header {
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    padding: 0;
}

.navbar-v2 {
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    padding: 0;
}

.navbar-toggler {
    border: 1px solid var(--gold-main) !important;
    background: transparent !important;
    padding: 0.5rem;
    border-radius: 0;
    color: var(--gold-main);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


.brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding-right: 2rem;
    border-right: 1px solid #222;
    height: 50px;
}

.brand-icon {
    width: 35px;
    height: 35px;
    background: var(--gold-main);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-main,
.brand-title {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-sub {
    font-family: 'Lato', sans-serif;
    color: var(--gold-main);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 4px;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 3rem;
    height: 100%;
    align-items: center;
}

.nav-item-v2 {
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item-v2:hover,
.nav-item-v2.active {
    color: #fff;
}

.nav-item-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-main);
    transition: width 0.3s;
}

.nav-item-v2:hover::after,
.nav-item-v2.active::after {
    width: 100%;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid #222;
    height: 50px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #222;
    border: 1px solid #333;
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    border-color: var(--gold-main);
    background: #111;
}

/* HERO & PARALLAX */
.hero-v2-main {
    height: calc(100vh - var(--nav-height));
    min-height: 700px;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: -1;
}

.hero-v2-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

section:not(.hero-v2-main) {
    background-color: var(--black-deep);
    position: relative;
    z-index: 1;
}

.hero-badge-v2 {
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    padding: 0.6rem 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-title-v2 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* CARDS & TABLES */
.prestige-card {
    background-color: var(--black-soft);
    border: 1px solid #222;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Hover: Lift + Gold Border + Subtle Glow */
.prestige-card:hover {
    border-color: var(--gold-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.table-prestige th {
    background: #080808 !important;
    color: var(--gold-main);
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 2px solid var(--gold-main);
}

.table-prestige td {
    background: #111 !important;
    color: #ddd;
    padding: 1rem;
    border-bottom: 1px solid #222;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

/* Table Row Hover: Clear Dark Highlight */
.table-prestige tr:hover td {
    background-color: #1F1F1F !important;
    color: #fff !important;
    cursor: default;
}

/* PORTAL PANELS (Restored) */
.portal-panel {
    display: block;
    position: relative;
    height: 600px;
    overflow: hidden;
    border-right: 1px solid #222;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(100%) brightness(0.4);
}

.portal-panel:hover .panel-bg {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.6);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
    pointer-events: none;
}

.panel-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.panel-badge {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

/* FORMS & CHATS */
.form-control {
    background: #111 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    padding: 0.6rem 0.9rem;
    border-radius: 0;
    font-size: 0.85rem;
}

.form-control:focus {
    border-color: var(--gold-main) !important;
    box-shadow: none !important;
}

/* Visibility */
.d-lg-flex {
    display: flex !important;
}

@media(max-width:991px) {
    .d-lg-flex {
        display: none !important
    }

    /* Responsive Padding Adjustments */
    .px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .content-wrapper {
        padding-top: 100px !important;
        /* Reduce from 120px */
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .container-fluid.px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Responsive Button Fixes */
    .btn-gold,
    .btn-gold-outline {
        min-width: auto !important;
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.6rem 1rem !important;
    }

    .d-flex .btn-gold,
    .d-flex .btn-gold-outline {
        width: auto;
        /* Don't force full width if in a flex row */
        margin-bottom: 0;
    }

    /* Responsive Table Fixes - Force Scroll */
    .table-prestige th,
    .table-prestige td {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.8rem 0.5rem !important;
    }
}


@media(max-width:800px) {
    .user-area {
        display: none !important;
    }

    /* .d-flex { display: flex !important; }  <-- REMOVED: This breaks specific flex layouts */

    .hero-title-v2 {
        font-size: 3rem;
        /* Reduced from 50px/4.5rem */
    }

    .hero-subtitle-v2 {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .display-1 {
        font-size: 3.5rem;
    }

    .display-2 {
        font-size: 3rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }
}