/*
 * Gold Repledge — Custom Theme Override
 * Primary Gold : #C9A84C  (rich warm gold)
 * Primary Dark : #A6842A  (deep gold for hover/active)
 * Primary Light: #FDF3DC  (pale gold bg tints)
 * Secondary    : #1E293B  (deep navy sidebar)
 * Accent Gold  : #D4AF37  (metallic gold highlights)
 *
 * This file is loaded AFTER style.css so it wins specificity.
 */

/* =====================================================
   GLOBAL TYPOGRAPHY — Inter Font Family
   ===================================================== */
:root {
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-primary: 'Inter', sans-serif;
}

html, body,
input, button, select, optgroup, textarea,
.btn, .form-control, .form-select, .form-check-label, .input-group-text,
.dropdown-menu, .dropdown-item,
.table, .table th, .table td,
.nav, .nav-link, .navbar, .card, .card-title, .modal, .modal-title,
.popover, .tooltip,
.page-title, .page-header, .breadcrumb-item, .sidebar, .header, .user-menu,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* =====================================================
   PRELOADER — Luxury Gold Loan & Repledge Animation
   ===================================================== */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #fffdf7 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

[data-theme="dark"] #global-loader {
    background: #0f172a;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

/* Emblem Container */
.gold-preloader-emblem {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer Spinning Ring */
.gold-spinner-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #D4AF37;
    border-right-color: #F5D77F;
    border-bottom-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.28);
    animation: goldSpinClockwise 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Inner Spinning Ring (counter-clockwise) */
.gold-spinner-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(201, 168, 76, 0.45);
    border-left-color: #D4AF37;
    border-top-color: transparent;
    animation: goldSpinCounter 2s linear infinite;
}

/* Center Emblem Core */
.gold-emblem-core {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.2) 0%, rgba(201, 168, 76, 0.04) 80%);
    border: 1px solid rgba(201, 168, 76, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.18), inset 0 0 10px rgba(245, 215, 127, 0.25);
    animation: goldPulseCore 2s ease-in-out infinite;
}

.gold-emblem-svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 5px rgba(153, 101, 21, 0.45));
}

/* Brand Text Area */
.gold-preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.gold-preloader-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 40%, #F5D77F 60%, #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .gold-preloader-title {
    background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #FFE082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Progress Shimmer Track */
.gold-preloader-track {
    width: 124px;
    height: 3px;
    border-radius: 99px;
    background: rgba(201, 168, 76, 0.18);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gold-preloader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 50%, #F5D77F 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    animation: goldTrackSlide 1.4s ease-in-out infinite;
}

.gold-preloader-subtitle {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #8C7335;
    opacity: 0.85;
}

[data-theme="dark"] .gold-preloader-subtitle {
    color: #C9A84C;
    opacity: 0.75;
}

/* Keyframe Animations */
@keyframes goldSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes goldPulseCore {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes goldTrackSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* =====================================================
   BRAND LOGOS
   ===================================================== */
.header-left .logo img,
.header-left .dark-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.header-left .logo:hover img {
    transform: scale(1.02);
}
.sidebar .sidebar-logo .logo-normal img,
.sidebar .sidebar-logo .dark-logo img {
    max-height: 38px;
    max-width: 175px;
    width: auto;
    object-fit: contain;
}
.sidebar .sidebar-logo .logo-small img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

/* =====================================================
   ROOT / BODY SELECTION COLOR
   ===================================================== */
::selection {
    background: #C9A84C;
    color: #fff;
}

/* =====================================================
   PRIMARY COLOR OVERRIDES
   ===================================================== */
.bg-primary {
    background-color: #C9A84C !important;
}
.bg-primary.bg-opacity-10 {
    background-color: rgba(201, 168, 76, 0.10) !important;
}
.bg-primary.bg-opacity-25 {
    background-color: rgba(201, 168, 76, 0.25) !important;
}
.bg-primary.bg-opacity-50 {
    background-color: rgba(201, 168, 76, 0.50) !important;
}
.bg-primary.bg-opacity-75 {
    background-color: rgba(201, 168, 76, 0.75) !important;
}

.text-primary {
    color: #C9A84C !important;
}
a.text-primary:hover,
a.text-primary:focus {
    color: #A6842A !important;
}

.border-primary {
    border-color: #C9A84C !important;
}

/* =====================================================
   BUTTONS — Primary
   ===================================================== */
.btn-primary {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #A6842A !important;
    border-color: #A6842A !important;
    color: #fff !important;
}
.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.4) !important;
}

.btn-outline-primary {
    color: #C9A84C !important;
    border-color: #C9A84C !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #fff !important;
}

.btn-light-primary {
    background-color: rgba(201, 168, 76, 0.12) !important;
    color: #C9A84C !important;
    border: none !important;
}
.btn-light-primary:hover {
    background-color: #C9A84C !important;
    color: #fff !important;
}

/* =====================================================
   LINKS
   ===================================================== */
a.hover-a:hover,
.hover-a:hover {
    color: #C9A84C !important;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge.bg-primary {
    background-color: #C9A84C !important;
}
.badge-soft-primary,
.badge.badge-soft-primary {
    background-color: rgba(201, 168, 76, 0.15) !important;
    color: #A6842A !important;
}

/* =====================================================
   SIDEBAR — active states
   ===================================================== */
.sidebar .nav-menu li a.active,
.sidebar .nav-menu li a:hover,
.sidebar .nav-menu > li.active > a,
.sidebar-menu ul li a.active,
.sidebar-menu ul li a:hover {
    color: #C9A84C !important;
}
.sidebar .nav-menu li a.active::before,
.sidebar .nav-menu > li.active > a::before {
    background: #C9A84C !important;
}
.sidebar .sidebar-menu > ul > li.active > a {
    background: linear-gradient(270deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0) 100%) !important;
    border-right: 3px solid #C9A84C !important;
}

/* =====================================================
   HEADER
   ===================================================== */
.header .header-left .logo img,
.header .header-left .dark-logo img {
    max-height: 42px;
}

/* =====================================================
   TOGGLE / CHECKBOX — custom primary
   ===================================================== */
.form-check-input:checked {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
}

/* =====================================================
   FORM CONTROLS — focus ring
   ===================================================== */
.form-control:focus,
.form-select:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25) !important;
}

/* =====================================================
   DATATABLES & PAGINATION — Modern, Polished UI
   ===================================================== */
div.dataTables_wrapper {
    position: relative;
    clear: both;
}

div.dataTables_wrapper .row:first-child {
    padding: 12px 16px;
    margin: 0;
    align-items: center;
}

div.dataTables_wrapper .row:last-child {
    padding: 12px 16px;
    margin: 0;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.custom-datatable-filter {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* Info text */
.dataTables_info,
div.dataTables_wrapper div.dataTables_info {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    padding: 8px 0 !important;
}

/* Length & Filter */
div.dataTables_wrapper div.dataTables_filter {
    margin: 0 !important;
    text-align: right;
}
div.dataTables_wrapper div.dataTables_filter label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    min-width: 200px;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}
div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
}

div.dataTables_wrapper div.dataTables_length {
    margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_length select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 5px 28px 5px 10px !important;
    font-size: 13px !important;
    color: #334155;
    outline: none !important;
}
div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
}

/* Pagination container */
div.dataTables_wrapper div.dataTables_paginate,
.dataTables_paginate {
    margin: 0 !important;
    padding: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination,
.dataTables_paginate .pagination,
.pagination {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    justify-content: flex-end !important;
    flex-wrap: wrap;
}

/* Reset individual li and a */
.dataTables_paginate .pagination li,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item,
.pagination li {
    margin: 0 !important;
    width: auto !important;
    display: inline-block !important;
}

.dataTables_paginate .pagination li a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item .page-link,
.pagination .page-link,
.dataTables_paginate a.paginate_button {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out !important;
    line-height: 1 !important;
}

/* Hover state */
.dataTables_paginate .pagination li:not(.active):not(.disabled) a:hover,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item:not(.active):not(.disabled) .page-link:hover,
.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.dataTables_paginate a.paginate_button:not(.disabled):hover {
    background-color: #f8fafc !important;
    border-color: #C9A84C !important;
    color: #A6842A !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Active Page state */
.dataTables_paginate .pagination li.active a,
.dataTables_paginate .pagination li.active a.page-link,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item.active .page-link,
.pagination .page-item.active .page-link,
.dataTables_paginate a.paginate_button.current,
[data-color] .dataTables_paginate .pagination li.active a.page-link {
    background: linear-gradient(135deg, #D4AF37, #C9A84C) !important;
    border-color: #C9A84C !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(201, 168, 76, 0.35) !important;
    transform: none !important;
}

/* Disabled state */
.dataTables_paginate .pagination li.disabled a,
.dataTables_paginate .pagination li.previous.disabled a,
.dataTables_paginate .pagination li.next.disabled a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item.disabled .page-link,
.pagination .page-item.disabled .page-link,
.dataTables_paginate a.paginate_button.disabled {
    background-color: #f8fafc !important;
    border-color: #edf2f7 !important;
    color: #94a3b8 !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Previous / Next buttons styling */
.dataTables_paginate .pagination li.previous a,
.dataTables_paginate .pagination li.next a,
.dataTables_paginate .pagination li.prev a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.previous .page-link,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.next .page-link {
    padding: 0 12px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress-bar.bg-primary {
    background-color: #C9A84C !important;
}

/* =====================================================
   ALERTS / TOASTS
   ===================================================== */
.alert-primary {
    background-color: rgba(201, 168, 76, 0.1) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    color: #A6842A !important;
}

/* =====================================================
   TABS — active
   ===================================================== */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #C9A84C !important;
    border-bottom-color: #C9A84C !important;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #C9A84C !important;
    color: #fff !important;
}

/* =====================================================
   BREADCRUMB — active
   ===================================================== */
.breadcrumb-item.active {
    color: #C9A84C !important;
}

/* =====================================================
   CARD HEADER — top border accent
   ===================================================== */
.card-header .header-title::before {
    background: #C9A84C !important;
}

/* =====================================================
   AUTHENTICATION PAGES — Luxury Gold Enterprise Theme
   ===================================================== */
.login-background {
    background: radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(201, 168, 76, 0.20) 0%, transparent 50%),
                linear-gradient(150deg, #090e17 0%, #111b2d 35%, #1f1b0e 75%, #382902 100%) !important;
    position: relative;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: goldAmbientGlow 12s infinite alternate ease-in-out;
}

@keyframes goldAmbientGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 3%) scale(1.08); }
}

.login-background .authen-overlay-item.border {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    padding: 2.25rem 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55),
                inset 0 1px 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.login-background .bg-overlay-img .bg-1,
.login-background .bg-overlay-img .bg-2,
.login-background .bg-overlay-img .bg-3 {
    opacity: 0.05 !important;
}

/* Left showcase feature badge list */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.auth-feature-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: all 0.25s ease;
}

.auth-feature-pill:hover {
    background: rgba(201, 168, 76, 0.14);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(166, 132, 42, 0.35));
    border: 1px solid rgba(201, 168, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 15px;
}

.auth-feature-text h6 {
    color: #F8FAFC;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1px;
}

.auth-feature-text p {
    color: #94A3B8;
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Right Side Authentication Card & Controls */
.auth-body-bg {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    min-height: 100vh;
}

.auth-form-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06),
                0 25px 40px -10px rgba(201, 168, 76, 0.05);
    padding: 2.25rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.auth-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37 0%, #C9A84C 50%, #A6842A 100%);
}

.auth-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(201, 168, 76, 0.12);
    color: #9A771E;
    border: 1px solid rgba(201, 168, 76, 0.28);
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.5;
}

/* Form Input Groups — Gold Focus Styling */
.auth-input-group {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.auth-input-group .form-control {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 0.925rem;
    padding: 0.7rem 0.95rem;
    color: #1E293B;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-input-group .input-group-text {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 1.1rem;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-input-group:focus-within .form-control {
    background-color: #FFFFFF;
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3.5px rgba(201, 168, 76, 0.2) !important;
}

.auth-input-group:focus-within .input-group-text {
    background-color: #FFFFFF;
    border-color: #C9A84C !important;
    color: #C9A84C !important;
}

.auth-input-group .btn-toggle-password {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: none;
    color: #64748B;
    padding: 0 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    transition: all 0.2s ease;
}

.auth-input-group:focus-within .btn-toggle-password {
    background-color: #FFFFFF;
    border-color: #C9A84C !important;
    color: #C9A84C !important;
}

.auth-input-group .btn-toggle-password:hover {
    color: #A6842A !important;
}

/* OTP Monospace Display */
.auth-otp-input {
    letter-spacing: 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    color: #0F172A;
}

/* Info recovery card */
.auth-info-card {
    background: #FFFDF6;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

/* Primary Auth Submit Button */
.btn-auth-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #C9A84C 50%, #A6842A 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.45);
    filter: brightness(1.04);
    color: #FFFFFF !important;
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.btn-auth-secondary {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-secondary:hover {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    transform: translateY(-1px);
}

/* Security Trust Badge in Form Footer */
.auth-trust-badge {
    font-size: 0.775rem;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.gold-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #D4AF37, #C9A84C, #A6842A);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}
.gold-brand-icon i {
    font-size: 30px;
    color: #fff;
}
.gold-brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #D4AF37, #C9A84C, #A6842A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.gold-tagline {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* =====================================================
   DASHBOARD — gold stat cards
   ===================================================== */
.gold-stat-card {
    background: linear-gradient(135deg, #C9A84C, #D4AF37);
    color: #fff;
    border-radius: 12px;
}
.gold-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* =====================================================
   MISC UTILITY — gold text sheen
   ===================================================== */
.text-gold {
    color: #C9A84C !important;
}
.text-gold-dark {
    color: #A6842A !important;
}
.bg-gold-light {
    background-color: rgba(201, 168, 76, 0.10) !important;
}

/* =====================================================
   OVERRIDES for orange references left in style.css
   ===================================================== */
/* Replace any remaining F26522 orange with gold */
[style*="color:#F26522"], [style*="color: #F26522"] {
    color: #C9A84C !important;
}
[style*="background:#F26522"], [style*="background-color:#F26522"] {
    background-color: #C9A84C !important;
}

/* link-danger on login → gold */
.link-danger {
    color: #C9A84C !important;
}
.link-danger:hover {
    color: #A6842A !important;
}

/* =====================================================
   SCROLLBAR — subtle gold accent
   ===================================================== */
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.35) !important;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.60) !important;
}

/* =====================================================
   HEADER SIDEBAR MENU SEARCH
   ===================================================== */
.menu-search-wrapper {
    position: relative;
    width: 270px;
    transition: width 0.25s ease;
}
.menu-search-wrapper:focus-within {
    width: 350px;
}
#header-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
}
[data-theme=dark] #header-search-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.menu-search-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 6px;
    font-size: 13px;
    transition: all 0.15s ease;
    cursor: pointer;
}
[data-theme=dark] .menu-search-item {
    color: #cbd5e1;
}
.menu-search-item:hover,
.menu-search-item.selected {
    background: rgba(201, 168, 76, 0.12) !important;
    color: #A6842A !important;
}
.menu-search-item i {
    font-size: 17px;
    width: 22px;
    margin-right: 10px;
    color: #64748b;
    transition: color 0.15s ease;
    text-align: center;
}
.menu-search-item:hover i,
.menu-search-item.selected i {
    color: #C9A84C !important;
}
.menu-search-item .menu-section-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
[data-theme=dark] .menu-search-item .menu-section-badge {
    background: #334155;
    color: #94a3b8;
}
.menu-search-item mark {
    background: #fef08a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

