/*
 * RMI Invest — Main Stylesheet
 * Yii2 + Bootstrap 4 Enterprise Investment Application
 */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --color-primary: #09316f;
    --color-primary-hover: #07265a;
    --color-primary-light: rgba(9, 49, 111, 0.08);
    --color-accent: #E83626;
    --color-accent-hover: #c92d1e;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e5e7eb;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #2563eb;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --transition: all 0.2s ease-in-out;
}

/* =============================================
   1. GENERAL STYLES — Font loaded via <link> in layouts/main.php (preconnect), not @import
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html,
.wrapper {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
    outline: none !important;
}

a:focus,
a:active {
    text-decoration: none;
    outline: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

input::-moz-focus-inner {
    border: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

::placeholder {
    color: var(--color-text-light);
    opacity: 1;
}

::-ms-input-placeholder {
    color: var(--color-text-light);
}

/* =============================================
   2. TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

/* =============================================
   3. UTILITY CLASSES
   ============================================= */
.text-xs {
    font-size: 0.8125rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* =============================================
   4. PRELOADER
   ============================================= */
.pre-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-primary);
    z-index: 999999999;
    left: 0;
    top: 0;
}

.sk-cube-grid {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

.sk-cube-grid .sk-cube {
    width: 33%;
    height: 33%;
    background-color: #fff;
    float: left;
    -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
    animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.sk-cube-grid .sk-cube1 { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 { -webkit-animation-delay: 0s; animation-delay: 0s; }
.sk-cube-grid .sk-cube8 { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% { -webkit-transform: scale3D(1, 1, 1); transform: scale3D(1, 1, 1); }
    35% { -webkit-transform: scale3D(0, 0, 1); transform: scale3D(0, 0, 1); }
}

@keyframes sk-cubeGridScaleDelay {
    0%, 70%, 100% { -webkit-transform: scale3D(1, 1, 1); transform: scale3D(1, 1, 1); }
    35% { -webkit-transform: scale3D(0, 0, 1); transform: scale3D(0, 0, 1); }
}

/* =============================================
   5. SCROLL-TO-TOP BUTTON
   ============================================= */
#scrollUp {
    background-color: var(--color-primary);
    border-radius: 50%;
    bottom: 20px;
    color: #ffffff;
    font-size: 18px;
    height: 44px;
    line-height: 48px;
    right: 20px;
    text-align: center;
    width: 44px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

#scrollUp:hover {
    background-color: var(--color-primary-hover);
}

/* =============================================
   6. HEADER & NAVIGATION
   ============================================= */
.top-header {
    padding: 6px 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8125rem;
}

.top-header p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.top-header a {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.top-header a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.top-header-link {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.8125rem;
}

.top-header-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.top-header-link i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Status dot indicator */
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.status-dot--success {
    background-color: #28a745;
}

.status-dot--warning {
    background-color: #ffc107;
}

.status-dot--danger {
    background-color: #dc3545;
}

.main-menu {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.main-menu nav li a {
    color: var(--color-primary);
    text-transform: capitalize;
    padding: 8px 16px 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-menu nav li a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.main-menu nav li.active > a,
.main-menu nav li.active > a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.main-menu.is-sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 6px 10px;
    line-height: 1;
}

.navbar-toggler-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
}

.navbar-toggler-icon i {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.menu-style-one .menu-items .nav-link {
    color: var(--color-primary);
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.menu-style-one .menu-items .nav-link:hover,
.menu-style-one .menu-items .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.menu-style-one ul li {
    display: inline-block;
    position: relative;
}

@media (min-width: 992px) {
    #mainNavbar.collapse {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .menu-style-one .menu-items {
        flex-direction: column;
    }

    .menu-style-one .menu-items .nav-link {
        padding: 10px 0;
        border-bottom: none;
    }
}

.menu-style-one ul li ul {
    position: absolute;
    width: 190px;
    text-align: center;
    background: var(--color-primary);
    z-index: 333;
    margin-top: -5px;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.menu-style-one ul li ul li {
    display: block;
}

.menu-style-one ul li ul li a {
    padding-left: 0;
    display: block;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.875rem;
    border-bottom: none;
}

.menu-style-one ul li:hover ul {
    visibility: visible;
    opacity: 1;
    margin-top: 28px;
}

.menu-style-one ul li ul li:hover a {
    color: #fff;
    background: var(--color-primary-hover);
}

.navbar.navbar-expand-md {
    padding: 0;
}

#sticky-nav {
    background: #fff;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(35, 35, 35, 0.15);
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-menu {
    width: 200px;
    border: none;
    background: var(--color-primary);
    border-radius: 0;
    margin-top: 8px;
    transition: var(--transition);
    text-align: center;
    padding: 0;
}

.navbar-nav .dropdown.show {
    visibility: visible;
    opacity: 1;
}

.navbar-nav .dropdown-menu li a {
    color: #fff;
    display: block;
    padding: 6px 12px;
    font-size: 0.875rem;
}

.main-menu nav ul ul li:hover a {
    background-color: var(--color-primary-hover);
    color: #fff;
}

/* =============================================
   6B. HEADER EDITORIAL — refactored from _header.php inline + !important war
   Uses design tokens, no !important, specificity via BEM
   ============================================= */
.header-one--editorial { border-bottom: 1px solid #eef2f7; }
.top-header--editorial { background: #f8fafc; border-bottom: 1px solid #eef2f7; padding: 7px 0; }
.top-header__container, .main-menu__container { max-width: 1280px; }
.top-header__inner { gap: 8px; }
.top-header__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: #475569; }
.top-header__greeting { display: inline-flex; align-items: center; gap: 6px; }
.top-header__name { color: #0f1f3c; font-weight: 600; }
.top-header__link { color: #0f274e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.top-header__link:hover { color: #0a1d3a; }
.top-header__pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px 8px; font-size: 0.72rem; color: #475569; }
.top-header__dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.top-header__meta { color: #94a3b8; font-size: 0.78rem; }
.top-header__status-text--review { color: #92400e; }
.top-header__status-text--active { color: #64748b; }
.top-header__actions { display: flex; align-items: center; gap: 2px; }
.top-header__action { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; color: #475569; padding: 4px 8px; border-radius: 6px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.top-header__action:hover { background: #f1f5f9; color: #0f1f3c; text-decoration: none; }
.top-header__action--logout { font-weight: 600; }
.top-header__action-icon { font-size: 0.72rem; color: #64748b; }
.top-header__divider { width: 1px; height: 18px; background: #e2e8f0; margin: 0 4px; }
.top-header__dropdown { border: 1px solid #e3e8f0; border-radius: 10px; box-shadow: 0 4px 12px rgba(15,31,60,0.08); padding: 4px; min-width: 180px; }
.top-header__dropdown-item { font-size: 0.8125rem; border-radius: 6px; padding: 8px 10px; }
.top-header__dropdown-icon { color: #64748b; }

.main-menu--editorial { background: #fff; padding: 10px 0; }
.header-brand { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.header-brand__logo { max-height: 34px; width: auto; }
.header-brand__tagline { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; font-weight: 600; border-left: 1px solid #e2e8f0; padding-left: 10px; line-height: 1.1; }
.header-brand__tagline-sub { color: #64748b; }
.header-toggler { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; }
.header-toggler__icon { color: #0f274e; font-size: 0.9rem; }
.header-nav { gap: 6px; }
.header-nav__list { display: flex; gap: 6px; align-items: center; }
.header-nav__link { font-size: 0.8125rem; font-weight: 600; color: #334155; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; border-bottom: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.header-nav__link:hover, .header-nav__link:focus { color: #0f1f3c; background: #f8fafc; border-color: #e2e8f0; text-decoration: none; }
.header-nav__link.active, .header-nav__link.is-active { color: #0f1f3c; font-weight: 700; background: #f1f5f9; border-color: #e2e8f0; }
.header-nav__link--secondary { font-weight: 500; color: #334155; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 14px; letter-spacing: -0.01em; }
.header-nav__link--secondary:hover, .header-nav__link--secondary:focus { background: #f8fafc; border-color: #94a3b8; color: #0f1f3c; }
.header-nav__link--primary { font-weight: 600; color: #fff; background: #0f274e; border: 1px solid #0f274e; border-radius: 8px; padding: 7px 16px; letter-spacing: -0.01em; }
.header-nav__link--primary:hover, .header-nav__link--primary:focus, .header-nav__link--primary.active { background: #0e213f; border-color: #0e213f; color: #fff; }
/* Override legacy generic menu specificity (.menu-style-one .menu-items .nav-link) tanpa !important */
.menu-style-one .menu-items .nav-link.header-nav__link--primary,
.header-one .menu-style-one .menu-items .nav-link.header-nav__link--primary { color: #fff; background: #0f274e; border-color: #0f274e; }
.menu-style-one .menu-items .nav-link.header-nav__link--primary:hover,
.menu-style-one .menu-items .nav-link.header-nav__link--primary:focus,
.header-one .menu-style-one .menu-items .nav-link.header-nav__link--primary:hover,
.header-one .menu-style-one .menu-items .nav-link.header-nav__link--primary:focus,
.menu-style-one .menu-items .nav-link.header-nav__link--primary.active { color: #fff; background: #0e213f; border-color: #0e213f; }
.menu-style-one .menu-items .nav-link.header-nav__link--secondary,
.header-one .menu-style-one .menu-items .nav-link.header-nav__link--secondary { color: #334155; background: #fff; border-color: #cbd5e1; }
.menu-style-one .menu-items .nav-link.header-nav__link--secondary:hover,
.menu-style-one .menu-items .nav-link.header-nav__link--secondary:focus { color: #0f1f3c; background: #f8fafc; border-color: #94a3b8; }
.menu-style-one .menu-items .nav-link.header-nav__link { color: #334155; }
.menu-style-one .menu-items .nav-link.header-nav__link:hover,
.menu-style-one .menu-items .nav-link.header-nav__link:focus { color: #0f1f3c; }

/* =============================================
   7. FAQ / ACCORDION
   ============================================= */
.frequent-ask-accrodian .card-header {
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
    background-color: var(--color-primary);
    border: none;
    overflow: hidden;
    border-radius: var(--radius-sm) !important;
}

.frequent-ask-accrodian .card-header::before {
    width: 8px;
    height: 8px;
    display: inline-block;
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.frequent-ask-accrodian .btn.btn-link {
    color: #fff;
    width: 100%;
    text-align: left;
    text-decoration: none;
    font-weight: 500;
}

.frequent-ask-accrodian .btn.btn-link::after {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    content: "";
    transition: transform 0.3s;
    margin-top: -1px;
}

.frequent-ask-accrodian .btn.btn-link.collapsed::after {
    transform: rotate(90deg);
}

.frequent-ask-accrodian .card-header:hover {
    background: var(--color-primary-hover);
    transition: var(--transition);
}

.frequent-ask-accrodian .card-body {
    padding: 1rem 1.5rem;
}

.frequent-ask-accrodian .card {
    border: none;
    background: transparent;
}

.frequent-ask-accrodian .card-body p {
    font-size: 0.9375rem;
}

/* =============================================
   8. WHAT WE DO / SECTION TITLES
   ============================================= */
.what-we-do-title h2 span {
    color: var(--color-accent);
}

.what-we-do-title > span {
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.what-we-do-title h2 {
    margin-top: 0;
    font-size: 1.75rem;
    line-height: 1.3;
}

.what-we-do-title {
    margin-bottom: 2.5rem;
}

.section-padding {
    padding: 4rem 0;
}

.section_bg {
    background: var(--color-bg-alt);
}

/* =============================================
   9. CONTACT SECTION
   ============================================= */
.contact-section {
    overflow: inherit;
    z-index: 1;
    position: relative;
    padding-top: 3rem;
}

.contact-info-bg {
    background: var(--color-primary);
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.single-contact-info {
    display: flex;
    align-items: center;
}

.contact-icon {
    margin-right: 1.5rem;
}

.contact-icon img {
    width: 36px;
    height: 36px;
    opacity: 0.9;
}

.contact-content h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin: 0;
}

.follow-icons a {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-block;
    text-align: center;
    line-height: 36px;
    margin-right: 6px;
    color: #fff;
    transition: var(--transition);
    font-size: 0.8125rem;
}

.follow-icons a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-primary);
}

/* =============================================
   10. FOOTER
   ============================================= */
footer {
    background: #0a1628;
}

footer p,
footer span,
footer a,
.single-footer-widget p {
    color: #9ca3af;
    font-size: 0.875rem;
}

footer a:hover {
    color: #fff;
}

.footer-section {
    position: relative;
}

.single-footer-widget h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-bootm {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bootm p {
    font-size: 0.8125rem;
    color: #6b7280;
}

.footer-menu li {
    display: inline-block;
}

.footer-menu li a {
    color: #6b7280;
    margin-left: 1.5rem;
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer-menu li a:hover {
    color: #fff;
}

/* =============================================
   12. PAGE BANNER
   ============================================= */
.page-banner-wrap {
    height: 320px;
    z-index: 1;
    position: relative;
}

.page-banner-wrap::before,
.page-banner-wrap::after {
    background: var(--color-bg-alt);
    width: 100%;
    height: 100%;
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    opacity: 0.7;
    z-index: -1;
}

.page-banner span {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.page-banner h2 {
    font-size: 2rem;
    line-height: 1.3;
    text-transform: capitalize;
    margin-bottom: 0;
}

.page-section-bg {
    background: var(--color-bg-alt);
}

/* =============================================
    13. LOADING OVERLAY — Global Preloader for Navigation & Button Actions
    ============================================= */
#loading-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999999999;
    opacity: 0;
    transition: opacity 0.18s ease;
}

#loading-overlay.is-visible {
    display: flex !important;
    opacity: 1;
}

/* Legacy support: inline onclick handlers use $('#loading-overlay').fadeIn() which sets display:block */
#loading-overlay[style*="display: block"] {
    display: flex !important;
    opacity: 1;
}

.loading-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 31, 60, 0.12), 0 2px 8px rgba(15, 31, 60, 0.06);
    min-width: 140px;
}

.loading-overlay__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.01em;
    line-height: 1;
}

.loading-spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 0.75s linear infinite;
}

.loading-spinner--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* Button busy state — prevents double submit & gives immediate feedback */
.btn.is-loading,
a.btn.is-loading,
button.is-loading {
    pointer-events: none;
    opacity: 0.82;
    position: relative;
}

.btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-outline-light.is-loading::after,
.btn-outline-secondary.is-loading::after,
.btn-light.is-loading::after,
a.btn.is-loading.btn-outline-dark::after {
    border-color: rgba(51, 65, 85, 0.2);
    border-top-color: #334155;
}

body.is-loading {
    cursor: wait;
}

body.is-loading a,
body.is-loading button {
    cursor: wait;
}

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

@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    .btn.is-loading::after {
        animation-duration: 1.2s;
    }
    #loading-overlay {
        transition: none;
    }
}

/* =============================================
   14. IMAGE UPLOADER — production, mobile-first
   ============================================= */
.custom-image-uploader {
    position: relative;
    width: 100%;
    min-height: 172px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 0.75rem;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.custom-image-uploader:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.custom-image-uploader:focus-within {
    border-color: #0f274e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 39, 78, 0.08);
    outline: none;
}

.custom-image-uploader.has-preview {
    border-style: solid;
    border-color: #e2e8f0;
    background: #fff;
    min-height: 0;
}

/* preview image */
.custom-image-uploader .upload-preview-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    background: #fff;
}

.custom-image-uploader:not(.has-preview) .upload-preview-img {
    display: none !important;
}

/* empty state — always visible on mobile, no hover dependency */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    text-align: center;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.custom-image-uploader.has-preview .upload-placeholder {
    display: none !important;
}

.upload-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.upload-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f1f3c;
    line-height: 1.3;
}

.upload-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* overlay for filled state */
.upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(to top, rgba(15, 31, 60, 0.62) 0%, rgba(15, 31, 60, 0.12) 52%, transparent 100%);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 2;
    pointer-events: none;
}

.custom-image-uploader.has-preview .upload-overlay {
    opacity: 1;
}

.upload-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.file-input:focus-visible {
    outline: none;
}

/* compact helper below uploader */
.upload-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.4;
}

/* broken / failed to load state — subtle, not AI slop */
.upload-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    text-align: center;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.upload-icon-wrap.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.upload-error .upload-title {
    color: #7f1d1d;
}

.upload-error .upload-hint {
    color: #94a3b8;
}

.custom-image-uploader.is-broken {
    border-style: dashed;
    border-color: #fca5a5;
    background: #fffafa;
    min-height: 172px;
}

.custom-image-uploader.is-broken .upload-preview-img {
    display: none !important;
}

.custom-image-uploader.is-broken .upload-placeholder,
.custom-image-uploader.is-broken .upload-overlay {
    display: none !important;
}

.custom-image-uploader.is-broken .upload-error {
    display: flex !important;
}

.custom-image-uploader.is-broken:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

@media (max-width: 575.98px) {
    .custom-image-uploader {
        min-height: 148px;
        border-radius: 10px;
    }

    .custom-image-uploader .upload-preview-img {
        max-height: 300px;
    }

    .upload-placeholder {
        padding: 18px 14px;
        gap: 7px;
    }

    .upload-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .upload-title {
        font-size: 0.8rem;
    }

    .upload-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15, 31, 60, 0.58) 0%, transparent 68%);
        padding: 10px;
    }

    .upload-text {
        font-size: 0.74rem;
        padding: 5px 10px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .custom-image-uploader.has-preview .upload-overlay {
        opacity: 0;
    }

    .custom-image-uploader.has-preview:hover .upload-overlay,
    .custom-image-uploader.has-preview:focus-within .upload-overlay {
        opacity: 1;
    }
}

/* =============================================
   15. ACCESSIBILITY & FOCUS STATES
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-check-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.form-control:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.15rem rgba(9, 49, 111, 0.15);
}

.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.15rem rgba(9, 49, 111, 0.25);
}

.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* =============================================
   16. BUTTON HIERARCHY
   ============================================= */
.btn {
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9375rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.3125rem 0.75rem;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-outline-secondary {
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn-outline-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: #adb5bd;
    color: var(--color-text);
}

.btn-outline-danger {
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-outline-danger:hover {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================
   17. PAGE LAYOUT
   ============================================= */
.page-content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.section-heading {
    margin-bottom: 1.25rem;
}

.section-heading h4 {
    margin-bottom: 0.25rem;
}

.section-heading + hr {
    margin-top: 0;
}

/* =============================================
   18. FORM IMPROVEMENTS
   ============================================= */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.form-group .form-text,
.form-group small {
    font-size: 0.8125rem;
}

.form-control {
    font-size: 0.9375rem;
    border-color: var(--color-border);
    transition: var(--transition);
}

.form-control-lg {
    font-size: 1rem;
}

/* Eye toggle styling */
.eye-toggle {
    cursor: pointer;
    background-color: #fff;
    border-color: var(--color-border);
    color: var(--color-text-muted);
    transition: var(--transition);
}

.eye-toggle:hover {
    color: var(--color-primary);
}

/* Password requirements */
.password-requirements span {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.75;
    transition: color 0.2s;
}

.password-requirements span.text-success {
    color: var(--color-success) !important;
}

/* =============================================
   19. TABLE IMPROVEMENTS
   ============================================= */
.table {
    font-size: 0.9375rem;
}

.table thead th {
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.75rem 0.5rem;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
    color: var(--color-text);
}

.table-hover tbody tr:hover {
    background-color: var(--color-primary-light);
}

/* Empty state */
.table-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-muted);
}

.table-empty-state i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--color-text-light);
}

.table-empty-state p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* =============================================
   20. CARD IMPROVEMENTS
   ============================================= */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.card.border {
    border: 1px solid var(--color-border);
}

.card.shadow {
    box-shadow: var(--shadow-sm) !important;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
}

/* =============================================
   21. ALERT IMPROVEMENTS
   ============================================= */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 3px solid var(--color-success);
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 3px solid var(--color-danger);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 3px solid var(--color-warning);
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 3px solid var(--color-info);
}

/* =============================================
   22. MODAL IMPROVEMENTS
   ============================================= */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
}

/* =============================================
   23. TOP HEADER MOBILE FIX
   ============================================= */
@media (max-width: 991px) {
    .top-header {
        padding: 6px 15px;
    }

    .top-header .col-lg-8,
    .top-header .col-lg-4 {
        text-align: center !important;
    }

    .top-header .d-flex {
        justify-content: center !important;
        flex-direction: row !important;
        margin-top: 4px;
    }

    .top-header-link {
        padding: 2px 6px;
    }

    .top-header-link i {
        margin-right: 0;
    }
}

/* =============================================
   25. PORTFOLIO TABLE ACTIONS
   ============================================= */
.portfolio-actions .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.portfolio-actions .btn:last-child {
    margin-right: 0;
}

/* =============================================
   26. UNSAVED CHANGES WARNING
   ============================================= */
.unsaved-changes-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
}

.unsaved-changes-bar.show {
    display: flex;
}

.unsaved-changes-bar .unsaved-actions {
    display: flex;
    gap: 8px;
}

.unsaved-changes-bar .btn {
    padding: 6px 16px;
    font-size: 0.8125rem;
}

/* =============================================
   27. SKELETON LOADING STATES
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f1f3f5 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    margin-bottom: 6px;
    width: 60%;
}

.skeleton-heading {
    height: 20px;
    width: 40%;
    margin-bottom: 12px;
}

.skeleton-btn {
    height: 36px;
    width: 100px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.skeleton-row .skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.skeleton-row .skeleton-content {
    flex: 1;
}

.table-skeleton thead {
    display: none;
}

.table-skeleton tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.table-skeleton tbody td {
    padding: 14px 8px;
}

/* =============================================
   28. PROFILE PROGRESS INDICATOR
   ============================================= */
.profile-progress {
    margin-bottom: 1.5rem;
}

.profile-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0;
}

.profile-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.profile-progress-bar .progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: var(--color-primary);
    z-index: 1;
    transition: width 0.4s ease;
}

.profile-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.profile-progress-step .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.3s;
    border: 2px solid var(--color-border);
}

.profile-progress-step.completed .step-circle {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.profile-progress-step.active .step-circle {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(9, 49, 111, 0.15);
}

.profile-progress-step .step-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 70px;
    line-height: 1.2;
}

.profile-progress-step.active .step-label,
.profile-progress-step.completed .step-label {
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 767px) {
    .profile-progress-step .step-label {
        display: none;
    }
    .profile-progress-bar::before {
        top: 15px;
    }
}

/* =============================================
   29. BREADCRUMBS
   ============================================= */
.breadcrumb-wrapper {
    padding: 0.625rem 0;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--color-text-light);
}

.breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item a {
    font-size: 0.8125rem;
}

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

/* =============================================
   30. PAGINATION
   ============================================= */
.pagination {
    margin-top: 1.5rem;
}

.pagination .page-link {
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-color: var(--color-border);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: var(--color-text-light);
    background-color: transparent;
    border-color: var(--color-border);
}

/* =============================================
   31. CAROUSEL (Homepage Banner)
   ============================================= */
.carousel-indicators {
    justify-content: flex-start;
    margin-left: 10px;
    margin-top: -10px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 18px;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50% 50%;
    filter: invert(1);
}

/* =============================================
    31B. PRODUCT DISCLAIMER — subtle, not yellow AI-box
    ============================================= */
.product-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 2px solid #94a3b8;
    padding: 10px 14px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* =============================================
   32. DATEPICKER FIX
   ============================================= */
.datepicker-dropdown {
    z-index: 1060 !important;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.datepicker-dropdown .datepicker {
    padding: 4px;
}

.datepicker > div {
    display: block;
}

.datepicker table {
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.datepicker table td,
.datepicker table th {
    padding: 0;
    border: none;
    background-color: transparent !important;
    background-image: none !important;
}

.datepicker table td.day {
    cursor: pointer;
    border-radius: 4px;
    padding: 5px 6px;
}

.datepicker table td.day:hover {
    background-color: #eee !important;
}

.datepicker table td.old,
.datepicker table td.new {
    color: #999 !important;
}

.datepicker table td.disabled,
.datepicker table td.disabled:hover {
    background: none !important;
    color: #999 !important;
    cursor: default;
}

.datepicker table td.active,
.datepicker table td.active:hover,
.datepicker table td span.active,
.datepicker table td span.active:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 4px;
}

.datepicker table td span {
    display: block;
    width: 54px;
    height: 54px;
    line-height: 54px;
    float: left;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
}

.datepicker table th {
    font-weight: 600;
    font-size: 12px;
    color: #999;
    padding: 6px 0;
}

.datepicker .datepicker-switch {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.datepicker .prev,
.datepicker .next {
    cursor: pointer;
    font-size: 14px;
    color: var(--color-primary);
    padding: 4px 8px;
}

.datepicker .prev:hover,
.datepicker .next:hover,
.datepicker .datepicker-switch:hover {
    background-color: #eee;
    border-radius: 4px;
}

.table .datepicker td,
.table .datepicker th {
    background-color: transparent !important;
    background-image: none !important;
}

/* =============================================
   33. CAPTCHA
   ============================================= */
.captcha-image {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* =============================================
   33. FORM-CHECK CUSTOM
   ============================================= */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--color-text);
}

/* =============================================
   34. RESPONSIVE (App-Specific)
   ============================================= */
@media (max-width: 991px) {
    .main-menu {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #sticky-nav {
        padding-bottom: 0;
    }

    .main-menu nav li a {
        padding-left: 0;
        font-size: 0.875rem;
    }

    .navbar-nav {
        margin-top: 12px;
        text-align: center;
    }

    /* mean-container removed — legacy MeanMenu replaced by mobile-drawer:2874 */
    .what-we-do-title {
        margin-bottom: 1.5rem;
    }

    .what-we-do-title h2 {
        font-size: 1.375rem;
    }

    .single-footer-widget {
        margin-top: 1.5rem;
    }

    .footer-bootm {
        text-align: center;
    }

    .footer-menu {
        margin-top: 0.75rem;
    }

    .contact-info-bg {
        padding: 1rem 15px 60px;
    }

    .single-contact-info {
        margin-top: 1rem;
    }

    .page-banner-wrap {
        height: auto;
        padding: 3rem 0;
    }

    .page-banner h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.375rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }

    p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .top-header,
    .slide-img,
    .top-bar-two {
        display: block !important;
    }

    .top-header .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .top-header .bd-highlight {
        font-size: 0.8125rem;
    }

    .contact-info-bg {
        padding: 2rem 15px 60px;
    }

    .single-contact-info {
        margin-top: 1.5rem;
        text-align: center;
        flex-direction: column;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .follow-icons {
        margin-top: 0.5rem;
    }

    .portfolio-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* =============================================
   35. PRINT STYLES
   ============================================= */
/* =============================================
    36. PRODUCT — Editorial, human-crafted (anti AI-slop)
    ============================================= */
/* List header: left-aligned, compact, with hairline accent */
.product-list-header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf1;
}
.product-list-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    color: #0f1f3c;
}
.product-list-header p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #5b667a;
    max-width: 52ch;
}
.product-count {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8599;
    white-space: nowrap;
}

/* Card: restrained border, no fluffy shadow, accent top rule per type */
.product-card {
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}
.product-card:hover {
    border-color: #c8d2e3;
    transform: translateY(-2px);
}
.product-card-accent {
    height: 3px;
    background: #09316f;
}
.product-card-accent--rds { background: #09316f; }
.product-card-accent--rdt { background: #0e4a7a; }
.product-card-accent--rpu { background: #1a6b4a; }

.product-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.risk-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1;
}
.risk-pill--low { color: #166534; background: #ecfdf5; border-color: #bbf7d0; }
.risk-pill--mid { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.risk-pill--high { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.risk-pill i { font-size: 0.5rem; }

.product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #4b5563;
}
.product-policy {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
    border-left: 2px solid #e2e8f0;
    padding-left: 0.75rem;
    margin-top: 0.5rem;
}

/* Stats: definition style, tabular numbers, dashed separators */
.product-stats {
    border-collapse: separate;
}
.product-stats td {
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px dashed #e6eaf0;
    vertical-align: baseline;
}
.product-stats tr:last-child td { border-bottom: none; }
.product-stats-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7a90;
}
.product-stats-value {
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #0f1f3c;
    letter-spacing: -0.01em;
}
.product-stats-value--nav {
    font-size: 0.9375rem;
}

.product-doc-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}
.product-doc-link:hover {
    color: #09316f;
    border-bottom-color: #cbd5e1;
}
.product-doc-link i { font-size: 0.7rem; opacity: 0.9; }

.product-card-link {
    color: inherit;
    transition: color 0.15s ease;
}
.product-card-link:hover { text-decoration: none; }
.product-card-link:hover .card-title { color: #09316f; }
.product-card-link .arrow {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.18s ease, color 0.18s ease;
}
.product-card-link:hover .arrow {
    transform: translateX(3px);
    color: #475569;
}
.product-card-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Detail page */
.product-detail-wrap {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.product-detail-head {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.product-detail-head h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #0f1f3c;
    margin: 0;
}
.product-detail-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #334155;
}
.product-detail-body h2 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f1f3c;
    margin: 1.5rem 0 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}
.product-detail-body h2:first-of-type {
    margin-top: 0.25rem;
    border-top: none;
    padding-top: 0;
}
.product-detail-body p { color: #475569; }

.product-summary {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    position: sticky;
    top: 84px;
}
.product-summary-head {
    padding: 0.9rem 1.15rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.product-summary-head h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    margin: 0;
}
.product-summary-body { padding: 1rem 1.15rem; }
.product-nav-big {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #0f1f3c;
}
.product-nav-label {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
}
.product-cta-primary {
    background: #0f274e;
    border-color: #0f274e;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.product-cta-primary:hover { background: #0a1d3a; border-color: #0a1d3a; }

/* =============================================
    37. LEGAL PAGES — Terms & Privacy (editorial, anti AI-slop)
    ============================================= */
.legal-head { display:flex; gap:24px; align-items:flex-start; padding:18px 0 20px; border-bottom:1px solid #e8ecf1; margin-bottom:22px; flex-wrap:wrap; }
.legal-head-main { flex:1; min-width:280px; max-width:68ch; }
.legal-head-side { width:320px; flex-shrink:0; }
@media (max-width: 991px){ .legal-head-side{width:100%} }
.legal-kicker { font-size:0.72rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:#94a3b8; display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.legal-kicker .mono{ font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:0.68rem; letter-spacing:0.07em; color:#64748b; }
.legal-kicker .dot{ width:3px; height:3px; border-radius:50%; background:#cbd5e1; display:inline-block; }
.legal-head h1{ font-size:1.65rem; font-weight:750; letter-spacing:-0.03em; line-height:1.15; color:#0f1f3c; margin:0 0 10px; }
.legal-head p{ font-size:0.875rem; line-height:1.7; color:#475569; margin:0; }
.legal-meta{ display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:12px; font-size:0.72rem; color:#64748b; }
.legal-meta span{ display:inline-flex; gap:6px; align-items:center; background:#f8fafc; border:1px solid #eef2f7; border-radius:999px; padding:4px 8px; }
.legal-meta i{ font-size:0.68rem; color:#94a3b8; }
.legal-side-card{ background:#fff; border:1px solid #e3e8f0; border-radius:12px; padding:14px 15px; }
.legal-side-card .eyebrow{ font-size:0.68rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:#94a3b8; margin-bottom:8px; }
.legal-side-card ul{ margin:0; padding-left:16px; list-style:disc; }
.legal-side-card li{ font-size:0.78rem; line-height:1.6; color:#475569; margin-bottom:6px; }
.legal-side-link{ display:inline-flex; gap:6px; align-items:center; font-size:0.78rem; font-weight:600; color:#0f274e; margin-top:10px; text-decoration:underline; text-underline-offset:3px; }
.legal-summary-grid{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.pill{ display:inline-flex; font-size:0.66rem; letter-spacing:0.04em; padding:3px 7px; border-radius:999px; border:1px solid #e2e8f0; background:#f8fafc; color:#475569; }

.legal-layout{ display:flex; gap:28px; align-items:flex-start; }
.legal-toc{ width:220px; flex-shrink:0; position:sticky; top:84px; }
.legal-toc-inner{ border:1px solid #eef2f7; border-radius:10px; background:#fbfdff; padding:12px; }
.legal-toc .eyebrow{ font-size:0.68rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:#94a3b8; margin-bottom:8px; }
.legal-toc nav{ display:flex; flex-direction:column; }
.legal-toc nav a{ display:flex; gap:8px; align-items:center; font-size:0.78rem; font-weight:500; color:#334155; padding:6px 6px; border-radius:6px; text-decoration:none; }
.legal-toc nav a:hover{ background:#fff; color:#0f1f3c; }
.legal-toc nav a span{ font-family:ui-monospace, monospace; font-size:0.66rem; color:#94a3b8; min-width:18px; }
.legal-toc-foot{ margin-top:10px; padding-top:10px; border-top:1px solid #eef2f7; font-size:0.78rem; color:#64748b; }
.legal-toc-foot a{ font-weight:600; color:#0f274e; text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 991px){ .legal-layout{ flex-direction:column; } .legal-toc{ position:static; width:100%; } .legal-toc nav{ flex-direction:row; flex-wrap:wrap; gap:4px; } .legal-toc nav a{ border:1px solid #e2e8f0; background:#fff; } }

.legal-article{ flex:1; min-width:0; max-width:72ch; }
.legal-notice{ display:flex; gap:10px; align-items:flex-start; background:#f8fafc; border:1px solid #e2e8f0; border-left:2px solid #94a3b8; border-radius:8px; padding:11px 13px; font-size:0.78rem; line-height:1.6; color:#334155; margin-bottom:20px; }
.legal-notice i{ color:#64748b; margin-top:2px; flex-shrink:0; }
.legal-article section{ padding:18px 0; border-bottom:1px solid #f1f5f9; }
.legal-article section:last-of-type{ border-bottom:none; }
.legal-num{ font-family:ui-monospace, monospace; font-size:0.68rem; font-weight:700; letter-spacing:0.08em; color:#94a3b8; margin-bottom:6px; }
.legal-article h2{ font-size:1.02rem; font-weight:700; letter-spacing:-0.02em; color:#0f1f3c; margin:0 0 8px; line-height:1.3; }
.legal-article h3{ font-size:0.82rem; font-weight:700; letter-spacing:0.02em; color:#1e293b; margin:14px 0 6px; }
.legal-article p{ font-size:0.84rem; line-height:1.75; color:#475569; margin-bottom:8px; }
.legal-list{ margin:6px 0 10px 18px; list-style:disc; }
.legal-list li{ font-size:0.84rem; line-height:1.7; color:#475569; margin-bottom:4px; }
.legal-ol{ margin:6px 0 10px 18px; list-style:decimal; }
.legal-ol li{ font-size:0.84rem; line-height:1.7; color:#475569; margin-bottom:4px; }
.legal-def{ display:grid; grid-template-columns:140px 1fr; gap:8px 14px; margin:8px 0; }
.legal-def dt{ font-size:0.78rem; font-weight:700; color:#0f1f3c; }
.legal-def dd{ font-size:0.82rem; line-height:1.6; color:#475569; margin:0 0 6px; }
@media (max-width: 640px){ .legal-def{ grid-template-columns:1fr; gap:2px; } }
.legal-inset{ background:#fff; border:1px solid #e3e8f0; border-radius:10px; padding:12px 14px; margin:10px 0; }
.legal-inset.muted{ background:#f8fafc; }
.legal-inset .cols{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.legal-inset .cols.two{ grid-template-columns:1fr 1fr; }
@media (max-width: 700px){ .legal-inset .cols, .legal-inset .cols.two{ grid-template-columns:1fr; } }
.legal-inset .k{ font-size:0.68rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:#64748b; margin-bottom:4px; }
.legal-inset .v{ font-size:0.88rem; font-weight:700; letter-spacing:-0.01em; color:#0f1f3c; }
.legal-inset .d{ font-size:0.76rem; line-height:1.6; color:#64748b; margin-top:4px; }
.legal-table-wrap{ overflow-x:auto; margin:10px 0; border:1px solid #e3e8f0; border-radius:8px; }
.legal-table{ width:100%; border-collapse:collapse; font-size:0.78rem; min-width:520px; }
.legal-table th{ text-align:left; font-size:0.68rem; letter-spacing:0.06em; text-transform:uppercase; color:#64748b; background:#f8fafc; padding:8px 10px; border-bottom:1px solid #e2e8f0; font-weight:700; }
.legal-table td{ padding:9px 10px; border-bottom:1px solid #f1f5f9; color:#334155; line-height:1.5; vertical-align:top; }
.legal-contact{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; background:#fbfdff; border:1px solid #eef2f7; border-radius:10px; padding:12px 14px; margin:10px 0; }
@media (max-width: 700px){ .legal-contact{ grid-template-columns:1fr; } }
.legal-contact .label{ font-size:0.68rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:#94a3b8; margin-bottom:4px; }
.legal-contact div{ font-size:0.82rem; line-height:1.6; color:#475569; }
.legal-foot{ font-size:0.74rem; color:#94a3b8; font-style:italic; }
.legal-cta{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; padding-top:18px; border-top:1px solid #eef2f7; }

/* =============================================
     38. AUTH PAGES — Editorial, restrained (anti AI-slop)
     - Centered card, hairline border, muted palette
     - No gradients/blob, no glassmorphism, no oversized hero
    ============================================= */
.auth-page {
    padding: 28px 0 40px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}
.auth-card {
    max-width: 440px;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 31, 60, 0.04);
}
.auth-card--pin { max-width: 420px; }
.auth-head {
    padding: 22px 22px 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f7;
}
.auth-head--center { text-align: center; }
.auth-eyebrow {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
}
.auth-head--center .auth-eyebrow { justify-content: center; }
.auth-eyebrow .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}
.auth-title {
    font-size: 1.28rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f1f3c;
    margin: 0 0 6px;
}
.auth-sub {
    font-size: 0.84rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    max-width: 44ch;
}
.auth-head--center .auth-sub { margin-left: auto; margin-right: auto; }
.auth-body { padding: 18px 22px 20px; }
.auth-body .form-group { margin-bottom: 14px; }
.auth-body .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: #334155;
    margin-bottom: 4px;
}
.auth-body .form-control {
    height: 42px;
    font-size: 0.9rem;
    border-radius: 8px;
    border-color: #dbe2ef;
    background: #fff;
    color: #0f1f3c;
}
.auth-body .form-control::placeholder { color: #94a3b8; }
.auth-body .form-control:focus {
    border-color: #0f274e;
    box-shadow: 0 0 0 3px rgba(15, 39, 78, 0.08);
}
.auth-body .form-control.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.auth-body .invalid-feedback { font-size: 0.78rem; }
.auth-body .input-group .form-control { border-right: 0; }
.auth-body .input-group .input-group-text {
    border-color: #dbe2ef;
    border-left: 0;
    background: #fff;
    border-radius: 0 8px 8px 0;
}
.auth-body .eye-toggle {
    cursor: pointer;
    color: #94a3b8;
    padding: 0 12px;
    user-select: none;
}
.auth-body .eye-toggle:hover { color: #0f274e; }
.btn-auth-primary {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    background: #0f274e;
    border: 1px solid #0f274e;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}
.btn-auth-primary:hover { background: #0a1d3a; border-color: #0a1d3a; color: #fff; }
.btn-auth-primary:active { transform: translateY(1px); }
.btn-auth-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-row img {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}
.captcha-row .form-control { flex: 1; min-width: 0; }
.auth-foot {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
}
.auth-foot a {
    font-weight: 600;
    color: #0f274e;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-foot a:hover { color: #0a1d3a; }
.auth-foot-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef2f7;
}
.auth-note {
    text-align: center;
    font-size: 0.71rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 14px auto 0;
    max-width: 440px;
}
.auth-note a { color: #64748b; text-decoration: underline; text-underline-offset: 2px; }
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.auth-meta span { display: inline-flex; gap: 6px; align-items: center; }
.auth-meta i { font-size: 0.68rem; color: #94a3b8; }
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
}
.pwd-req {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
    transition: color 0.15s ease;
}
.pwd-req .fa {
    font-size: 0.55rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
}
.pwd-req.text-success { color: #166534; }
.pwd-req.text-success .fa {
    background: #166534;
    border-color: #166534;
    color: #fff;
    font-size: 0.5rem;
}
.pwd-req.text-muted { color: #64748b; }

/* PIN specifics */
.pin-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.pin-icon-wrap i { color: #0f274e; font-size: 0.95rem; }
.pin-icon-wrap--muted { background: #f8fafc; border-color: #eef2f7; }
.pin-icon-wrap--muted i { color: #64748b; }
.pin-help {
    font-size: 0.74rem;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
    margin-top: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: flex-start;
}
.pin-help i { color: #94a3b8; margin-top: 2px; flex-shrink: 0; }
.pin-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.pin-step-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.pin-step-indicator span {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #e2e8f0;
}
.pin-step-indicator span.active { background: #0f274e; }
.pin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}
.pin-status--confirm { color: #0f274e; border-color: #dbe2ef; background: #eff6ff; }
.pin-status--error { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
@media (max-width: 480px) {
    .auth-page { padding: 18px 0 28px; }
    .auth-card { border-radius: 10px; }
    .auth-head { padding: 18px 16px 14px; }
    .auth-body { padding: 16px 16px 18px; }
    .auth-foot { padding: 12px 16px; }
    .password-requirements { grid-template-columns: 1fr; gap: 5px; }
}

/* =============================================
   39. MOBILE HEADER + NAVIGATION DRAWER
   Desktop: .header-one visible, .mobile-topbar hidden
   Mobile (<992px): .header-one hidden, drawer system active
   ============================================= */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.mobile-topbar__brand img {
    max-height: 30px;
    width: auto;
    flex-shrink: 0;
}

.mobile-topbar__brand-text {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.15;
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
}

.mobile-topbar__brand-text span {
    display: block;
    color: #64748b;
    font-weight: 600;
}

.mobile-topbar__toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-topbar__toggle:hover { background: #f8fafc; border-color: #cbd5e1; }
.mobile-topbar__toggle:focus-visible { outline: 2px solid #0f274e; outline-offset: 2px; }

.mobile-topbar__burger { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.mobile-topbar__burger span { display: block; height: 2px; border-radius: 999px; background: #0f274e; width: 100%; }

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 60, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    height: 100vh;
    background: #fff;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eef2f7;
    box-shadow: -12px 0 40px rgba(15, 31, 60, 0.12);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
    overflow: hidden;
}

.mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
    flex-shrink: 0;
}

.mobile-drawer__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f1f3c;
    font-size: 0.92rem;
}

.mobile-drawer__brand img { height: 24px; width: auto; }

.mobile-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-drawer__close:hover { background: #f8fafc; color: #0f1f3c; }
.mobile-drawer__close:focus-visible { outline: 2px solid #0f274e; outline-offset: 2px; }

.mobile-drawer__user {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
    flex-shrink: 0;
}

.mobile-drawer__user-main { display: flex; align-items: center; gap: 12px; }
.mobile-drawer__avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: #0f274e; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
    text-transform: uppercase;
}

.mobile-drawer__user-meta { min-width: 0; }
.mobile-drawer__user-name { font-size: 0.875rem; font-weight: 700; color: #0f1f3c; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-drawer__user-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 0.72rem; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 8px; }
.mobile-drawer__dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.mobile-drawer__alert { margin-top: 10px; font-size: 0.74rem; line-height: 1.5; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.mobile-drawer__alert a { color: #0f274e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.mobile-drawer__nav { flex: 1; overflow-y: auto; padding: 10px 10px 8px; -webkit-overflow-scrolling: touch; }
.mobile-drawer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__divider { height: 1px; background: #eef2f7; margin: 8px 6px; }
.mobile-drawer__link {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left;
    padding: 11px 12px; border-radius: 10px;
    font-size: 0.875rem; font-weight: 500; color: #334155;
    text-decoration: none; background: transparent; border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer; font-family: inherit;
}
.mobile-drawer__link i { width: 18px; text-align: center; color: #64748b; font-size: 0.82rem; flex-shrink: 0; }
.mobile-drawer__link:hover { background: #f8fafc; color: #0f1f3c; border-color: #eef2f7; }
.mobile-drawer__link.is-active { background: #eff6ff; border-color: #dbe2ef; color: #0f274e; font-weight: 600; }
.mobile-drawer__link.is-active i { color: #0f274e; }
.mobile-drawer__link--primary { background: #0f274e; border-color: #0f274e; color: #fff; font-weight: 600; }
.mobile-drawer__link--primary i { color: #fff; }
.mobile-drawer__link--primary:hover { background: #0e213f; border-color: #0e213f; color: #fff; }
.mobile-drawer__link--primary.is-active { background: #0f274e; border-color: #0f274e; color: #fff; }
.mobile-drawer__link--muted { background: #fff; border-color: #e2e8f0; }
.mobile-drawer__accordion { justify-content: flex-start; }
.mobile-drawer__chev { margin-left: auto; font-size: 0.66rem; color: #94a3b8; transition: transform 0.2s ease; }
.mobile-drawer__accordion[aria-expanded="true"] .mobile-drawer__chev { transform: rotate(180deg); }
.mobile-drawer__sub { margin: 4px 0 2px 0; padding: 6px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__sub[hidden] { display: none !important; }
.mobile-drawer__sub-link {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 8px;
    font-size: 0.8125rem; font-weight: 500; color: #475569;
    text-decoration: none;
}
.mobile-drawer__sub-link i { width: 16px; text-align: center; color: #94a3b8; font-size: 0.74rem; }
.mobile-drawer__sub-link:hover { background: #fff; color: #0f1f3c; }
.mobile-drawer__sub-link.is-active { background: #fff; color: #0f274e; font-weight: 600; border: 1px solid #e2e8f0; }

.mobile-drawer__footer { padding: 12px 16px 16px; border-top: 1px solid #eef2f7; background: #fff; flex-shrink: 0; }
.mobile-drawer__logout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1px solid #e2e8f0; background: #fff; color: #475569;
    font-size: 0.8125rem; font-weight: 600; text-decoration: none;
}
.mobile-drawer__logout:hover { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.mobile-drawer__hint { margin: 10px 0 0; font-size: 0.68rem; line-height: 1.5; color: #94a3b8; text-align: center; }

/* Desktop hides mobile system, mobile hides desktop header */
@media (min-width: 992px) {
    .mobile-topbar, .mobile-drawer, .mobile-drawer-overlay { display: none !important; }
}

@media (max-width: 991.98px) {
    .header-one { display: none !important; }
    .mobile-topbar { display: flex; }
    body.mobile-drawer-open { overflow: hidden; }
    /* Footer tetap tampil di mobile — editorial condensed */
    .contact-section { padding-top: 16px; }
    .contact-section .row > [class*="col-"] { margin-bottom: 10px; }
    .contact-section .container { padding-left: 12px; padding-right: 12px; }
    .footer-section { padding-top: 12px; }
    .footer-section .container { padding: 16px 12px; }
}

/* =============================================
   40. PROFILE STEPPER — accessible, no opacity hack
   ============================================= */
.profile-stepper-wrap { padding: 12px 16px; }
.profile-stepper { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; list-style: none; margin: 0; }
.profile-stepper__item { flex: 0 0 auto; }
.profile-stepper__link { text-decoration: none; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; border-radius: 8px; padding: 4px; transition: background 0.15s; }
.profile-stepper__link:hover { background: #f8fafc; text-decoration: none; }
.profile-stepper__link--locked { opacity: 1; cursor: not-allowed; background: #f8fafc; border: 1px dashed #e2e8f0; }
.profile-stepper__circle { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 600; border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.profile-stepper__circle--done { border-color: #bbf7d0; background: #ecfdf5; color: #166534; }
.profile-stepper__circle--active { border-color: #0f274e; background: #0f274e; color: #fff; }
.profile-stepper__circle--locked { border-color: #e2e8f0; background: #f8fafc; color: #64748b; font-size: 0.62rem; }
.profile-stepper__circle .fa { font-size: 0.6rem; }
.profile-stepper__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #0f1f3c; text-align: center; line-height: 1.2; }
.profile-stepper__label--locked { color: #64748b; }
.profile-stepper__label--active { color: #0f1f3c; font-weight: 700; }
.profile-stepper__hint { display: none; font-size: 0.68rem; color: #94a3b8; margin-top: 6px; gap: 4px; align-items: center; }
@media (max-width: 640px) { .profile-stepper__hint { display: flex; } }

/* Range slider fallback for accent-color */
.redemption-range { accent-color: #0f274e; height: 6px; }
.redemption-range::-webkit-slider-runnable-track { height: 6px; background: #e2e8f0; border-radius: 999px; }
.redemption-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #0f274e; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(15,31,60,0.2); margin-top: -6px; cursor: pointer; }
.redemption-range::-moz-range-track { height: 6px; background: #e2e8f0; border-radius: 999px; }
.redemption-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #0f274e; border: 2px solid #fff; cursor: pointer; }

/* =============================================
   41. HERO EDITORIAL + BANNER FRAME (layout slop fix)
   ============================================= */
.hero-editorial { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; }
.hero-editorial__copy { max-width: 56ch; }
.hero-editorial__title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; color: #0f1f3c; margin: 0 0 8px; }
.hero-editorial__desc { font-size: 0.875rem; line-height: 1.6; color: #5b667a; margin: 0; }
.hero-editorial__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-editorial__cta { font-size: 0.8125rem; font-weight: 600; color: #fff; background: #0f274e; border: 1px solid #0f274e; border-radius: 8px; padding: 8px 14px; text-decoration: none; }
.hero-editorial__cta:hover { background: #0e213f; color: #fff; text-decoration: none; }
.banner-frame { border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; background: #f8fafc; }
.banner-frame__indicators { bottom: 8px; }
.banner-frame__indicators li { width: 18px; height: 3px; border-radius: 999px; background: rgba(15,39,78,0.25); border: none; }
.banner-frame__indicators li.active { background: #0f274e; }
.banner-frame__img { object-fit: cover; aspect-ratio: 16/6; max-height: 380px; width: 100%; }
@media (max-width: 767px) { .banner-frame__img { aspect-ratio: 16/9; max-height: 260px; } }

/* KPI + Table editorial */
.kpi-card { flex: 1 1 260px; background: #f8fafc; border: 1px solid #e3e8f0; border-radius: 10px; padding: 14px 16px; }
.table--editorial thead th { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; font-weight: 600; padding: 12px; border: none; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.panel-editorial { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }

/* =============================================
   42. PORTFOLIO EDITORIAL — extracted from inline slop
   Replaces 18 inline style="" in portfolio/index.php
   ============================================= */
.portfolio-header { margin-bottom: 1.25rem; }
.portfolio-header__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin-bottom: 0.3rem; }
.portfolio-header__desc { font-size: 0.875rem; color: #5b667a; margin: 0; }
.portfolio-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1rem; }
.portfolio-kpi { flex: 1 1 260px; background: #f8fafc; border: 1px solid #e3e8f0; border-radius: 10px; padding: 14px 16px; }
.portfolio-kpi--cta { flex: 0 1 220px; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.portfolio-kpi__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; margin-bottom: 6px; }
.portfolio-kpi__value { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.portfolio-kpi__hint { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; }
.portfolio-kpi__text { font-size: 0.72rem; color: #64748b; line-height: 1.5; }
.portfolio-kpi__link { font-weight: 600; color: #0f274e; text-decoration: underline; text-underline-offset: 3px; }
.portfolio-kpi__link:hover { color: #0a1d3a; }
.portfolio-panel { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.portfolio-table { font-size: 0.875rem; margin-bottom: 0; }
.portfolio-table thead tr { background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.portfolio-table th { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; font-weight: 600; padding: 12px 16px; border: none; }
.portfolio-table th.is-right { padding: 12px 12px; text-align: right; }
.portfolio-table td { vertical-align: middle; border: none; }
.portfolio-row { border-bottom: 1px solid #f1f5f9; }
.portfolio-cell { padding: 14px 16px; vertical-align: middle; border: none; }
.portfolio-cell--tight { padding: 14px 12px; }
.portfolio-cell--right { text-align: right; font-variant-numeric: tabular-nums; }
.portfolio-product-name { font-weight: 600; color: #0f1f3c; letter-spacing: -0.01em; line-height: 1.3; }
.portfolio-product-meta { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.portfolio-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.portfolio-unit { text-align: right; font-variant-numeric: tabular-nums; color: #334155; }
.portfolio-unit__label { font-size: 0.7rem; color: #94a3b8; }
.portfolio-amount { text-align: right; font-weight: 650; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.portfolio-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.portfolio-btn { font-size: 0.75rem; font-weight: 600; border-radius: 8px; padding: 5px 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; line-height: 1; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.portfolio-btn--primary { color: #fff; background: #0f274e; border: 1px solid #0f274e; }
.portfolio-btn--primary:hover { background: #0e213f; border-color: #0e213f; color: #fff; text-decoration: none; }
.portfolio-btn--secondary { color: #475569; background: #fff; border: 1px solid #cbd5e1; }
.portfolio-btn--secondary:hover { background: #f8fafc; border-color: #94a3b8; color: #0f1f3c; text-decoration: none; }
.portfolio-btn--ghost { font-weight: 500; color: #64748b; text-decoration: underline; text-underline-offset: 3px; padding: 5px 4px; background: transparent; border: 1px solid transparent; }
.portfolio-btn--ghost:hover { color: #0f1f3c; }
.portfolio-empty { padding: 28px 16px; }
.portfolio-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.portfolio-foot__meta { font-size: 0.75rem; color: #94a3b8; }
@media (max-width: 575.98px) {
    .portfolio-kpi, .portfolio-kpi--cta { flex: 1 1 100%; }
    .portfolio-actions { width: 100%; justify-content: flex-start; }
    .portfolio-btn { flex: 1 1 auto; min-height: 36px; }
    .portfolio-table { font-size: 0.8125rem; }
    .portfolio-cell, .portfolio-cell--tight { padding: 12px 10px; }
}

/* =============================================
   43. FAQ EDITORIAL — extracted from site/index.php inline
   ============================================= */
.faq-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #eef2f7; margin-bottom: 18px; }
.faq-head__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 0 0 6px; }
.faq-head__desc { font-size: 0.8125rem; color: #64748b; margin: 0; max-width: 52ch; }
.faq-head__link { font-size: 0.78rem; font-weight: 600; color: #0f274e; text-decoration: underline; text-underline-offset: 3px; }
.faq-head__link:hover { color: #0a1d3a; }
.faq-accordion { border-top: 1px solid #e3e8f0; }
.faq-item { border-bottom: 1px solid #eef2f7; }
.faq-question { width: 100%; text-align: left; text-decoration: none; display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; color: #0f1f3c; background: none; border: none; font-family: inherit; cursor: pointer; }
.faq-question:hover { color: #0f1f3c; text-decoration: none; }
.faq-question:focus-visible { outline: 2px solid #0f274e; outline-offset: 2px; border-radius: 4px; }
.faq-num { font-family: ui-monospace, monospace; font-size: 0.7rem; color: #94a3b8; font-weight: 600; margin-top: 3px; min-width: 22px; }
.faq-qtext { flex: 1; font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em; line-height: 1.4; }
.faq-icon { font-size: 0.65rem; color: #94a3b8; margin-top: 5px; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 16px 36px; font-size: 0.8125rem; line-height: 1.75; color: #475569; max-width: 62ch; }
.faq-help { border-left: 2px solid #e2e8f0; padding-left: 16px; margin-left: 4px; }
.faq-help__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.faq-help__title { font-size: 0.875rem; font-weight: 600; color: #0f1f3c; letter-spacing: -0.01em; margin-bottom: 6px; }
.faq-help__desc { font-size: 0.8125rem; line-height: 1.6; color: #64748b; }
.faq-help__contact { font-size: 0.8125rem; margin-top: 12px; line-height: 1.5; }
.faq-help__email { font-weight: 600; color: #0f274e; text-decoration: underline; text-underline-offset: 3px; }
.faq-help__phone { color: #94a3b8; font-size: 0.78rem; }
.portfolio-pager-link { border-radius: 8px; }

/* =============================================
   44. FOOTER EDITORIAL — extracted from _footer.php inline (37 styles)
   ============================================= */
.footer-contact { padding-top: 24px; background: #f8fafc; border-top: 1px solid #eef2f7; }
.footer-contact__container { max-width: 1280px; }
.footer-contact__row { gap: 0; }
.footer-contact__card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; height: 100%; }
.footer-contact__icon { width: 38px; height: 38px; border-radius: 9px; background: #f1f5f9; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #475569; font-size: 0.85rem; }
.footer-contact__body { min-width: 0; }
.footer-contact__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.footer-contact__value { font-size: 0.8125rem; font-weight: 600; color: #0f1f3c; margin-top: 2px; }
.footer-contact__value--muted { font-weight: 400; color: #334155; line-height: 1.5; margin-top: 2px; }
.footer-contact__sub { font-size: 0.78rem; color: #64748b; }
.footer-contact__sub--small { font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.footer-contact__social { display: flex; gap: 8px; margin-top: 8px; }
.footer-contact__social-link { width: 28px; height: 28px; border-radius: 999px; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; color: #64748b; background: #fff; text-decoration: none; }
.footer-contact__social-link i { font-size: 0.75rem; }
.footer-contact__social-link:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f1f3c; }
.site-footer { background: #0b1b36; border-top: 1px solid #132a52; }
.site-footer__container { max-width: 1280px; padding: 22px 15px 18px; }
.site-footer__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.site-footer__logo { height: 22px; filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer__company { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8a9bb5; font-weight: 600; }
.site-footer__desc { font-size: 0.78rem; line-height: 1.6; color: #8a9bb5; margin: 0; max-width: 72ch; }
.site-footer__links { display: flex; gap: 16px; font-size: 0.78rem; }
.site-footer__link { color: #cbd5e1; text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer__link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }
.site-footer__meta { font-size: 0.72rem; color: #6b7a99; margin-top: 8px; }
.site-footer__bottom { margin-top: 16px; padding-top: 12px; border-top: 1px solid #132a52; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.site-footer__copy { font-size: 0.72rem; color: #6b7a99; }
.site-footer__disclaimer { font-size: 0.7rem; color: #5b6b8a; }

/* =============================================
   45. PRODUCT CARD EXTRACTED — remaining 10 inline
   ============================================= */
.product-card__title { font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.product-card__docs { display: flex; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.product-card__sep { color: #e2e8f0; }
.product-card__cta { display: flex; gap: 0.5rem; }
.product-card__btn--ghost { border: 1px solid #cbd5e1; background: #fff; color: #1e293b; font-weight: 600; border-radius: 8px; flex: 1 1 0; }
.product-card__btn--ghost:hover { background: #f8fafc; border-color: #94a3b8; color: #0f1f3c; }
.product-card__btn--primary { border-radius: 8px; flex: 1 1 0; }
.product-card__btn--primary i { font-size: 0.65rem; }
.product-card__detail-link--muted { font-weight: 600; margin-left: auto; }
.product-card__detail-link--muted i { font-size: 0.6rem; }
.product-disclaimer__icon { color: #94a3b8; }

/* =============================================
   46. PRODUCT DETAIL EXTRACTED — 23 inline
   ============================================= */
.product-detail__icon { width: 52px; height: 52px; border-radius: 10px; }
.product-detail__icon img { width: 30px; height: 30px; }
.product-detail__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.35rem; }
.product-detail__type { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.product-detail__dot { color: #e2e8f0; }
.product-detail__code { font-size: 0.75rem; color: #94a3b8; margin-top: 0.25rem; }
.product-detail__code-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #64748b; }
.product-detail__desc { color: #334155; }
.product-detail__doc { font-size: 0.8125rem; }
.product-detail__doc i:first-child { width: 14px; }
.product-detail__doc-ext { font-size: 0.6rem; color: #94a3b8; }
.product-summary__nav-date { font-size: 0.7rem; color: #94a3b8; }
.product-summary__cta { border-radius: 8px; font-weight: 650; }
.product-summary__cta i { font-size: 0.7rem; }
.product-summary__hint { font-size: 0.7rem; color: #94a3b8; text-align: center; margin-top: 0.5rem; }
.product-detail__help { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.product-detail__help-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; margin-bottom: 0.5rem; }
.product-detail__help-text { font-size: 0.8125rem; color: #475569; line-height: 1.5; }
.product-detail__help-text a { font-weight: 600; color: #0f274e; text-decoration: underline; text-underline-offset: 3px; }
.product-detail__back { font-size: 0.8125rem; font-weight: 500; color: #64748b; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.product-detail__back i { font-size: 0.7rem; }

/* =============================================
   47. TRANSACTION HISTORY — extracted 56 inline
   ============================================= */
.tx-header { margin-bottom: 1rem; }
.tx-header__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin-bottom: 0.3rem; }
.tx-header__desc { font-size: 0.875rem; color: #5b667a; margin: 0; }
.tx-filter { display: inline-flex; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.tx-filter__btn { border: none; border-radius: 999px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; }
.tx-filter__btn--active { background: #0f274e; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.tx-filter__btn--idle { background: transparent; color: #64748b; }
.tx-filter__btn--idle:hover { background: #fff; color: #334155; }
.tx-filter__reset { align-self: center; font-size: 0.75rem; color: #64748b; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; padding-right: 6px; }
.tx-panel { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.tx-table { font-size: 0.875rem; margin-bottom: 0; }
.tx-table thead tr { background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.tx-table th { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; font-weight: 600; padding: 12px 16px; border: none; }
.tx-table th.is-tight { padding: 12px 12px; }
.tx-table th.is-right { text-align: right; padding: 12px 16px; }
.tx-cell { vertical-align: middle; border: none; }
.tx-cell--id { padding: 12px 16px; max-width: 220px; }
.tx-link { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.8125rem; font-weight: 600; color: #0f274e; text-decoration: none; letter-spacing: -0.01em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-link:hover { color: #0a1d3a; text-decoration: underline; }
.tx-hash { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; font-family: ui-monospace, monospace; }
.tx-date { padding: 12px 12px; color: #334155; font-variant-numeric: tabular-nums; }
.tx-date__time { font-size: 0.7rem; color: #94a3b8; }
.tx-type { padding: 12px 12px; }
.tx-type__pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #334155; }
.tx-type__dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tx-status { padding: 12px 16px; text-align: right; }
.tx-status .risk-pill { font-size: 0.7rem; }
.tx-status__dot { font-size: 0.45rem; }
.tx-status__pill { color: #334155; }
.tx-status__pill--pending { background: #fffbeb; border-color: #fde68a; }
.tx-status__pill--pending .tx-status__dot { color: #d97706; }
.tx-status__pill--approved { background: #ecfdf5; border-color: #bbf7d0; }
.tx-status__pill--approved .tx-status__dot { color: #16a34a; }
.tx-status__pill--rejected { background: #fef2f2; border-color: #fecaca; }
.tx-status__pill--rejected .tx-status__dot { color: #dc2626; }
.tx-status__pill--default { background: #f1f5f9; border-color: #e2e8f0; }
.tx-status__pill--default .tx-status__dot { color: #94a3b8; }
.tx-type__dot--switching { background: #0ea5e9; }
.tx-type__dot--redemption { background: #dc2626; }
.tx-type__dot--subscription { background: #16a34a; }
.tx-row { border-bottom: 1px solid #f1f5f9; }
.tx-empty { padding: 28px 16px; }
.tx-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.tx-foot__meta { font-size: 0.75rem; color: #94a3b8; }
.tx-detail-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 1rem; }
.tx-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tx-detail-title h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 0; }
.tx-detail-code { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.78rem; color: #64748b; margin-top: 6px; word-break: break-all; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tx-detail-code__sep { color: #94a3b8; }
.tx-copy-btn { font-size: 0.7rem; padding: 2px 8px; border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; color: #475569; }
.tx-back { font-size: 0.8125rem; font-weight: 500; color: #64748b; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 7px 12px; text-decoration: none; }
.tx-back i { font-size: 0.7rem; }
.tx-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.tx-card__head { padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; }
.tx-card__head--simple { padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.tx-card__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; }
.tx-card__date { font-size: 0.72rem; color: #94a3b8; }
.tx-card__body { padding: 14px 16px; }
.tx-card__body--large { padding: 16px; }
.tx-grid { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 0.875rem; }
.tx-grid__label { color: #64748b; font-size: 0.78rem; font-weight: 500; }
.tx-grid__value { font-weight: 600; color: #0f1f3c; }
.tx-grid__value--muted { color: #334155; font-weight: 400; font-variant-numeric: tabular-nums; }
.tx-note { font-size: 0.72rem; color: #94a3b8; margin-top: 10px; line-height: 1.6; }
.tx-note a { color: #0f274e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================
   48. LOGOUT MODAL — extracted from _header.php 9 inline
   ============================================= */
.logout-modal__content { border-radius: 12px; border: 1px solid #e3e8f0; }
.logout-modal__icon { width: 44px; height: 44px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #64748b; }
.logout-modal__title { font-weight: 700; letter-spacing: -0.015em; color: #0f1f3c; font-size: 1rem; }
.logout-modal__desc { color: #64748b; font-size: 0.8125rem; margin-bottom: 16px; }
.logout-modal__actions { display: flex; justify-content: center; gap: 8px; }
.logout-modal__btn--primary { background: #0f274e; border-color: #0f274e; border-radius: 8px; padding: 6px 14px; font-weight: 600; color: #fff; }
.logout-modal__btn--primary:hover { background: #0e213f; border-color: #0e213f; color: #fff; }
.logout-modal__btn--secondary { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 14px; }
@media (max-width: 575.98px) { .tx-grid { grid-template-columns: 1fr; gap: 6px; } }

/* =============================================
   49. SHARED EDITORIAL — form/card/grid/back/warning (covers 300+ remaining inline)
   Reusable across subscription/redemption/switching/profile
   ============================================= */
.editorial-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.editorial-card__header { padding: 14px 18px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.editorial-card__header--gradient { padding: 16px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #eef2f7; background: linear-gradient(180deg,#f8fafc 0%,#fff 100%); }
.editorial-card__header--padded { padding: 16px; border-bottom: 1px solid #eef2f7; background: linear-gradient(180deg,#f8fafc 0%,#fff 100%); }
.editorial-card__body { padding: 18px; }
.editorial-card__body--compact { padding: 16px; }
.editorial-card__body--tight { padding: 14px 16px; }
.editorial-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; }
.editorial-kicker--small { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; font-weight: 600; }
.editorial-kicker--muted { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.editorial-value { font-weight: 700; color: #0f1f3c; letter-spacing: -0.015em; line-height: 1.25; font-size: 0.9375rem; }
.editorial-value--nav { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.editorial-value--price { font-size: 1rem; font-weight: 700; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.editorial-desc { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.editorial-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px dashed #e6eaf0; margin-top: 14px; }
.editorial-grid-2--no-border { border-top: none; padding-top: 0; margin-top: 0; }
.editorial-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.editorial-label--dark { color: #64748b; font-size: 0.72rem; letter-spacing: 0.06em; }
.editorial-stat { font-size: 0.8125rem; font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }
.editorial-stat--right { text-align: right; }
.editorial-stat--tabular { font-variant-numeric: tabular-nums; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: #64748b; text-decoration: none; margin-bottom: 12px; }
.back-link i { font-size: 0.7rem; }
.back-link:hover { color: #0f1f3c; }
.warning-box { margin-top: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.warning-box i { color: #d97706; margin-top: 2px; font-size: 0.85rem; }
.warning-box__text { font-size: 0.78rem; line-height: 1.5; color: #92400e; }
.warning-box__text strong { font-weight: 650; }
.form-label--editorial { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; font-weight: 600; margin-bottom: 6px; }
.form-input--editorial { text-align: left; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; border-radius: 8px; padding: 10px 12px; border: 1px solid #cbd5e1; }
.quick-amount-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.quick-amount-btn { font-size: 0.78rem; font-weight: 600; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 12px; text-decoration: none; font-variant-numeric: tabular-nums; font-family: inherit; cursor: pointer; }
.quick-amount-btn:hover { background: #fff; border-color: #cbd5e1; color: #0f1f3c; }
.quick-amount-hint { align-self: center; font-size: 0.72rem; color: #94a3b8; margin-left: 4px; }
.estimate-box { margin-top: 14px; background: #fbfdff; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.estimate-box__label { font-size: 0.78rem; color: #64748b; }
.estimate-box__value { font-size: 1rem; font-weight: 700; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.form-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.form-section__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #475569; margin-bottom: 10px; }
.form-list { padding-left: 18px; margin-bottom: 12px; font-size: 0.8125rem; line-height: 1.6; color: #475569; }
.form-list li { margin-bottom: 6px; }
.form-list--compact li { margin-bottom: 4px; }
.form-check-grid { display: grid; gap: 8px; font-size: 0.875rem; }
.form-check-grid label { font-size: 0.8125rem; color: #334155; }
.btn-cta { border-radius: 8px; padding: 10px 14px; font-weight: 650; }
.btn-cta i { font-size: 0.7rem; }
.form-hint { text-align: center; font-size: 0.72rem; color: #94a3b8; margin-top: 8px; }
.profile-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.profile-card__header { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef2f7; }
.profile-card__progress { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-card__progress-label { font-size: 0.72rem; color: #64748b; }
.profile-card__progress-value { font-size: 0.875rem; font-weight: 700; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.profile-card__progress-bar { width: 84px; height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.profile-card__progress-fill { height: 100%; background: #0f274e; }
.profile-card__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 0; border-top: 1px solid #eef2f7; background: #f8fafc; }
.profile-card__cell { padding: 12px 16px; border-right: 1px solid #eef2f7; }
.profile-card__cell:last-child { border-right: none; }
.profile-card__cell-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.profile-card__cell-value { font-size: 0.875rem; font-weight: 600; color: #0f1f3c; margin-top: 2px; word-break: break-word; }
.profile-card__cell-value--muted { font-size: 0.8125rem; font-weight: 500; color: #334155; word-break: break-all; }
.tx-detail-grid { display: grid; gap: 14px; }
.tx-detail-section { border-top: 1px solid #f1f5f9; padding-top: 14px; }
.tx-detail-bank { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 0.875rem; }
.tx-detail-bank__label { color: #64748b; font-size: 0.78rem; }
.tx-detail-bank__value { color: #334155; font-weight: 500; }
.tx-detail-bank__value--mono { font-family: ui-monospace, monospace; font-size: 0.82rem; color: #0f1f3c; }
.tx-detail-bank__value--plain { font-weight: 400; }
.bank-option { cursor: pointer; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; display: flex; align-items: center; }
.bank-option__icon { width: 36px; height: 36px; border-radius: 8px; background: #f1f5f9; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; color: #64748b; font-size: 0.85rem; }
.bank-option__name { font-size: 0.875rem; font-weight: 600; color: #0f1f3c; }
.bank-option__meta { font-size: 0.78rem; color: #64748b; }
.bank-option__meta span { font-family: ui-monospace, monospace; }
.bank-option i.fa-chevron-right { color: #cbd5e1; font-size: 0.7rem; margin-left: auto; }
.range-wrap { padding: 8px 2px; }
.range-labels { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.range-labels__hint { font-size: 0.78rem; color: #64748b; }
.range-labels__value { font-size: 1.1rem; font-weight: 700; color: #0f1f3c; font-variant-numeric: tabular-nums; }
/* 49b PROFILE EDITORIAL EXTENSIONS — extracted from profile/* inline (reuse editorial tokens) */
.profile-page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; margin-bottom: 16px; }
.profile-page-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 0 0 4px; }
.profile-page-desc { font-size: 0.8125rem; color: #64748b; margin: 0; }
.profile-page-step { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.profile-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef2f7; display: flex; justify-content: space-between; gap: 10px; }
.profile-actions--end { justify-content: flex-end; }
.btn-editorial-primary { background: #0f274e; border: 1px solid #0f274e; color: #fff; border-radius: 8px; padding: 8px 16px; font-weight: 600; }
.btn-editorial-primary:hover { background: #0e213f; border-color: #0e213f; color: #fff; }
.btn-editorial-secondary { background: #fff; border: 1px solid #cbd5e1; color: #334155; border-radius: 8px; padding: 8px 16px; font-weight: 600; }
.btn-editorial-secondary:hover { background: #f8fafc; border-color: #94a3b8; color: #0f1f3c; }
.btn-editorial-primary i, .btn-editorial-secondary i { font-size: 0.7rem; }
.editorial-hr { border: none; border-top: 1px solid #eef2f7; margin: 16px 0; }
.editorial-hr--tight { margin: 10px 0; }
.editorial-hr--section { margin: 0 0 14px; }
.uploader-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; margin-bottom: 6px; display: block; }
.uploader-label__hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: #94a3b8; }
.uploader-label--spaced { margin-top: 12px; }
.risk-card { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; padding: 12px 14px; }
.risk-card__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0f1f3c; }
.risk-card__desc { font-size: 0.8125rem; color: #475569; margin: 4px 0 0; line-height: 1.5; }
.risk-card__desc--flush { margin: 0; line-height: 1.6; }
.risk-list { display: grid; gap: 10px; }
.risk-card--spaced { margin-top: 14px; }
.statement-box { margin: 16px 0 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; }
.statement-box__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0f1f3c; margin: 0 0 8px; }
.statement-box__desc { font-size: 0.8125rem; color: #475569; margin: 0 0 6px; }
.statement-list { font-size: 0.8125rem; color: #475569; line-height: 1.6; }
.profile-section-title { font-size: 0.95rem; font-weight: 700; color: #0f1f3c; margin: 0 0 8px; }
.profile-card__meta { font-size: 0.8125rem; color: #475569; margin-top: 2px; }
.profile-card__meta-name { font-weight: 600; color: #0f1f3c; font-size: 0.8125rem; }
.profile-card__meta-dot { color: #94a3b8; }
.bank-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.bank-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bank-card__title { font-size: 0.875rem; font-weight: 700; color: #0f1f3c; margin: 0; }
.bank-detail-row { font-size: 0.8125rem; }
.bank-detail-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; margin: 0 0 4px; }
.bank-detail-value { margin: 0 0 8px; color: #0f1f3c; font-weight: 600; }
.bank-detail-value--plain { font-weight: 400; }
.bank-detail-value--mono { font-variant-numeric: tabular-nums; }
.bank-detail-value--no-margin { margin: 0; }
.profile-page-head--compact { margin-bottom: 12px; padding-bottom: 0; border-bottom: none; }
.profile-page-head--tight { margin-bottom: 8px; padding-bottom: 0; border-bottom: none; }
.btn-delete-sm { border-radius: 8px; font-size: 0.75rem; font-weight: 600; color: #b91c1c; background: #fff; border: 1px solid #fecaca; }
.btn-delete-sm:hover { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.icon-warning-lg { font-size: 2rem; }
.modal-footer--editorial { border-top: 1px solid #eef2f7; }
.select2--full { width: 100% !important; }
.btn-editorial-primary--sm { font-size: 0.8125rem; padding: 8px 14px; }
.declaration-q { font-size: 0.875rem; color: #334155; margin: 0 0 6px; line-height: 1.5; }
@media (max-width: 575.98px) { .editorial-grid-2 { grid-template-columns: 1fr; } .tx-detail-bank { grid-template-columns: 1fr; } }

/* =============================================
   50. TX-DETAIL PARTIALS & SITE AUTH — extracted inline (editorial reusable)
   Covers: transaction-history _subscription/_redemption/_switching (48 inline)
   and site login/register/forgot/reset/blocked/error (31 inline)
   Prefer reuse of .tx-detail-grid/.tx-detail-bank, .editorial-card/kicker, .auth-page
   ============================================= */
/* — Transaction detail partials — */
.tx-detail-grid--wide { gap: 16px; }
.tx-detail-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.tx-detail-kicker--spaced { margin-bottom: 10px; }
.tx-detail-product { font-weight: 600; color: #0f1f3c; letter-spacing: -0.01em; }
.tx-detail-stats { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.tx-detail-stat__label { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.tx-detail-stat__value { font-weight: 650; color: #0f1f3c; font-variant-numeric: tabular-nums; }
.tx-detail-stat__value--muted { font-weight: 600; color: #334155; }
.tx-detail-proof { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.8125rem; font-weight: 600; color: #0f274e; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 7px 12px; text-decoration: none; }
.tx-detail-proof:hover { background: #f8fafc; border-color: #94a3b8; color: #0f274e; text-decoration: none; }
.tx-detail-proof__icon { font-size: 0.75rem; }
.tx-detail-divider { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 0.78rem; }
.tx-detail-divider__line { flex: 1; height: 1px; background: #e2e8f0; }
.tx-detail-divider__icon { font-size: 0.65rem; }
/* — Site auth helpers — */
.captcha-image { cursor: pointer; }
.verify-note { font-weight: 400; color: #64748b; text-transform: none; letter-spacing: 0; }
.auth-inline-action { display: flex; justify-content: flex-end; margin-top: -6px; margin-bottom: 14px; }
.auth-link--muted { font-size: 0.78rem; font-weight: 500; color: #475569; text-decoration: underline; text-underline-offset: 3px; }
.auth-link--muted:hover { color: #0f1f3c; }
.auth-link--primary { font-weight: 600; color: #0f274e; text-decoration: underline; text-underline-offset: 3px; }
.auth-link--primary-sm { color: #0f274e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.auth-hint { font-size: 0.72rem; line-height: 1.6; color: #64748b; text-align: center; margin-top: 10px; }
.auth-hint--center { text-align: center; margin-top: 14px; font-size: 0.78rem; color: #64748b; }
.auth-info-box { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; padding: 9px 11px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; }
.auth-info-box--top { align-items: flex-start; margin-top: 14px; }
.auth-info-box__icon { color: #94a3b8; font-size: 0.8rem; flex-shrink: 0; margin-top: 1px; }
.auth-info-box__icon--sm { font-size: 0.72rem; margin-top: 3px; }
.auth-info-box__text { font-size: 0.74rem; line-height: 1.5; color: #475569; }
.auth-info-box__text--sm { font-size: 0.73rem; }
.hint-text { font-size: 0.73rem; color: #64748b; margin-top: 6px; line-height: 1.5; }
.pwd-match-msg { display: none; font-size: 0.74rem; font-weight: 500; margin: -8px 0 14px; line-height: 1.4; }
.auth-foot__link-icon { font-size: 0.68rem; margin-right: 4px; }
/* — Status pages (blocked / error) — reuse editorial-card tokens — */
.status-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.status-card--left { text-align: left; }
.status-card__head { padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid #eef2f7; background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); }
.status-card__head--error { padding: 18px 20px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #eef2f7; background: #fff; }
.status-card__icon { width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid #fecaca; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.status-card__icon--error { background: #f8fafc; border-color: #e2e8f0; }
.status-card__icon i { color: #dc2626; font-size: 1rem; }
.status-card__icon--error span { font-family: ui-monospace, monospace; font-size: 0.875rem; font-weight: 700; color: #64748b; }
.status-card__kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #dc2626; }
.status-card__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 4px 0 0; }
.status-card__title--error { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 0; line-height: 1.2; }
.status-card__subtitle { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.status-card__body { padding: 18px 20px; }
.status-card__text { font-size: 0.875rem; line-height: 1.7; color: #475569; margin: 0; }
.status-card__contact { margin-top: 16px; background: #f8fafc; border: 1px solid #e3e8f0; border-radius: 10px; padding: 12px 14px; }
.status-card__contact-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.status-card__contact-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.status-card__contact-link { display: inline-flex; align-items: center; gap: 8px; color: #0f274e; font-weight: 600; text-decoration: none; }
.status-card__contact-icon { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; }
.status-card__contact-icon i { color: #16a34a; }
.status-card__contact-icon--mail i { color: #475569; font-size: 0.8rem; }
.status-card__actions { display: flex; gap: 8px; margin-top: 18px; }
.status-card__btn--primary { flex: 1; background: #0f274e; border: 1px solid #0f274e; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 0.8125rem; color: #fff; text-align: center; text-decoration: none; }
.status-card__btn--primary:hover { background: #0e213f; border-color: #0e213f; color: #fff; text-decoration: none; }
.status-card__btn--ghost { flex: 0 0 auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 14px; font-weight: 500; font-size: 0.8125rem; color: #334155; text-decoration: none; }
.status-card__btn--ghost:hover { background: #f8fafc; border-color: #94a3b8; color: #0f1f3c; text-decoration: none; }
.status-card__hint { font-size: 0.72rem; color: #94a3b8; margin-top: 10px; text-align: center; }
.status-card__alert { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 0.78rem; line-height: 1.6; color: #991b1b; margin-bottom: 14px; word-break: break-word; }
.status-card__help { font-size: 0.72rem; color: #94a3b8; margin-top: 10px; text-align: center; }
.status-card__help a { color: #0f274e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.status-card__help a:hover { color: #0a1d3a; }

/* =============================================
   51. SETTING / PAYMENT / PROFILE-INDEX / PIN — extracted inline
   ============================================= */
.setting-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eef2f7; margin-bottom: 16px; }
.setting-head__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; margin: 0 0 4px; }
.setting-head__desc { font-size: 0.8125rem; color: #64748b; margin: 0; }
.setting-head__kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
.setting-card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.setting-card__head { padding: 16px 18px; background: #f8fafc; border-bottom: 1px solid #eef2f7; display: flex; gap: 10px; align-items: center; }
.setting-card__icon { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.setting-card__icon i { color: #475569; font-size: 0.8rem; }
.setting-card__title { font-size: 0.8125rem; font-weight: 600; color: #0f1f3c; }
.setting-card__sub { font-size: 0.72rem; color: #94a3b8; }
.setting-card__body { padding: 18px; }
.setting-hint { font-size: 0.72rem; color: #94a3b8; margin-top: 10px; text-align: center; }
.setting-actions { display: flex; gap: 8px; margin-top: 18px; }
.setting-actions__cancel { flex: 0 0 auto; font-size: 0.8125rem; font-weight: 500; color: #475569; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 14px; text-decoration: none; }
.setting-actions__cancel:hover { background: #f8fafc; color: #0f1f3c; text-decoration: none; }
.setting-actions__submit { flex: 1; background: #0f274e; border: 1px solid #0f274e; border-radius: 8px; padding: 9px 14px; font-weight: 600; }
.setting-actions__submit:hover { background: #0e213f; border-color: #0e213f; }
.pwd-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pwd-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 8px; }
.pwd-chip i { font-size: 0.4rem; }
.pwd-input { border-radius: 8px 0 0 8px; }
.pwd-eye { background: #fff; border: 1px solid #cbd5e1; border-left: none; border-radius: 0 8px 8px 0; }
.pwd-eye i { font-size: 0.8rem; }
.payment-total { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: #0f1f3c; font-variant-numeric: tabular-nums; margin-top: 4px; }
.payment-row { display: flex; justify-content: space-between; gap: 12px; }
.payment-row__label { font-size: 0.78rem; color: #64748b; }
.payment-row__value { font-size: 0.875rem; font-weight: 600; color: #0f1f3c; }
.payment-row__value--plain { font-weight: 500; color: #334155; text-align: right; }
.payment-account { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fbfdff; border: 1px dashed #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.payment-account__label { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; font-weight: 600; }
.payment-account__value { font-family: ui-monospace, monospace; font-size: 0.9375rem; font-weight: 650; color: #0f1f3c; letter-spacing: 0.02em; }
.payment-grid { display: grid; gap: 12px; }
.payment-alert-title { font-size: 0.8125rem; font-weight: 600; color: #991b1b; margin-bottom: 6px; }
.payment-note { margin-top: 6px; }
.editorial-card--spaced { margin-top: 12px; }
.form-control--readonly { background: #f8fafc; }
.payment-grid--tight { display: grid; gap: 10px; }
.profile-review { border: 1px dashed #cbd5e1; border-radius: 12px; background: #fbfdff; padding: 18px; display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.profile-review__img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; padding: 6px; flex-shrink: 0; }
.profile-review__title { font-size: 0.875rem; font-weight: 600; color: #0f1f3c; }
.profile-review__desc { font-size: 0.8125rem; color: #64748b; margin-top: 2px; line-height: 1.5; }
.pin-foot { font-size: 0.74rem; line-height: 1.6; }
.pin-note { max-width: 420px; }
.not-approved__icon { font-size: 2.5rem; }

/* =============================================
   52. DE-SLOP CLEANUP — shared utilities, profile forms, status, empty state
   ============================================= */
/* Shared profile form controls (replaces 7 inline <style> blocks) */
.profile-form .form-control { border-radius: 8px; border-color: #cbd5e1; }
.profile-form .form-control:focus { border-color: #94a3b8; box-shadow: none; }
/* Native <select> clips its selected option text when the taller editorial
   padding (10px) is combined with Bootstrap's fixed .form-control height.
   Restore Bootstrap's vertical padding for selects so the chosen value is
   fully visible, while keeping the editorial border/radius. */
.profile-form select.form-control,
select.form-control.form-input--editorial {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* Missing utility classes referenced by views (Bootstrap 4 has no gap utilities) */
.min-w-0 { min-width: 0; }
.gap-2 { gap: 0.5rem; }

/* Status dot variants (replaces inline style="background:...") */
.top-header__dot--active, .mobile-drawer__dot--active { background: #16a34a; }
.top-header__dot--pending, .mobile-drawer__dot--pending { background: #d97706; }
.top-header__dot--neutral, .mobile-drawer__dot--neutral { background: #94a3b8; }

/* Warning status card (not-approved) */
.status-card__head--warning { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.status-card__icon--warning { border-color: #fde68a; }
.status-card__icon--warning i { color: #d97706; }
.status-card__kicker--warning { color: #d97706; }

/* Empty state (was inline styles inside EmptyState widget) */
.empty-state { border: 1px dashed #e2e8f0; border-radius: 10px; padding: 28px 16px; text-align: center; background: #fbfdff; }
.empty-state__icon { width: 42px; height: 42px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-state__icon i { color: #94a3b8; font-size: 1rem; }
.empty-state__title { font-weight: 600; color: #334155; font-size: 0.9375rem; }
.empty-state__desc { font-size: 0.8125rem; color: #64748b; margin-top: 4px; }
.empty-state__action { border-radius: 8px; padding: 6px 14px; }

/* Editorial mono description (referenced by switching/create) */
.editorial-desc--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Button reset for converted anchor toggles (header/mobile drawer) */
button.top-header__action { background: none; border: none; cursor: pointer; font-family: inherit; }
button.mobile-drawer__logout { font-family: inherit; cursor: pointer; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mobile-drawer, .mobile-drawer-overlay { transition: none; }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .top-header,
    .main-menu,
    footer,
    #loading-overlay,
    .unsaved-changes-bar,
    #scrollUp {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .card {
        border: 1px solid #ddd;
    }
}
