/* ==========================================================================
   GAMEZON — Merchant Console & Seller Portal (SaaS Architecture)
   Visual SSOT: DESIGN_SYSTEM.md & public.css tokens
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET & BASE FOR SAAS CONSOLE
   -------------------------------------------------------------------------- */
body.seller_saas_body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  font-family: var(--ff);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Modern Clean Micro-Scrollbars across SaaS Workspace */
.saas_workspace::-webkit-scrollbar,
.chat_room_list::-webkit-scrollbar,
.chat_messages_scroll::-webkit-scrollbar,
.saas_nav::-webkit-scrollbar,
.seller_login_panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.saas_workspace::-webkit-scrollbar-track,
.chat_room_list::-webkit-scrollbar-track,
.chat_messages_scroll::-webkit-scrollbar-track,
.saas_nav::-webkit-scrollbar-track,
.seller_login_panel::-webkit-scrollbar-track {
  background: transparent;
}
.saas_workspace::-webkit-scrollbar-thumb,
.chat_room_list::-webkit-scrollbar-thumb,
.chat_messages_scroll::-webkit-scrollbar-thumb,
.saas_nav::-webkit-scrollbar-thumb,
.seller_login_panel::-webkit-scrollbar-thumb {
  background: rgba(18, 21, 26, 0.16);
  border-radius: var(--r-pill);
}
.saas_workspace::-webkit-scrollbar-thumb:hover,
.chat_room_list::-webkit-scrollbar-thumb:hover,
.chat_messages_scroll::-webkit-scrollbar-thumb:hover,
.saas_nav::-webkit-scrollbar-thumb:hover,
.seller_login_panel::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 21, 26, 0.32);
}

.saas_console_layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   1. SAAS SIDEBAR
   -------------------------------------------------------------------------- */
.saas_sidebar {
  width: 28rem;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 50;
  transition: width 0.25s ease, transform 0.25s ease;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
}

.saas_sidebar_head {
  min-height: 7.2rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.saas_logo {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
  text-decoration: none;
}
.saas_logo img {
  display: block;
  width: auto;
  height: 4.8rem;
  flex-shrink: 0;
  object-fit: contain;
}
.saas_logo strong {
  display: block;
  font-size: 1.85rem;
  font-weight: var(--fw-black);
  letter-spacing: var(--track-tight);
  color: var(--ink);
  line-height: 1.1;
}
.saas_logo .txt span {
  display: block;
  font-size: 1.18rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  line-height: 1.2;
}
.saas_logo strong + .txt span,
.saas_logo .txt span:not(:only-child) {
  margin-top: 0.15rem;
}

.btn_collapse_sidebar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--muted);
}
.btn_collapse_sidebar .svg_ico {
  transition: transform 0.2s ease;
}
.btn_collapse_sidebar:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

/* Sidebar Merchant Mini Card */
.saas_merchant_card {
  padding: 1.6rem 2rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}
.saas_merchant_card .avatar_wrap {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  flex-shrink: 0;
}
.saas_merchant_card .avatar_wrap .img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--foot);
  box-shadow: 0 0 0 2px var(--primary);
  overflow: hidden;
}
.saas_merchant_card .avatar_wrap .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.saas_merchant_card .online_dot {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--ok);
  border: 2px solid var(--surface-2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.saas_merchant_card .m_info {
  min-width: 0;
  flex: 1;
}
.saas_merchant_card .name {
  font-size: 1.44rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saas_merchant_card .mail {
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
.saas_merchant_card .meta {
  margin-top: 0.4rem;
}
.badge_kyc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  background: rgba(222, 163, 29, 0.16);
  border: 1px solid rgba(222, 163, 29, 0.4);
  border-radius: var(--r-pill);
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.03em;
  color: var(--primary-deep);
}
.badge_kyc img {
  width: 1.2rem;
  height: 1.2rem;
  filter: invert(72%) sepia(85%) saturate(450%) hue-rotate(5deg);
}

/* Nav Menu */
.saas_nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.6rem 1.4rem;
}
.nav_group_label {
  padding: 0.8rem 1.2rem 0.6rem;
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.saas_nav ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.saas_nav li a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 1.32rem;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.saas_nav li a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.saas_nav li a:hover .nav_ico,
.saas_nav li a:hover .ico {
  color: var(--ink);
}
.saas_nav li.on a {
  background: var(--primary-tint);
  color: var(--ink);
  font-weight: var(--fw-black);
}
.saas_nav li.on a:hover {
  background: var(--primary-soft);
}
.saas_nav li.on a .nav_ico,
.saas_nav li.on a .ico {
  color: var(--primary-deep);
}
.saas_nav li.on a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 3.5px;
  background: var(--primary);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.saas_nav .nav_ico,
.saas_nav .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.18s ease;
}
.saas_nav .nav_ico .svg_ico,
.saas_nav .ico .svg_ico {
  width: 1.85rem;
  height: 1.85rem;
}
.svg_ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.badge_num {
  margin-left: auto;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: var(--fw-black);
  line-height: 2rem;
  text-align: center;
  transition: all 0.18s ease;
}
.saas_nav li.on .badge_num {
  background: var(--primary);
  color: var(--on-primary);
}
.badge_star {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
  background: var(--primary-wash);
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
}

/* Sidebar Escrow Note */
.saas_sidebar_note {
  margin: 0 1.4rem 1.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--note-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.saas_sidebar_note .note_title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
}
.saas_sidebar_note .note_title img {
  width: 1.4rem;
  height: 1.4rem;
}
.saas_sidebar_note p {
  margin: 0.5rem 0 0;
  font-size: 1.14rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Sidebar Foot */
.saas_sidebar_foot {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}
.foot_link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 1.26rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.18s ease;
}
.foot_link .nav_ico,
.foot_link .ico {
  color: var(--muted);
  transition: color 0.18s ease;
}
.foot_link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.foot_link:hover .nav_ico,
.foot_link:hover .ico {
  color: var(--ink);
}
.foot_link.logout:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}
.foot_link.logout:hover .nav_ico,
.foot_link.logout:hover .ico {
  color: var(--danger);
}

/* Collapsed Sidebar */
.saas_sidebar.collapsed {
  width: 7.2rem;
}
.saas_sidebar.collapsed .saas_logo {
  display: none;
}
.saas_sidebar.collapsed .saas_sidebar_head {
  justify-content: center;
  padding: 0 1rem;
}
.saas_sidebar.collapsed .saas_merchant_card .m_info,
.saas_sidebar.collapsed .nav_group_label,
.saas_sidebar.collapsed .saas_nav li a span:not(.nav_ico),
.saas_sidebar.collapsed .badge_num,
.saas_sidebar.collapsed .badge_star,
.saas_sidebar.collapsed .saas_sidebar_note,
.saas_sidebar.collapsed .foot_link span:not(.nav_ico) {
  display: none;
}
.saas_sidebar.collapsed .btn_collapse_sidebar .svg_ico {
  transform: rotate(180deg);
}
.saas_sidebar.collapsed .saas_nav li a {
  justify-content: center;
  padding: 1.1rem 0;
}

/* --------------------------------------------------------------------------
   2. MAIN SAAS CONTAINER & TOPBAR
   -------------------------------------------------------------------------- */
.saas_main_container {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.saas_topbar {
  height: 6.4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  flex-shrink: 0;
  z-index: 40;
}
.topbar_left {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.topbar_menu_btn {
  display: none;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 0;
}
.topbar_crumbs {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.32rem;
  color: var(--faint);
}
.topbar_crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.topbar_crumbs a:hover {
  color: var(--ink);
}
.topbar_crumbs .curr {
  color: var(--ink);
  font-weight: var(--fw-black);
}

.topbar_right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.btn_topbar_action {
  height: 3.8rem;
  padding: 0 1.6rem;
  font-size: 1.28rem;
  line-height: 3.8rem;
}
.topbar_status_pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 182, 122, 0.08);
  border: 1px solid rgba(0, 182, 122, 0.3);
  border-radius: var(--r-pill);
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  color: var(--ok);
}
.dot_pulse {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 rgba(0, 182, 122, 0.4);
  animation: pulse_anim 2s infinite;
}
@keyframes pulse_anim {
  0% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 182, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0); }
}

.topbar_divider {
  width: 1px;
  height: 2.4rem;
  background: var(--line);
}
.topbar_icon_btn {
  position: relative;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.topbar_icon_btn:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}
.topbar_icon_btn .badge_dot {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
}

.topbar_user_profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 1.2rem 0.4rem 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.topbar_user_profile:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}
.topbar_user_profile .avatar_wrap {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
}
.topbar_user_profile .avatar_wrap .img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.topbar_user_profile .avatar_wrap .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topbar_user_profile .online_dot {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface-2);
}
.topbar_user_profile .u_name {
  font-size: 1.28rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. SAAS WORKSPACE PANE ARCHITECTURE
   -------------------------------------------------------------------------- */
.saas_workspace {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6) var(--space-7);
  background: var(--bg);
}
.saas_workspace.is_chat {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.seller_pane {
  display: none;
  max-width: 140rem;
  margin: 0 auto;
}
.seller_pane.on {
  display: block;
  animation: fadeInPane 0.2s ease-out;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
}
.pane_header .hi {
  margin: 0 0 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--primary-deep);
}
.pane_header h1 {
  font-size: 2.8rem;
  font-weight: var(--fw-black);
  letter-spacing: var(--track-tight);
  color: var(--ink);
  line-height: 1.15;
}
.pane_header .sub_lead {
  margin-top: 0.6rem;
  font-size: 1.38rem;
  color: var(--muted);
}
.mini_kpi {
  padding: 1.4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  text-align: right;
}
.mini_kpi .k {
  display: block;
  font-size: 1.14rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--muted);
}
.mini_kpi .v {
  display: block;
  font-size: 2.2rem;
  font-weight: var(--fw-black);
  margin-top: 0.2rem;
}

.seller_pane .trust_strip.box {
  margin-bottom: var(--space-5);
}

/* Panels */
.seller_pane .panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.seller_pane .panel .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.seller_pane .panel .bar h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  color: var(--ink);
}
.seller_pane .panel .bar .link {
  font-size: 1.32rem;
  font-weight: var(--fw-bold);
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.seller_pane .panel .bar .link:hover {
  color: var(--ink);
}
.bar_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  font-size: 1.18rem;
  font-weight: var(--fw-black);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
}
.bar_tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.bar_tag.ok img {
  width: 1.3rem;
  height: 1.3rem;
}

.seller_pane .tabs {
  padding: var(--space-3) var(--space-5) 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: var(--space-5);
}
.seller_pane .tabs button {
  position: relative;
  padding: 0 0.4rem 1.2rem;
  font-size: 1.34rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.seller_pane .tabs button:hover {
  color: var(--ink);
}
.seller_pane .tabs button.on {
  color: var(--ink);
  font-weight: var(--fw-black);
}
.seller_pane .tabs button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--r-pill);
}

.seller_pane .panel .pad {
  padding: var(--space-5);
}
.seller_pane .seller_form .grid.pad {
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.seller_pane .btns.pad {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.seller_pane .note,
.seller_pane .todo {
  margin: 1.8rem 2.8rem 2.2rem;
}
/* --------------------------------------------------------------------------
   4. STATS TILES (DASHBOARD)
   -------------------------------------------------------------------------- */
.seller_pane .stat_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-5);
}
.seller_pane .stat_list li {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.seller_pane .stat_list li:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.seller_pane .stat_list a {
  display: block;
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-top: 0.36rem solid var(--primary);
  text-decoration: none;
}
.seller_pane .stat_list a:hover {
  background: var(--primary-tint);
}
.seller_pane .stat_list .k {
  font-size: 1.28rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.seller_pane .stat_list .num {
  margin-top: 1rem;
  font-size: 2.4rem;
  font-weight: var(--fw-black);
  letter-spacing: var(--track-tight);
  line-height: 1;
  color: var(--ink);
}
.seller_pane .stat_list .num.price {
  color: var(--price);
}
.seller_pane .stat_list .s {
  margin-top: 0.8rem;
  font-size: 1.22rem;
  color: var(--faint);
  line-height: var(--lh-snug);
}

/* --------------------------------------------------------------------------
   5. DEAL & ORDER ITEMS (CLEAN LISTING SHELVES)
   -------------------------------------------------------------------------- */
.deal_list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.deal_list li {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  transition: background 0.15s ease;
}
.deal_list li:first-child {
  border-top: none;
}
.deal_list li:hover {
  background: var(--surface-2);
}
.deal_list .cover {
  position: relative;
  width: 7.6rem;
  height: 7.6rem;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(18, 21, 26, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.deal_list .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal_list .cat_badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.2rem 0.55rem;
  background: rgba(18, 21, 26, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.deal_list .cat_badge.rent {
  background: rgba(16, 120, 151, 0.9);
}
.deal_list .cat_badge.boost {
  background: rgba(120, 40, 180, 0.9);
}
.deal_list .cat_badge.companion {
  background: rgba(180, 80, 20, 0.9);
}

.deal_list .info {
  min-width: 0;
  flex: 1;
}
.deal_list .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.deal_list .tag_pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.deal_list .order_code {
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
  letter-spacing: 0.02em;
}
.deal_list .title {
  font-size: 1.54rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: var(--lh-snug);
}
.deal_list .pitch {
  margin: 0.5rem 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 1.26rem;
  font-weight: var(--fw-semi);
  color: var(--text);
  line-height: 1.45;
}
.deal_list .sub {
  margin-top: 0.4rem;
  font-size: 1.24rem;
  color: var(--muted);
  line-height: 1.4;
}
.deal_list .rate_unit {
  font-size: 1.22rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}

.deal_list .pay {
  width: 15rem;
  flex-shrink: 0;
  text-align: right;
}
.deal_list .price {
  font-size: 1.8rem;
  font-weight: var(--fw-black);
  color: var(--price);
  line-height: 1.1;
}
.deal_list .via {
  margin-top: 0.4rem;
  font-size: 1.16rem;
  color: var(--faint);
}
.deal_list .act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  width: 15rem;
  flex-shrink: 0;
}
.deal_list .act .btn,
.deal_list .act .btn_line {
  width: 100%;
  font-size: 1.24rem;
  line-height: 3.4rem;
  padding: 0 1.2rem;
  text-align: center;
  border-radius: var(--r-pill);
}
.deal_list .act .btn_line.ghost {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--surface);
}
.deal_list .act .btn_line.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-2);
}
.deal_list .act .via_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  height: auto;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: 1.22rem;
  font-weight: var(--fw-black);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  pointer-events: none;
  box-sizing: border-box;
}
.deal_list .act .via_badge.review {
  background: var(--info-soft);
  color: var(--info);
  border: 1px solid rgba(61, 79, 154, 0.2);
}

/* Status Chips */
.status {
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  font-size: 1.18rem;
  font-weight: var(--fw-black);
  line-height: 1;
}
.status.live,
.status.completed {
  background: var(--ok-soft);
  color: var(--ok);
}
.status.review,
.status.waiting,
.status.paid {
  background: var(--info-soft);
  color: var(--info);
}
.status.processing {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.status.rejected,
.status.refund,
.status.dispute {
  background: var(--danger-soft);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   6. PUBLISHER WORKSTATION (CATEGORIES SELECTOR & FORMS)
   -------------------------------------------------------------------------- */
.publisher_panel .bar_desc {
  margin-top: 0.4rem;
  font-size: 1.28rem;
  color: var(--muted);
}
.cat_selector_wrap {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5);
}
.cat_selector_label {
  font-size: 1.28rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.cat_selector_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.cat_card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.2rem 2rem;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cat_card:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: var(--sh-card);
}
.cat_card.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 0 0 1px var(--primary);
}
.cat_card .cat_name {
  font-size: 1.44rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: 1.25;
}
.cat_card .cat_desc {
  margin: 0.6rem 0 1.2rem;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--muted);
  flex: 1;
}
.cat_card .cat_tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.cat_card.active .cat_tag {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-color: rgba(222, 163, 29, 0.4);
}

.form_section_head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 2.8rem 1rem;
  border-top: 1px solid var(--line);
}
.form_section_head:first-of-type {
  border-top: none;
}
.form_section_head .step_num {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.34rem;
  font-weight: var(--fw-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form_section_head strong {
  display: block;
  font-size: 1.42rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.form_section_head p {
  margin-top: 0.2rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.cat_fieldset {
  display: none;
  animation: fadeInField 0.2s ease-in-out;
}
.cat_fieldset.active {
  display: block;
}
@keyframes fadeInField {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.upload_guideline .upload_box {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 2.2rem 2.6rem;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.upload_guideline .upload_box .img {
  width: 4.8rem;
  height: 4.8rem;
  flex-shrink: 0;
}
.upload_guideline .upload_box .txt {
  flex: 1;
  min-width: 0;
}
.upload_guideline .upload_box .txt strong {
  display: block;
  font-size: 1.38rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.upload_guideline .upload_box .txt p {
  margin-top: 0.4rem;
  font-size: 1.22rem;
  color: var(--muted);
}
.upload_guideline .upload_box button {
  flex-shrink: 0;
}

.seller_form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.seller_form .field {
  margin: 0;
}
.seller_form .full {
  grid-column: 1 / -1;
}
.seller_form .checks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.seller_form .checks label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: var(--fs-md);
  font-weight: var(--fw-med);
  color: var(--text);
  cursor: pointer;
}
.seller_form .checks input {
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.seller_form .btns .btn,
.seller_form .btns .btn_line {
  border-radius: var(--r-pill);
  font-size: 1.34rem;
  line-height: 4.2rem;
  padding: 0 2.4rem;
}
.seller_form .btns .btn_line:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  color: var(--ink);
}
.seller_form .form_note {
  flex: 1 1 100%;
  margin: 0.4rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.45;
}
.seller_form .form_note.ok {
  color: var(--ok);
}
.seller_form .form_note.err {
  color: var(--danger);
}
.seller_form .form_note[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   7. ORDER DETAILS PAGE VIEW (FULLSCREEN DUAL-COLUMN — NOT A MODAL!)
   -------------------------------------------------------------------------- */
.order_detail_page_wrap {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.order_page_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.btn_back_to_orders,
.btn_back_nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.28rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-bottom: 0.8rem;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn_back_to_orders:hover,
.btn_back_nav:hover {
  color: var(--ink);
  transform: translateX(-3px);
}
.order_page_header .code_row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.order_page_header .code_row .cat_badge {
  position: static;
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  font-size: 1.14rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.order_page_header .code_row .cat_badge.rent {
  background: var(--info-soft);
  color: var(--info);
  border-color: rgba(61, 79, 154, 0.22);
}
.order_page_header .code_row .cat_badge.boost {
  background: var(--note-soft);
  color: var(--note);
  border-color: rgba(106, 90, 42, 0.22);
}
.order_page_header .code_row .cat_badge.companion {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(44, 122, 69, 0.22);
}
.order_page_header h1 {
  font-size: 3.2rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.order_subtitle {
  margin-top: 0.8rem;
  font-size: 1.38rem;
  color: var(--muted);
}
.order_page_header .right_actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-shrink: 0;
}

.order_page_layout {
  display: grid;
  grid-template-columns: 1fr 38rem;
  gap: 2.8rem;
  align-items: flex-start;
}

.order_col_main,
.order_col_side {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.order_box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 2.4rem 2.8rem;
}
.box_title_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.box_title_row h2 {
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.sec_badge {
  font-size: 1.15rem;
  font-weight: var(--fw-black);
  padding: 0.25rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.sec_badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.sec_badge.warn {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

/* Item Summary Row */
.item_row {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.item_row .cover {
  width: 9.6rem;
  height: 9.6rem;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.item_row .details {
  flex: 1;
  min-width: 0;
}
.item_row h3 {
  font-size: 1.8rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: var(--lh-snug);
}
.specs_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  margin-top: 1rem;
}
.spec_item {
  font-size: 1.24rem;
}
.spec_item .k {
  color: var(--faint);
  margin-right: 0.4rem;
}
.spec_item .v {
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.item_row .price_col {
  width: 18rem;
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: 2.4rem;
  flex-shrink: 0;
}
.item_row .price_col .lbl {
  font-size: 1.12rem;
  font-weight: var(--fw-bold);
  color: var(--faint);
  text-transform: uppercase;
}
.item_row .price_col .price {
  margin: 0.4rem 0;
  line-height: 1.15;
}
.item_row .price_col .price .price_main {
  display: block;
  font-size: 2.4rem;
  font-weight: var(--fw-black);
  color: var(--price);
  letter-spacing: var(--track-tight);
  font-variant-numeric: tabular-nums;
}
.item_row .price_col .price .price_note {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.22rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  line-height: 1.35;
}
.escrow_tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
}

/* Timeline Cards Grid (Page View) */
.timeline_cards_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.det_timeline_card {
  padding: 1.6rem 1.8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
}
.det_timeline_card.done {
  border-color: rgba(0, 182, 122, 0.4);
  background: rgba(0, 182, 122, 0.04);
}
.det_timeline_card.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 0 0 1px var(--primary);
}
.det_timeline_card .card_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.det_timeline_card .step_idx {
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  color: var(--faint);
  text-transform: uppercase;
}
.det_timeline_card.done .step_idx {
  color: var(--ok);
}
.det_timeline_card.active .step_idx {
  color: var(--primary-deep);
}
.det_timeline_card .step_time {
  font-size: 1.1rem;
  color: var(--faint);
}
.det_timeline_card .step_title {
  display: block;
  font-size: 1.34rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.det_timeline_card .step_desc {
  margin-top: 0.4rem;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Op Content Body */
.op_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.34rem;
}
.op_row:last-child {
  border-bottom: none;
}
.op_row .k {
  color: var(--muted);
}
.op_row .v {
  font-weight: var(--fw-black);
  color: var(--ink);
}
.op_row .v.ok {
  color: var(--ok);
}
.op_note {
  margin-top: 1.4rem;
  padding: 1.2rem 1.6rem;
  background: var(--surface-2);
  border-left: 3.5px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 1.26rem;
  line-height: 1.5;
  color: var(--text);
}

/* Audit List */
.audit_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.audit_list li {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  font-size: 1.24rem;
  line-height: 1.45;
}
.audit_list .time {
  color: var(--faint);
  font-family: monospace;
  flex-shrink: 0;
  width: 14rem;
}
.audit_list .log_txt {
  color: var(--text);
  flex: 1;
}

.verified_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--ok-soft);
  border: 1px solid rgba(44, 122, 69, 0.22);
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  color: var(--ok);
  white-space: nowrap;
}
.verified_badge img {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

/* Side Column Cards */
.buyer_meta_head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.buyer_meta_head .avatar {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.buyer_meta_head .b_name {
  display: block;
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.buyer_meta_head .b_id {
  display: block;
  font-size: 1.2rem;
  color: var(--faint);
  margin-top: 0.2rem;
}
.buyer_stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 1.2rem;
  text-align: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.buyer_stats .k {
  display: block;
  font-size: 1.1rem;
  color: var(--faint);
}
.buyer_stats .v {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  margin-top: 0.3rem;
}
.buyer_stats .v.ok {
  color: var(--ok);
}
.w100 {
  width: 100%;
  text-align: center;
}

.settle_calc {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.calc_row {
  display: flex;
  justify-content: space-between;
  font-size: 1.32rem;
  color: var(--text);
}
.calc_row.total {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.54rem;
  font-weight: var(--fw-black);
}
.settle_target_card {
  padding: 1.4rem 1.6rem;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.settle_target_card .bank_row {
  display: flex;
  justify-content: space-between;
  font-size: 1.34rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.settle_target_card .holder_row {
  display: flex;
  justify-content: space-between;
  font-size: 1.16rem;
  color: var(--muted);
}

.policy_card p {
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--muted);
}
.policy_bullet_list {
  margin: 1.2rem 0;
  padding-left: 2rem;
  font-size: 1.22rem;
  color: var(--text);
  line-height: 1.6;
}
.link_rules {
  font-size: 1.22rem;
  font-weight: var(--fw-bold);
  color: var(--primary-deep);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. REAL-TIME MESSAGES WORKSTATION
   -------------------------------------------------------------------------- */
.seller_pane.pane_chat.on {
  display: flex;
  flex-direction: column;
  max-width: none;
  height: 100%;
  margin: 0;
}
.seller_pane.pane_chat .chat_workstation {
  flex: 1;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  min-height: 0;
}
.chat_workstation {
  padding: 0;
  overflow: hidden;
}
.chat_layout {
  display: flex;
  height: 70rem;
  width: 100%;
  min-height: 0;
}
.seller_pane.pane_chat .chat_layout {
  flex: 1;
  height: auto;
}
.chat_sidebar {
  width: 34rem;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-height: 0;
}
.chat_search {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.chat_search input {
  width: 100%;
  height: 3.8rem;
  padding: 0 1.4rem 0 3.6rem;
  background: var(--surface-2) url("../img/icon-search.svg") no-repeat 1.2rem center / 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1.26rem;
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.chat_search input:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.chat_search input::placeholder {
  color: var(--faint);
  font-weight: var(--fw-semi);
}
.chat_filter_tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--space-4);
  gap: 0;
  overflow-x: auto;
}
.chat_filter_tabs button {
  padding: 1rem 0.2rem;
  margin-right: var(--space-4);
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.chat_filter_tabs button:hover {
  color: var(--ink);
}
.chat_filter_tabs button.on {
  color: var(--ink);
  font-weight: var(--fw-black);
}
.chat_filter_tabs button.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}

.chat_room_list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
}
.chat_room_list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 1.2rem var(--space-4);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.chat_room_list li:hover {
  background: var(--surface-2);
}
.chat_room_list li.active {
  background: var(--primary-tint);
}
.chat_room_list li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 3px;
  background: var(--primary);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.chat_room_list .room_avatar {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.chat_room_list .room_avatar img {
  width: 2.2rem;
  height: 2.2rem;
}
.chat_room_list .room_meta {
  flex: 1;
  min-width: 0;
}
.chat_room_list .room_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.chat_room_list .room_title {
  font-size: 1.3rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat_room_list .room_time {
  font-size: 1.1rem;
  color: var(--faint);
  flex-shrink: 0;
}
.chat_room_list .room_sub {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.16rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat_room_list .room_sub > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat_room_list .room_snippet {
  margin-top: 0.3rem;
  font-size: 1.16rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat_room_list .room_badge {
  font-size: 1.02rem;
  font-weight: var(--fw-black);
  padding: 0.12rem 0.5rem;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--r-xs);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.chat_room_list .room_badge.rent {
  background: var(--info-soft);
  color: var(--info);
}
.chat_room_list .room_badge.boost {
  background: var(--note-soft);
  color: var(--note);
}
.chat_room_list .room_badge.companion {
  background: var(--ok-soft);
  color: var(--ok);
}
.chat_room_list .room_unread {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 1.4rem;
}
.chat_room_list li.active .room_unread {
  opacity: 0;
}

.chat_main_panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.chat_header {
  padding: 1.2rem var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat_header .room_info {
  flex: 1;
  min-width: 0;
}
.chat_header .title_row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.chat_header .ico_group {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat_header .ico_group img {
  width: 1.6rem;
  height: 1.6rem;
}
.chat_header h3 {
  font-size: 1.48rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: 1.2;
}
.chat_header .participants {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 1.18rem;
  color: var(--muted);
}
.chat_header .participants span strong {
  color: var(--ink);
}

.chat_order_context_strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: var(--space-4);
  flex-shrink: 0;
}
.chat_order_context_strip .order_brief {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1;
}
.chat_order_context_strip .order_img {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.chat_order_context_strip .order_txt {
  min-width: 0;
  flex: 1;
}
.chat_order_context_strip .code_line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.chat_order_context_strip .order_code_badge {
  font-size: 1.16rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
}
.chat_order_context_strip .order_cat_tag {
  font-size: 1.02rem;
  font-weight: var(--fw-bold);
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
}
.chat_order_context_strip .order_title {
  display: block;
  font-size: 1.28rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.chat_order_context_strip .order_meta {
  display: block;
  font-size: 1.14rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.chat_order_context_strip .order_act .btn_line {
  font-size: 1.2rem;
  line-height: 3.2rem;
  padding: 0 1.2rem;
  white-space: nowrap;
  border-radius: var(--r-pill);
}

.chat_security_strip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0.85rem var(--space-5);
  background: var(--note-soft);
  border-bottom: 1px solid var(--line);
  color: var(--note);
  font-size: 1.18rem;
  line-height: 1.45;
  flex-shrink: 0;
}
.chat_security_strip p {
  margin: 0;
}
.chat_security_strip .sec_ico {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.chat_security_strip .sec_ico img {
  width: 1.5rem;
  height: 1.5rem;
}

.chat_messages_scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.msg_item.system {
  text-align: center;
  margin: 0;
}
.msg_item.system .time {
  font-size: 1.1rem;
  color: var(--faint);
  display: block;
  margin-bottom: 0.4rem;
}
.msg_item.system .sys_bubble {
  display: inline-block;
  max-width: 56rem;
  padding: 0.55rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 1.16rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  line-height: 1.4;
}

.msg_item.cs,
.msg_item.self,
.msg_item.buyer,
.msg_item.card_event {
  max-width: 72%;
  display: flex;
  flex-direction: column;
}
.msg_item.self {
  align-self: flex-end;
}
.msg_item.card_event {
  max-width: 78%;
}
.msg_item .sender_head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 0.4rem;
  font-size: 1.18rem;
}
.msg_item.self .sender_head {
  justify-content: flex-end;
}
.msg_item .sender_head strong {
  color: var(--ink);
  font-weight: var(--fw-black);
}
.msg_item .sender_head .time {
  font-size: 1.1rem;
  color: var(--faint);
}
.msg_item .tag_staff,
.msg_item .tag_you,
.msg_item .tag_buyer {
  font-size: 1.02rem;
  font-weight: var(--fw-black);
  padding: 0.12rem 0.55rem;
  border-radius: var(--r-xs);
  letter-spacing: 0.02em;
}
.msg_item .tag_staff {
  background: var(--ink);
  color: var(--primary);
}
.msg_item .tag_you {
  background: var(--primary);
  color: var(--on-primary);
}
.msg_item .tag_buyer {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.msg_item .bubble {
  padding: 1.2rem 1.6rem;
  border-radius: var(--r-md);
  font-size: 1.32rem;
  line-height: 1.5;
}
.msg_item.cs .bubble,
.msg_item.buyer .bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-left-radius: 0.2rem;
  color: var(--ink);
}
.msg_item.self .bubble {
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-top-right-radius: 0.2rem;
  color: var(--ink);
}

/* Event cards inside chat */
.credential_card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-5);
}
.credential_card .card_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
}
.credential_card .badge_secure {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.24rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
}
.credential_card .badge_secure img {
  width: 1.5rem;
  height: 1.5rem;
}
.credential_card .stamp {
  font-size: 1.05rem;
  font-weight: var(--fw-black);
  background: var(--ok-soft);
  color: var(--ok);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.credential_card .cred_grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.credential_card .cred_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 1.26rem;
}
.credential_card .cred_row .k {
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.credential_card .cred_row .v {
  font-family: monospace;
  font-weight: var(--fw-black);
  color: var(--ink);
  font-size: 1.34rem;
  letter-spacing: 0.04em;
}
.credential_card .btn_copy {
  padding: 0.35rem 0.9rem;
  font-size: 1.12rem;
  font-weight: var(--fw-bold);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.15s ease;
}
.credential_card .btn_copy:hover {
  background: var(--primary-wash);
  border-color: var(--primary);
  color: var(--ink);
}
.credential_card .card_foot {
  margin-top: 1.4rem;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--faint);
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}

.timer_card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--primary-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.timer_card .t_icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(222, 163, 29, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timer_card .t_icon img {
  width: 2.2rem;
  height: 2.2rem;
}
.timer_card strong {
  display: block;
  font-size: 1.36rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.timer_card p {
  margin-top: 0.35rem;
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--muted);
}
.timer_card .countdown_text {
  font-weight: var(--fw-black);
  color: var(--danger);
  font-family: monospace;
}

.schedule_card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.schedule_card .sch_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.34rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.schedule_card .sch_badge {
  font-size: 1.08rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--info-soft);
  color: var(--info);
  font-weight: var(--fw-bold);
}
.schedule_card p {
  font-size: 1.24rem;
  color: var(--muted);
  line-height: 1.45;
}

.chat_input_bar {
  padding: var(--space-3) var(--space-5) var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat_input_bar .quick_replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}
.chat_input_bar .chip_reply {
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 1.16rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chat_input_bar .chip_reply:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--ink);
}
.chat_form {
  display: flex;
  gap: var(--space-3);
}
.chat_form input {
  flex: 1;
  height: var(--btn-h);
  padding: 0 var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1.32rem;
  color: var(--ink);
}
.chat_form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.chat_form button {
  height: var(--btn-h);
  padding: 0 var(--space-5);
  font-size: 1.3rem;
  border-radius: var(--r-md);
  font-weight: var(--fw-black);
}

/* --------------------------------------------------------------------------
   9. REVIEWS PANE
   -------------------------------------------------------------------------- */
.review_summary_box {
  display: grid;
  grid-template-columns: 24rem 1fr 28rem;
  gap: 3.2rem;
  align-items: center;
  padding: 1rem 0;
}
.rating_hero {
  text-align: center;
  padding-right: 2.4rem;
  border-right: 1px solid var(--line);
}
.rating_hero .big_score {
  font-size: 5.6rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.rating_hero .stars {
  margin-top: 0.6rem;
  font-size: 2.2rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.rating_hero .count {
  margin-top: 0.6rem;
  font-size: 1.24rem;
  color: var(--muted);
}
.rating_breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.bar_row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.24rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.bar_row .star_lvl {
  width: 5.4rem;
}
.bar_row .bar_bg {
  flex: 1;
  height: 0.8rem;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.bar_row .bar_fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-pill);
}
.bar_row .bar_num {
  width: 2.8rem;
  text-align: right;
  color: var(--ink);
}
.rating_metrics {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 2.4rem;
  border-left: 1px solid var(--line);
}
.metric_badge {
  padding: 1.2rem 1.6rem;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric_badge .m_k {
  font-size: 1.24rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.metric_badge .m_v {
  font-size: 1.42rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.metric_badge .m_v.ok {
  color: var(--ok);
}

.review_list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.review_list li {
  padding: 2.4rem 2.8rem;
  border-top: 1px solid var(--line);
}
.review_head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.review_head .user_info {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.review_head .img {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.review_head .uname {
  font-size: 1.44rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.review_head .verified_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  border-radius: var(--r-pill);
}
.review_head .verified_tag img {
  width: 1.2rem;
  height: 1.2rem;
}
.review_head .meta {
  margin-top: 0.3rem;
  font-size: 1.22rem;
  color: var(--faint);
}
.review_head .score {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: var(--fw-black);
}
.review_head .score_num {
  font-size: 1.4rem;
  color: var(--ink);
  margin-left: 0.4rem;
}
.review_content {
  margin-top: 1.4rem;
  font-size: 1.38rem;
  line-height: 1.55;
  color: var(--text);
}
.seller_reply {
  margin-top: 1.4rem;
  padding: 1.4rem 1.8rem;
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.seller_reply .reply_title {
  font-size: 1.22rem;
  font-weight: var(--fw-black);
  color: var(--primary-deep);
}
.seller_reply p {
  margin-top: 0.4rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. FINANCE & BANK FILE
   -------------------------------------------------------------------------- */
.bank_display_card {
  padding: 2.8rem 3.2rem;
  background: linear-gradient(135deg, #1b212c 0%, #10141c 100%);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bank_display_card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(222, 163, 29, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bank_logo_strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bank_brand {
  font-size: 2.4rem;
  font-weight: var(--fw-black);
  color: #ffc83b;
  letter-spacing: -0.02em;
}
.bank_type {
  font-size: 1.26rem;
  color: rgba(255, 255, 255, 0.6);
}
.bank_acc_num {
  margin: 3.2rem 0;
  font-size: 2.6rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.18em;
  font-family: monospace;
  color: #fff;
}
.bank_holder_row {
  display: flex;
  gap: 4.8rem;
}
.bank_holder_row .sub_k {
  display: block;
  font-size: 1.12rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.bank_holder_row .sub_v {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.4rem;
  color: #fff;
}
.bank_holder_row .sub_v.ok {
  color: #34d399;
}

.settle_overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.settle_card {
  padding: 2rem 2.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
}
.settle_card .lbl {
  font-size: 1.24rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.settle_card .val {
  margin-top: 0.8rem;
  font-size: 2.2rem;
  font-weight: var(--fw-black);
  color: var(--ink);
  line-height: 1;
}
.settle_card .val.price {
  color: var(--price);
}
.settle_card .desc {
  margin-top: 0.8rem;
  font-size: 1.22rem;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   11. CONSOLE SETTINGS
   -------------------------------------------------------------------------- */
.status_toggle_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.toggle_info strong {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.toggle_info p {
  margin-top: 0.4rem;
  font-size: 1.32rem;
  color: var(--muted);
}
.switch_ui {
  position: relative;
  display: inline-block;
  width: 5.4rem;
  height: 3rem;
  flex-shrink: 0;
}
.switch_ui input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch_ui .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--line-strong);
  transition: 0.25s ease;
  border-radius: var(--r-pill);
}
.switch_ui .slider::before {
  position: absolute;
  content: "";
  height: 2.2rem;
  width: 2.2rem;
  left: 0.4rem;
  bottom: 0.4rem;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.switch_ui input:checked + .slider {
  background-color: var(--primary);
}
.switch_ui input:checked + .slider::before {
  transform: translateX(2.4rem);
}

/* --------------------------------------------------------------------------
   12. SELLER PORTAL LOGIN PAGE (seller-login.html)
   -------------------------------------------------------------------------- */
body.seller_portal_body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--ff);
  color: var(--text);
}

.seller_login_layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.seller_login_brand {
  width: 48rem;
  background: linear-gradient(145deg, #181d26 0%, #0d1017 100%);
  color: #fff;
  padding: 4.8rem 4.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.seller_login_brand::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(222, 163, 29, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.brand_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand_top .logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
}
.brand_top .logo img {
  width: 3.6rem;
  height: 3.6rem;
}
.brand_top .logo p {
  font-size: 2rem;
  font-weight: var(--fw-black);
  color: #fff;
  margin: 0;
}
.portal_badge {
  padding: 0.3rem 0.8rem;
  background: rgba(222, 163, 29, 0.2);
  border: 1px solid rgba(222, 163, 29, 0.4);
  border-radius: var(--r-pill);
  font-size: 1.12rem;
  font-weight: var(--fw-black);
  color: var(--primary);
  text-transform: uppercase;
}

.brand_center {
  margin: 4.8rem 0;
}
.brand_kicker {
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.brand_center h1 {
  font-size: 3.2rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}
.brand_desc {
  margin-top: 1.6rem;
  font-size: 1.44rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.merchant_perks {
  list-style: none;
  margin: 3.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.merchant_perks li {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.merchant_perks .ico {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.merchant_perks .ico img {
  width: 2rem;
  height: 2rem;
}
.merchant_perks strong {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: #fff;
}
.merchant_perks p {
  margin-top: 0.3rem;
  font-size: 1.24rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.legal_strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.4);
}
.legal_strip a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}
.legal_strip a:hover {
  color: #fff;
}

/* Right Login Panel */
.seller_login_panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.8rem 6.4rem;
  background: var(--bg);
  overflow-y: auto;
}
.panel_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link_back_store {
  font-size: 1.32rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  text-decoration: none;
}
.link_back_store:hover {
  color: var(--ink);
}
.header_switch {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.32rem;
  color: var(--muted);
}
.link_buyer {
  font-weight: var(--fw-black);
  color: var(--ink);
  text-decoration: underline;
}

.panel_box {
  max-width: 48rem;
  width: 100%;
  margin: 4rem auto;
}
.badge_approved {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--ok-soft);
  border: 1px solid rgba(0, 182, 122, 0.3);
  border-radius: var(--r-pill);
  font-size: 1.18rem;
  font-weight: var(--fw-black);
  color: var(--ok);
  margin-bottom: 1.2rem;
}
.panel_box h2 {
  font-size: 3rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.box_sub {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--muted);
}

.seller_auth_form {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.form_group .form_hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--faint);
}
.code_notice_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.code_notice_box span {
  display: block;
  font-size: 1.16rem;
  color: var(--muted);
}
.code_notice_box strong {
  display: block;
  font-size: 1.34rem;
  color: var(--ink);
  margin-top: 0.2rem;
}
.btn_change_email {
  background: none;
  border: none;
  font-size: 1.24rem;
  font-weight: var(--fw-bold);
  color: var(--primary-deep);
  cursor: pointer;
  text-decoration: underline;
}

.resend_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}
.timer_txt {
  font-size: 1.22rem;
  color: var(--faint);
}
.btn_resend {
  background: none;
  border: none;
  font-size: 1.24rem;
  font-weight: var(--fw-bold);
  color: var(--primary-deep);
  cursor: pointer;
}
.btn_resend:disabled {
  color: var(--faint);
  cursor: not-allowed;
}
.link_forgot {
  font-size: 1.22rem;
  color: var(--muted);
  text-decoration: underline;
}

.auth_actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}
.auth_actions .btn,
.auth_actions .btn_line {
  width: 100%;
  font-size: 1.4rem;
  line-height: 4.4rem;
  text-align: center;
}

.seller_apply_card {
  margin-top: 4rem;
  padding: 2.2rem 2.4rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.apply_txt strong {
  display: block;
  font-size: 1.38rem;
  font-weight: var(--fw-black);
  color: var(--ink);
}
.apply_txt p {
  margin-top: 0.4rem;
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--muted);
}
.seller_apply_card .btn_line {
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. SELLER APPLY LANDING (seller-apply.html — public storefront shell)
   -------------------------------------------------------------------------- */
.seller_apply {
  padding: var(--space-7) 0 var(--space-8);
}
.seller_apply .path {
  margin-bottom: var(--space-4);
}
.seller_apply .apply_hero {
  gap: var(--space-6);
  margin-bottom: var(--space-7);
  padding: var(--space-6);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}
.seller_apply .apply_hero .copy {
  flex: 1 1 36rem;
  min-width: 0;
}
.seller_apply .apply_hero .pic {
  flex: 0 1 42rem;
  width: 100%;
  max-width: 42rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--sh-card);
}
.seller_apply .apply_hero .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
  pointer-events: none;
}
.seller_apply .apply_hero .hi {
  margin: 0 0 0.6rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--primary-deep);
}
.seller_apply .apply_hero h1 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-tight);
  color: var(--ink);
}
.seller_apply .apply_hero .lead {
  margin-top: var(--space-3);
  max-width: 52rem;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.seller_apply .apply_hero .btns {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.seller_apply .apply_cats {
  margin-bottom: var(--space-6);
}
.seller_apply .apply_section {
  margin-bottom: var(--space-7);
}
.seller_apply .apply_section .head .kicker,
.seller_apply .apply_cats .head .kicker {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--primary-deep);
}
.seller_apply .apply_section .head h2,
.seller_apply .apply_cats .head h2 {
  margin-top: 0.5rem;
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--track-tight);
  color: var(--ink);
}
.seller_apply .apply_section .head .desc,
.seller_apply .apply_cats .head .desc {
  margin-top: 0.6rem;
  max-width: 60rem;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.seller_apply .apply_section_form .head {
  margin-bottom: var(--space-4);
}
.seller_apply .apply_cats .cat_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  list-style: none;
  padding: 0;
}
.seller_apply .apply_cats .cat_list li {
  display: flex;
}
.seller_apply .apply_cats .cat_list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: var(--space-4);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink);
  transition: transform var(--ease-out), box-shadow var(--ease-out), background var(--ease);
}
.seller_apply .apply_cats .cat_list a:hover {
  transform: translateY(-0.3rem);
  background: var(--surface);
  box-shadow: var(--sh-card);
}
.seller_apply .apply_cats .cat_list a:hover .title {
  color: var(--primary-deep);
}
.seller_apply .apply_cats .cat_list .img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  flex-shrink: 0;
  margin: 0 auto;
}
.seller_apply .apply_cats .cat_list .img img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  object-position: center;
}
.seller_apply .apply_cats .cat_list .title {
  margin-top: 1rem;
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  transition: color var(--ease);
}
.seller_apply .apply_cats .cat_list p {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.seller_apply .step_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.seller_apply .step_list li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-5) var(--space-4);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  transition: background var(--ease), box-shadow var(--ease-out);
}
.seller_apply .step_list li:hover {
  background: var(--surface);
  box-shadow: var(--sh-card);
}
.seller_apply .step_list .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
}
.seller_apply .step_list .title {
  margin-top: 1.2rem;
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  color: var(--ink);
}
.seller_apply .step_list p {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--muted);
}
@media screen and (min-width: 897px) {
  .seller_apply .step_list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    left: calc(100% + 0.4rem);
    width: calc(var(--space-3) - 0.8rem);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-soft), var(--line));
    pointer-events: none;
  }
}
.seller_apply .apply_layout {
  gap: var(--space-5);
  align-items: flex-start;
}
.seller_apply .form_box {
  flex: 1 1 58rem;
  min-width: 0;
  padding: var(--space-6) var(--space-7);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}
.seller_apply .form_box .apply_result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}
.seller_apply .form_box .apply_result[hidden],
.seller_apply .seller_form[hidden] {
  display: none !important;
}
.seller_apply .form_box .apply_result .done {
  margin: 0;
  padding: 1.6rem 1.8rem;
  background: var(--ok-soft);
  border-left: 0.4rem solid var(--ok);
  border-radius: var(--r-sm);
  color: var(--ok);
  font-size: 1.36rem;
  font-weight: var(--fw-bold);
  line-height: 1.5;
}
.seller_apply .form_box .apply_result .btns {
  margin: 0;
}
.seller_apply .form_box .apply_result + .seller_form {
  margin-top: 2.4rem;
}
.seller_apply .apply_aside {
  flex: 0 1 32rem;
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: 8rem;
}
.seller_apply .aside_card {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border-radius: var(--r-lg);
}
.seller_apply .aside_card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  padding: 0;
  margin-bottom: 0.6rem;
  background: transparent;
  border-radius: 0;
}
.seller_apply .aside_card .ico img {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  object-position: left center;
}
.seller_apply .aside_card .title {
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  color: var(--ink);
}
.seller_apply .aside_card > p {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.seller_apply .aside_card.faq .faq_list {
  margin-top: var(--space-3);
  list-style: none;
  padding: 0;
}
.seller_apply .aside_card.faq .faq_list li + li {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.seller_apply .aside_card.faq .faq_list strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  color: var(--ink);
}
.seller_apply .aside_card.faq .faq_list p {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.seller_apply .aside_foot {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  text-align: center;
}
.seller_apply .aside_foot p {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--muted);
}
.seller_apply .aside_foot .btns {
  justify-content: center;
  margin-top: var(--space-3);
}
.seller_apply .form_box .upload_guideline .upload_box {
  border-style: dashed;
  border-color: var(--line);
  background: var(--surface-2);
}
.seller_apply .form_box .upload_guideline .upload_box .img {
  background: var(--primary-soft);
  border-radius: var(--r-md);
  padding: 0.8rem;
}
.seller_apply .apply_auth {
  padding: 2.2rem 2.2rem 2rem;
  background: var(--note-soft);
  border: 1px solid color-mix(in srgb, var(--note) 16%, var(--note-soft));
  border-left: 0.4rem solid var(--primary);
  border-radius: var(--r-md);
}
.seller_apply .apply_auth p {
  font-size: 1.36rem;
  line-height: 1.55;
  color: var(--note);
}
.seller_apply .apply_auth .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.seller_apply .form_box .form_note,
.seller_apply .form_box .warn {
  margin: 1.2rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.45;
}
.seller_apply .form_box .form_note.ok {
  color: var(--ok);
}
.seller_apply .form_box .form_note.err,
.seller_apply .form_box .warn {
  color: var(--danger);
}
.seller_apply .form_box .form_note[hidden],
.seller_apply .form_box .warn[hidden] {
  display: none !important;
}
.seller_apply .seller_form .hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--faint);
}
.seller_apply .seller_form .checks {
  margin-top: var(--space-4);
}
.seller_apply .seller_form .btns {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS (SAAS WORKSPACE & PORTAL LOGIN)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1220px) {
  .seller_apply .apply_cats .cat_list,
  .seller_apply .step_list {
    grid-template-columns: 1fr 1fr;
  }
  .seller_apply .apply_layout {
    flex-direction: column;
  }
  .seller_apply .apply_aside {
    max-width: none;
    position: static;
  }
  .order_page_layout {
    grid-template-columns: 1fr;
  }
  .timeline_cards_grid {
    grid-template-columns: 1fr 1fr;
  }
  .seller_pane .stat_list {
    grid-template-columns: 1fr 1fr;
  }
  .cat_selector_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .review_summary_box {
    grid-template-columns: 1fr 1fr;
  }
  .rating_metrics {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2rem;
    flex-direction: row;
  }
  .seller_login_brand {
    width: 40rem;
    padding: 3.6rem;
  }
}

@media screen and (max-width: 1024px) {
  .saas_sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .saas_sidebar.mobile_open {
    transform: translateX(0);
  }
  .topbar_menu_btn {
    display: block;
  }
  .saas_workspace {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
  .saas_workspace.is_chat {
    padding: 0;
  }
  .chat_layout {
    flex-direction: column;
    height: 72rem;
  }
  .seller_pane.pane_chat .chat_layout {
    height: 100%;
  }
  .chat_sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .chat_room_list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.8rem var(--space-4) 1.2rem;
    gap: 0.8rem;
  }
  .chat_room_list li {
    min-width: 24rem;
    max-width: 28rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    align-items: center;
  }
  .chat_room_list li.active::before {
    top: 0;
    bottom: 0;
    border-radius: var(--r-md) 0 0 var(--r-md);
  }
  .chat_room_list .room_snippet,
  .chat_room_list .room_unread {
    display: none;
  }
  .chat_header,
  .chat_order_context_strip,
  .chat_security_strip,
  .chat_messages_scroll,
  .chat_input_bar {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .seller_login_layout {
    flex-direction: column;
  }
  .seller_login_brand {
    width: 100%;
    padding: 3.2rem 2.4rem;
  }
  .seller_login_panel {
    padding: 3.2rem 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  .saas_topbar {
    padding: 0 1.6rem;
  }
  .topbar_status_pill,
  .topbar_user_profile .u_name {
    display: none;
  }
  .timeline_cards_grid {
    grid-template-columns: 1fr;
  }
  .item_row {
    flex-direction: column;
    align-items: flex-start;
  }
  .item_row .price_col {
    width: 100%;
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.4rem;
  }
  .order_page_header {
    flex-direction: column;
  }
  .order_page_header .right_actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .order_page_header .right_actions .btn,
  .order_page_header .right_actions .btn_line {
    width: 100%;
    text-align: center;
  }
  .cat_selector_grid,
  .seller_pane .stat_list,
  .settle_overview,
  .seller_form .grid {
    grid-template-columns: 1fr;
  }
  .seller_apply .apply_cats .cat_list,
  .seller_apply .step_list,
  .seller_apply .seller_form .grid {
    grid-template-columns: 1fr;
  }
  .seller_apply .step_list li:not(:last-child)::after {
    display: none;
  }
  .seller_apply .apply_hero .pic {
    max-width: none;
  }
  .seller_apply .form_box {
    padding: var(--space-5) var(--space-4);
  }
  .seller_apply .apply_hero .btns,
  .seller_apply .seller_form .btns,
  .seller_apply .aside_foot .btns {
    flex-direction: column;
    align-items: stretch;
  }
  .deal_list li {
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 1.8rem 1.6rem;
  }
  .deal_list .pay,
  .deal_list .act {
    width: 100%;
    text-align: left;
    align-items: stretch;
  }
  .bank_holder_row {
    flex-direction: column;
    gap: 1.6rem;
  }
  .bank_acc_num {
    font-size: 2rem;
    letter-spacing: 0.12em;
    margin: 2rem 0;
  }
  .seller_pane .panel .bar,
  .seller_pane .panel .pad,
  .seller_pane .tabs,
  .seller_pane .btns.pad {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media screen and (max-width: 576px) {
  .saas_topbar {
    padding: 0 var(--space-3);
  }
  .btn_topbar_action {
    display: none;
  }
  .chat_header .participants {
    display: none;
  }
  .chat_header h3 {
    font-size: 1.32rem;
  }
  .chat_order_context_strip {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .chat_order_context_strip .order_title,
  .chat_order_context_strip .order_meta {
    display: none;
  }
  .chat_order_context_strip .order_act {
    width: 100%;
  }
  .chat_order_context_strip .order_act .btn_line {
    width: 100%;
    text-align: center;
  }
  .chat_security_strip p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .msg_item.cs,
  .msg_item.self,
  .msg_item.buyer,
  .msg_item.card_event {
    max-width: 100%;
  }
  .chat_form {
    flex-direction: column;
  }
  .chat_form button {
    width: 100%;
  }
}
