/* ═══════════════════════════════════════════════
   GFCCommerce Web UI – Global Styles
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --header-height: 80px;
    --color-primary: #1a1a1a;
    --color-secondary: #555;
    --color-accent: #c49a28;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8f8f8;
    --color-border: #f0f0f0;
    --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-base);
    color: var(--color-primary);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Layout ─── */
.web-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.web-layout__main {
    flex: 1;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ─── Blazor Error UI ─── */
#blazor-error-ui {
    background: #fee;
    border-top: 1px solid #f5c6cb;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    font-size: 0.875rem;
    color: #721c24;
}

#blazor-error-ui .reload {
    font-weight: 600;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════════════ */
[data-theme="dark"] {
    --color-primary: #e8e8e8;
    --color-secondary: #aaa;
    --color-bg: #141414;
    --color-bg-subtle: #1e1e1e;
    --color-border: #2e2e2e;
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: #141414;
    color: #e8e8e8;
}

/* ─ Header ─ */
html[data-theme="dark"] .site-header {
    background: #1a1a1a;
}

html[data-theme="dark"] .header-sticky {
    background: #1a1a1a;
    border-bottom-color: #2e2e2e;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .nav-link {
    color: #e8e8e8;
}

html[data-theme="dark"] .nav-link:hover {
    color: #aaa;
}

html[data-theme="dark"] .logo-link {
    color: #e8e8e8;
}

html[data-theme="dark"] .action-btn {
    color: #e0e0e0;
}

html[data-theme="dark"] .action-btn:hover {
    color: #ffffff;
}

html[data-theme="dark"] .action-badge {
    background: #e8e8e8;
    color: #141414;
    border-color: #1a1a1a;
}

html[data-theme="dark"] .hamburger-btn {
    color: #e0e0e0;
}

html[data-theme="dark"] .hamburger-btn:hover {
    color: #ffffff;
}

/* ─ Megamenu ─ */
html[data-theme="dark"] .megamenu {
    background: #1e1e1e;
    border-top-color: #e8e8e8;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .megamenu-title {
    color: #e8e8e8;
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .megamenu-links a {
    color: #aaa;
}

html[data-theme="dark"] .megamenu-links a:hover {
    color: #e8e8e8;
}

html[data-theme="dark"] .megamenu-col--promo {
    background: #2a2a2a;
}

html[data-theme="dark"] .megamenu-promo-title {
    color: #e8e8e8;
}

html[data-theme="dark"] .megamenu-promo-text {
    color: #888;
}

html[data-theme="dark"] .megamenu-promo-badge {
    background: #e8e8e8;
    color: #141414;
}

html[data-theme="dark"] .megamenu-promo-badge--sale {
    background: #ff5733;
    color: #fff;
}

html[data-theme="dark"] .megamenu-promo-link {
    color: #e8e8e8;
}

/* ─ Mobile Nav Tree ─ */
html[data-theme="dark"] .mobile-nav {
    background: #1a1a1a;
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .mobile-nav--open {
    background: #1a1a1a;
}

html[data-theme="dark"] .side-panel-header {
    background: #1e1e1e;
}

html[data-theme="dark"] .side-panel-close {
    background: #2a2a2a;
    color: #e8e8e8;
}

html[data-theme="dark"] .mnav-root {
    border-bottom-color: #2a2a2a;
}

html[data-theme="dark"] .mnav-link--root {
    color: #e8e8e8;
}

html[data-theme="dark"] .mnav-link--child {
    color: #ccc;
}

html[data-theme="dark"] .mnav-link--grandchild {
    color: #999;
}

html[data-theme="dark"] .mnav-link:hover {
    color: #fff;
}

html[data-theme="dark"] .mnav-children {
    border-left-color: #2e2e2e;
}

html[data-theme="dark"] .mnav-grandchildren {
    border-left-color: #3a3a3a;
}

/* ─ Profile Dropdown ─ */
html[data-theme="dark"] .profile-btn__name {
    color: #e8e8e8;
}

html[data-theme="dark"] .profile-btn__points {
    color: #999;
}

html[data-theme="dark"] .profile-dropdown-menu {
    background: #1e1e1e;
    border-color: #2e2e2e;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .profile-dropdown-name {
    color: #e8e8e8;
}

html[data-theme="dark"] .profile-dropdown-points {
    color: #999;
}

html[data-theme="dark"] .profile-menu-item {
    color: #e8e8e8;
}

html[data-theme="dark"] .profile-menu-item:hover {
    background: #2a2a2a;
    color: #fff;
}

html[data-theme="dark"] .profile-menu-divider {
    background: #2e2e2e;
}

/* ─ Search Panel ─ */
html[data-theme="dark"] .search-bar-panel {
    background: #1a1a1a;
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .search-bar-inner {
    background: #2a2a2a;
}

html[data-theme="dark"] .search-bar-inner:focus-within {
    background: #1e1e1e;
    border-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(232, 232, 232, 0.08);
}

html[data-theme="dark"] .search-bar-input {
    color: #e8e8e8;
}

html[data-theme="dark"] .search-bar-input::placeholder {
    color: #555;
}

/* ─ Side Panels ─ */
html[data-theme="dark"] .side-panel {
    background: #1e1e1e;
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-title {
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-header {
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .side-panel-footer {
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .side-panel-close {
    color: #888;
}

html[data-theme="dark"] .side-panel-close:hover {
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-empty {
    color: #555;
}

html[data-theme="dark"] .side-panel-empty p {
    color: #666;
}

html[data-theme="dark"] .side-panel-count {
    color: #aaa;
}

html[data-theme="dark"] .side-panel-btn {
    background: #e8e8e8;
    color: #141414;
}

html[data-theme="dark"] .side-panel-btn:hover {
    background: #ffffff;
    color: #141414;
}

/* ─ Side Panel Items ─ */
html[data-theme="dark"] .side-panel-item {
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .side-panel-item__img {
    background: #2a2a2a;
}

html[data-theme="dark"] .side-panel-item__img i {
    color: #555;
}

html[data-theme="dark"] .side-panel-item__title {
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-item__brand {
    color: #777;
}

html[data-theme="dark"] .side-panel-item__price {
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-item__qty {
    color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-item__qty-btn {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ccc;
}

html[data-theme="dark"] .side-panel-item__qty-btn:hover {
    border-color: #e8e8e8;
    color: #fff;
}

html[data-theme="dark"] .side-panel-item__remove {
    color: #555;
}

html[data-theme="dark"] .side-panel-item__remove:hover {
    color: #e74c3c;
}

html[data-theme="dark"] .side-panel-total {
    color: #e8e8e8;
    border-top-color: #e8e8e8;
}

html[data-theme="dark"] .side-panel-total__points {
    color: #999;
}

html[data-theme="dark"] .side-panel-item__points {
    color: #999;
}

/* ─ Homepage Products Section ─ */
.hp-products-section {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

/* ═══════════════════════════════════════════════
   Login Page
   ═══════════════════════════════════════════════ */

/* Top-left brand logo */
.login-topbar {
    position: fixed;
    top: 1.5rem;
    left: 1.75rem;
    z-index: 10;
}

.login-topbar-logo {
    height: 38px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.login-layout {
    min-height: 100vh;
    background: linear-gradient(150deg, #a8d4ee 0%, #c9e8f6 25%, #daf0fa 55%, #edf7fd 80%, #f5fbff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-base);
    position: relative;
    overflow: hidden;
}

.login-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
}

.login-bg-shape--1 {
    width: 800px;
    height: 800px;
    top: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
}

.login-bg-shape--2 {
    width: 600px;
    height: 600px;
    bottom: -250px;
    left: -150px;
    background: radial-gradient(circle, rgba(100, 180, 230, 0.22) 0%, transparent 65%);
}

.login-bg-shape--3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
    transform: translateY(-50%);
}

.login-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 2.75rem 2.25rem 2rem;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 8px 32px rgba(50, 100, 150, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    margin: 1rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(50, 100, 150, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}

.login-logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.login-brand-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.login-brand-name span {
    color: #ff5733;
}

.login-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-field {
    margin-bottom: 1.1rem;
}

.login-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-input {
    width: 100%;
    border: 1.5px solid rgba(209, 213, 219, 0.8);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: var(--font-base);
    font-size: 0.9rem;
    color: #1a1a1a;
    background: rgba(249, 250, 251, 0.85);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #6ba3d0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(107, 163, 208, 0.18);
}

.login-input--otp {
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.3rem;
    font-weight: 700;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .login-input {
    padding-right: 2.8rem;
}

.login-password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.login-password-toggle:hover {
    color: #374151;
}

.login-password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-forgot-link {
    display: block;
    background: none;
    border: none;
    font-family: var(--font-base);
    font-size: 0.8rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.3rem 0 0;
    text-align: right;
    width: 100%;
    transition: color 0.2s;
}

.login-forgot-link:hover {
    color: #1a1a1a;
}

.login-submit {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-base);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.login-submit:hover:not(:disabled) {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);
}

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loginSpin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.login-panel-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(50, 100, 150, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}

.login-panel-icon--warning {
    color: #f59e0b;
}

.login-panel-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.login-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font-family: var(--font-base);
    font-size: 0.85rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.75rem;
    margin-top: 0.25rem;
    transition: color 0.2s;
    width: 100%;
}

.login-back-btn:hover {
    color: #1a1a1a;
}

[data-theme="dark"] .login-layout {
    background: linear-gradient(150deg, #0f1a24 0%, #12202e 40%, #141e2a 70%, #111820 100%);
}

[data-theme="dark"] .login-card {
    background: rgba(20, 25, 35, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .login-brand-icon {
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8e8;
    box-shadow: none;
}

[data-theme="dark"] .login-brand-name,
[data-theme="dark"] .login-title {
    color: #e8e8e8;
}

[data-theme="dark"] .login-subtitle,
[data-theme="dark"] .login-panel-text { color: #9ca3af; }

[data-theme="dark"] .login-label { color: #9ca3af; }

[data-theme="dark"] .login-input {
    background: rgba(30, 35, 48, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
}

[data-theme="dark"] .login-input:focus {
    border-color: rgba(107, 163, 208, 0.6);
    background: rgba(35, 42, 58, 0.9);
    box-shadow: 0 0 0 3px rgba(107, 163, 208, 0.12);
}

[data-theme="dark"] .login-submit {
    background: #e8e8e8;
    color: #1a1a1a;
}

[data-theme="dark"] .login-submit:hover:not(:disabled) {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .login-forgot-link,
[data-theme="dark"] .login-back-btn { color: #6b7280; }

[data-theme="dark"] .login-forgot-link:hover,
[data-theme="dark"] .login-back-btn:hover { color: #e8e8e8; }

[data-theme="dark"] .login-panel-icon {
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8e8;
    box-shadow: none;
}

[data-theme="dark"] .login-password-toggle { color: #4b5563; }
[data-theme="dark"] .login-password-toggle:hover { color: #e8e8e8; }

/* ═══════════════════════════════════════════════
   Toast Notifications
   ═══════════════════════════════════════════════ */
.gfc-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.gfc-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    border-left: 3.5px solid #ccc;
    min-width: 260px;
    max-width: 360px;
    pointer-events: auto;
    animation: toastSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    font-size: 0.875rem;
    font-family: var(--font-base);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

.gfc-toast--success { border-left-color: #22c55e; }
.gfc-toast--error   { border-left-color: #ef4444; }
.gfc-toast--warning { border-left-color: #f59e0b; }
.gfc-toast--info    { border-left-color: #3b82f6; }

.gfc-toast__icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.gfc-toast--success .gfc-toast__icon { color: #22c55e; }
.gfc-toast--error   .gfc-toast__icon { color: #ef4444; }
.gfc-toast--warning .gfc-toast__icon { color: #f59e0b; }
.gfc-toast--info    .gfc-toast__icon { color: #3b82f6; }

.gfc-toast__message {
    flex: 1;
    color: #1a1a1a;
    line-height: 1.4;
}

.gfc-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 0;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.gfc-toast__close:hover {
    color: #555;
}

/* ─── Header logout button reset ─── */
.profile-menu-item--btn {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-base);
    cursor: pointer;
    text-align: left;
}

/* ─── Dark mode: Toast ─── */
[data-theme="dark"] .gfc-toast {
    background: #1e1e1e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .gfc-toast__message {
    color: #e8e8e8;
}

/* ═══════════════════════════════════════════════
   Dark Mode – Footer
   ═══════════════════════════════════════════════ */
html[data-theme="dark"] .site-footer {
    background: #1a1a1a;
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .footer-col__title {
    color: #e8e8e8;
}

html[data-theme="dark"] .footer-content-link {
    color: #aaa;
}

html[data-theme="dark"] .footer-content-link:hover {
    color: #e8e8e8;
    text-decoration-color: #666;
}

html[data-theme="dark"] .footer-col__html {
    color: #888;
}

html[data-theme="dark"] .footer-bottom-bar {
    border-top-color: #2e2e2e;
}

html[data-theme="dark"] .footer-hotline {
    color: #ccc;
}

html[data-theme="dark"] .footer-hotline i {
    color: #888;
}

html[data-theme="dark"] .footer-hotline__sub {
    color: #666;
}

html[data-theme="dark"] .footer-bottom-copy {
    color: #555;
}

html[data-theme="dark"] .footer-social__link {
    background: #2a2a2a;
    color: #aaa;
}

html[data-theme="dark"] .footer-social__link:hover {
    background: #e8e8e8;
    color: #141414;
}

/* ═══════════════════════════════════════════════
   Dark Mode – ContentDetails Page
   ═══════════════════════════════════════════════ */
html[data-theme="dark"] .content-detail-page {
    color: #e8e8e8;
}

html[data-theme="dark"] .content-detail-page h2 {
    color: #e8e8e8;
}

html[data-theme="dark"] .content-detail-page__header {
    border-bottom-color: #2e2e2e;
}

html[data-theme="dark"] .content-detail-page__body {
    color: #ccc;
}

/* ═══════════════════════════════════════════════
   Dark Mode – Checkout Page
   ═══════════════════════════════════════════════ */
html[data-theme="dark"] .co-back { color: #777; }
html[data-theme="dark"] .co-back:hover { color: #bbb; }

html[data-theme="dark"] .co-spinner {
    border-color: rgba(232, 232, 232, 0.12);
    border-top-color: #e8e8e8;
}

html[data-theme="dark"] .co-section {
    background: #1e1e1e;
    border-color: #2e2e2e;
}

html[data-theme="dark"] .co-section--card {
    background: #1a1f2e;
    border-color: #2a3a5e;
}

html[data-theme="dark"] .co-section-title { color: #e8e8e8; }

html[data-theme="dark"] .co-addr-card {
    background: #252525;
    border-color: #333;
}

html[data-theme="dark"] .co-addr-card--billing {
    background: #1a1f2e;
    border-color: #2a3a5e;
}

html[data-theme="dark"] .co-addr-card__badge { color: #7a9ff0; }
html[data-theme="dark"] .co-addr-card__name { color: #e8e8e8; }
html[data-theme="dark"] .co-addr-card__line { color: #999; }
html[data-theme="dark"] .co-addr-edit { color: #7a9ff0; }
html[data-theme="dark"] .co-addr-edit:hover { color: #a0bfff; }
html[data-theme="dark"] .co-label { color: #aaa; }
html[data-theme="dark"] .co-label small { color: #666; }

html[data-theme="dark"] .co-input,
html[data-theme="dark"] .co-select {
    background: #252525;
    border-color: #3a3a3a;
    color: #e8e8e8;
}

html[data-theme="dark"] .co-input:focus,
html[data-theme="dark"] .co-select:focus { border-color: #777; }
html[data-theme="dark"] .co-input::placeholder { color: #555; }

html[data-theme="dark"] .co-new-addr__toggle { color: #7a9ff0; }
html[data-theme="dark"] .co-new-addr__toggle:hover { color: #a0bfff; }

html[data-theme="dark"] .co-save-addr-btn {
    background: #e8e8e8;
    color: #141414;
}
html[data-theme="dark"] .co-save-addr-btn:hover { background: #fff; }

html[data-theme="dark"] .co-cargo-option {
    border-color: #333;
    color: #e0e0e0;
}
html[data-theme="dark"] .co-cargo-option:hover {
    border-color: #555;
    background: #252525;
}
html[data-theme="dark"] .co-cargo-option--selected {
    border-color: #e8e8e8;
    background: #252525;
}

html[data-theme="dark"] .co-card-info-banner {
    background: #1a1f2e;
    color: #7a9ff0;
}

html[data-theme="dark"] .co-checkbox-label { color: #bbb; }

html[data-theme="dark"] .co-summary-box {
    background: #1e1e1e;
    border-color: #2e2e2e;
}

html[data-theme="dark"] .co-item__img-wrap img { border-color: #333; }
html[data-theme="dark"] .co-item__img-placeholder {
    background: #2a2a2a;
    border-color: #333;
    color: #555;
}
html[data-theme="dark"] .co-item__qty-badge {
    background: #444;
    border-color: #1e1e1e;
}

html[data-theme="dark"] .co-item__title { color: #e0e0e0; }
html[data-theme="dark"] .co-item__brand { color: #777; }
html[data-theme="dark"] .co-item__price { color: #e0e0e0; }
html[data-theme="dark"] .co-divider { background: #2e2e2e; }
html[data-theme="dark"] .co-summary-row { color: #aaa; }
html[data-theme="dark"] .co-summary-total { color: #e8e8e8; }
html[data-theme="dark"] .co-usage-box { background: #252525; }
html[data-theme="dark"] .co-usage-row { color: #aaa; }
html[data-theme="dark"] .co-muted { color: #555; }

html[data-theme="dark"] .co-contract-read { color: #7a9ff0; }
html[data-theme="dark"] .co-contract-read:hover { color: #a0bfff; }

html[data-theme="dark"] .co-submit-btn {
    background: #e8e8e8;
    color: #141414;
}
html[data-theme="dark"] .co-submit-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
}
html[data-theme="dark"] .co-btn-spinner {
    border-color: rgba(20, 20, 20, 0.25);
    border-top-color: #141414;
}

html[data-theme="dark"] .co-modal {
    background: #1e1e1e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .co-modal-header { border-bottom-color: #2e2e2e; }
html[data-theme="dark"] .co-modal-title { color: #e8e8e8; }
html[data-theme="dark"] .co-modal-close { color: #777; }
html[data-theme="dark"] .co-modal-close:hover { color: #e8e8e8; }
html[data-theme="dark"] .co-modal-body { color: #aaa; }

/* ═══════════════════════════════════════════════
   Profile Page — Dark Mode  (.pf-*)
   ═══════════════════════════════════════════════ */

/* ─── Tabs ─── */
html[data-theme="dark"] .pf-tabs { border-bottom-color: #2e2e2e; }
html[data-theme="dark"] .pf-tab { color: #888; }
html[data-theme="dark"] .pf-tab:hover { color: var(--color-primary, #4f8ef7); }
html[data-theme="dark"] .pf-tab--active { color: var(--color-primary, #4f8ef7); border-bottom-color: var(--color-primary, #4f8ef7); }

/* ─── Spinner ─── */
html[data-theme="dark"] .pf-spinner { border-color: #2e2e2e; border-top-color: var(--color-primary, #4f8ef7); }

/* ─── Empty state ─── */
html[data-theme="dark"] .pf-empty { color: #555; }

/* ─── Orders ─── */
html[data-theme="dark"] .pf-order { border-color: #2e2e2e; }
html[data-theme="dark"] .pf-order:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
html[data-theme="dark"] .pf-order--expanded { border-color: var(--color-primary, #4f8ef7); }
html[data-theme="dark"] .pf-order-no { color: #e0e0e0; }
html[data-theme="dark"] .pf-order-date { color: #666; }
html[data-theme="dark"] .pf-order-total { color: #e0e0e0; }
html[data-theme="dark"] .pf-order-chevron { color: #555; }

/* ─── Order status badges ─── */
html[data-theme="dark"] .pf-order-status--pending { background: #3d2d00; color: #f0c060; }
html[data-theme="dark"] .pf-order-status--shipped { background: #0d2040; color: #7ab3f5; }
html[data-theme="dark"] .pf-order-status--delivered { background: #0a2e1a; color: #4ade80; }
html[data-theme="dark"] .pf-order-status--canceled { background: #2e0a0a; color: #f87171; }
html[data-theme="dark"] .pf-order-status--failed { background: #2e0a1e; color: #f472b6; }

/* ─── Order body ─── */
html[data-theme="dark"] .pf-order-body { border-top-color: #2e2e2e; }
html[data-theme="dark"] .pf-order-item { border-bottom-color: #252525; }
html[data-theme="dark"] .pf-order-item__img { background: #252525; color: #444; }
html[data-theme="dark"] .pf-order-item__title { color: #e0e0e0; }
html[data-theme="dark"] .pf-order-item__code { color: #555; }
html[data-theme="dark"] .pf-order-item__qty { color: #777; }
html[data-theme="dark"] .pf-order-item__price { color: #e0e0e0; }

/* ─── Shipment ─── */
html[data-theme="dark"] .pf-shipment__company { color: #777; }
html[data-theme="dark"] .pf-shipment__delivered { color: #4ade80; }
html[data-theme="dark"] .pf-order-item__cargo-status { color: #777; }

/* ─── Order footer ─── */
html[data-theme="dark"] .pf-order-footer { border-top-color: #252525; }
html[data-theme="dark"] .pf-order-footer__row { color: #777; }
html[data-theme="dark"] .pf-order-footer__row--total { color: #e0e0e0; }
html[data-theme="dark"] .pf-order-footer__points { color: #777; }

/* ─── Load more button ─── */
html[data-theme="dark"] .pf-loadmore-btn { border-color: #3a3a3a; color: #e0e0e0; }
html[data-theme="dark"] .pf-loadmore-btn:hover { border-color: var(--color-primary, #4f8ef7); background: #1a2a40; color: var(--color-primary, #4f8ef7); }

/* ─── Order address detail ─── */
html[data-theme="dark"] .pf-order-addresses { border-top-color: #2e2e2e; }
html[data-theme="dark"] .pf-order-addr { background: #1e1e1e; border-color: #2e2e2e; }
html[data-theme="dark"] .pf-order-addr__title { color: #666; }
html[data-theme="dark"] .pf-order-addr__body p { color: #aaa; }

/* ─── Address cards ─── */
html[data-theme="dark"] .pf-addr-card { border-color: #2e2e2e; }
html[data-theme="dark"] .pf-addr-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
html[data-theme="dark"] .pf-addr-card--active { border-color: var(--color-primary, #4f8ef7); }
html[data-theme="dark"] .pf-addr-card__name { color: #e0e0e0; }
html[data-theme="dark"] .pf-addr-card__body { color: #777; }
html[data-theme="dark"] .pf-addr-edit-btn:hover { background: #1a2a40; }

/* ─── Add address button ─── */
html[data-theme="dark"] .pf-add-btn { border-color: #3a3a3a; }
html[data-theme="dark"] .pf-add-btn:hover { border-color: var(--color-primary, #4f8ef7); background: #1a2a40; }

/* ─── Address form ─── */
html[data-theme="dark"] .pf-addr-form { background: #1e1e1e; border-color: #2e2e2e; }
html[data-theme="dark"] .pf-addr-form__title { color: #e0e0e0; }
html[data-theme="dark"] .pf-label { color: #aaa; }
html[data-theme="dark"] .pf-label small { color: #555; }
html[data-theme="dark"] .pf-input,
html[data-theme="dark"] .pf-select {
    background: #252525;
    border-color: #3a3a3a;
    color: #e0e0e0;
}
html[data-theme="dark"] .pf-input:focus,
html[data-theme="dark"] .pf-select:focus {
    border-color: var(--color-primary, #4f8ef7);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}
html[data-theme="dark"] .pf-eye-btn { color: #555; }
html[data-theme="dark"] .pf-eye-btn:hover { color: #888; }

/* ─── Password rules ─── */
html[data-theme="dark"] .pf-pass-rules li { color: #555; }
html[data-theme="dark"] .pf-pass-rule--ok { color: #4ade80 !important; }

/* ─── Address modal ─── */
html[data-theme="dark"] .pf-modal { background: #1e1e1e; }
html[data-theme="dark"] .pf-modal-header { border-bottom-color: #2e2e2e; }
html[data-theme="dark"] .pf-modal-title { color: #e8e8e8; }
html[data-theme="dark"] .pf-modal-close { color: #666; }
html[data-theme="dark"] .pf-modal-close:hover { color: #e0e0e0; background: #2a2a2a; }
html[data-theme="dark"] .pf-modal-footer { border-top-color: #2e2e2e; }
html[data-theme="dark"] .pf-modal-cancel { border-color: #3a3a3a; color: #aaa; }
html[data-theme="dark"] .pf-modal-cancel:hover { background: #2a2a2a; border-color: #555; }
