
/* Glory Theme - Refactored with CSS custom properties
 *
 * All colors defined as CSS variables at the top — change the palette in one place.
 */

/* ============================================================
   Theme Palette
   To restyle: change values here only — everything below reads from these
   ============================================================ */
.theme-glory {
    --theme-primary:       #4B2E83;   /* deep purple — buttons, headings, accents */
    --theme-primary-mid:   #5D3A9A;   /* mid purple — gradients, hover states */
    --theme-primary-light: #7A5FB0;   /* lighter purple — gradient end, disabled */
    --theme-primary-pale:  #B8A5D1;   /* very light purple — disabled backgrounds */
    --theme-accent:        #CFAF6E;   /* gold — borders, secondary highlights */
    --theme-accent-light:  #E6C586;   /* light gold — gradient, hover */
    --theme-bg:            #F9F6F2;   /* off-white — card backgrounds */
    --theme-text:          #333333;   /* body text */
    --theme-text-muted:    #666666;   /* muted/secondary text */
    --theme-gradient:      linear-gradient(135deg, #4B2E83 0%, #7A5FB0 20%, #B8A5D1 60%, #F9F6F2 100%);
    --theme-btn-gradient:  linear-gradient(45deg, #4B2E83, #5D3A9A, #7A5FB0);
    --theme-radius-card:   20px;
    --theme-radius-btn:    15px;
    --theme-radius-input:  12px;

    /* Bridge to global utilities — makes .text-primary use theme color */
    --primary-color:       #4B2E83;
}

/* ---- Background ---- */
.theme-glory,
body.theme-glory,
.theme-glory body,
.theme-glory html,
html.theme-glory,
body.theme-glory main,
.form-preview.theme-glory,
body.theme-glory .form-preview {
    background: var(--theme-gradient) !important;
    background-attachment: fixed !important;
    color: var(--theme-text) !important;
    min-height: 100vh !important;
    position: relative;
}

@media (max-width: 768px) {
    .theme-glory,
    body.theme-glory,
    html.theme-glory {
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

/* Radiant golden glow overlay */
.theme-glory::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 40% 30%,
        rgba(207, 175, 110, 0.2) 0%,
        rgba(207, 175, 110, 0.1) 30%,
        rgba(207, 175, 110, 0.05) 60%,
        transparent 80%);
    pointer-events: none;
    z-index: -5;
    opacity: 0.7;
    will-change: auto;
}

/* Transparent layout containers */
.theme-glory .container,
.theme-glory .container-narrow,
.theme-glory main,
.theme-glory .py-2,
.theme-glory .py-md-5,
.theme-glory .py-4 {
    background: transparent !important;
    position: relative;
    z-index: 10;
}

/* ---- Cards ---- */
.theme-glory .card {
    background: rgba(249, 246, 242, 0.98) !important;
    border: 2px solid var(--theme-accent) !important;
    box-shadow: 0 12px 35px rgba(75, 46, 131, 0.15), 0 6px 20px rgba(207, 175, 110, 0.1) !important;
    border-radius: var(--theme-radius-card) !important;
    position: relative;
    overflow: hidden;
}

/* Golden accent bar at top of card */
.theme-glory .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-light), var(--theme-accent));
    z-index: 1;
    opacity: 0.8;
}

.theme-glory .card-body {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

/* ---- Form Inputs ---- */
.theme-glory .form-control,
.theme-glory .form-select,
.theme-glory textarea {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid var(--theme-accent) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-input) !important;
    box-shadow: 0 2px 8px rgba(75, 46, 131, 0.1), inset 0 1px 3px rgba(207, 175, 110, 0.1) !important;
    font-size: 16px !important; /* Prevents iOS zoom — do not remove */
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

/* Smaller font for date/time inputs to prevent overflow on narrow rows */
.theme-glory .date-row-input,
.theme-glory .time-row-input,
.theme-glory .timezone-row-select,
.theme-glory .duration-row-select,
.theme-glory input[type="date"],
.theme-glory input[type="time"],
.theme-glory #futurePeriodType,
.theme-glory #hideOptionLeadHoursContainer {
    font-size: 14px !important;
}

/* Compact inline selects need a smaller border-radius to avoid clipping text/arrow */
.theme-glory #futurePeriodType,
.theme-glory #hideOptionLeadHoursContainer {
    border-radius: 6px !important;
}

.theme-glory .form-control:focus,
.theme-glory .form-select:focus,
.theme-glory textarea:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 20px rgba(75, 46, 131, 0.2), inset 0 2px 5px rgba(207, 175, 110, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
    color: var(--theme-text) !important;
    transform: translateY(-1px);
}

/* ---- Typography ---- */
.theme-glory .form-label,
.theme-glory .card-title,
.theme-glory h1,
.theme-glory h2,
.theme-glory h3,
.theme-glory h4,
.theme-glory h5,
.theme-glory h6 {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2);
    letter-spacing: 0.3px;
}

/* Main heading sits on gradient — needs light color for contrast */
.theme-glory h1.text-gradient,
.theme-glory h1.display-4 {
    color: var(--theme-bg) !important;
    text-shadow: 0 2px 4px rgba(75, 46, 131, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Card headings stay dark — light card bg behind them */
.theme-glory .card h1,
.theme-glory .card-body h1 {
    color: var(--theme-primary) !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2) !important;
}

.theme-glory p,
.theme-glory .card-text,
.theme-glory .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.theme-glory .text-muted,
.theme-glory .small,
.theme-glory small {
    color: var(--theme-text-muted) !important;
    font-weight: 400 !important;
}

.theme-glory ::placeholder,
.theme-glory .form-control::placeholder,
.theme-glory textarea::placeholder {
    color: var(--theme-text-muted) !important;
    opacity: 0.7 !important;
}

.theme-glory .required-asterisk {
    color: #D32F2F !important;
    font-weight: bold !important;
}

/* ---- Primary Buttons ----
   Note: padding/font-size/min-height NOT overridden — use Bootstrap defaults.
   Only color, border, shadow, and radius are themed.
   The #submitBtn is included here to handle specificity (global styles.css has
   #submitBtn:hover with high specificity — must include it to override). */
.theme-glory .btn-primary,
.theme-glory button[type="submit"],
.theme-glory #submitBtn {
    background: var(--theme-btn-gradient) !important;
    border: 2px solid var(--theme-primary) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(75, 46, 131, 0.3), 0 2px 8px rgba(207, 175, 110, 0.15) !important;
    border-radius: var(--theme-radius-btn) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

/* Shimmer sweep on hover */
.theme-glory .btn-primary::before,
.theme-glory button[type="submit"]::before,
.theme-glory #submitBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(207, 175, 110, 0.3), transparent);
    transition: left 0.5s ease;
}

.theme-glory .btn-primary:hover::before,
.theme-glory button[type="submit"]:hover::before,
.theme-glory #submitBtn:hover::before {
    left: 100%;
}

.theme-glory .btn-primary:hover,
.theme-glory button[type="submit"]:hover,
.theme-glory #submitBtn:hover {
    background: linear-gradient(45deg, var(--theme-primary-mid), var(--theme-primary-light), #8B6BC1) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.4), 0 3px 12px rgba(207, 175, 110, 0.25) !important;
    transform: translateY(-2px) scale(1.01);
    color: #FFFFFF !important;
}

/* ---- Secondary Buttons ---- */
.theme-glory .btn-secondary {
    background: linear-gradient(45deg, var(--theme-accent), var(--theme-accent-light)) !important;
    border: 2px solid var(--theme-accent) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(207, 175, 110, 0.3) !important;
    border-radius: var(--theme-radius-btn) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .btn-secondary:hover,
.theme-glory .btn-secondary:active,
.theme-glory .btn-secondary:focus {
    background: linear-gradient(45deg, var(--theme-accent-light), var(--theme-accent)) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.4) !important;
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

/* ---- Outline Buttons ---- */
.theme-glory .btn-outline-primary {
    color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    border-width: 2px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: rgba(249, 246, 242, 0.9) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .btn-outline-primary:hover {
    background: var(--theme-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(75, 46, 131, 0.3) !important;
    transform: translateY(-1px);
}

/* Active/checked state — btn-group toggles */
.theme-glory .btn-check:checked + .btn-outline-primary,
.theme-glory .btn-outline-primary:active,
.theme-glory .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-mid)) !important;
    border-color: var(--theme-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(75, 46, 131, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    font-weight: 700 !important;
}

.theme-glory .btn-check:checked + .btn-outline-primary .bi,
.theme-glory .btn-outline-primary:active .bi,
.theme-glory .btn-outline-primary.active .bi {
    color: #FFFFFF !important;
}

.theme-glory .btn-outline-secondary {
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    border-width: 2px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-glory .btn-outline-secondary:hover {
    background: var(--theme-accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(207, 175, 110, 0.3) !important;
    transform: translateY(-1px);
}

/* btn-outline-danger — used by Cancel buttons in modals (e.g. spreadsheet modal) */
.theme-glory .btn-outline-danger {
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    border-width: 2px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.theme-glory .btn-outline-danger:hover {
    background: var(--theme-accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(207, 175, 110, 0.3) !important;
    transform: translateY(-1px);
}

/* ---- Segmented control (btn-group) ----
   The default segmented control styles in styles.css already handle sizing/shape.
   Here we just apply glory colors to the active chip. */
.theme-glory .btn-group[aria-label="Title alignment"] {
    background: rgba(75, 46, 131, 0.12) !important;
    box-shadow: inset 0 1px 2px rgba(75, 46, 131, 0.15) !important;
}

.theme-glory .btn-group[aria-label="Title alignment"] .btn {
    color: var(--theme-primary) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-glory .btn-group[aria-label="Title alignment"] .btn-check:checked + .btn,
.theme-glory .btn-group[aria-label="Title alignment"] .btn-secondary {
    background: var(--theme-bg) !important;
    color: var(--theme-primary) !important;
    box-shadow: 0 1px 3px rgba(75, 46, 131, 0.2), 0 1px 2px rgba(0,0,0,0.08) !important;
}

/* Other btn-groups (non-alignment) — restore connected shape */
.theme-glory .btn-group:not([aria-label="Title alignment"]) .btn {
    border-radius: 0 !important;
    transform: none !important;
}

.theme-glory .btn-group:not([aria-label="Title alignment"]) > label.btn:first-of-type,
.theme-glory .btn-group:not([aria-label="Title alignment"]) > button.btn:first-child {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}

.theme-glory .btn-group:not([aria-label="Title alignment"]) > label.btn:last-child,
.theme-glory .btn-group:not([aria-label="Title alignment"]) > button.btn:last-child {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

/* Checked state for other btn-check + btn-outline-secondary groups */
.theme-glory .btn-check:checked + .btn-outline-secondary {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #FFFFFF !important;
}

/* Shared transition */
.theme-glory .btn,
.theme-glory .form-control,
.theme-glory .list-group-item {
    transition: all 0.3s ease !important;
}

/* ---- List Items (option rows) ---- */
.theme-glory .list-group-item {
    background: rgba(249, 246, 242, 0.95) !important;
    border: 2px solid var(--theme-accent) !important;
    color: var(--theme-text) !important;
    margin-bottom: 8px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 500 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(75, 46, 131, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* Purple-to-gold left accent bar */
.theme-glory .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--theme-primary), var(--theme-accent));
}

.theme-glory .list-group-item:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.2) !important;
    transform: translateY(-1px);
    border-color: var(--theme-primary) !important;
}

/* ---- Checkboxes & Radios ---- */
.theme-glory .form-check-input {
    /* Use background-color (NOT background shorthand) — the shorthand resets
       background-repeat/size/position to initial values which breaks toggle switch thumbs */
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--theme-accent) !important;
    transition: all 0.3s ease !important;
}

/* Exclude .form-switch — switches need border-radius: 2em, set below */
.theme-glory .form-check:not(.form-switch) .form-check-input[type="checkbox"] {
    border-radius: 4px !important;
}

.theme-glory .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

/* Solid fill on checked radio — suppress Bootstrap's inner white dot image */
.theme-glory .form-check-input[type="radio"]:checked {
    background-image: none !important;
}

.theme-glory .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 12px rgba(75, 46, 131, 0.4) !important;
}

.theme-glory .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 1px rgba(249, 246, 242, 0.8);
}

.theme-glory .form-check-label.header-title {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2) !important;
}

/* ---- Toggle Switches ----
   No background-image override — Bootstrap provides the white sliding thumb.
   Just set colors and let Bootstrap handle the rest. */
.theme-glory .form-switch .form-check-input {
    background-color: var(--theme-bg) !important;
    border: 2px solid var(--theme-accent) !important;
    border-radius: 2em !important;
    width: 2em !important;
    height: 1em !important;
}

.theme-glory .form-switch .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 12px rgba(75, 46, 131, 0.3) !important;
}

/* ---- Alerts ---- */
.theme-glory .alert {
    background: rgba(249, 246, 242, 0.95) !important;
    border: 2px solid var(--theme-accent) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.15) !important;
    border-radius: var(--theme-radius-btn) !important;
}

/* ---- Form Sections ---- */
.theme-glory .form-section-respondent,
.theme-glory .form-section-main-options,
.theme-glory .form-section-additional {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.15) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-glory .form-section-header {
    background: linear-gradient(45deg, var(--theme-bg), rgba(207, 175, 110, 0.1)) !important;
    color: var(--theme-primary) !important;
    border-bottom: 1px solid var(--theme-accent) !important;
    border-radius: 18px 18px 0 0 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2) !important;
    padding: 1rem !important;
}

.theme-glory .form-section h6,
.theme-glory .card-header h6,
.theme-glory .section-header h6 {
    color: var(--theme-primary) !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2) !important;
}

/* ---- Option Items (form preview editor) ---- */
.theme-glory .option-item {
    background: rgba(249, 246, 242, 0.95) !important;
    border: 2px solid var(--theme-accent) !important;
    box-shadow: 0 3px 12px rgba(75, 46, 131, 0.1) !important;
    border-radius: var(--theme-radius-btn) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .option-item:hover {
    box-shadow: 0 5px 18px rgba(75, 46, 131, 0.2) !important;
    transform: translateY(-1px);
    border-color: var(--theme-primary) !important;
}

/* ---- Additional Questions ---- */
.theme-glory .additional-question-section .card,
.theme-glory .additional-question-item {
    background: rgba(249, 246, 242, 0.95) !important;
    border: 2px solid var(--theme-accent) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.15) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-glory .additional-question-section .card-body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

.theme-glory .additional-question-section .form-label,
.theme-glory .additional-question-section .additional-question-header h6,
.theme-glory .additional-question-section .additional-question-title,
.theme-glory .additional-question-section .additional-question-body .form-label,
.theme-glory .additional-question-section .additional-question-body .fw-semibold {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(207, 175, 110, 0.2) !important;
}

.theme-glory .additional-question-section .additional-question-body .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Fix vertical alignment of larger radio/checkbox inputs everywhere (excludes toggle switches) */
.theme-glory .form-check:not(.form-switch) {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.theme-glory .form-check:not(.form-switch) .form-check-input {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.theme-glory .form-check:not(.form-switch) .form-check-label {
    margin-bottom: 0 !important;
}
/* Preserve inline-block display when Bootstrap d-inline-block is used (e.g. Silent Save checkbox) */
.theme-glory .form-check.d-inline-block:not(.form-switch) {
    display: inline-flex !important;
}

/* ---- Icons ---- */
.theme-glory .bi-calendar-event-fill,
.theme-glory .bi-clock-fill,
.theme-glory .bi-geo-alt-fill,
.theme-glory .max-signups-icon,
.theme-glory .bi-people-fill,
.theme-glory #maxSignupsHeader .bi-people-fill {
    color: var(--theme-primary) !important;
}

/* ---- Quill Editor ---- */
.theme-glory .ql-toolbar.ql-snow {
    background: rgba(249, 246, 242, 0.95) !important;
    border-color: var(--theme-accent) !important;
    border-radius: 12px 12px 0 0 !important;
}

.theme-glory .ql-container.ql-snow {
    background: rgba(249, 246, 242, 0.95) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    border-radius: 0 0 12px 12px !important;
}

.theme-glory .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 400 !important;
}

/* ---- Navbar ---- */
.theme-glory .navbar {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 50%, var(--theme-primary-light) 100%) !important;
    border-bottom: 2px solid var(--theme-accent) !important;
    box-shadow: 0 3px 12px rgba(75, 46, 131, 0.3) !important;
}

.theme-glory .navbar-brand,
.theme-glory .brand-text-primary {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    font-weight: 600 !important;
}

/* Tint the logo SVG to match the gold "signup" text */
.theme-glory .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(29%) saturate(694%) hue-rotate(2deg) brightness(97%) contrast(93%);
    transition: filter 0.3s ease !important;
}

/* Hover: brighten everything — no dark-on-dark */
.theme-glory .navbar-brand:hover .brand-text-primary {
    color: rgba(255, 255, 255, 0.85) !important;
}

.theme-glory .navbar-brand:hover .brand-text-white {
    color: var(--theme-accent-light) !important;
    text-shadow: 0 0 14px rgba(230, 197, 134, 0.95) !important;
}

.theme-glory .navbar-brand:hover img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(29%) saturate(694%) hue-rotate(2deg) brightness(115%) contrast(93%);
}

.theme-glory .brand-text-white {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 6px rgba(207, 175, 110, 0.5) !important;
}

.theme-glory .navbar-toggler {
    border-color: var(--theme-accent) !important;
    background: rgba(207, 175, 110, 0.2) !important;
}

.theme-glory .navbar-toggler:focus {
    box-shadow: 0 0 12px rgba(207, 175, 110, 0.4) !important;
}

.theme-glory .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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- Off-canvas (mobile nav) ---- */
.theme-glory .offcanvas {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 50%, var(--theme-primary-light) 100%) !important;
    border-left: 2px solid var(--theme-accent) !important;
    box-shadow: -3px 0 12px rgba(75, 46, 131, 0.3) !important;
}

.theme-glory .offcanvas-header {
    border-bottom: 1px solid var(--theme-accent) !important;
}

.theme-glory .btn-close {
    filter: none !important;
    opacity: 1 !important;
    background: #FFFFFF !important;
    border: 2px solid var(--theme-accent) !important;
    border-radius: 6px !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0.75rem !important;
    box-shadow: 0 2px 6px rgba(75, 46, 131, 0.2) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .btn-close:hover {
    opacity: 1 !important;
    background-color: var(--theme-bg) !important;
    border-color: var(--theme-primary) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 3px 10px rgba(75, 46, 131, 0.3) !important;
}

.theme-glory .mobile-nav-section .btn {
    background: var(--theme-btn-gradient) !important;
    border: 2px solid var(--theme-accent) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(75, 46, 131, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .mobile-nav-section .btn:hover {
    background: linear-gradient(45deg, var(--theme-primary-mid), var(--theme-primary-light), #8B6BC1) !important;
    box-shadow: 0 6px 20px rgba(75, 46, 131, 0.4) !important;
    transform: translateY(-1px) !important;
}

.theme-glory .mobile-nav-header {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.theme-glory .mobile-nav-item {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.theme-glory .mobile-nav-item:hover {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 6px rgba(207, 175, 110, 0.6) !important;
}

.theme-glory .mobile-nav-item i {
    color: var(--theme-accent) !important;
}

/* ---- Footer ---- */
.theme-glory .footer {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 50%, var(--theme-primary-light) 100%) !important;
    border-top: 2px solid var(--theme-accent) !important;
    box-shadow: 0 -3px 12px rgba(75, 46, 131, 0.3) !important;
}

.theme-glory .footer p {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 4px rgba(207, 175, 110, 0.3) !important;
    font-weight: 500 !important;
}

/* Footer link + icon: all gold — overrides inline color styles */
.theme-glory .footer a,
.theme-glory .footer a * {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 4px rgba(207, 175, 110, 0.4) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-glory .footer a:hover,
.theme-glory .footer a:hover * {
    color: var(--theme-accent-light) !important;
    text-shadow: 0 0 10px rgba(230, 197, 134, 0.8) !important;
}

/* ---- Modals ---- */
.theme-glory .modal-backdrop {
    display: none !important;
}

.theme-glory .modal {
    z-index: 9999 !important;
}

.theme-glory .modal-dialog {
    z-index: 10000 !important;
}

.theme-glory .modal-content {
    background: rgba(249, 246, 242, 0.99) !important;
    border: 2px solid var(--theme-accent) !important;
    box-shadow: 0 0 25px rgba(75, 46, 131, 0.3) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-glory .modal-header {
    background: transparent !important;
    border-bottom: none !important;
    color: var(--theme-primary) !important;
}

.theme-glory .modal-title {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
}

.theme-glory .modal-body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

.theme-glory .modal-footer {
    background: transparent !important;
    border-top: none !important;
}

.theme-glory .modal .btn-secondary {
    background: rgba(207, 175, 110, 0.9) !important;
    border: 2px solid var(--theme-accent) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-glory .modal .btn-secondary:hover {
    background: rgba(75, 46, 131, 0.9) !important;
    border-color: var(--theme-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 12px rgba(75, 46, 131, 0.3) !important;
}

/* ---- Taken/Disabled Options ---- */
.theme-glory .list-group-item input:disabled + label {
    color: var(--theme-primary-light) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

.theme-glory .list-group-item input:disabled ~ small {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
}

.theme-glory .list-group-item:has(input:disabled) {
    background: rgba(184, 165, 209, 0.25) !important;
    border-color: rgba(207, 175, 110, 0.4) !important;
    opacity: 0.8 !important;
}

.theme-glory .list-group-item:has(input:disabled):hover {
    background: rgba(184, 165, 209, 0.25) !important;
    border-color: rgba(207, 175, 110, 0.4) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 3px 12px rgba(75, 46, 131, 0.1) !important;
}

.theme-glory .list-group-item:has(input:disabled)::before {
    background: linear-gradient(to bottom, rgba(75, 46, 131, 0.4), rgba(207, 175, 110, 0.4)) !important;
}
