/* =========================================================
   TrendWatch — Reference Theme System
   Classic mode follows admin-login.html exactly.
   Emerald mode remains owned by theme-pages.css.
   ========================================================= */

html[data-theme="classic"] body {
  --tw-ref-bg: #090b0f;
  --tw-ref-bg-2: #0d1016;
  --tw-ref-panel: #13161d;
  --tw-ref-panel-2: #11141b;
  --tw-ref-panel-soft: #171b24;
  --tw-ref-input: #10131a;
  --tw-ref-gold: #d8b56b;
  --tw-ref-gold-2: #6e5934;
  --tw-ref-gold-light: #f2d99a;
  --tw-ref-gold-strong: #c49a4d;
  --tw-ref-text: #f4f1e9;
  --tw-ref-text-2: #d9dbe1;
  --tw-ref-muted: #9296a1;
  --tw-ref-muted-2: #a6a9b2;
  --tw-ref-border: rgba(255, 255, 255, .09);
  --tw-ref-danger: #ffaaaa;
  --tw-ref-success: #9be0b7;
  --tw-ref-shadow: 0 25px 75px rgba(0, 0, 0, .34);
}

/* Global classic canvas */
html[data-theme="classic"] body {
  color: var(--tw-ref-text) !important;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(216, 181, 107, .08), transparent 35%),
    var(--tw-ref-bg) !important;
}

html[data-theme="classic"] body :is(h1, h2, h3, h4, h5, h6) {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body :is(p, li, small, .muted, .text-muted, .form-hint, .form-note) {
  color: var(--tw-ref-muted) !important;
}

html[data-theme="classic"] body a {
  color: var(--tw-ref-gold-light);
}

html[data-theme="classic"] body a:hover {
  color: #fff0c5;
}

html[data-theme="classic"] body :is(input, textarea, select, .field) {
  color: var(--tw-ref-text) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body :is(input, textarea, select, .field)::placeholder {
  color: #626875 !important;
}

/* Shared surfaces */
html[data-theme="classic"] body :is(.tw-auth-card,
  .account-sidebar,
  .account-panel,
  .checkout-card,
  .product-detail-card,
  .product-card,
  .filters-card,
  .orders-card,
  .stat-card,
  .order-card,
  .info-card,
  .panel,
  .card,
  .modal-content) {
  background: linear-gradient(145deg, var(--tw-ref-panel), var(--tw-ref-panel-2)) !important;
  color: var(--tw-ref-text) !important;
  border-color: var(--tw-ref-border) !important;
  box-shadow: var(--tw-ref-shadow) !important;
}

/* Shared gold controls */
html[data-theme="classic"] body :is(.button-gold,
  .btn-primary,
  .add-cart,
  .checkout-link,
  .tw-submit,
  .primary-button,
  .admin-submit) {
  background: linear-gradient(135deg, #f0d695, #c49a4d) !important;
  color: #17130b !important;
  border-color: #e4c780 !important;
  box-shadow: 0 8px 25px rgba(196, 154, 77, .12) !important;
}

html[data-theme="classic"] body :is(.button-gold,
  .btn-primary,
  .add-cart,
  .checkout-link,
  .tw-submit,
  .primary-button,
  .admin-submit):hover {
  filter: brightness(1.05) !important;
  box-shadow: 0 12px 30px rgba(196, 154, 77, .20) !important;
}

html[data-theme="classic"] body :is(.button-quiet, .btn-outline, .secondary-button) {
  background: rgba(255, 255, 255, .025) !important;
  color: var(--tw-ref-text-2) !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

html[data-theme="classic"] body :is(.button-quiet, .btn-outline, .secondary-button):hover {
  color: var(--tw-ref-gold-light) !important;
  border-color: rgba(216, 181, 107, .5) !important;
  background: rgba(216, 181, 107, .06) !important;
}

/* =========================================================
   Customer login — match admin-login reference
   ========================================================= */
html[data-theme="classic"] body.tw-auth-page {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(185, 139, 55, .13), transparent 38%),
    radial-gradient(ellipse at 90% 85%, rgba(91, 101, 125, .12), transparent 35%),
    var(--tw-ref-bg) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-header {
  background: rgba(9, 11, 15, .84) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-brand,
html[data-theme="classic"] body.tw-auth-page .tw-auth-showcase h1 {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body.tw-auth-page :is(.tw-brand-gold, .tw-auth-showcase h1 span, .tw-auth-title, .tw-card-kicker, .tw-point-icon) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-back-link,
html[data-theme="classic"] body.tw-auth-page .tw-auth-showcase p,
html[data-theme="classic"] body.tw-auth-page .tw-showcase-points>div {
  color: var(--tw-ref-muted-2) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-showcase {
  background:
    linear-gradient(145deg, rgba(216, 181, 107, .12), transparent 48%),
    #11141b !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-panel {
  background: rgba(15, 17, 23, .78) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-card {
  background: rgba(19, 22, 29, .94) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-field label {
  color: var(--tw-ref-text-2) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-tabs {
  border-color: var(--tw-ref-border) !important;
  background: #10131a !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-tab {
  color: #aeb2bc !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-tab.active {
  color: #17130b !important;
  background: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-password-toggle {
  color: var(--tw-ref-gold-light) !important;
  border-color: var(--tw-ref-gold) !important;
}

html[data-theme="classic"] body.tw-auth-page .tw-auth-bottom,
html[data-theme="classic"] body.tw-auth-page .tw-form-note,
html[data-theme="classic"] body.tw-auth-page .tw-auth-footer {
  color: var(--tw-ref-muted) !important;
}

/* =========================================================
   Account/profile — remove inconsistent black-only blocks
   ========================================================= */
html[data-theme="classic"] body.account-page {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(216, 181, 107, .10), transparent 35%),
    var(--tw-ref-bg) !important;
}

html[data-theme="classic"] body.account-page .account-header {
  background: rgba(9, 11, 15, .90) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.account-page :is(.account-brand, .page-heading h1, .customer-summary h2) {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body.account-page :is(.account-brand-mark, .account-brand span:last-child span, .page-heading::before, .section-heading, .account-footer a) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.account-page :is(.account-sidebar, .account-panel) {
  background: linear-gradient(145deg, #171a23, #11141b) !important;
}

html[data-theme="classic"] body.account-page .customer-avatar {
  border-color: rgba(216, 181, 107, .60) !important;
  background: radial-gradient(circle at 30% 20%, rgba(242, 217, 154, .18), transparent 70%), rgba(216, 181, 107, .07) !important;
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.account-page .account-nav button {
  color: #bfc2cb !important;
}

html[data-theme="classic"] body.account-page .account-nav button.active {
  border-color: rgba(216, 181, 107, .30) !important;
  background: linear-gradient(100deg, rgba(216, 181, 107, .14), rgba(216, 181, 107, .035)) !important;
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.account-page .account-nav button:hover {
  background: rgba(255, 255, 255, .035) !important;
  color: #fff !important;
}

html[data-theme="classic"] body.account-page .account-page .form-group label {
  color: #d8d9df !important;
}

html[data-theme="classic"] body.account-page .form-group input[readonly] {
  background: #12151b !important;
  color: #9297a3 !important;
}

html[data-theme="classic"] body.account-page .order-card {
  background: linear-gradient(135deg, #151922, #10131a) !important;
}

html[data-theme="classic"] body.account-page :is(.order-number, .order-status) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.account-page .empty-state,
html[data-theme="classic"] body.account-page .loading-state {
  background: rgba(255, 255, 255, .015) !important;
  border-color: #393e49 !important;
  color: var(--tw-ref-muted) !important;
}

/* =========================================================
   Informational pages — about / FAQ / shipping / terms / privacy / 404
   ========================================================= */
html[data-theme="classic"] body.info-page {
  --bg: #090b0f;
  --panel: #13161d;
  --gold: #d8b56b;
  --gold2: #f2d99a;
  --text: #f4f1e9;
  --muted: #9296a1;
  --line: rgba(255, 255, 255, .09);
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 181, 107, .08), transparent 35%),
    #090b0f !important;
  color: #f4f1e9 !important;
}

html[data-theme="classic"] body.info-page .info-header {
  background: rgba(9, 11, 15, .90) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.info-page :is(.info-brand, .info-main h1) {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body.info-page :is(.info-brand span, .info-kicker, .info-card h2, .info-step::before, .back-home) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.info-page .info-card {
  background: linear-gradient(145deg, #13161d, #11141b) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.info-page .info-footer {
  background: #0d1016 !important;
  border-color: var(--tw-ref-border) !important;
  color: #656a75 !important;
}

/* =========================================================
   Checkout / product / storefront common dark surfaces
   ========================================================= */
html[data-theme="classic"] body :is(.site-header, .header) {
  background: rgba(9, 11, 15, .92) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body :is(.logo, .logo-word, .logo-word span, .nav-link, .admin-link, .cart-label) {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body :is(.logo-word span, .nav-link:hover, .admin-link:hover) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body .checkout-page {
  background: transparent !important;
}

html[data-theme="classic"] body .checkout-step {
  background: #10131a !important;
  border-color: var(--tw-ref-border) !important;
  color: var(--tw-ref-muted) !important;
}

html[data-theme="classic"] body .checkout-step.active {
  background: rgba(216, 181, 107, .09) !important;
  border-color: rgba(216, 181, 107, .34) !important;
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body .checkout-step-number {
  background: #171b24 !important;
  color: var(--tw-ref-muted) !important;
}

html[data-theme="classic"] body .checkout-step.active .checkout-step-number {
  background: var(--tw-ref-gold-light) !important;
  color: #17130b !important;
}

html[data-theme="classic"] body :is(.checkout-card, .product-detail-card) {
  background: linear-gradient(145deg, #13161d, #11141b) !important;
}

html[data-theme="classic"] body :is(.checkout-card h2, .page-title h1, .product-detail-card h1, .product-name, .section-title) {
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body :is(.checkout-page .eyebrow, .page-title .eyebrow, .product-detail-page .back-link, .detail-stock, .price strong, .discount-label, .product-detail-link) {
  color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body :is(.footer, .site-footer) {
  background: #0d1016 !important;
  color: var(--tw-ref-muted) !important;
  border-color: var(--tw-ref-border) !important;
}

/* =========================================================
   Admin dashboard + order center
   ========================================================= */
html[data-theme="classic"] body.admin-page,
html[data-theme="classic"] body.admin-orders-page {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(216, 181, 107, .08), transparent 35%),
    #090b0f !important;
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-header, .header),
html[data-theme="classic"] body.admin-orders-page .header {
  background: rgba(9, 11, 15, .95) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-card, .stat-card, .panel),
html[data-theme="classic"] body.admin-orders-page :is(.stat-card, .filters-card, .orders-card, .order-card) {
  background: linear-gradient(145deg, #13161d, #11141b) !important;
  border-color: var(--tw-ref-border) !important;
  color: var(--tw-ref-text) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-title p, .admin-card-header p, .admin-muted),
html[data-theme="classic"] body.admin-orders-page :is(.page-heading p, .stat-card span, .order-date, .info-item span, .message) {
  color: var(--tw-ref-muted) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-title .eyebrow, .admin-card-header .eyebrow),
html[data-theme="classic"] body.admin-orders-page .eyebrow {
  color: var(--tw-ref-gold) !important;
}

html[data-theme="classic"] body.admin-page :is(.btn-primary),
html[data-theme="classic"] body.admin-orders-page .btn-primary {
  background: linear-gradient(135deg, #f0d695, #c49a4d) !important;
  color: #17130b !important;
  border-color: #e4c780 !important;
  margin-top: 15px;
}

html[data-theme="classic"] body.admin-page :is(.btn-outline),
html[data-theme="classic"] body.admin-orders-page .btn-outline {
  background: rgba(255, 255, 255, .025) !important;
  color: #d9dbe1 !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

html[data-theme="classic"] body.admin-orders-page .field,
html[data-theme="classic"] body.admin-orders-page .status-tab {
  background: #0d1016 !important;
  color: var(--tw-ref-text) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-orders-page .status-tab.active {
  background: var(--tw-ref-gold-light) !important;
  color: #17130b !important;
  border-color: var(--tw-ref-gold-light) !important;
}

html[data-theme="classic"] body.admin-orders-page :is(.order-number, .order-total strong) {
  color: var(--tw-ref-gold-light) !important;
}

/* Admin login itself: lock the reference palette so other layers cannot drift it. */
html[data-theme="classic"] body.admin-login-page {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(185, 139, 55, .13), transparent 38%),
    radial-gradient(ellipse at 90% 85%, rgba(91, 101, 125, .12), transparent 35%),
    #090b0f !important;
  color: #f4f1e9 !important;
}

html[data-theme="classic"] body.admin-login-page .admin-login-layout {
  background: rgba(15, 17, 23, .72) !important;
  border-color: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .45), 0 0 70px rgba(216, 181, 107, .045) !important;
}

html[data-theme="classic"] body.admin-login-page .admin-intro {
  background: linear-gradient(145deg, rgba(216, 181, 107, .12), transparent 48%), #11141b !important;
}

html[data-theme="classic"] body.admin-login-page .admin-form-panel {
  background: rgba(19, 22, 29, .92) !important;
}

/* Keep old dark utility panels intentionally dark in classic mode. */
html[data-theme="classic"] body :is(.dark-panel, .admin-dark-panel) {
  background: #11141b !important;
  color: var(--tw-ref-text) !important;
}

/* =========================================================
   Emerald account/profile — complete coverage for real account classes
   ========================================================= */
html[data-theme="emerald"] body.account-page {
  --acc-bg: #f5f8f5;
  --acc-card: #ffffff;
  --acc-card-soft: #f8fbf8;
  --acc-gold: #426657;
  --acc-gold-light: #557568;
  --acc-text: #14241c;
  --acc-muted: #617068;
  --acc-border: #d7dfda;
  --acc-danger: #b64d4d;
  --acc-success: #2f7653;
  background: linear-gradient(180deg, #fbfbf8, #eef2ef) !important;
  color: #14241c !important;
}

html[data-theme="emerald"] body.account-page .account-header {
  background: rgba(255, 255, 255, .94) !important;
  border-color: #d7dfda !important;
  box-shadow: 0 10px 30px rgba(43, 70, 57, .05) !important;
}

html[data-theme="emerald"] body.account-page :is(.account-brand, .account-brand-mark, .account-brand span:last-child span) {
  color: #426657 !important;
}

html[data-theme="emerald"] body.account-page .account-brand {
  color: #14241c !important;
}

html[data-theme="emerald"] body.account-page .account-brand-mark {
  border-color: #8eaa9d !important;
  background: #eef5f0 !important;
}

html[data-theme="emerald"] body.account-page .header-links a {
  color: #52645a !important;
}

html[data-theme="emerald"] body.account-page .header-links a:hover {
  color: #2f7653 !important;
}

html[data-theme="emerald"] body.account-page :is(.page-heading, .account-sidebar, .account-panel) {
  border-color: #d7dfda !important;
}

html[data-theme="emerald"] body.account-page .page-heading::before,
html[data-theme="emerald"] body.account-page .section-heading {
  color: #426657 !important;
}

html[data-theme="emerald"] body.account-page .page-heading h1 {
  color: #14241c !important;
}

html[data-theme="emerald"] body.account-page .page-heading p,
html[data-theme="emerald"] body.account-page .section-description,
html[data-theme="emerald"] body.account-page .customer-summary p,
html[data-theme="emerald"] body.account-page .form-note,
html[data-theme="emerald"] body.account-page .order-date,
html[data-theme="emerald"] body.account-page .order-detail-label,
html[data-theme="emerald"] body.account-page .account-footer {
  color: #617068 !important;
}

html[data-theme="emerald"] body.account-page :is(.account-sidebar, .account-panel) {
  background: #ffffff !important;
  box-shadow: 0 18px 50px rgba(43, 70, 57, .07) !important;
}

html[data-theme="emerald"] body.account-page .customer-summary {
  border-color: #d7dfda !important;
}

html[data-theme="emerald"] body.account-page .customer-avatar {
  border-color: #9ab2a5 !important;
  background: radial-gradient(circle at 30% 20%, rgba(85, 117, 104, .15), transparent 70%), #eef5f0 !important;
  color: #426657 !important;
  box-shadow: 0 8px 28px rgba(43, 70, 57, .08) !important;
  align-content: center;
}

html[data-theme="emerald"] body.account-page .customer-summary h2 {
  color: #14241c !important;
}

html[data-theme="emerald"] body.account-page .account-nav button {
  color: #52645a !important;
}

html[data-theme="emerald"] body.account-page .account-nav button:hover {
  background: #f1f6f2 !important;
  border-color: #d7dfda !important;
  color: #2f5143 !important;
}

html[data-theme="emerald"] body.account-page .account-nav button.active {
  background: linear-gradient(100deg, #edf5ef, #f7faf8) !important;
  border-color: #c7d7ce !important;
  color: #426657 !important;
}

html[data-theme="emerald"] body.account-page .account-nav button.active::before {
  border-color: #426657 !important;
  background: #426657 !important;
  box-shadow: 0 0 10px rgba(66, 102, 87, .25) !important;
}

html[data-theme="emerald"] body.account-page .account-nav .logout-button {
  color: #b64d4d !important;
  border-color: rgba(182, 77, 77, .18) !important;
}

html[data-theme="emerald"] body.account-page .account-nav .logout-button:hover {
  background: rgba(182, 77, 77, .06) !important;
  border-color: rgba(182, 77, 77, .30) !important;
}

html[data-theme="emerald"] body.account-page .form-group label {
  color: #314239 !important;
}

html[data-theme="emerald"] body.account-page .form-group input {
  background: #ffffff !important;
  color: #14241c !important;
  border-color: #cbd7d0 !important;
}

html[data-theme="emerald"] body.account-page .form-group input::placeholder {
  color: #8a9890 !important;
}

html[data-theme="emerald"] body.account-page .form-group input:focus {
  border-color: #557568 !important;
  box-shadow: 0 0 0 3px rgba(85, 117, 104, .12) !important;
}

html[data-theme="emerald"] body.account-page .form-group input[readonly] {
  background: #f0f4f1 !important;
  color: #738078 !important;
  border-color: #d7dfda !important;
}

html[data-theme="emerald"] body.account-page .primary-button {
  background: linear-gradient(135deg, #3ca97d, #357c62) !important;
  color: #fff !important;
  border-color: #3f6255 !important;
  box-shadow: 0 10px 24px rgba(63, 98, 85, .16) !important;
}

html[data-theme="emerald"] body.account-page .secondary-button {
  background: #ffffff !important;
  color: #426657 !important;
  border-color: #cbd7d0 !important;
}

html[data-theme="emerald"] body.account-page .order-card {
  background: #ffffff !important;
  border-color: #d7dfda !important;
}

html[data-theme="emerald"] body.account-page .order-card:hover {
  border-color: #a9c0b4 !important;
}

html[data-theme="emerald"] body.account-page .order-card-header,
html[data-theme="emerald"] body.account-page .order-items {
  border-color: #e0e6e2 !important;
}

html[data-theme="emerald"] body.account-page :is(.order-number, .order-detail-value, .order-items h3) {
  color: #25372e !important;
}

html[data-theme="emerald"] body.account-page .order-status {
  background: rgba(85, 117, 104, .08) !important;
  border-color: rgba(85, 117, 104, .22) !important;
  color: #426657 !important;
}

html[data-theme="emerald"] body.account-page .order-item {
  color: #53645b !important;
}

html[data-theme="emerald"] body.account-page :is(.empty-state, .loading-state) {
  background: #f8faf8 !important;
  border-color: #cfdad3 !important;
  color: #617068 !important;
}

html[data-theme="emerald"] body.account-page .form-message.error {
  background: rgba(182, 77, 77, .06) !important;
  border-color: rgba(182, 77, 77, .18) !important;
  color: #a84444 !important;
}

html[data-theme="emerald"] body.account-page .form-message.success {
  background: rgba(47, 118, 83, .07) !important;
  border-color: rgba(47, 118, 83, .18) !important;
  color: #2f7653 !important;
}

/* =========================================================
   Small accessibility / UX consistency improvements
   ========================================================= */
html[data-theme] body :is(button, input, textarea, select, a) {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {

  html[data-theme] body *,
  html[data-theme] body *::before,
  html[data-theme] body *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   Final classic parity layer
   Admin dashboard/order UI follows the same reference palette
   as admin-login instead of retaining older black/gold variants.
   ========================================================= */
html[data-theme="classic"] body.admin-page,
html[data-theme="classic"] body.admin-orders-page {
  --dash-bg: #090b0f;
  --dash-panel: #13161d;
  --dash-panel-light: #171b24;
  --dash-gold: #d8b56b;
  --dash-gold-light: #f2d99a;
  --dash-text: #f4f1e9;
  --dash-muted: #9296a1;
  --dash-border: rgba(255, 255, 255, .09);
}

html[data-theme="classic"] body.admin-page .admin-page,
html[data-theme="classic"] body.admin-page .admin-main {
  color: var(--tw-ref-text);
}

html[data-theme="classic"] body.admin-page :is(.form-group input, .form-group textarea, .form-group select, .form-group input[type="file"]) {
  background: #0d1016 !important;
  color: var(--tw-ref-text) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-page .form-group label {
  color: #d9dbe1 !important;
}

html[data-theme="classic"] body.admin-page .form-group input:focus,
html[data-theme="classic"] body.admin-page .form-group textarea:focus,
html[data-theme="classic"] body.admin-page .form-group select:focus {
  border-color: var(--tw-ref-gold) !important;
  box-shadow: 0 0 0 4px rgba(216, 181, 107, .08) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-page thead, .admin-table th) {
  background: #f2d99a !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-page th, .admin-table th) {
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-page td, .admin-table td) {
  border-color: rgba(255, 255, 255, .055) !important;
}

html[data-theme="classic"] body.admin-page :is(.admin-page tbody tr:hover, .admin-table tbody tr:hover) {
  background: rgba(255, 255, 255, .025) !important;
}

html[data-theme="classic"] body.admin-page .product-image-preview img {
  background: #0b0e13 !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-page .admin-toast {
  color: #17130b !important;
  background: var(--tw-ref-gold) !important;
}

html[data-theme="classic"] body.admin-page .admin-footer {
  color: var(--tw-ref-muted) !important;
  border-color: var(--tw-ref-border) !important;
}

html[data-theme="classic"] body.admin-page .order-card h3 {
  color: var(--tw-ref-gold-light) !important;
}

/* =========================================================
   Final admin parity overrides
   ========================================================= */
html[data-theme="classic"] body.admin-page .stats-grid .stat-card:nth-child(1) {
  border-top: 3px solid #f2d99a !important;
}

html[data-theme="classic"] body.admin-page .stats-grid .stat-card:nth-child(2) {
  border-top: 3px solid #d8b56b !important;
}

html[data-theme="classic"] body.admin-page .stats-grid .stat-card:nth-child(3) {
  border-top: 3px solid #c49a4d !important;
}

html[data-theme="classic"] body.admin-page .stats-grid .stat-card:nth-child(4) {
  border-top: 3px solid #a97935 !important;
}

html[data-theme="classic"] body.admin-page .stats-grid .stat-card strong {
  color: #f2d99a !important;
}

html[data-theme="emerald"] body.admin-page .stats-grid .stat-card:nth-child(1) {
  border-top: 3px solid #176b4b !important;
}

html[data-theme="emerald"] body.admin-page .stats-grid .stat-card:nth-child(2) {
  border-top: 3px solid #2b8060 !important;
}

html[data-theme="emerald"] body.admin-page .stats-grid .stat-card:nth-child(3) {
  border-top: 3px solid #4a9578 !important;
}

html[data-theme="emerald"] body.admin-page .stats-grid .stat-card:nth-child(4) {
  border-top: 3px solid #0f563c !important;
}

html[data-theme="emerald"] body.admin-page .stats-grid .stat-card strong {
  color: #176b4b !important;
}

.button-cart {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 13px;
}

.size-button-header-404 {
  font-size: 80%;
}

/* TrendWatch theme compatibility patch — login, checkout and 404 */
html[data-theme="emerald"] body.tw-auth-page .form-message.success,
html[data-theme="emerald"] body .form-message.success {
  color: #174b35 !important;
  background: #e6f4eb !important;
  border: 1px solid #a8d8b9 !important;
}

html[data-theme="emerald"] body.tw-auth-page .form-message.error,
html[data-theme="emerald"] body .form-message.error {
  color: #842b2b !important;
  background: #fff0f0 !important;
  border: 1px solid #e8b8b8 !important;
}

html[data-theme="classic"] body.tw-auth-page .form-message.success,
html[data-theme="classic"] body .form-message.success {
  color: #d9ffe6 !important;
  background: rgba(23, 107, 75, .22) !important;
  border: 1px solid rgba(105, 190, 145, .45) !important;
}

html[data-theme="classic"] body.tw-auth-page .form-message.error,
html[data-theme="classic"] body .form-message.error {
  color: #ffe0e0 !important;
  background: rgba(180, 50, 50, .2) !important;
  border: 1px solid rgba(220, 90, 90, .42) !important;
}

html[data-theme="emerald"] body .premium-summary-thumb {
  background: #edf3ef !important;
  border: 1px solid #d4e0d8 !important;
  color: #244a3c !important;
}

html[data-theme="emerald"] body .premium-summary-thumb strong {
  color: #244a3c !important;
}

html[data-theme="classic"] body .premium-summary-thumb {
  background: linear-gradient(145deg, #29231a, #11151b) !important;
  border: 1px solid rgba(214, 169, 91, .48) !important;
  color: #e7bd72 !important;
}

html[data-theme="classic"] body .premium-summary-thumb strong {
  color: #e7bd72 !important;
}

html[data-theme="emerald"] body .tw-404-dot {
  background: #426657 !important;
  box-shadow: 0 0 0 4px rgba(66, 102, 87, .15) !important;
}

html[data-theme="classic"] body .tw-404-dot {
  background: #e7bd72 !important;
  box-shadow: 0 0 0 4px rgba(231, 189, 114, .18) !important;
}

/* Improve readable contrast for auth-page labels and controls in both palettes. */
html[data-theme="emerald"] body.tw-auth-page :is(label, .field-hint, .field-optional, .customer-auth-subtitle) {
  color: #34463d !important;
}

html[data-theme="classic"] body.tw-auth-page :is(label, .field-hint, .field-optional, .customer-auth-subtitle) {
  color: #e2e5e9 !important;
}

html[data-theme="emerald"] body.tw-auth-page input::placeholder {
  color: #737f78 !important;
  opacity: 1;
}

html[data-theme="classic"] body.tw-auth-page input::placeholder {
  color: #aab2bd !important;
  opacity: 1;
}


/* Account profile action spacing (replaces legacy inline style). */
.account-page #saveProfileButton {
  margin-top: 3%;
}