.rpg-nav { position: sticky; top: 0; z-index: 1030; }
/* RevPARGenius Dark Gold Design System */
:root {
    --luxury-white: #141008;
    --luxury-cream: #141008;
    --luxury-silver: #0d0b08;
    --luxury-gray: rgba(245,240,232,0.07);
    --luxury-charcoal: #8a7d6b;
    --luxury-navy: #f5f0e8;
    --luxury-gold: #c9a96e;
    --luxury-gold2: #e8c88a;
    --luxury-ruby: #f87171;
    --luxury-sapphire: #c9a96e;
    --luxury-amethyst: #c9a96e;
    --professional-gradient: #c9a96e;
    --glass-effect: #141008;
    --shadow-luxury: 0 20px 40px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.55);
    --border-radius-luxury: 0;
}

/* Hero Section */
.hero-section {
    background: #0d0b08 url('/static/images/roi-hero.jpg') center/cover no-repeat;
    padding: 80px 0 100px;
    position: relative;
    border-bottom: 1px solid rgba(201,169,110,0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13,11,8,0.62);
    pointer-events: none;
}

/* Metric Cards */
.metric-card {
    background: #141008;
    border: 1px solid rgba(245,240,232,0.07);
    border-radius: 0;
    box-shadow: var(--shadow-luxury);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}


.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.metric-card .card-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #c9a96e;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--luxury-navy);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--luxury-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Executive Input Forms */
.input-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--luxury-navy);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control, .form-select {
    background: #141008 !important;
    color: #f5f0e8 !important;
    border: 1px solid rgba(245,240,232,0.07) !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    transition: border-color 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
}

/* Font Awesome Icons - Force Visibility */
.fas, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Room Type Icons */
.bg-primary .fas, .bg-success .fas, .bg-warning .fas {
    color: white !important;
    font-size: 16px !important;
}

.form-control:focus, .form-select:focus {
    background: #141008 !important;
    color: #f5f0e8 !important;
    border-color: rgba(201,169,110,0.35) !important;
    box-shadow: none !important;
    outline: none !important;
}

.input-group-text {
    background: #141008;
    border: 1px solid rgba(245,240,232,0.07);
    border-right: none;
    color: #8a7d6b;
    font-weight: 400;
    border-radius: 0;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
}

/* Cards */
.card {
    background: #141008;
    border: 1px solid rgba(245,240,232,0.07);
    border-radius: 0;
    box-shadow: var(--shadow-luxury);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: rgba(201,169,110,0.08) !important;
    border-bottom: 1px solid rgba(201,169,110,0.15) !important;
    color: #f5f0e8 !important;
    font-weight: 400 !important;
    padding: 1rem 1.5rem !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: #c9a96e !important;
    color: #0d0b08 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 36px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 2.5px !important;
    transition: opacity 0.2s ease !important;
    text-transform: uppercase !important;
    font-family: 'Inter', sans-serif !important;
}

.btn-primary:hover {
    opacity: 0.9 !important;
}

/* Tables */
.table {
    background: #141008;
    border-radius: 0;
    overflow: hidden;
}

.table thead th {
    background: var(--luxury-navy) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 1.25rem 1.5rem !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.3px !important;
}

.table tbody td {
    padding: 1.25rem 1.5rem !important;
    border-color: var(--luxury-gray) !important;
    font-weight: 500 !important;
    color: var(--luxury-charcoal) !important;
}

/* Loading State */
.spinner-border {
    color: var(--luxury-sapphire);
    width: 3rem;
    height: 3rem;
}

.progress-bar {
    background: #c9a96e;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 11, 8, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: var(--luxury-navy);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--luxury-gray);
    border-top: 4px solid var(--luxury-sapphire);
    border-radius: 0;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--luxury-charcoal);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--luxury-charcoal);
    opacity: 0.7;
}

/* Executive Alert Styling */
.alert {
    border: none;
    border-radius: var(--border-radius-luxury);
    box-shadow: var(--shadow-luxury);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.alert-success {
    background: rgba(201,169,110,0.08);
    color: #c9a96e;
    border-left: 4px solid #c9a96e;
}

/* Form Groups */
.form-section {
    background: #141008;
    border-radius: 0;
    padding: 28px;
    margin-bottom: 2rem;
    border: 1px solid rgba(245,240,232,0.07);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: var(--shadow-hover);
}

.form-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    color: var(--luxury-navy);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--luxury-gray);
}

/* Results Section */
.results-container {
    background: #141008;
    border-radius: 0;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(245,240,232,0.07);
}

/* Enhanced Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .card {
        margin-bottom: 1.5rem !important;
        border-radius: 0 !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .card-header h6 {
        font-size: 14px !important;
    }

    h4 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .form-label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
    }

    input, select {
        font-size: 14px !important;
        padding: 8px 12px !important;
        min-height: 42px !important;
        border-radius: 0 !important;
    }

    .input-group-text {
        padding: 8px 10px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .btn-sm {
        font-size: 11px !important;
        padding: 6px 10px !important;
        border-radius: 0 !important;
    }

    .row.g-3 {
        gap: 0.75rem !important;
    }

    /* Stack vertically on very small screens */
    @media (max-width: 480px) {
        .col-6.col-lg-2 {
            flex: 0 0 100% !important;
        }
    }
}

/* Enhanced tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95% !important;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    input, select {
        font-size: 15px !important;
        min-height: 40px !important;
    }
}

.input-group .form-control {
    border-left: none !important;
}

/* Room type column header labels — prevent wrapping */
.room-type-row .form-label {
    white-space: nowrap !important;
    font-size: 12px !important;
}

/* Section heading override — headings never gold */
h1.text-primary, h2.text-primary, h3.text-primary,
h4.text-primary, h5.text-primary, h6.text-primary {
    color: #f5f0e8 !important;
}

/* Remove readonly styling to make room names editable */
input[readonly] {
    background-color: #141008 !important;
    color: #f5f0e8 !important;
    cursor: text !important;
    border-color: rgba(245,240,232,0.07) !important;
}

/* ── RPG Dark Theme Final Overrides ── */
body, .calculator-section, section {
    background-color: #0d0b08 !important;
    color: #f5f0e8 !important;
}
.card {
    background: #141008 !important;
    border-color: rgba(245,240,232,0.07) !important;
    border-radius: 0 !important;
}
.card-body {
    background: #141008 !important;
}
.form-control, .form-select, input[type="number"], input[type="text"], input[type="email"], input[type="tel"] {
    background-color: #141008 !important;
    background: #141008 !important;
    color: #f5f0e8 !important;
    border-color: rgba(245,240,232,0.07) !important;
    border-radius: 0 !important;
}
.form-control:focus, .form-select:focus {
    background-color: #141008 !important;
    background: #141008 !important;
    color: #f5f0e8 !important;
    border-color: rgba(201,169,110,0.35) !important;
    box-shadow: none !important;
}
.form-control::placeholder, input::placeholder, textarea::placeholder {
    color: #8a7d6b !important;
}
.form-label {
    color: #8a7d6b !important;
}
.input-group-text {
    background-color: #141008 !important;
    background: #141008 !important;
    color: #8a7d6b !important;
    border-color: rgba(245,240,232,0.07) !important;
}
/* table rows */
.table, .table-light, .table-striped tbody tr:nth-child(even) {
    background-color: #141008 !important;
    color: #f5f0e8 !important;
}
.table th, .table thead th {
    background-color: #1a1508 !important;
    color: #8a7d6b !important;
    border-color: rgba(201,169,110,0.1) !important;
}
.table td {
    color: #f5f0e8 !important;
    border-color: rgba(201,169,110,0.08) !important;
}
.table-striped tbody tr:nth-child(odd) td { background-color: #141008 !important; }
.table-striped tbody tr:nth-child(even) td { background-color: #181208 !important; }
/* Remove room type icon background circles */
.room-type-row .bg-primary.rounded-circle,
.room-type-row .bg-success.rounded-circle,
.room-type-row .bg-warning.rounded-circle,
.room-type-row .bg-info.rounded-circle { display: none !important; }
/* text overrides */
h1,h2,h3,h4,h5,h6 { color: #f5f0e8 !important; }
p, span, div, li, td, th, label { color: inherit; }
/* metric values */
.metric-value { color: #c9a96e !important; }
.metric-label { color: #8a7d6b !important; }
/* result highlight colours */
.text-success { color: #c9a96e !important; }
.text-danger { color: #f87171 !important; }
.text-primary { color: #c9a96e !important; }
.text-muted { color: #8a7d6b !important; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400 !important;
}
h1 { font-weight: 300 !important; }
h2 { font-weight: 400 !important; }
h3 { font-weight: 400 !important; }
h4 { font-weight: 500 !important; }

.text-dark { color: #f5f0e8 !important; }
.text-secondary { color: #8a7d6b !important; }
/* backgrounds */
.bg-light, .bg-white { background-color: #141008 !important; }
.bg-primary { background: rgba(201,169,110,0.1) !important; color: #c9a96e !important; border: 1px solid rgba(201,169,110,0.2) !important; }
.bg-success { background: rgba(201,169,110,0.15) !important; color: #c9a96e !important; border: 1px solid rgba(201,169,110,0.25) !important; }
.bg-success.text-white { color: #c9a96e !important; }
.card.bg-success { background: rgba(201,169,110,0.12) !important; border: 1px solid rgba(201,169,110,0.3) !important; }
.card-header.bg-success { background: rgba(201,169,110,0.2) !important; color: #c9a96e !important; }
.progress-bar.bg-success { background: #c9a96e !important; }
/* borders */
.border, .border-top, .border-bottom { border-color: rgba(201,169,110,0.12) !important; }
/* alerts */
.alert-info { background: rgba(201,169,110,0.08) !important; border-color: rgba(201,169,110,0.2) !important; color: #c9a96e !important; border-radius: 0 !important; }
.alert-success { background: rgba(201,169,110,0.08) !important; border-color: rgba(201,169,110,0.2) !important; color: #c9a96e !important; border-radius: 0 !important; }
.alert-warning { background: rgba(251,191,36,0.08) !important; border-color: rgba(251,191,36,0.2) !important; color: #fbbf24 !important; border-radius: 0 !important; }
.alert-danger { background: rgba(248,113,113,0.08) !important; border-color: rgba(248,113,113,0.2) !important; color: #f87171 !important; border-radius: 0 !important; }
.alert-secondary { background: rgba(201,169,110,0.06) !important; border-color: rgba(201,169,110,0.15) !important; color: #8a7d6b !important; border-radius: 0 !important; }
.bg-warning, .card-header.bg-warning { background: rgba(251,191,36,0.15) !important; color: #fbbf24 !important; border-color: rgba(251,191,36,0.2) !important; }
.text-dark { color: #f5f0e8 !important; }
.card-header.bg-info { background: rgba(201,169,110,0.15) !important; color: #c9a96e !important; border-color: rgba(201,169,110,0.2) !important; }
/* list group */
.list-group-item { background-color: #141008 !important; border-color: rgba(201,169,110,0.1) !important; color: #f5f0e8 !important; }
/* progress bar */
.progress { background-color: rgba(201,169,110,0.08) !important; border-radius: 0 !important; }
.progress-bar { background: #c9a96e !important; }
/* accordion */
.accordion-item { background-color: #141008 !important; border-color: rgba(201,169,110,0.12) !important; }
.accordion-button { background-color: #141008 !important; color: #f5f0e8 !important; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background-color: rgba(201,169,110,0.1) !important; color: #c9a96e !important; }
.accordion-body { background-color: #141008 !important; color: #8a7d6b !important; }
/* nav tabs */
.nav-tabs { border-color: rgba(201,169,110,0.12) !important; }
.nav-link { color: #8a7d6b !important; }
.nav-link.active { background-color: rgba(201,169,110,0.1) !important; border-color: rgba(201,169,110,0.2) !important; color: #c9a96e !important; }
/* modals */
.modal-content { background-color: #141008 !important; border: 1px solid rgba(201,169,110,0.2) !important; color: #f5f0e8 !important; }
.modal-header, .modal-footer { border-color: rgba(201,169,110,0.12) !important; background-color: #141008 !important; }
.modal-body { background-color: #141008 !important; color: #f5f0e8 !important; }
.modal-body .text-muted { color: #8a7d6b !important; }
.modal-body .form-label { color: #c9a96e !important; }
.modal-body .bg-info { background: rgba(201,169,110,0.12) !important; border: 1px solid rgba(201,169,110,0.25) !important; color: #f5f0e8 !important; }
.modal-body .btn-outline-secondary { color: #8a7d6b !important; border-color: rgba(201,169,110,0.25) !important; background: transparent !important; }
.modal-body .btn-outline-secondary:hover { background: rgba(201,169,110,0.1) !important; color: #c9a96e !important; }
.modal-body .alert-light { background: rgba(201,169,110,0.06) !important; border-color: rgba(201,169,110,0.15) !important; color: #8a7d6b !important; }
.modal-body .input-group-text { background-color: #1e1a10 !important; border-color: rgba(201,169,110,0.2) !important; color: #c9a96e !important; }
/* small text */
small, .small { color: #8a7d6b !important; }
strong, b { color: #f5f0e8 !important; }
/* table-pricing-strategy */
.table-pricing-strategy {
    background-color: #141008 !important;
    border: 1px solid rgba(201,169,110,0.2) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.table-pricing-strategy thead { background-color: rgba(201,169,110,0.15) !important; }
.table-pricing-strategy thead th {
    background-color: transparent !important;
    color: #c9a96e !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px !important;
}
.table-pricing-strategy tbody td {
    background-color: #141008 !important;
    color: #f5f0e8 !important;
    border-color: rgba(201,169,110,0.08) !important;
}
.table-pricing-strategy .text-success { color: #c9a96e !important; }
.table-pricing-strategy tbody tr:hover { background-color: #181208 !important; }
/* form-range slider */
.form-range, input[type="range"] { -webkit-appearance: none; appearance: none; height: 2px !important; background: transparent; }
.form-range::-webkit-slider-runnable-track, input[type="range"]::-webkit-slider-runnable-track { background: rgba(201,169,110,0.25) !important; height: 2px; border-radius: 0; }
.form-range::-webkit-slider-thumb, input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; background: #c9a96e !important; border: none !important; height: 16px; width: 16px; border-radius: 0; margin-top: -7px; box-shadow: none; }
.form-range::-moz-range-track, input[type="range"]::-moz-range-track { background: rgba(201,169,110,0.25) !important; height: 2px; border-radius: 0; border: none; }
.form-range::-moz-range-thumb, input[type="range"]::-moz-range-thumb { background: #c9a96e !important; border: none !important; height: 16px; width: 16px; border-radius: 0; box-shadow: none; }
/* Enforce 28px padding on all card bodies */
.card-body { padding: 28px !important; }
/* Remove all Bootstrap rounded classes */
.rounded, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl,
.rounded-top, .rounded-bottom, .rounded-start, .rounded-end,
.rounded-circle, .rounded-pill { border-radius: 0 !important; }
