/* ========== Workspace Layout ========== */
/* ========== Workspace Page Styles ========== */

/* Layout */
.ws-layout {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}

/* ========== Left Sidebar ========== */
.ws-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ws-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.ws-sidebar-brand .brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-sidebar-brand .brand-logo svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.ws-sidebar-brand .brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #e4393c;
}

.ws-sidebar-brand .brand-sub {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  user-select: none;
}
.ws-sidebar-brand .brand-sub:hover {
  background: #ebebeb;
}
.ws-sidebar-brand .brand-sub svg {
  fill: #999;
}
.ws-sidebar-brand .brand-side-wrapper {
  position: relative;
  margin-left: 4px;
}
.ws-sidebar-brand .brand-side-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 100px;
  z-index: 100;
}
.ws-sidebar-brand .brand-side-option {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
}
.ws-sidebar-brand .brand-side-option:first-child {
  border-radius: 8px 8px 0 0;
}
.ws-sidebar-brand .brand-side-option:last-child {
  border-radius: 0 0 8px 8px;
}
.ws-sidebar-brand .brand-side-option:hover {
  background: #f5f5f5;
}
.ws-sidebar-brand .brand-side-option.active {
  color: #e4393c;
  font-weight: 600;
  background: #fff5f5;
}

.ws-nav {
  flex: 1;
  padding: 8px 0;
}

.ws-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-left: 3px solid transparent;
}

.ws-nav-item:hover {
  background: #fff5f5;
  color: #e4393c;
}

.ws-nav-item.active {
  background: #fff0f0;
  color: #e4393c;
  border-left-color: #e4393c;
  font-weight: 600;
}

.ws-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.7;
}

.ws-nav-item.active .nav-icon svg {
  opacity: 1;
}

.ws-nav-item .nav-arrow {
  margin-left: auto;
  transition: transform 0.2s;
}

.ws-nav-item .nav-arrow svg {
  width: 14px;
  height: 14px;
  fill: #ccc;
  transition: fill 0.2s;
}

.ws-nav-item:hover .nav-arrow svg {
  fill: #e4393c;
}

.ws-nav-item.expanded .nav-arrow {
  transform: rotate(90deg);
}

.ws-nav-sub {
  display: none;
  background: #fafafa;
}

.ws-nav-sub.show {
  display: block;
}

.ws-nav-sub-item {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 52px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ws-nav-sub-item:hover {
  color: #e4393c;
  background: #fff5f5;
}

.ws-nav-sub-item.active {
  color: #e4393c;
  font-weight: 500;
}

.ws-nav-sub-item .sub-badge {
  margin-left: auto;
  background: #e4393c;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 500;
}

/* ========== Main Content ========== */
.ws-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
}

/* ========== Top Header ========== */
.ws-header {
  background: #fff;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ws-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ws-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ws-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* ========== Company Switcher ========== */
.ws-company-switcher {
  position: relative;
}

.ws-company-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.ws-company-trigger:hover {
  background: #f5f5f5;
}

.ws-company-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-company-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.ws-company-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ws-company-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-company-tag {
  font-size: 11px;
  color: #52c41a;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  padding: 0 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  line-height: 18px;
}

.ws-company-tag.pending {
  color: #fa8c16;
  background: #fff7e6;
  border-color: #ffd591;
}

.ws-company-arrow {
  width: 20px;
  height: 20px;
  fill: #999;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ws-company-arrow.open {
  transform: rotate(180deg);
}

/* ========== Company Dropdown ========== */
.ws-company-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
  padding-bottom: 4px;
}

.ws-company-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-dropdown-label {
  font-size: 12px;
  color: #999;
  padding: 12px 16px 8px;
  letter-spacing: 0.5px;
}

.ws-company-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.ws-company-option:hover {
  background: #f8f8f8;
}

.ws-company-option.active {
  background: #fff5f5;
}

.ws-company-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-company-option.active .ws-company-option-icon {
  box-shadow: 0 2px 8px rgba(228, 57, 60, 0.3);
}

.ws-company-option-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.ws-company-option-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-company-option-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-company-option.active .ws-company-option-name {
  color: #e4393c;
  font-weight: 600;
}

.ws-company-option-meta {
  font-size: 12px;
  color: #999;
}

.ws-company-option-check {
  width: 20px;
  height: 20px;
  fill: #e4393c;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.ws-company-option.active .ws-company-option-check {
  opacity: 1;
}

.ws-company-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #e4393c;
  text-decoration: none;
  transition: background 0.15s;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.ws-company-add:hover {
  background: #fff5f5;
}

.ws-company-add svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
  flex-shrink: 0;
}

.ws-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.ws-search {
  display: flex;
  align-items: center;
  border: 2px solid #e4393c;
  border-radius: 20px;
  overflow: hidden;
  height: 36px;
}

.ws-search input {
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  width: 260px;
  height: 100%;
}

.ws-search input::placeholder {
  color: #ccc;
}

.ws-search button {
  background: #e4393c;
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 100%;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.ws-search button:hover {
  background: #c1272d;
}

/* ========== Header Right ========== */
.ws-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ========== Notification ========== */
.ws-notification {
  position: relative;
}

.ws-notification-trigger {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-notification-trigger:hover {
  background: #f5f5f5;
}

.ws-notification-trigger svg {
  fill: #666;
  transition: fill 0.2s;
}

.ws-notification-trigger:hover svg {
  fill: #e2383e;
}

.ws-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #e2383e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid #fff;
  animation: ws-badge-pulse 2s ease-in-out infinite;
}

@keyframes ws-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ws-notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 482px;
  max-width: 600px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  border: 1px solid #f0f0f0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  overflow: hidden;
}

.ws-notification-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.ws-notif-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.ws-notif-markall {
  background: none;
  border: none;
  color: #e2383e;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ws-notif-markall:hover {
  background: #fff1f0;
}

.ws-notif-tabs {
  display: flex;
  padding: 0 20px;
  gap: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.ws-notif-tab {
  background: none;
  border: none;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 10px 12px;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ws-notif-tab:hover {
  color: #333;
}

.ws-notif-tab.active {
  color: #e2383e;
  font-weight: 600;
}

.ws-notif-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #e2383e;
  border-radius: 1px;
}

.ws-notif-tab-count {
  font-size: 11px;
  background: #e2383e;
  color: #fff;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.ws-notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.ws-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #fafafa;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.ws-notif-item:hover {
  background: #fafafa;
}

.ws-notif-item.unread {
  background: #fff8f8;
}

.ws-notif-item.unread:hover {
  background: #fff1f0;
}

.ws-notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-notif-item-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.ws-notif-item-icon.order-icon {
  background: linear-gradient(135deg, #e2383e, #ff6b6b);
}

.ws-notif-item-icon.audit-icon {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}

.ws-notif-item-icon.system-icon {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}

.ws-notif-item-icon.promo-icon {
  background: linear-gradient(135deg, #fa8c16, #ffa940);
}

.ws-notif-item-icon.payment-icon {
  background: linear-gradient(135deg, #722ed1, #9254de);
}

.ws-notif-item-icon.invitation-icon {
  background: linear-gradient(135deg, #13c2c2, #36cfc9);
}
.ws-notif-item-icon.sourcing-icon {
  background: linear-gradient(135deg, #389e0d, #52c41a);
}

.ws-notif-item-content {
  flex: 1;
  min-width: 0;
}

.ws-notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ws-notif-item-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-notif-item-time {
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

.ws-notif-item-dot {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: #e2383e;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ws-notif-item-dot:hover {
  transform: scale(1.3);
}

.ws-notif-footer {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.ws-notif-footer a {
  font-size: 13px;
  color: #e2383e;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.ws-notif-footer a:hover {
  opacity: 0.8;
}

/* ========== User Menu ========== */
.ws-user-menu {
  position: relative;
}

.ws-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 24px;
  transition: background 0.2s;
  user-select: none;
}

.ws-user-trigger:hover {
  background: #f5f5f5;
}

.ws-user-trigger-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-user-trigger-avatar img {
  border-radius: 50%;
}

.ws-user-trigger-avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.ws-user-trigger-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-user-trigger-arrow {
  width: 18px;
  height: 18px;
  fill: #999;
  transition: transform 0.2s;
}

.ws-user-menu .ws-user-dropdown.show + .ws-user-trigger .ws-user-trigger-arrow,
.ws-user-trigger-arrow.open {
  transform: rotate(180deg);
}

/* ========== User Dropdown ========== */
.ws-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.ws-user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ws-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.ws-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-dropdown-avatar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.ws-dropdown-userinfo {
  flex: 1;
  min-width: 0;
}

.ws-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-dropdown-tag {
  font-size: 12px;
  color: #e4393c;
  margin-top: 2px;
}

.ws-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}

.ws-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}

.ws-dropdown-item:hover {
  background: #f8f8f8;
  color: #e4393c;
}

.ws-dropdown-item svg {
  width: 18px;
  height: 18px;
  fill: #999;
  flex-shrink: 0;
  transition: fill 0.15s;
}

.ws-dropdown-item:hover svg {
  fill: #e4393c;
}

.ws-dropdown-logout {
  color: #999;
}

.ws-dropdown-logout:hover {
  background: #fff5f5;
  color: #e4393c;
}

.ws-search button:hover {
  background: #c1272d;
}

/* ========== User Info Card ========== */
.ws-user-card {
  background: #fff;
  margin: 20px 30px 0;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: stretch;
  gap: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ws-user-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ws-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4393c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-avatar svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.ws-user-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-user-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.ws-user-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.ws-user-tags .tag-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.ws-user-tags .tag-item:hover {
  color: #e4393c;
}

.ws-user-tags .tag-sep {
  color: #ddd;
}

.ws-user-members {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.ws-member-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ws-member-btn.plus {
  background: linear-gradient(135deg, #2a2a2a, #444);
  color: #f5d380;
  font-weight: 600;
}

.ws-member-btn.plus:hover {
  background: linear-gradient(135deg, #1a1a1a, #333);
}

.ws-member-btn.enterprise {
  background: #f0f7ff;
  color: #1a73e8;
  border: 1px solid #d0e3f7;
}

.ws-member-btn.enterprise:hover {
  background: #e0efff;
}

.ws-member-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Asset Stats */
.ws-assets {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid #f0f0f0;
}

.ws-asset-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.ws-asset-item:hover {
  transform: translateY(-2px);
}

.ws-asset-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.ws-asset-value .asset-unit {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-left: 2px;
}

.ws-asset-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Coupon Bar */
.ws-coupon-bar {
  background: #fff;
  margin: 16px 30px 0;
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ws-coupon-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e4393c;
  font-weight: 500;
}

.ws-coupon-left svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}

.ws-coupon-btn {
  background: #e4393c;
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.ws-coupon-btn:hover {
  background: #c1272d;
}

/* ========== Content Area ========== */
.ws-content {
  padding: 20px 30px 40px;
  display: flex;
  gap: 20px;
}

.ws-content-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ws-content-right {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== Module Card ========== */
.ws-module {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.ws-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}

.ws-module-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-module-title .title-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-module-title .title-icon svg {
  width: 20px;
  height: 20px;
  fill: #e4393c;
}

.ws-module-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.ws-module-more:hover {
  color: #e4393c;
}

.ws-module-more svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========== Order Module ========== */
.ws-order-shortcuts {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px;
}

.ws-order-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.ws-order-shortcut:hover {
  transform: translateY(-2px);
}

.ws-order-shortcut .shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-order-shortcut .shortcut-icon svg {
  width: 22px;
  height: 22px;
  fill: #e4393c;
}

.ws-order-shortcut .shortcut-label {
  font-size: 13px;
  color: #333;
}

.ws-order-shortcut .shortcut-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: #e4393c;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 5px;
}

/* Order Notification */
.ws-order-notice {
  padding: 0 20px 16px;
}

.ws-order-notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  transition: background 0.2s;
}

.ws-order-notice-item:hover {
  background: #f5f5f5;
}

.ws-notice-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #e8e8e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-notice-thumb svg {
  width: 28px;
  height: 28px;
  fill: #bbb;
}

.ws-notice-info {
  flex: 1;
  min-width: 0;
}

.ws-notice-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-notice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.ws-notice-meta a {
  color: #1a73e8;
  text-decoration: none;
}

.ws-notice-meta a:hover {
  text-decoration: underline;
}

.ws-notice-action {
  flex-shrink: 0;
}

.ws-notice-action button {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-notice-action button:hover {
  border-color: #e4393c;
  color: #e4393c;
}

/* ========== Favorites Module ========== */
.ws-fav-grid {
  display: flex;
  gap: 0;
}

.ws-fav-section {
  flex: 1;
  padding: 16px;
  border-right: 1px solid #f5f5f5;
}

.ws-fav-section:last-child {
  border-right: none;
}

.ws-fav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ws-fav-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.ws-fav-section-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.ws-fav-section-more:hover {
  color: #e4393c;
}

.ws-fav-section-count {
  font-size: 12px;
  color: #999;
}

.ws-fav-product {
  cursor: pointer;
  transition: transform 0.2s;
}

.ws-fav-product:hover {
  transform: translateY(-2px);
}

.ws-fav-product-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ws-fav-product-img svg {
  width: 40px;
  height: 40px;
  fill: #ddd;
}

.ws-fav-product-name {
  font-size: 12px;
  color: #333;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.ws-fav-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #e4393c;
  margin-top: 4px;
}

.ws-fav-product-price .fav-original {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}

.ws-fav-product-tag {
  display: inline-block;
  font-size: 11px;
  color: #e4393c;
  background: #fff5f5;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.ws-fav-shop {
  cursor: pointer;
}

.ws-fav-shop-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-fav-shop-img svg {
  width: 36px;
  height: 36px;
  fill: #ddd;
}

.ws-fav-shop-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  margin-top: 8px;
}

.ws-fav-shop-rating {
  font-size: 12px;
  color: #ff9800;
  margin-top: 4px;
}

/* ========== Purchase List Module ========== */
.ws-purchase-empty {
  padding: 40px 20px;
  text-align: center;
}

.ws-purchase-empty svg {
  width: 48px;
  height: 48px;
  fill: #ddd;
  margin-bottom: 12px;
}

.ws-purchase-empty p {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
}

.ws-purchase-empty button {
  padding: 8px 24px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-purchase-empty button:hover {
  border-color: #e4393c;
  color: #e4393c;
}

/* ========== Right Panel ========== */
/* Recharge Card */
.ws-recharge-card {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ws-recharge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ws-recharge-icon {
  width: 36px;
  height: 36px;
  background: #ff9800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-recharge-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.ws-recharge-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.ws-recharge-phone {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.ws-recharge-number {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  letter-spacing: 1px;
}

.ws-recharge-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.ws-recharge-amount {
  flex: 1;
  padding: 8px 0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: #ff9800;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-recharge-amount:hover,
.ws-recharge-amount.active {
  background: #ff9800;
  color: #fff;
  border-color: #ff9800;
}

/* Service Card */
.ws-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ws-service-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.ws-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ws-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.ws-service-item:hover {
  background: #f5f5f5;
}

.ws-service-item .svc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-service-item .svc-icon svg {
  width: 18px;
  height: 18px;
  fill: #e4393c;
}

.ws-service-item .svc-icon.blue { background: #f0f7ff; }
.ws-service-item .svc-icon.blue svg { fill: #1a73e8; }
.ws-service-item .svc-icon.green { background: #f0fff4; }
.ws-service-item .svc-icon.green svg { fill: #52c41a; }
.ws-service-item .svc-icon.orange { background: #fff8e1; }
.ws-service-item .svc-icon.orange svg { fill: #ff9800; }
.ws-service-item .svc-icon.purple { background: #f3e5f5; }
.ws-service-item .svc-icon.purple svg { fill: #9c27b0; }

.ws-service-item .svc-label {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Tips Card */
.ws-tips-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ws-tips-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.ws-tips-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: color 0.2s;
}

.ws-tips-item:last-child {
  border-bottom: none;
}

.ws-tips-item:hover {
  color: #e4393c;
}

.ws-tips-item .tips-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4393c;
  flex-shrink: 0;
}

.ws-tips-item .tips-text {
  flex: 1;
  font-size: 13px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-tips-item:hover .tips-text {
  color: #e4393c;
}

.ws-tips-item .tips-date {
  font-size: 12px;
  color: #ccc;
  flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .ws-content-right {
    width: 240px;
  }

  .ws-assets {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .ws-sidebar {
    display: none;
  }

  .ws-main {
    margin-left: 0;
  }

  .ws-content {
    flex-direction: column;
    padding: 16px;
  }

  .ws-content-right {
    width: 100%;
  }

  .ws-fav-grid {
    flex-direction: column;
  }

  .ws-fav-section {
    border-right: none;
    border-bottom: 1px solid #f5f5f5;
  }

  .ws-fav-section:last-child {
    border-bottom: none;
  }

  .ws-user-card {
    margin: 16px;
    flex-direction: column;
  }

  .ws-assets {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .ws-coupon-bar {
    margin: 0 16px;
  }

  .ws-header {
    padding: 12px 16px;
  }

  .ws-search input {
    width: 160px;
  }
}

@media (max-width: 640px) {
  .ws-user-card {
    margin: 12px;
    padding: 16px;
  }

  .ws-content {
    padding: 12px;
  }

  .ws-order-shortcuts {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ws-order-shortcut {
    flex: 0 0 calc(25% - 9px);
  }

  .ws-assets {
    justify-content: space-around;
  }

  .ws-search {
    display: none;
  }

  .ws-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== Favorites Page ========== */

.fav-content {
  padding: 24px 28px;
}

/* Breadcrumb */
.fav-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.fav-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.fav-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.fav-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.fav-breadcrumb .current {
  color: var(--gray-700, #333);
}

/* Page Header */
.fav-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fav-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.fav-page-header .fav-count {
  font-size: 13px;
  color: var(--gray-400, #999);
  font-weight: 400;
  margin-left: 8px;
}

/* Toolbar */
.fav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.fav-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}
.fav-search-box:focus-within {
  border-color: var(--primary, #e23a3a);
}
.fav-search-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13px;
  width: 200px;
  color: var(--gray-800, #222);
}
.fav-search-box input::placeholder {
  color: var(--gray-300, #bbb);
}
.fav-search-box button {
  background: var(--primary, #e23a3a);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.fav-filter-select {
  height: 36px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gray-700, #333);
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 110px;
}
.fav-filter-select:focus {
  border-color: var(--primary, #e23a3a);
}

.fav-sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-sort-btn:hover,
.fav-sort-btn.active {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-sort-btn svg {
  width: 14px;
  height: 14px;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
}
.fav-btn svg {
  width: 14px;
  height: 14px;
}
.fav-btn-outline {
  background: white;
  color: var(--gray-600, #555);
  border: 1px solid var(--gray-200, #e0e0e0);
}
.fav-btn-outline:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-btn-danger {
  background: white;
  color: #f44336;
  border: 1px solid #ffcdd2;
}
.fav-btn-danger:hover {
  background: #fff5f5;
  border-color: #f44336;
}
.fav-btn-primary {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-btn-primary:hover {
  background: var(--primary-dark, #c62828);
}

/* Batch bar */
.fav-batch-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray-700, #333);
}
.fav-batch-bar.show {
  display: flex;
}
.fav-batch-bar .selected-count {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}

/* Checkbox */
.fav-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300, #ccc);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
}
.fav-checkbox:hover {
  border-color: var(--primary, #e23a3a);
}
.fav-checkbox.checked {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
}
.fav-checkbox.checked svg {
  display: block;
}
.fav-checkbox svg {
  width: 10px;
  height: 10px;
  fill: white;
  display: none;
}

/* Product Grid */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product Card */
.fav-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
}
.fav-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: transparent;
  transform: translateY(-2px);
}
.fav-card.selected {
  border-color: var(--primary, #e23a3a);
  box-shadow: 0 0 0 2px rgba(226,58,58,0.1);
}

/* Card checkbox */
.fav-card-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

/* Card image */
.fav-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fav-card-img svg {
  width: 48px;
  height: 48px;
  fill: var(--gray-300, #ccc);
}

/* Badges on image */
.fav-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.fav-badge-sale {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-badge-new {
  background: #2196f3;
  color: white;
}
.fav-badge-hot {
  background: #ff9800;
  color: white;
}

/* Price drop tag */
.fav-card-drop {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  padding: 4px 10px;
  font-size: 11px;
  color: #e65100;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fav-card-drop svg {
  width: 12px;
  height: 12px;
  fill: #e65100;
}

/* Card body */
.fav-card-body {
  padding: 14px 16px 16px;
}
.fav-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800, #222);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card-name a {
  color: inherit;
  text-decoration: none;
}
.fav-card-name a:hover {
  color: var(--primary, #e23a3a);
}

.fav-card-spec {
  font-size: 12px;
  color: var(--gray-400, #999);
  margin-bottom: 10px;
}

.fav-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.fav-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary, #e23a3a);
}
.fav-card-price .symbol {
  font-size: 13px;
}
.fav-card-original {
  font-size: 13px;
  color: var(--gray-400, #999);
  text-decoration: line-through;
}

/* Card footer */
.fav-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fav-card-store {
  font-size: 12px;
  color: var(--gray-400, #999);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.fav-card-store svg {
  width: 12px;
  height: 12px;
  fill: var(--gray-400, #999);
  flex-shrink: 0;
}
.fav-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fav-card-act {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e8e8e8);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fav-card-act svg {
  width: 14px;
  height: 14px;
}
.fav-card-act.act-cart {
  color: var(--primary, #e23a3a);
  border-color: #ffcdd2;
}
.fav-card-act.act-cart:hover {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
  color: white;
}
.fav-card-act.act-cart:hover svg {
  fill: white;
}
.fav-card-act.act-del {
  color: var(--gray-400, #999);
}
.fav-card-act.act-del:hover {
  background: #fff5f5;
  border-color: #f44336;
  color: #f44336;
}
.fav-card-act.act-del:hover svg {
  fill: #f44336;
}

/* Add to cart button (full width alternative) */
.fav-card-cart-btn {
  width: 100%;
  height: 34px;
  border: 1px solid var(--primary, #e23a3a);
  border-radius: 6px;
  background: white;
  color: var(--primary, #e23a3a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.fav-card-cart-btn:hover {
  background: var(--primary, #e23a3a);
  color: white;
}
.fav-card-cart-btn svg {
  width: 14px;
  height: 14px;
}

/* Pagination */
.fav-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
  padding-bottom: 20px;
}
.fav-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.fav-page-btn.active {
  background: var(--primary, #e23a3a);
  color: white;
  border-color: var(--primary, #e23a3a);
}
.fav-page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.fav-page-btn.disabled:hover {
  color: var(--gray-300, #ccc);
  border-color: var(--gray-100, #f0f0f0);
}
.fav-page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 12px;
}

/* Empty state */
.fav-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200, #e8e8e8);
  grid-column: 1 / -1;
}
.fav-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--gray-100, #f5f5f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-empty-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gray-300, #ccc);
}
.fav-empty-text {
  font-size: 15px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.fav-empty-link {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.fav-empty-link:hover {
  text-decoration: underline;
}

/* Toast */
.fav-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray-800, #222);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.fav-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Confirm overlay */
.fav-confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.fav-confirm-overlay.show {
  display: flex;
}
.fav-confirm-box {
  background: white;
  border-radius: 12px;
  padding: 28px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  animation: favSlideUp 0.2s ease;
}
@keyframes favSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fav-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-confirm-icon svg {
  width: 24px;
  height: 24px;
  fill: #f44336;
}
.fav-confirm-text {
  font-size: 15px;
  color: var(--gray-700, #333);
  margin-bottom: 24px;
  line-height: 1.6;
}
.fav-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.fav-confirm-cancel {
  height: 38px;
  padding: 0 24px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 8px;
  background: white;
  color: var(--gray-600, #555);
  font-size: 14px;
  cursor: pointer;
}
.fav-confirm-ok {
  height: 38px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
  .fav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fav-content {
    padding: 16px;
  }
  .fav-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .fav-toolbar-left,
  .fav-toolbar-right {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .fav-grid {
    grid-template-columns: 1fr;
  }
  .fav-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========== Followed followed-companys Page ========== */

.followed-company-content {
  padding: 24px 28px;
}

/* Breadcrumb */
.followed-company-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin-bottom: 20px;
}
.followed-company-breadcrumb a {
  color: var(--gray-500, #666);
  text-decoration: none;
  transition: color 0.2s;
}
.followed-company-breadcrumb a:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-300, #ccc);
}
.followed-company-breadcrumb .current {
  color: var(--gray-700, #333);
}

/* Page Header */
.followed-company-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.followed-company-page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.followed-company-page-header .followed-company-count {
  font-size: 13px;
  color: var(--gray-400, #999);
  font-weight: 400;
  margin-left: 8px;
}

/* Toolbar */
.followed-company-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.followed-company-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.followed-company-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.followed-company-search {
  position: relative;
  width: 220px;
}
.followed-company-search input {
  width: 100%;
  height: 34px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--gray-200, #e0e0e0);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.followed-company-search input:focus {
  border-color: var(--primary, #e23a3a);
}
.followed-company-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--primary, #e23a3a);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.followed-company-search-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Filter Tabs */
.followed-company-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-50, #f5f5f5);
  border-radius: 6px;
  padding: 3px;
}
.followed-company-filter-tab {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.followed-company-filter-tab:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-filter-tab.active {
  background: #fff;
  color: var(--primary, #e23a3a);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Sort */
.followed-company-sort {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-50, #f5f5f5);
  border-radius: 6px;
  padding: 3px;
}
.followed-company-sort-btn {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.followed-company-sort-btn:hover {
  color: var(--primary, #e23a3a);
}
.followed-company-sort-btn.active {
  background: #fff;
  color: var(--primary, #e23a3a);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Batch Action Bar */
.followed-company-batch-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  margin-bottom: 16px;
}
.followed-company-batch-bar.show {
  display: flex;
}
.followed-company-batch-info {
  font-size: 13px;
  color: var(--gray-600, #555);
}
.followed-company-batch-info span {
  color: var(--primary, #e23a3a);
  font-weight: 600;
}
.followed-company-batch-actions {
  display: flex;
  gap: 8px;
}

/* followed-company Grid */
.followed-company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* followed-company Card */
.followed-company-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.followed-company-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.followed-company-card.selected {
  border: 2px solid var(--primary, #e23a3a);
}

/* Card Checkbox */
.followed-company-card-checkbox {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
}
.followed-company-card-checkbox input[type="checkbox"] {
  display: none;
}
.followed-company-card-checkbox label {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300, #ccc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.followed-company-card-checkbox input:checked + label {
  background: var(--primary, #e23a3a);
  border-color: var(--primary, #e23a3a);
}
.followed-company-card-checkbox input:checked + label::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* followed-company Header */
.followed-company-card-header {
  display: flex;
  align-items: center;
  padding: 18px 18px 14px;
  gap: 14px;
}
.followed-company-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--gray-100, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.followed-company-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.followed-company-info {
  flex: 1;
  min-width: 0;
}
.followed-company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800, #222);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.followed-company-name .followed-company-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.5;
}
.followed-company-badge.official {
  background: #e8f5e9;
  color: #2e7d32;
}
.followed-company-badge.vip {
  background: #fff3e0;
  color: #e65100;
}
.followed-company-badge.verified {
  background: #e3f2fd;
  color: #1565c0;
}
.followed-company-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400, #999);
}
.followed-company-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.followed-company-meta svg {
  width: 13px;
  height: 13px;
  fill: var(--gray-300, #ccc);
}

/* followed-company Actions (header right) */
.followed-company-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* followed-company Products */
.followed-company-products {
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.followed-company-product-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--gray-50, #fafafa);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.followed-company-product-thumb:hover {
  transform: scale(1.04);
}
.followed-company-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.followed-company-product-thumb .thumb-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 6px 4px;
  text-align: center;
}

/* followed-company Card Footer */
.followed-company-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--gray-100, #f0f0f0);
  background: var(--gray-50, #fafafa);
}
.followed-company-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-400, #999);
}
.followed-company-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.followed-company-stats strong {
  color: var(--gray-700, #333);
  font-weight: 600;
}
.followed-company-footer-actions {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn-unfollow {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-unfollow:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.btn-enter-followed-company {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-enter-followed-company:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-msg {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-msg:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-msg:hover svg {
  fill: #fff;
}
.btn-msg svg {
  width: 13px;
  height: 13px;
  fill: var(--primary, #e23a3a);
  transition: fill 0.2s;
}
.btn-batch-unfollow {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid var(--primary, #e23a3a);
  background: #fff;
  color: var(--primary, #e23a3a);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-batch-unfollow:hover {
  background: var(--primary, #e23a3a);
  color: #fff;
}
.btn-select-all {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-select-all:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}

/* New Product Badge */
.followed-company-new-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary, #e23a3a);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0 0 6px 0;
  font-weight: 500;
}

/* Promo Banner in Card */
.followed-company-promo {
  margin: 0 18px 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff5f5, #fff0e6);
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary, #e23a3a);
  display: flex;
  align-items: center;
  gap: 6px;
}
.followed-company-promo svg {
  width: 14px;
  height: 14px;
  fill: var(--primary, #e23a3a);
  flex-shrink: 0;
}

/* Pagination */
.followed-company-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0 6px;
}
.page-btn:hover {
  border-color: var(--primary, #e23a3a);
  color: var(--primary, #e23a3a);
}
.page-btn.active {
  background: var(--primary, #e23a3a);
  color: #fff;
  border-color: var(--primary, #e23a3a);
}
.page-btn.disabled {
  color: var(--gray-300, #ccc);
  cursor: not-allowed;
  border-color: var(--gray-100, #f0f0f0);
}
.page-info {
  font-size: 13px;
  color: var(--gray-400, #999);
  margin: 0 8px;
}

/* Confirm Modal */
.followed-company-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.followed-company-modal-overlay.show {
  display: flex;
}
.followed-company-modal {
  background: #fff;
  border-radius: 12px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.followed-company-modal-header {
  padding: 20px 24px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800, #222);
}
.followed-company-modal-body {
  padding: 16px 24px 24px;
  font-size: 14px;
  color: var(--gray-600, #555);
  line-height: 1.6;
}
.followed-company-modal-body .followed-company-name-highlight {
  color: var(--primary, #e23a3a);
  font-weight: 500;
}
.followed-company-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 20px;
}
.followed-company-modal-footer .btn-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #e0e0e0);
  background: #fff;
  font-size: 13px;
  color: var(--gray-600, #555);
  cursor: pointer;
  transition: all 0.2s;
}
.followed-company-modal-footer .btn-cancel:hover {
  border-color: var(--gray-400, #999);
}
.followed-company-modal-footer .btn-confirm {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: var(--primary, #e23a3a);
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.followed-company-modal-footer .btn-confirm:hover {
  background: #c62828;
}

/* Empty State */
.followed-company-empty {
  text-align: center;
  padding: 60px 20px;
}
.followed-company-empty svg {
  width: 80px;
  height: 80px;
  fill: var(--gray-200, #e0e0e0);
  margin-bottom: 16px;
}
.followed-company-empty p {
  font-size: 14px;
  color: var(--gray-400, #999);
  margin-bottom: 16px;
}
.followed-company-empty a {
  color: var(--primary, #e23a3a);
  text-decoration: none;
  font-size: 14px;
}
.followed-company-empty a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  .followed-company-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .followed-company-products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .followed-company-content {
    padding: 16px;
  }
  .followed-company-products {
    grid-template-columns: repeat(2, 1fr);
  }
  .followed-company-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .followed-company-toolbar-left, .followed-company-toolbar-right {
    flex-wrap: wrap;
  }
  .followed-company-search {
    width: 100%;
  }
  .followed-company-card-header {
    flex-wrap: wrap;
  }
  .followed-company-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
