/* JewellPlace web theme normalization.
   Page views contain their own visual styles; this file is loaded last so both
   themes keep readable component contrast without weakening intentionally dark
   media viewers. */

:root {
    --midas-text: var(--text-main);
    --midas-gold-ink: #745318;
    --midas-on-gold: #17120a;
    --midas-success: #146c43;
    --midas-danger: #a92231;
    --midas-info: #176b87;
    --midas-focus: rgba(159, 123, 52, .28);
}

body[data-theme="dark"] {
    color-scheme: dark;
    --bs-body-color: #e8e8e8;
    --bs-body-color-rgb: 232, 232, 232;
    --bs-body-bg: #000;
    --bs-body-bg-rgb: 0, 0, 0;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(232, 232, 232, .76);
    --bs-secondary-color-rgb: 184, 184, 184;
    --bs-secondary-bg: #252525;
    --bs-secondary-bg-rgb: 37, 37, 37;
    --bs-tertiary-color: rgba(232, 232, 232, .62);
    --bs-tertiary-bg: #2a2a2a;
    --bs-tertiary-bg-rgb: 42, 42, 42;
    --bs-border-color: #4a4a4a;
    --bs-border-color-translucent: rgba(255, 255, 255, .18);
    --bs-link-color: #d9b66f;
    --bs-link-color-rgb: 217, 182, 111;
    --bs-link-hover-color: #f1d493;
    --bs-link-hover-color-rgb: 241, 212, 147;
    --bs-secondary-rgb: 184, 184, 184;
    --midas-focus: rgba(218, 181, 106, .42);
    color: var(--text-main);
    background: var(--midas-bg);
}

body[data-theme="dark"] a:not(.btn):not(.page-link) {
    color: var(--bs-link-color);
}

body[data-theme="dark"] a:not(.btn):not(.page-link):hover {
    color: var(--bs-link-hover-color);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] .text-white,
body[data-theme="dark"] .text-light {
    color: #f4f4f4 !important;
}

body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .form-text {
    color: #b0b0b0 !important;
}

body[data-theme="dark"] .text-secondary { color: #b8b8b8 !important; }
body[data-theme="dark"] .text-success { color: #65d9a1 !important; }
body[data-theme="dark"] .text-danger { color: #ff8290 !important; }
body[data-theme="dark"] .text-warning,
body[data-theme="dark"] .text-warning-emphasis { color: #ffd36a !important; }
body[data-theme="dark"] .text-info { color: #64d8f2 !important; }

body[data-theme="dark"] .card,
body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .offcanvas,
body[data-theme="dark"] .list-group-item,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .toast,
body[data-theme="dark"] .popover {
    background-color: var(--midas-surface) !important;
    border-color: var(--midas-border) !important;
    color: var(--text-main) !important;
}

body[data-theme="dark"] .card-header,
body[data-theme="dark"] .card-footer,
body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-footer,
body[data-theme="dark"] .accordion-button,
body[data-theme="dark"] .dropdown-divider {
    background-color: var(--midas-surface-soft) !important;
    border-color: var(--midas-border) !important;
    color: var(--text-main) !important;
}

body[data-theme="dark"] .card.bg-dark,
body[data-theme="dark"] .card.bg-black,
body[data-theme="dark"] .alert.bg-dark,
body[data-theme="dark"] .alert.bg-black,
body[data-theme="dark"] .bg-dark,
body[data-theme="dark"] .bg-black {
    color: var(--text-main) !important;
}

body[data-theme="dark"] .bg-light,
body[data-theme="dark"] .bg-white,
body[data-theme="dark"] .table-light {
    color: #211b13 !important;
}

body[data-theme="dark"] .dropdown-item,
body[data-theme="dark"] .list-group-item-action {
    color: var(--text-main);
}

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:focus,
body[data-theme="dark"] .dropdown-item.active,
body[data-theme="dark"] .list-group-item-action:hover,
body[data-theme="dark"] .list-group-item-action:focus {
    color: #fff;
    background: #333;
}

body[data-theme="dark"] .table,
body[data-theme="dark"] .table-dark {
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--midas-border);
    --bs-table-striped-color: #f0f0f0;
    --bs-table-striped-bg: rgba(255, 255, 255, .035);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, .07);
    color: var(--text-main) !important;
}

body[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg) !important;
    color: var(--bs-table-color) !important;
    border-color: var(--midas-border) !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .form-control:disabled,
body[data-theme="dark"] .midas-input,
body[data-theme="dark"] .form-control-luxury {
    background: var(--input-bg) !important;
    border-color: #555 !important;
    color: #f1f1f1 !important;
    -webkit-text-fill-color: #f1f1f1 !important;
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-control-luxury::placeholder {
    color: #aaa !important;
    -webkit-text-fill-color: #aaa !important;
    opacity: 1;
}

body[data-theme="dark"] .form-control:disabled,
body[data-theme="dark"] .form-select:disabled {
    color: #c5c5c5 !important;
    -webkit-text-fill-color: #c5c5c5 !important;
    opacity: 1;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus,
body[data-theme="dark"] .form-control-luxury:focus,
body[data-theme="dark"] .midas-input:focus {
    border-color: var(--midas-gold) !important;
    box-shadow: 0 0 0 .25rem var(--midas-focus) !important;
}

body[data-theme="dark"] .form-check-input {
    background-color: #262626;
    border-color: #777;
}

body[data-theme="dark"] .form-check-input:checked {
    background-color: var(--midas-gold) !important;
    border-color: var(--midas-gold) !important;
}

body[data-theme="dark"] option {
    color: #f1f1f1;
    background: #242424;
}

body[data-theme="dark"] .input-group-text {
    color: #c6c6c6 !important;
    background: #303030 !important;
    border-color: #555 !important;
}

body[data-theme="dark"] .form-control-luxury:-webkit-autofill,
body[data-theme="dark"] .form-control-luxury:-webkit-autofill:hover,
body[data-theme="dark"] .form-control-luxury:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #202020 inset !important;
    -webkit-text-fill-color: #f1f1f1 !important;
}

body[data-theme="dark"] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--midas-focus);
    outline-offset: 2px;
}

body[data-theme="dark"] .btn-outline-dark,
body[data-theme="dark"] .btn-outline-secondary {
    color: #dedede !important;
    background: transparent !important;
    border-color: #777 !important;
}

body[data-theme="dark"] .btn-outline-dark:hover,
body[data-theme="dark"] .btn-outline-secondary:hover {
    color: #17120a !important;
    background: var(--midas-gold) !important;
    border-color: var(--midas-gold) !important;
}

body[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(190%);
}

body[data-theme="dark"] .navbar {
    --bs-navbar-color: rgba(255, 255, 255, .76);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, .34);
}

body[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(190%);
}

body[data-theme="dark"] .nav-tabs {
    --bs-nav-tabs-border-color: var(--midas-border);
    --bs-nav-tabs-link-active-color: #fff;
    --bs-nav-tabs-link-active-bg: var(--midas-surface);
    --bs-nav-tabs-link-active-border-color: var(--midas-border);
}

body[data-theme="dark"] .page-link {
    color: var(--bs-link-color);
    background: var(--midas-surface);
    border-color: var(--midas-border);
}

body[data-theme="dark"] .page-link:hover,
body[data-theme="dark"] .page-link:focus {
    color: #17120a;
    background: var(--midas-gold);
    border-color: var(--midas-gold);
}

body[data-theme="dark"] .alert-secondary {
    color: #e5e5e5;
    background: #292d31;
    border-color: #555b61;
}

body[data-theme="dark"] .alert-success { background: #102a20; color: #9be8bd; border-color: #236846; }
body[data-theme="dark"] .alert-danger { background: #35171b; color: #ffadb7; border-color: #85404a; }
body[data-theme="dark"] .alert-warning { background: #31270c; color: #ffe29a; border-color: #79611e; }
body[data-theme="dark"] .alert-info { background: #102a31; color: #9be5f5; border-color: #27687a; }

body[data-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(190%);
}

body[data-theme="dark"] .midas-theme-toggle {
    border-color: #555;
    background: #242424;
    color: #f2f2f2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}

body[data-theme="dark"] :where(
    .home-toolbar,
    .model-card,
    .luxury-card,
    .profile-card,
    .public-banner,
    .payment-type-option,
    .detail-card,
    .comment-card,
    .reply-box,
    .version-shell,
    .creator-hero,
    .creator-section,
    .creator-card,
    .creator-empty,
    .reports-section,
    .reports-card,
    .price-table-wrap,
    .pre-reg-card,
    .pre-reg-role-card
) {
    color: var(--text-main) !important;
}

body[data-theme="dark"] .change-flat { color: #b3b3b3 !important; }

body[data-theme="light"] {
    color-scheme: light;
    --bs-body-color: var(--text-main);
    --bs-body-bg: var(--midas-bg);
    --bs-border-color: var(--midas-border);
    --bs-secondary-color: var(--text-muted);
    --bs-secondary-bg: var(--midas-surface-soft);
    --bs-tertiary-bg: #f7f3ed;
    background: linear-gradient(180deg, #fbf9f5 0, var(--midas-bg) 28rem) !important;
}

body[data-theme="light"] a:not(.btn):not(.page-link) {
    color: var(--midas-gold-ink);
}

body[data-theme="light"] a:not(.btn):not(.page-link):hover {
    color: #52380e;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6,
body[data-theme="light"] .text-white,
body[data-theme="light"] .text-light {
    color: var(--text-main) !important;
}

body[data-theme="light"] .text-warning,
body[data-theme="light"] .text-warning-emphasis,
body[data-theme="light"] [style*="color: var(--midas-gold)"],
body[data-theme="light"] [style*="color:#C5A059"],
body[data-theme="light"] [style*="color: #C5A059"] {
    color: var(--midas-gold-ink) !important;
}

body[data-theme="light"] .text-success { color: var(--midas-success) !important; }
body[data-theme="light"] .text-danger { color: var(--midas-danger) !important; }
body[data-theme="light"] .text-info { color: var(--midas-info) !important; }

body[data-theme="light"] .card,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .dropdown-menu,
body[data-theme="light"] .offcanvas,
body[data-theme="light"] .list-group-item,
body[data-theme="light"] .accordion-item,
body[data-theme="light"] .toast,
body[data-theme="light"] .popover {
    background-color: var(--midas-surface) !important;
    border-color: var(--midas-border) !important;
    color: var(--text-main) !important;
}

body[data-theme="light"] .card-header,
body[data-theme="light"] .card-footer,
body[data-theme="light"] .modal-header,
body[data-theme="light"] .modal-footer,
body[data-theme="light"] .accordion-button,
body[data-theme="light"] .dropdown-divider {
    background-color: var(--midas-surface-soft) !important;
    border-color: var(--midas-border) !important;
    color: var(--text-main) !important;
}

body[data-theme="light"] .dropdown-item { color: var(--text-main); }
body[data-theme="light"] .dropdown-item:hover,
body[data-theme="light"] .dropdown-item:focus,
body[data-theme="light"] .dropdown-item.active {
    color: var(--text-main);
    background: var(--midas-surface-soft);
}

body[data-theme="light"] .bg-dark,
body[data-theme="light"] .bg-black {
    background-color: var(--midas-surface-soft) !important;
    color: var(--text-main) !important;
}

body[data-theme="light"] .border-secondary,
body[data-theme="light"] .border-dark,
body[data-theme="light"] .border-light {
    border-color: var(--midas-border) !important;
}

body[data-theme="light"] .table,
body[data-theme="light"] .table-dark {
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--midas-border);
    --bs-table-striped-color: var(--text-main);
    --bs-table-striped-bg: rgba(116, 83, 24, .045);
    --bs-table-hover-color: var(--text-main);
    --bs-table-hover-bg: rgba(116, 83, 24, .075);
    color: var(--text-main) !important;
}

body[data-theme="light"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg) !important;
    color: var(--bs-table-color) !important;
    border-color: var(--midas-border) !important;
}

body[data-theme="light"] .form-control,
body[data-theme="light"] .form-select,
body[data-theme="light"] .form-control:disabled,
body[data-theme="light"] .midas-input,
body[data-theme="light"] .form-control-luxury {
    background: #fff !important;
    border-color: var(--input-border) !important;
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

body[data-theme="light"] .form-control::placeholder,
body[data-theme="light"] .form-control-luxury::placeholder {
    color: #746b5e !important;
    opacity: 1;
}

body[data-theme="light"] .form-control:focus,
body[data-theme="light"] .form-select:focus,
body[data-theme="light"] .form-control-luxury:focus,
body[data-theme="light"] .midas-input:focus {
    border-color: var(--midas-gold-strong) !important;
    box-shadow: 0 0 0 .25rem var(--midas-focus) !important;
}

body[data-theme="light"] .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 1.25rem;
    background-color: #fff;
    border-color: #958a78;
}

body[data-theme="light"] .form-check {
    min-height: 44px;
    align-items: center;
}

body[data-theme="light"] .form-check-input:checked {
    background-color: var(--midas-gold-strong) !important;
    border-color: var(--midas-gold-strong) !important;
}

body[data-theme="light"] .form-control-luxury:-webkit-autofill,
body[data-theme="light"] .form-control-luxury:-webkit-autofill:hover,
body[data-theme="light"] .form-control-luxury:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

body[data-theme="light"] option { color: var(--text-main); background: #fff; }

body[data-theme="light"] :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--midas-focus);
    outline-offset: 2px;
}

body[data-theme="light"] .btn-midas,
body[data-theme="light"] .btn-warning {
    color: var(--midas-on-gold) !important;
    background: var(--midas-gold) !important;
    border-color: var(--midas-gold) !important;
}

body[data-theme="light"] .btn-midas:hover,
body[data-theme="light"] .btn-warning:hover {
    color: #080603 !important;
    background: #b68d41 !important;
    border-color: #b68d41 !important;
}

body[data-theme="light"] .btn-dark,
body[data-theme="light"] .btn-outline-light,
body[data-theme="light"] .btn-outline-secondary {
    color: #453b2d !important;
    background: #fff !important;
    border-color: #aa9e8b !important;
}

body[data-theme="light"] .btn-dark:hover,
body[data-theme="light"] .btn-outline-light:hover,
body[data-theme="light"] .btn-outline-secondary:hover {
    color: var(--text-main) !important;
    background: var(--midas-surface-soft) !important;
    border-color: var(--midas-gold-strong) !important;
}

body[data-theme="light"] .btn-close { filter: none; }
body[data-theme="light"] hr { border-color: #bfb3a1 !important; opacity: .75; }
body[data-theme="light"] code { color: #8f2543; }
body[data-theme="light"] pre { background: #f4f0e9; color: #30291f; border: 1px solid var(--midas-border); }

body[data-theme="light"] .badge.bg-dark,
body[data-theme="light"] .alert.bg-dark,
body[data-theme="light"] .badge.bg-secondary {
    background: #e6dfd3 !important;
    color: #463d31 !important;
    border-color: #cbbfab !important;
}

body[data-theme="light"] .alert-success { background: #e6f4ec; color: #125b39; border-color: #a8d4bc; }
body[data-theme="light"] .alert-danger { background: #fbeaec; color: #8d1d29; border-color: #e6b4ba; }
body[data-theme="light"] .alert-warning { background: #fff4d6; color: #674b09; border-color: #e2ca83; }
body[data-theme="light"] .alert-info { background: #e7f3f7; color: #15566d; border-color: #add0dc; }

body[data-theme="light"] .announcement-banner {
    background: linear-gradient(135deg, #fff8e8, #fff) !important;
    box-shadow: 0 8px 24px rgba(61, 45, 24, .06);
}

body[data-theme="light"] .announcement-dismiss {
    color: #554a3b;
    background: #ece5da;
}

body[data-theme="light"] .announcement-dismiss:hover { color: #211b13; background: #ded3c2; }

/* Accessible, global theme control. */
.midas-theme-toggle {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--midas-border);
    background: var(--midas-surface);
    color: var(--text-main);
    box-shadow: 0 10px 28px rgba(33, 27, 19, .16);
}

.midas-theme-toggle:hover { border-color: var(--midas-gold); color: var(--midas-gold-ink); transform: translateY(-1px); }
.midas-theme-toggle:focus-visible { outline: 3px solid var(--midas-focus); outline-offset: 2px; }

/* Home/catalog. */
body[data-theme="light"] .home-toolbar { background: var(--midas-surface) !important; border: 1px solid var(--midas-border); box-shadow: var(--shadow-soft); }
body[data-theme="light"] .home-view-toggle .btn { width: 40px !important; min-width: 40px; }
body[data-theme="light"] .home-search button { min-width: 40px; }
body[data-theme="light"] .btn-category { color: #544a3d !important; background: #fff !important; border-color: #aa9e8b !important; }
body[data-theme="light"] .btn-category.active,
body[data-theme="light"] .btn-category:hover { color: #fff !important; background: var(--midas-gold-strong) !important; border-color: var(--midas-gold-strong) !important; }
body[data-theme="light"] .model-card { background: #fff !important; border-color: var(--midas-border) !important; box-shadow: 0 10px 25px rgba(61,45,24,.08); }
body[data-theme="light"] .model-card:hover { border-color: #b89b63 !important; box-shadow: 0 16px 34px rgba(61,45,24,.13); }
body[data-theme="light"] .price-tag { color: var(--midas-gold-ink) !important; }

/* Login and registration. */
body[data-theme="light"]:has(.login-container) {
    background: radial-gradient(circle at 50% -20%, #fff8e9 0, #f7f3ec 58%, #eee7dc 100%) !important;
}

body[data-theme="light"] .luxury-card {
    background: rgba(255,255,255,.96) !important;
    border-color: #cfc1aa !important;
    box-shadow: 0 24px 70px rgba(61,45,24,.16) !important;
    color: var(--text-main) !important;
}

body[data-theme="light"] .luxury-card::before { background: linear-gradient(90deg, transparent, var(--midas-gold-strong), transparent) !important; }
body[data-theme="light"] .input-group-text-luxury { background: #f1ebe1 !important; color: #5f5548 !important; border-color: var(--input-border) !important; }
body[data-theme="light"] .midas-logo-box { background: #fffaf0 !important; border-color: #bea978 !important; box-shadow: 0 8px 24px rgba(61,45,24,.10) !important; }
body[data-theme="light"] .login-secondary-link,
body[data-theme="light"] .register-secondary-link { color: #5a4214 !important; }

/* User profile and public profile. */
body[data-theme="light"] .profile-card,
body[data-theme="light"] .public-banner {
    background: linear-gradient(145deg, #fff, #f6f1e9) !important;
    border-color: var(--midas-border) !important;
    box-shadow: var(--shadow-soft) !important;
}

body[data-theme="light"] .profile-card .stat-box,
body[data-theme="light"]:has(.public-banner) .stat-box,
body[data-theme="light"] .payment-type-option {
    background: #f4efe7 !important;
    border-color: #d2c7b6 !important;
    color: var(--text-main) !important;
}

body[data-theme="light"] .payment-type-option:has(input:checked) { background: #fff7e5 !important; border-color: var(--midas-gold-strong) !important; }
body[data-theme="light"] .payment-section-title { color: var(--text-main) !important; border-bottom-color: var(--midas-border) !important; }
body[data-theme="light"] .payment-info-box { color: #5a4214 !important; background: #fff6dc !important; border-color: #dbc488 !important; }

/* Model detail/edit. Media canvases intentionally keep their dark neutral backdrop. */
body[data-theme="light"] .detail-card,
body[data-theme="light"] .comment-card,
body[data-theme="light"] .reply-box,
body[data-theme="light"] .version-shell {
    background: #fff !important;
    border-color: var(--midas-border) !important;
    color: var(--text-main) !important;
    box-shadow: 0 12px 30px rgba(61,45,24,.07);
}

body[data-theme="light"] .reply-box { background: #f6f1e9 !important; }
body[data-theme="light"] .badge-custom { color: #4d3b17 !important; background: #f3e8cf !important; border-color: #d3ba82 !important; }
body[data-theme="light"] .star-rating-input i { color: #8b806f; }
body[data-theme="light"] .star-rating-input i.active,
body[data-theme="light"] .star-rating-input i:hover { color: #8a641b !important; }
body[data-theme="light"] .edit-media-tile,
body[data-theme="light"] .media-preview-tile { border-color: var(--midas-border) !important; background: #f3eee6 !important; }

/* Modelist profile/reports. */
body[data-theme="light"] .creator-hero,
body[data-theme="light"] .creator-section,
body[data-theme="light"] .creator-card,
body[data-theme="light"] .reports-section,
body[data-theme="light"] .reports-card {
    background: linear-gradient(180deg, #fff, #f8f4ed) !important;
    border-color: var(--midas-border) !important;
    box-shadow: 0 16px 38px rgba(61,45,24,.09) !important;
}

body[data-theme="light"] .creator-stat { background: #f1ebe2 !important; border-color: #d8cdbc !important; }
body[data-theme="light"] .creator-stat-value,
body[data-theme="light"] .reports-value { color: var(--text-main) !important; }
body[data-theme="light"] .creator-avatar { background: #eee7dc !important; }
body[data-theme="light"] .creator-empty { background: #faf7f2; }

/* Gold price screen. */
body[data-theme="light"] .gold-page-bg { background: radial-gradient(ellipse at top, #fff8e6 0, #f7f3ec 58%, #eee7dc 100%) !important; }
body[data-theme="light"] .price-table-wrap { background: rgba(255,255,255,.94) !important; border-color: #d4c39e !important; box-shadow: var(--shadow-soft); }
body[data-theme="light"] .gold-table thead th { background: #f3ebdc !important; color: #655b4d !important; border-color: var(--midas-border) !important; }
body[data-theme="light"] .gold-table tbody tr { border-color: #e2d9ca !important; }
body[data-theme="light"] .gold-table tbody tr:hover { background: #faf4e8 !important; }
body[data-theme="light"] .metal-name { color: #6f5017 !important; }
body[data-theme="light"] .price-alis,
body[data-theme="light"] .change-up,
body[data-theme="light"] .live-badge { color: #0f7040 !important; }
body[data-theme="light"] .price-satis,
body[data-theme="light"] .change-down { color: #a52131 !important; }
body[data-theme="light"] .change-flat { color: #62594c !important; }
body[data-theme="light"] .refresh-btn { color: #644813 !important; background: #fff8e9 !important; border-color: #bfa66f !important; }
body[data-theme="light"] .skeleton { background: linear-gradient(90deg, #eee8de 25%, #ddd2c0 50%, #eee8de 75%) !important; background-size: 200% 100% !important; }

/* Pre-registration is part of the light web experience too. */
body[data-theme="light"]:has(.pre-reg-page) { background: #f4efe7 !important; }
body[data-theme="light"] .pre-reg-page {
    --pre-line: #d4c8b5;
    --pre-line-strong: #a78342;
    --pre-text: #261f16;
    --pre-muted: #685f53;
    color: var(--pre-text) !important;
}
body[data-theme="light"] .pre-reg-page::before { background: radial-gradient(circle at 12% 24%, rgba(197,160,89,.18), transparent 18%), linear-gradient(135deg, rgba(159,123,52,.08) 0 1px, transparent 1px 100%), #f8f4ed !important; }
body[data-theme="light"] .pre-reg-page::after { border-color: rgba(159,123,52,.38) !important; }
body[data-theme="light"] .pre-reg-title { color: #211b13 !important; }
body[data-theme="light"] .pre-reg-title-accent,
body[data-theme="light"] .pre-reg-logo,
body[data-theme="light"] .pre-reg-symbols { color: #76551a !important; }
body[data-theme="light"] .pre-reg-card { background: rgba(255,255,255,.92) !important; border-color: var(--midas-border) !important; box-shadow: 0 24px 70px rgba(61,45,24,.14) !important; }
body[data-theme="light"] .pre-reg-role-card { background: #f4efe7 !important; border-color: #d2c7b6 !important; color: var(--text-main) !important; }
body[data-theme="light"] .pre-reg-role-card.active { background: #fff6df !important; border-color: #a78342 !important; }
body[data-theme="light"] .pre-reg-role-card i,
body[data-theme="light"] .pre-field-label i,
body[data-theme="light"] .pre-file-button i { color: var(--midas-gold-ink) !important; }
body[data-theme="light"] .pre-field-label,
body[data-theme="light"] .pre-reg-card .form-check { color: var(--text-main) !important; }
body[data-theme="light"] .pre-reg-card .form-check { align-items: flex-start; }
body[data-theme="light"] .pre-reg-card .form-control {
    color: var(--text-main) !important;
    background: #fff !important;
    border-color: var(--input-border) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 7px 18px rgba(61,45,24,.06) !important;
}
body[data-theme="light"] .pre-reg-card .form-control::placeholder { color: #746b5e !important; }
body[data-theme="light"] .pre-reg-card .form-text { color: var(--text-muted) !important; }
body[data-theme="light"] .pre-reg-card input[type="number"]::-webkit-inner-spin-button { filter: none; }
body[data-theme="light"] .pre-file-control { background: #fff !important; border-color: var(--midas-border) !important; }
body[data-theme="light"] .pre-file-button { color: #403728 !important; background: #eee7dc !important; }
body[data-theme="light"] .pre-secondary { color: #403728 !important; border-color: #9f927e !important; }
body[data-theme="light"] .pre-reg-card .text-danger { color: var(--midas-danger) !important; }

/* SweetAlert follows the active page theme, including alerts with legacy inline colors. */
body[data-theme="light"] .swal2-popup {
    background: #fff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--midas-border);
    box-shadow: 0 24px 70px rgba(61,45,24,.18);
}
body[data-theme="light"] .swal2-title,
body[data-theme="light"] .swal2-html-container { color: var(--text-main) !important; }
body[data-theme="light"] .swal2-confirm { color: var(--midas-on-gold) !important; }

@media (max-width: 767.98px) {
    .midas-theme-toggle { width: 44px; height: 44px; }
    body[data-theme="light"] .home-toolbar { padding: 12px !important; border-radius: 14px; }
    body[data-theme="light"] .creator-hero,
    body[data-theme="light"] .creator-section,
    body[data-theme="light"] .reports-section { border-radius: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
