*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #F4AF1C;
  --primary-light: #FEF3D0;
  --primary-dark: #D4920A;
  --bg-page: #F5F5F5;
  --bg-card: #FFFFFF;
  --text-primary: #323232;
  --text-secondary: #919191;
  --text-tertiary: #9CA3AF;
  --border: #dfdfdf;
  --border-subtle: #F0F1F3;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --nav-height: 72px;
  --sidebar-width: 240px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ─── Navbar ─── */
.navbar {
  height: var(--nav-height);
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  color: #545454;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--primary);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 100px;
  max-width: 200px;
  min-width: 88px;
  overflow: hidden;
}

.search-bar span {
  font-size: 24px;
  color: #545454;
  padding: 8px 0 8px 12px;
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 8px 12px 8px 4px;
}

.search-bar input::placeholder {
  color: #919191;
}

.nav-user-wrap {
  position: relative;
}

.nav-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.nav-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-dropdown {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #FFFFFF;
  border: 1px solid #eaeaea;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 200;
}

.nav-dropdown.open {
  display: flex;
}

.dropdown-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.dropdown-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #f5f5f5;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dropdown-user-name {
  font-size: 16px;
  font-weight: 400;
  color: #323232;
}

.dropdown-user-email {
  font-size: 14px;
  color: #8b8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: #eaeaea;
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #323232;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-page);
}

.dropdown-item svg {
  flex-shrink: 0;
  color: #323232;
}

.dropdown-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: #323232;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.dropdown-logout:hover {
  background: var(--bg-page);
}

.sidebar-item svg {
  flex-shrink: 0;
}

/* ─── Layout ─── */
.page-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-user {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #f5f5f5;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.sidebar-user-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-name {
  font-size: 16px;
  font-weight: 400;
  color: #323232;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 14px;
  color: #8b8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-coins {
  display: inline-flex;
  align-self: flex-start;
  background: #F5F5F5;
  color: #656565;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-user-modal-box {
  max-width: 280px;
  padding: 28px 24px 24px;
  position: relative;
}

.sidebar-user-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #8b8a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.sidebar-user-modal-close:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}

.sidebar-user-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sidebar-user-modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #f5f5f5;
  object-fit: cover;
}

.sidebar-user-popup-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sidebar-user-popup-name {
  font-size: 16px;
  font-weight: 400;
  color: #323232;
}

.sidebar-user-popup-email {
  font-size: 14px;
  color: #8b8a8a;
}

.sidebar-user-modal-content .sidebar-user-coins {
  align-self: center;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 20px 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 16px;
  font-weight: 400;
  color: #323232;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.sidebar-item:hover {
  color: var(--text-primary);
  background: var(--bg-page);
}

.sidebar-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}

.sidebar-tooltip {
  display: none;
}

.sidebar-item span.material-icons-round {
  font-size: 20px;
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  min-width: 0;
}

.content-wrap {
  padding: 32px 40px;
}

.content-narrow {
  max-width: 800px;
}

.page-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.page-title::before {
  display: none;
}

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 0 12px;
  height: 41px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #8b8a8a;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: #323232;
  border-bottom-color: var(--primary);
}

/* ─── Filter Tags ─── */
.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.orders-toolbar .filter-bar {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.filter-tag {
  padding: 8px 16px;
  border-radius: 100px;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #545454;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tag:hover {
  color: var(--primary);
}

.filter-tag.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
}

/* ─── Order Source Dropdown ─── */
.order-source-dropdown {
  position: relative;
}

.order-source-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

.order-source-trigger-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.order-source-chevron {
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.15s;
}

.order-source-dropdown.open .order-source-chevron {
  transform: rotate(-180deg);
}

.order-source-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: -8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  z-index: 100;
  min-width: 160px;
  padding: 6px 0;
  overflow: hidden;
}

.order-source-dropdown.open .order-source-menu {
  display: block;
}

.order-source-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background 0.1s;
}

.order-source-option:hover {
  background: #F5F5F5;
}

.order-source-option.selected {
  font-weight: 700;
}

.order-source-option-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ─── Plan Cards ─── */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.plan-card.ended .plan-card-main,
.plan-card.ended .plan-card-middle {
  opacity: 0.65;
}

.plan-card--external {
  align-items: center;
}

.plan-card--external .plan-card-main,
.plan-card--external .plan-card-right {
  margin-top: 0;
}

.plan-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 0 0 220px;
  margin-top: 4px;
}

.plan-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #f5f5f5;
  object-fit: cover;
  flex-shrink: 0;
}

.plan-card-middle {
  flex: 1;
  min-width: 0;
}

.info-callout {
  background: #FAFAFA;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-callout-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  align-self: stretch;
}

.info-callout-chevron {
  font-size: 24px;
  transition: transform 0.2s;
}

.info-callout.open .info-callout-chevron {
  transform: rotate(-180deg);
}

.info-extra {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.info-callout.open .info-extra {
  display: flex;
}

.plan-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.plan-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-info-item {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.plan-external-hint {
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-info-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
  flex-shrink: 0;
}

.badge-renew {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-renew.on {
  background: var(--success-bg);
  color: var(--success);
}

.badge-renew.off {
  background: var(--border-subtle);
  color: var(--text-tertiary);
}

.badge-renew .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-renew.on .dot {
  background: var(--success);
}

.badge-renew.off .dot {
  background: var(--text-tertiary);
}

.badge-ended {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--border-subtle);
  color: var(--text-tertiary);
}

.plan-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 8px;
}

.plan-card--settings {
  flex-direction: column;
  align-items: stretch;
}

.plan-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.plan-card-footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-text-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 6px;
}

.plan-info-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.plan-info-toggle input[type="checkbox"] {
  display: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-row input[type="checkbox"] {
  display: none;
}

.toggle-track {
  width: 32px;
  height: 18px;
  border-radius: 100px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-row input:checked + .toggle-track,
.plan-info-toggle input:checked + .toggle-track {
  background: var(--primary);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-row input:checked + .toggle-track .toggle-thumb,
.plan-info-toggle input:checked + .toggle-track .toggle-thumb {
  left: 16px;
}

.toggle-label-text {
  font-size: 14px;
  color: var(--text-primary);
}

.toggle-sub-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: auto;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-left: 32px;
}

.plan-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
}

.plan-price-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  margin-left: 2px;
}

.btn-cancel {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #dfdfdf;
  background: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #323232;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-cancel:hover {
  background: #f5f5f5;
}

.btn-renew {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #000000;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-renew:hover {
  background: #323232;
}

.btn-renew--icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 20px;
  padding-right: 16px;
}

.btn-renew-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
}

.empty-state span.material-icons-round {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.empty-state p {
  font-size: 14px;
}

/* ─── Tab Panels ─── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.modal-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal-keep {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-modal-keep:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-modal-confirm {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--error);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--error);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-modal-confirm:hover {
  background: var(--error-bg);
}

.btn-modal-primary {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-modal-primary:hover {
  opacity: 0.85;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--border);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-brand-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-brand-icon {
  height: 20px;
  filter: grayscale(100%) opacity(0.4);
  transition: filter 0.2s;
}

.card-brand-icon.active {
  filter: none;
}

.card-brand-icon-inline {
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

.modal-callout {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ─── Order Table ─── */
.order-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table thead th {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 400;
  color: #8b8a8a;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
  white-space: nowrap;
}

.order-table thead th.col-expand {
  width: 48px;
}

.order-table tbody tr.order-row {
  border-bottom: 1px solid var(--border-subtle);
  cursor: default;
  transition: background 0.1s;
}

.order-table tbody tr.order-row:hover {
  background: #FAFAFA;
}

.order-table tbody td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
}

.order-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-id-text {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 3px;
  font-weight: 400;
}

.order-card-text {
  color: var(--text-secondary);
}

.order-amount {
  font-weight: 700;
  white-space: nowrap;
}

.btn-invoice {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}

.btn-invoice:hover {
  color: var(--primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.success {
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.failed {
  background: var(--error-bg);
  color: var(--error);
}

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.expand-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-page);
}

.expand-btn .material-icons-round {
  font-size: 20px;
  transition: transform 0.2s;
}

.expand-btn.open .material-icons-round {
  transform: rotate(-180deg);
}

.expand-row {
  display: none;
}

.expand-row.open {
  display: table-row;
}

.expand-row td {
  padding: 0 16px 14px;
}

.expand-content {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.expand-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.expand-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.expand-value {
  font-size: 13px;
  color: var(--text-primary);
}

/* ─── Breakpoints ─── */
/* LG: ≥1024px — default styles above */

@media (max-width: 1023px) {
  /* MD: 640px – 1023px */
  .sidebar {
    width: 64px;
    overflow: visible;
  }

  .sidebar-user {
    position: relative;
    justify-content: center;
    padding: 0 0 20px;
    cursor: pointer;
  }

  .sidebar-user-info {
    display: none;
  }

  .sidebar-label {
    display: none;
  }

  .sidebar-item {
    position: relative;
    justify-content: center;
    padding: 10px;
    border-left: none;
  }

  .sidebar-item.active {
    border-left: none;
  }

  .sidebar-tooltip {
    display: block;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #323232;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 400;
  }

  .sidebar-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #323232;
  }

  .sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
  }
}

@media (max-width: 639px) {
  /* SM: <640px */
}
