/* ================================================================
   TrueKatana — Account Dashboard
   Design System: --one-* tokens (from layout.css :root)
   ================================================================ */


/* ── Dashboard Base ── */
.one-dashboard { background-color: var(--one-bg-primary); color: var(--one-text-primary); padding: 0 0 72px; min-height: 680px; }
.one-dashboard-container { max-width: 1500px; margin: auto; padding: 0 24px; }
.one-dashboard-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.one-dashboard-sidebar,
.one-dashboard-main { min-width: 0; }


/* ── Auth (login/signup) ── */
.one-dashboard-auth { max-width: 800px; padding: 60px 16px; margin: auto; }
.one-dashboard-auth-card { overflow: hidden; background: var(--one-bg-card); color: var(--one-text-primary); border: 0; border-radius: var(--one-radius-sm); box-shadow: var(--one-shadow-sm); }
.one-dashboard-auth-title { background: var(--one-bg-void); color: var(--one-text-primary); font-family: var(--one-font-body); font-size: 1.35em; font-weight: 800; letter-spacing: -0.01em; padding: 12px 50px; margin-top:0}
.one-dashboard-auth-body { padding: 50px; }
.one-dashboard-auth-body a { color: var(--one-text-secondary); line-height: 26px; }
.one-dashboard-auth-body a:hover { color: var(--one-link); }
.one-dashboard-auth-label { color: var(--one-text-primary); }
.one-dashboard-auth-text { color: var(--one-text-primary); }
.one-dashboard-auth-text a { text-decoration: underline; }
.one-dashboard-auth-links { margin: 24px 0 0; padding-left: 16px; }
.one-dashboard-auth-note { padding-top: 8px; color: var(--one-text-secondary); }
.one-dashboard-auth-message { color: var(--one-text-secondary); margin-bottom: 16px; padding: 0 12px; text-align: center; }
.one-dashboard-auth-message svg { display: block; margin: 0 auto 10px; color: var(--one-text-primary); }


/* ── Account Hero ── */
.one-dashboard-hero { position: relative; margin: 0 calc(50% - 50vw) 48px; padding: 72px max(24px, calc((100vw - 1500px) / 2 + 24px)) 68px; overflow: hidden; background: linear-gradient(180deg, #17181c 0%, #111216 100%); text-align: center; }
.one-dashboard-hero:before,
.one-dashboard-hero:after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(88,25,23,0.62), rgba(0,0,0,0)); pointer-events: none; }
.one-dashboard-hero:before { top: 0; }
.one-dashboard-hero:after { bottom: 0; }
.one-dashboard-hero-intro { position: relative; z-index: 1; }
.one-dashboard-hero-kicker { margin: 0 0 18px; color: var(--one-red); font-size: 0.78em; font-weight: 900; letter-spacing: 0.32em; text-transform: uppercase; }
.one-dashboard-hero h1 { margin: 0; color: var(--one-text-primary); font-family: var(--one-font-body); font-size: clamp(3.2rem, 3.5vw, 4rem); font-weight: 900; line-height: 0.96; letter-spacing: -0.02em; }
.one-dashboard-hero-intro p:last-child { margin: 24px auto 0; max-width: 720px; color: var(--one-text-muted); font-size: 1.08em; line-height: 1.55; overflow-wrap: anywhere; }
.one-dashboard-logout { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; color: var(--one-text-muted); text-decoration: none; border-top: 1px solid rgba(255,255,255,0.08); }
.one-dashboard-logout:hover { color: var(--one-text-primary); }


/* ── Sidebar Menu ── */
.one-dashboard-menu { position: sticky; top: 24px; overflow: hidden; background: rgba(16,17,20,0.88); color: var(--one-text-primary); border: 1px solid var(--one-border); border-radius: 8px; }
.one-dashboard-menu-title { color: var(--one-text-primary); font-family: var(--one-font-body); font-size: 1.25em; font-weight: 900; letter-spacing: -0.01em; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.one-dashboard-menu-body { padding: 10px 0 0; }
.one-dashboard-menu-body a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px 0 20px; color: var(--one-text-secondary); line-height: 1; font-size: 0.98em; font-weight: 800; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.one-dashboard-menu-body a:hover { color: var(--one-text-primary); background: rgba(255,255,255,0.035); }
.one-dashboard-menu-body a.one-dashboard-menu-active { color: var(--one-red); background: rgba(200,50,45,0.08); }
.one-dashboard-menu-body a.one-dashboard-menu-active:before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--one-red); border-radius: 0 999px 999px 0; }
.one-dashboard-menu-body ul { padding-left: 0; margin: 10px 0 0; list-style: none; }
.one-dashboard-menu-body svg { flex: 0 0 auto; }
.one-dashboard-separator { height: 1px; margin: 12px 0; background: var(--one-border); }


/* ── Content Card (orders, settings, etc.) ── */
.one-dashboard-card { overflow: hidden; margin-bottom: 16px; background: var(--one-bg-card); color: var(--one-text-secondary); font-size: 1em; border: 1px solid var(--one-border); border-radius: 8px; }
.one-dashboard-card-title { background: var(--one-bg-card); color: var(--one-text-primary); font-family: var(--one-font-body); font-size: 1.3em; font-weight: 700; letter-spacing: -0.01em; padding: 10px 18px; border-bottom: 1px solid var(--one-border); margin-top:5px}
.one-dashboard-card-body { padding: 24px; }
.one-dashboard-card-body--flush { padding: 0; }
.one-dashboard-card-body--wide { padding: 32px 40px; }
.one-dashboard-card-body a { color: var(--one-text-secondary); line-height: 26px; }
.one-dashboard-card-body a:hover { color: var(--one-link); }
.one-dashboard-card-body td,
.one-dashboard-card-body th { color: var(--one-text-secondary); line-height: 1.25em; }
.one-dashboard-card-body tr { border-bottom: 1px solid var(--one-border); }
.one-dashboard-card-body th { border-bottom: 1px solid var(--one-border) !important; color: var(--one-text-muted); font-size: 0.85em; font-weight: 600; letter-spacing: 0.03em; }
.one-dashboard-card-body td a { color: var(--one-text-secondary); }
.one-dashboard-card-body td a:hover { color: var(--one-link); }
.one-dashboard-card-body td img { border: 1px solid var(--one-border-subtle); }
.one-dashboard-card-body dt { color: var(--one-text-muted); }
.one-dashboard-card-body dd { color: var(--one-text-primary); }
.one-dashboard-card-body hr { background-color: var(--one-border); opacity: 0.5; }
.one-dashboard-card-code { background: #000; }


/* ── Forms and Buttons ── */
.one-dashboard-form { margin: 0; }
.one-dashboard-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 520px; }
.one-dashboard-field { margin-bottom: 18px; }
.one-dashboard-field:last-child { margin-bottom: 0; }
.one-dashboard-label { display: block; margin-bottom: 8px; color: var(--one-text-primary); font-weight: 700; }
.one-dashboard-input { display: block; width: 100%; min-height: 46px; padding: 10px 14px; background-color: var(--one-bg-void); border: 1px solid var(--one-border-hover); border-radius: var(--one-radius-sm); color: var(--one-text-primary); font: inherit; }
.one-dashboard-input:focus { outline: none; background-color: var(--one-bg-void); border-color: var(--one-link); color: var(--one-text-primary); box-shadow: 0 0 0 2px rgba(122,155,181,0.15); }
.one-dashboard-input::placeholder { font-size: 14px; font-weight: normal; color: var(--one-text-muted); }
.one-dashboard-input.is-invalid { border-color: var(--one-red); box-shadow: 0 0 0 2px rgba(200,50,45,0.15); }
.one-dashboard-error { min-height: 20px; padding-top: 4px; color: var(--one-red); font-size: 0.9em; }
.one-dashboard-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(200,50,45,0.35); border-radius: var(--one-radius-sm); background: rgba(200,50,45,0.12); color: var(--one-text-primary); }
.one-dashboard-alert[hidden],
.one-dashboard-error[hidden],
.one-dashboard-spinner[hidden] { display: none; }
.one-dashboard-actions { display: grid; }
.one-dashboard-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 0; border-radius: var(--one-radius-sm); background: var(--one-red); color: #fff!important; font: inherit; font-weight: 900; line-height: 1; cursor: pointer; text-decoration: none; }
.one-dashboard-btn:hover { background: var(--one-red-hover); color: #fff; }
.one-dashboard-btn--large { min-height: 52px; font-size: 1.05em; }
.one-dashboard-btn--pill { border-radius: var(--one-radius-full); }
.one-dashboard-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: one-dashboard-spin 0.7s linear infinite; }
@keyframes one-dashboard-spin { to { transform: rotate(360deg); } }
.one-dashboard-empty { padding: 48px 20px; text-align: center; }
.one-dashboard-empty h5 { margin: 0 0 18px; color: var(--one-text-primary); font-size: 1.2em; }
.one-dashboard-detail-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.one-dashboard-detail-list dt { text-align: right; font-weight: 500; }
.one-dashboard-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.one-dashboard-detail-list + .one-dashboard-detail-list { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--one-border); }
.one-dashboard-strong { color: var(--one-text-primary); font-weight: 800; }
.one-dashboard-center { text-align: center; }
.one-dashboard-pay-prompt { padding: 42px 20px; text-align: center; }
.one-dashboard-pay-prompt strong { color: var(--one-text-primary); }
.one-dashboard-pay-prompt .one-dashboard-btn { margin-top: 16px; }
.one-dashboard-table-wrap { overflow-x: auto; }
.one-dashboard-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.one-dashboard-table th,
.one-dashboard-table td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--one-border); }
.one-dashboard-table th { text-align: left; text-transform: uppercase; }
.one-dashboard-table img { max-width: 95px; max-height: 95px; border-radius: 5px; }
.one-dashboard-table-center { text-align: center; }
.one-dashboard-total-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto); gap: 10px 18px; margin: 28px 0 0; padding: 0 24px; }
.one-dashboard-total-list dt { color: var(--one-text-muted); font-weight: 500; text-align: right; }
.one-dashboard-total-list dd { margin: 0; text-align: right; }
.one-dashboard-tracking-table { width: 100%; border-collapse: collapse; }
.one-dashboard-tracking-table td { padding: 5px 8px; vertical-align: top; }


/* ── Orders List (card layout) ── */
.one-orders-list { display: grid; gap: 14px; padding: 18px; }
.one-order-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: start; gap:12px; padding:15px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; text-decoration: none !important; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.one-order-item:hover { background-color: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.14); transform: translateY(-1px); }
.one-order-item-img { flex-shrink: 0; width: 100px; height: auto; align-self: start; }
.one-order-item-img img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top center; border-radius: 8px; border: 1px solid var(--one-border-subtle); }
.one-order-item-info { flex: 1; min-width: 0; }
.one-order-item-po { color: var(--one-text-primary); font-weight: 900; font-size: 1.05em; line-height: 1.35; letter-spacing: 0.01em; }
.one-order-item-title { color: var(--one-text-secondary); font-weight: 500; font-size: 0.92em; line-height: 1.4; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.one-order-item-meta { color: var(--one-text-muted); font-size: 0.83em;}
.one-order-item-date-inline { color: var(--one-text-muted); font-size: 0.82em;}
.one-order-item-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 160px; padding-right: 22px; text-align: center; position: relative; padding-top:10px;}
.one-order-item-price { color: var(--one-text-primary); font-weight: 900; font-size: 1.45em; line-height: 1; }
.one-order-item-summary svg { position: absolute; right: 0; top: 2px; opacity: 0.5; }
.one-dashboard-status { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 4px 12px; border-radius: var(--one-radius-full); color: #fff; font-size: 0.78em; font-weight: 900; line-height: 1; white-space: nowrap; }
.one-dashboard-status--primary { background: var(--one-red); }
.one-dashboard-status--warning { background: #9f7a18; }
.one-dashboard-status--success { background: var(--one-success); }
.one-dashboard-status--danger { background: var(--one-red); }
.one-dashboard .page-container { margin: 24px 0 0; }
.one-dashboard .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.one-dashboard .page-item { display: block; }
.one-dashboard .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; color: var(--one-text-secondary); text-decoration: none; background: rgba(255,255,255,0.03); border: 1px solid var(--one-border); border-radius: 999px; font-weight: 800; line-height: 1; }
.one-dashboard .page-link:hover,
.one-dashboard .page-item.active .page-link { color: #fff; background: var(--one-red); border-color: var(--one-red); }
.one-dashboard .page-item.disabled .page-link { color: var(--one-text-muted); pointer-events: none; opacity: 0.45; }

@media (max-width: 767.98px) {
  .one-orders-list { padding: 12px; }
  .one-order-item { grid-template-columns: 72px minmax(0, 1fr); padding: 14px 12px; gap: 12px; }
  .one-order-item-img { width: 72px; height: auto; }
  .one-order-item-img img { width: 100%; height: auto; }
  .one-order-item-summary { grid-column: 2; align-items: flex-start; min-width: 0; padding-right: 0; text-align: left; }
  .one-order-item-summary svg { display: none; }
  .one-order-item-price { font-size: 1.16em; }
}


/* ── Wishlist ── */
.one-dashboard-wishlist-groups { max-width: 900px; }
.one-dashboard-wishlist-group { margin-bottom: 36px; }
.one-dashboard-wishlist-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--one-text-primary); font-size: 0.95em; font-weight: 800; }
.one-dashboard-wishlist-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.one-dashboard-wishlist-item { overflow: hidden; border: 1px solid var(--one-border); border-radius: var(--one-radius-sm); background: var(--one-bg-void); }
.one-dashboard-wishlist-image { display: block; margin: 0; }
.one-dashboard-wishlist-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.one-dashboard-wishlist-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; color: var(--one-text-secondary); }
.one-dashboard-wishlist-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--one-text-secondary); cursor: pointer; }
.one-dashboard-wishlist-item svg { color: var(--one-text-secondary); }
.one-dashboard-wishlist-item svg:hover { color: var(--one-text-primary); }


/* ── Responsive ── */
@media (max-width: 991.98px) {
  .one-dashboard { min-height: auto; padding: 0 0 52px; }
  .one-dashboard-auth {margin: auto; }
  .one-dashboard-auth-body { padding: 20px; }
  .one-dashboard-auth-title { padding: 14px 20px; }
  .one-dashboard-container { padding: 0 12px 40px; }
  .one-dashboard-layout { grid-template-columns: 1fr; gap: 16px; }
  .one-dashboard-hero { margin: 0 calc(50% - 50vw) 20px; padding: 44px 20px 38px; }
  .one-dashboard-hero h1 { font-size: clamp(2.4rem, 12vw, 3.7rem); }
  .one-dashboard-hero-intro p:last-child { margin-top: 18px; font-size: 0.95em; }
  .one-dashboard-menu { position: static; }
  .one-dashboard-menu-title { display: none; }
  .one-dashboard-menu-body { padding: 8px; overflow-x: auto; }
  .one-dashboard-menu-body ul { display: flex; gap: 8px; margin: 0; }
  .one-dashboard-menu-body li { flex: 1 0 auto; }
  .one-dashboard-menu-body a { justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 6px; }
  .one-dashboard-menu-body a.one-dashboard-menu-active:before { display: none; }
  .one-dashboard-logout { display: none; }
  .one-dashboard-card-title {font-size: 1.35em; }
  .one-dashboard-card-body--wide { padding: 22px; }
  .one-dashboard-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one-dashboard-detail-list { grid-template-columns: 1fr; gap: 3px; }
  .one-dashboard-detail-list dt { text-align: left; }
  .one-dashboard-total-list { padding: 0; }
}


/* ── Dashboard Logo ── */
.one-dash-logo-container { height: 90px; padding-left: 30px; padding-top: 10px; }
.one-dash-logo-img { max-height: 70px; }
.one-dash-logo-text a { color: var(--one-red); font-size: 1.8em; }
.one-dash-logo-text a:hover { color: var(--one-red-hover); }


/* ================================================================
   TrueKatana (100010) — Closed /account module SITE THEME.

   The structural skeleton is brand-neutral and lives in
   /account/assets/account.css. THIS section owns TrueKatana's visual
   identity for the new module: color tokens, the dashboard light skin,
   and the login background image. Other sites override these in their own
   sites/{APP_ID}/{APP_ID}.live.account.css.

   Tokens are scoped to .one-account-body (the new module's <body>) so the
   legacy .one-dashboard-* pages above are not affected.
   ================================================================ */

.one-account-body {
  --one-bg-void: #0d0e10;
  --one-bg-hero: #121315;
  --one-bg-primary: #151619;
  --one-bg-card: #1c1d21;
  --one-bg-elevated: #242528;
  --one-bg-surface: #2d2e32;

  --one-red: #c8322d;
  --one-red-hover: #a8281f;
  --one-red-active: #8c2019;

  --one-text-primary: #f0f0f0;
  --one-text-body: #e0e0e0;
  --one-text-secondary: #a0a0a0;
  --one-text-muted: #5c6370;

  --one-link: #7a9bb5;
  --one-success: #2b8a4a;
  --one-success-bright: #2b8a4a;
  --one-warning-vivid: #ffe000;

  --one-border: #2c2e33;
  --one-border-subtle: #232428;
  --one-border-hover: #3a3c42;
}

/* Dashboard + cart drawer light skin — token overrides cascade to children */
.one-account-admin,
#onesite-cart-sidebar {
  --one-bg-void: #f4f6fa;
  --one-bg-hero: #ffffff;
  --one-bg-primary: #f4f6fa;
  --one-bg-card: #ffffff;
  --one-bg-elevated: #f1f4f9;
  --one-bg-surface: #e9edf3;
  --one-text-primary: #1b1f2a;
  --one-text-body: #3a4150;
  --one-text-secondary: #6b7280;
  --one-text-muted: #9aa1ad;
  --one-border: #e6e9ef;
  --one-border-subtle: #eef1f5;
  --one-border-hover: #d7dbe3;
  --one-link: #009ef7;
}

/* Login (auth) full-bleed background image */
.one-account-auth-bg {
  background-image: url("https://d3524jlyu2md0e.cloudfront.net/c4/1773083725732510003.webp");
}

/* Cart drawer payment icons are dimmed (opacity .7) for the dark storefront;
   restore full opacity in the light account drawer so they read on white. */
#onesite-cart-sidebar .onesite-sidebar-trust-icons img {
  opacity: 1;
}
