/* profile-page.css - GNC Account & Profile System */

body[data-page="profile"] {
  background-color: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.account-bg {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 16px 0 60px;
}

.account-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.breadcrumb-account {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 12px;
  color: #666;
}

.breadcrumb-account a {
  color: #111;
  text-decoration: underline;
  font-weight: 500;
}

.breadcrumb-account a:hover {
  color: #d31e25;
}

.breadcrumb-account li + li::before {
  content: ">";
  margin-right: 8px;
  color: #999;
}

/* Main Layout Grid */
.account-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left Navigation Sidebar (#secondary) */
.account-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.account-greeting-box {
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.account-greeting {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.account-nav-item {
  margin: 0;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-radius: 2px;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
}

.account-nav-link:hover {
  background: #f5f5f5;
  color: #000;
}

.account-nav-link.active {
  background: #f0f0f0;
  color: #111;
  font-weight: 800;
  border-left-color: #111;
}

.account-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #222;
}

.account-nav-icon svg {
  width: 16px;
  height: 16px;
}

.account-nav-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 16px 0;
}

/* Content Area (#primary) */
.account-content {
  flex: 1;
  min-width: 0;
}

.account-dashboard__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #111;
  margin: 0 0 24px;
}

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

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

/* Top Rewards Section */
.dashboard-rewards-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.rewards-summary-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rewards-logo-wrapper {
  margin-bottom: 12px;
}

.rewards-tier-img {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

.rewards-points-count {
  font-family: "Impact", "DIN Alternate", "Arial Black", sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #111;
  letter-spacing: 0.5px;
}

.rewards-points-count .points-val {
  color: #d31e25;
}

.progress-container {
  background: #f5f5f5;
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.progress-title {
  font-size: 12px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  text-align: center;
}

.bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #111;
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

.progress-cash-icon {
  width: 20px;
  height: 20px;
  color: #111;
  flex-shrink: 0;
}

.unlock-message {
  font-size: 12px;
  color: #555;
  margin-bottom: 16px;
  font-weight: 500;
}

.unlock-message .silver {
  color: #111;
  font-weight: 800;
}

.go-rewards-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: 2px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s ease;
}

.go-rewards-btn:hover {
  background: #333;
  color: #fff;
}

.rewards-terms-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
}

.rewards-terms-links a {
  color: #666;
  text-decoration: underline;
}

/* My Member Perks Card */
.member-perks-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.perks-header {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: #111;
  letter-spacing: 0.5px;
}

.perks-member-since {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.perks-member-since .star-red {
  color: #d31e25;
}

.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin-bottom: 18px;
  flex: 1;
}

.perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.perk-icon-wrap {
  width: 32px;
  height: 32px;
  color: #d31e25;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perk-title {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  margin-bottom: 3px;
}

.perk-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

.perk-action-link {
  color: #0066cc;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-left: 3px;
}

.perks-unlock-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #111;
}

/* Board Cards */
.board-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.board-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.board-card__heading {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: #111;
  letter-spacing: 0.5px;
}

.board-card__link {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.board-card__link:hover {
  text-decoration: underline;
}

.board-card__body {
  padding: 20px;
}

.card-empty-text {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
}

.card-sub-text {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.45;
}

.promo-copy-block {
  margin-bottom: 14px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.red-link {
  color: #d31e25;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.red-link:hover {
  text-decoration: underline;
}

/* Account Info 4-Tile Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-tile {
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  padding: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}

.info-tile-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.info-tile-label {
  font-size: 11px;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-tile-val {
  font-size: 13px;
  color: #111;
  font-weight: 500;
  margin-bottom: 8px;
  word-break: break-all;
}

.password-masked-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
}

.edit-pw-link {
  font-size: 11px;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

.tile-action-wrap {
  margin-top: 12px;
  padding-top: 6px;
}

/* Pro Access Banner */
.pro-access-banner {
  background: #111;
  color: #fff;
  padding: 18px 24px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.pro-banner-title {
  font-family: "Impact", "DIN Alternate", "Arial Black", sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.pro-banner-sub {
  font-size: 12px;
  color: #bbb;
  margin: 0;
}

.pro-banner-btn {
  background: #d31e25;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.pro-banner-btn:hover {
  background: #b0151b;
  color: #fff;
}

/* Purchase History Tab */
.purchase-history-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 860px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
}

.orders-table th {
  background: #f4f4f4;
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #222;
}

/* Rewards Tab Full Content */
.rewards-subtabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 24px;
}

.rewards-subtab-btn {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.rewards-subtab-btn.active {
  color: #111;
  border-bottom-color: #d31e25;
}

.reward-preferences-box {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.pref-radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.pref-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #222;
}

/* Addresses Tab */
.address-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.address-item-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.address-item-card.is-default {
  border-color: #111;
}

.default-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.address-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.address-card-lines {
  font-size: 13px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 12px;
}

.address-card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.address-delete-btn {
  background: none;
  border: none;
  color: #d31e25;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* Flyout Sliding Drawers */
.flyout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(1px);
}

.flyout-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.flyout-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #fff;
  z-index: 100001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.25);
}

.flyout-drawer.is-active {
  transform: translateX(0);
}

.flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  flex-shrink: 0;
}

.flyout-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flyout-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.flyout-heading {
  font-family: "Impact", "DIN Alternate", "Arial Black", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  color: #111;
  letter-spacing: 0.5px;
}

.flyout-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flyout-cancel-btn {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.flyout-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.flyout-close-btn svg {
  width: 18px;
  height: 18px;
}

.flyout-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Flyout Form Fields (Prints 3, 4, 5) */
.flyout-field {
  margin-bottom: 18px;
}

.flyout-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}

.flyout-field input,
.flyout-field select {
  width: 100%;
  height: 48px;
  border: 1px solid #111;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 14px;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.flyout-field input:focus,
.flyout-field select:focus {
  outline: none;
  border-color: #d31e25;
}

.flyout-field input[readonly] {
  background: #f6f6f6;
  border-color: #ccc;
  color: #555;
  cursor: not-allowed;
}

.flyout-field-row {
  display: flex;
  gap: 14px;
}

.flyout-field-row .flyout-field {
  flex: 1;
}

.flyout-section-title {
  font-family: "Impact", "DIN Alternate", "Arial Black", sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  margin: 20px 0 6px;
  letter-spacing: 0.3px;
}

.flyout-section-sub {
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
}

.flyout-submit-btn {
  width: 100%;
  height: 48px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.15s ease;
}

.flyout-submit-btn:hover {
  background: #333;
}

.flyout-cancel-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
}

.form-msg {
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

.form-msg.error {
  color: #d31e25;
  font-weight: 600;
}

.form-msg.success {
  color: #008800;
  font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .account-layout {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .dashboard-rewards-section {
    grid-template-columns: 1fr;
  }
  .account-info-grid {
    grid-template-columns: 1fr;
  }
  .pro-access-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Order Cards & Purchase History Enhancements */
.order-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.order-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-card-number {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.3px;
}

.order-card-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.order-card-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-processing {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-shipped {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.order-card-total {
  font-size: 15px;
  font-weight: 800;
  color: #111;
}

.order-card-body {
  padding: 18px 20px;
}

.order-items-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-item-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-meta {
  font-size: 12px;
  color: #64748b;
}

.order-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
  flex-shrink: 0;
}

.order-card-footer {
  border-top: 1px solid #f1f5f9;
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  background: #fafafa;
}

.btn-details {
  background: #ffffff;
  color: #d31e25;
  border: 1.5px solid #d31e25;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-details:hover {
  background: #d31e25;
  color: #ffffff;
}

.btn-track {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-track:hover {
  background: #374151;
  color: #fff;
}

/* Order Details Modal */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.order-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.order-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.order-modal-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #d31e25;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.order-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.order-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.order-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 4-Step Stepper */
.order-tracker-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.order-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-tracker-time {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.tracker-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 12px;
}

.tracker-stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #cbd5e1;
  z-index: 1;
}

.tracker-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  text-align: center;
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.tracker-step.done .step-icon {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.tracker-step.current .step-icon {
  background: #d31e25;
  border-color: #d31e25;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(211, 30, 37, 0.2);
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
  line-height: 1.25;
}

.step-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.step-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

/* USPS Tracking Card */
.usps-tracking-card {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #1e293b;
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.usps-carrier-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.usps-number {
  font-family: monospace;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: 1px;
}

.usps-track-btn {
  background: #1e293b;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.usps-track-btn:hover {
  background: #334155;
}

/* Modal Sections */
.modal-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

.modal-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-item-img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.modal-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.modal-item-qty {
  font-size: 12px;
  color: #64748b;
}

.modal-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  flex-shrink: 0;
}

/* Info Grid */
.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.modal-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-block-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-block-content {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.4;
}

.total-highlight {
  font-size: 18px;
  font-weight: 900;
  color: #d31e25;
}

.order-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.order-help-link {
  font-size: 12px;
  color: #d31e25;
  font-weight: 700;
  text-decoration: underline;
}
