.account-page { min-height: 100vh; background: var(--surface); }
.account-nav { display: flex; align-items: center; gap: 22px; color: #374151; font-size: 14px; font-weight: 600; }
.account-nav a:hover { color: var(--primary); }
.account-nav button { padding: 8px 14px; color: #4b5563; background: white; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.account-nav button:hover { color: var(--error); border-color: #fecaca; }
.account-main { padding-top: 58px; padding-bottom: 80px; }
.account-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-sidebar { position: sticky; top: 96px; padding: 20px 12px 16px; background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, .06); }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 5px 10px 22px; border-bottom: 1px solid #edf1f5; }
.sidebar-avatar { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: #3b82f6; border-radius: 12px; font-size: 19px; font-weight: 900; line-height: 1; }
.sidebar-user > div:last-child { flex: 1; min-width: 0; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { color: #27364b; font-size: 14px; font-weight: 800; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.sidebar-user span { display: inline-block; margin-top: 5px; padding: 3px 9px; color: #166534; background: #dcfce7; border-radius: 999px; font-size: 11px; font-weight: 700; }
.sidebar-user span.is-disabled { color: #991b1b; background: #fee2e2; }
.account-menu { display: grid; gap: 4px; margin-top: 17px; }
.account-menu-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 48px; padding: 11px 13px; color: #667386; background: transparent; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.account-menu-item span { width: 23px; color: #9aa7b7; font-size: 19px; text-align: center; }
.account-menu-item:hover { color: #2563eb; background: #f5f8fd; }
.account-menu-item.is-active { color: #2563eb; background: #edf4ff; border-color: transparent; box-shadow: none; }
.account-menu-item.is-active span { color: #3b82f6; }
.account-workspace { min-width: 0; }
.account-view[hidden] { display: none; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.account-heading p { margin: 0 0 5px; color: var(--primary-dark); font-size: 14px; font-weight: 700; }
.account-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }
.account-badge { flex: 0 0 auto; padding: 6px 12px; color: #166534; background: #dcfce7; border-radius: 999px; font-size: 13px; font-weight: 700; }
.account-badge.is-disabled { color: #991b1b; background: #fee2e2; }
.subscription-expired { color: #dc2626 !important; font-weight: 700; }
.account-grid { display: grid; grid-template-columns: 1fr; align-items: start; gap: 24px; }
.profile-overview { overflow: hidden; color: white; border-radius: 16px; background: linear-gradient(125deg, #172554 0%, #1d4ed8 58%, #3b82f6 100%); box-shadow: 0 16px 35px rgba(30, 64, 175, .18); }
.account-grid > .profile-overview { grid-column: 1 / -1; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(191, 219, 254, .25); background: rgba(15, 23, 42, .14); }
.profile-stat { min-width: 0; padding: 20px 24px; border-right: 1px solid rgba(191, 219, 254, .2); }
.profile-stat:last-child { border-right: 0; }
.profile-stat span, .profile-stat small { display: block; color: #bfdbfe; font-size: 12px; }
.profile-stat strong { display: block; margin: 5px 0 2px; color: white; font-size: 20px; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; line-height: 1.35; }
.profile-stat small { color: #dbeafe; }
.profile-card { width: 100%; grid-column: 1; grid-row: 3; }
.client-download-card { width: 100%; grid-column: 1; grid-row: 2; }
.client-download-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.client-download-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.client-download-item { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 16px 18px; text-align: center; background: #fffcf5; border: 1px solid #fde7a6; border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.client-download-item:hover { border-color: #fbbf24; box-shadow: 0 8px 20px rgba(180, 83, 9, .08); transform: translateY(-2px); }
.client-platform-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; color: #fff; border-radius: 14px; }
.client-platform-icon svg { width: 36px; height: 36px; }
.client-platform-windows { background: #0ea5e9; }
.client-platform-macos { background: #64748b; }
.client-platform-android { background: #84cc16; }
.client-platform-ios { background: #111827; }
.client-download-item h3 { margin: 0 0 6px; color: #1e293b; font-size: 18px; }
.client-download-item p { min-height: 20px; margin: 0 0 16px; color: #94a3b8; font-size: 13px; line-height: 1.55; }
.client-download-item .btn { width: 100%; margin-top: auto; }
.help-card { max-width: 860px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px; transition: border-color .2s, background .2s, transform .2s; }
a.help-item:hover { background: #eff6ff; border-color: #bfdbfe; transform: translateY(-1px); }
.help-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; color: #2563eb; background: #dbeafe; border-radius: 10px; font-size: 20px; font-weight: 800; }
.help-item > span:nth-child(2) { min-width: 0; flex: 1; }
.help-item strong, .help-item small { display: block; }
.help-item strong { font-size: 14px; }
.help-item small { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.5; }
.help-item > b { color: #94a3b8; font-size: 22px; font-weight: 400; }
.card-mark { padding: 5px 10px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; font-size: 12px; font-weight: 700; }
.account-card { padding: 30px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 35px rgba(15, 23, 42, .04); }
.card-heading { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.card-heading h2 { margin: 0 0 4px; font-size: 21px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 14px; }
.detail-list dd { margin: 0; color: #374151; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.traffic-detail-row { grid-template-columns: 110px minmax(0, 1fr) !important; }
.traffic-detail-row dd { text-align: left; }
.traffic-summary { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; color: #374151; font-size: 15px; font-weight: 600; padding: 0 !important; border: 0 !important; }
.traffic-progress { display: block !important; width: 100%; height: 7px; margin-top: 8px; padding: 0 !important; overflow: hidden; background: #e5e7eb; border-radius: 999px; text-align: left; border: 0 !important; }
.traffic-progress span { display: block !important; width: 0; height: 100%; padding: 0 !important; background: #4caf50; border-radius: inherit; transition: width .25s ease; }
.traffic-progress.is-exceeded span { background: #dc2626; }
.traffic-progress.is-unlimited { opacity: .45; }
.invitation-list { display: grid; gap: 8px; }
.invitation-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.invitation-item span { color: var(--muted); font-size: 13px; }
.cashback-rules { margin: 0 0 28px; padding: 20px 22px; color: #475569; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; }
.cashback-rules div { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cashback-rules span { color: #92400e; font-size: 14px; font-weight: 700; }
.cashback-rules strong { color: #d97706; font-size: 28px; }
.cashback-rules p { margin: 8px 0; font-size: 14px; line-height: 1.7; }
.cashback-record-heading { margin-top: 30px; }
.invite-link { margin: -12px 0 22px; padding: 10px 12px; overflow-wrap: anywhere; color: #475569; font-size: 13px; line-height: 1.5; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }
.invite-link-copy { flex: 0 0 auto; }
.plan-upgrade-notice { display: block; margin-top: 8px !important; color: #64748b !important; font-size: 15px !important; font-weight: 500 !important; }
.plan-selection-guide { margin-top: 14px; padding: 12px 15px; color: #dc2626; background: #fff7f7; border-left: 3px solid #dc2626; border-radius: 0 8px 8px 0; }
.plan-selection-guide p { margin: 3px 0 !important; color: #dc2626 !important; font-size: 15px !important; font-weight: 700; line-height: 1.65; }
.plan-selection-guide strong { font-weight: 900; }
@media (max-width: 560px) { .invite-link-copy { padding: 8px 10px; font-size: 13px; } }
.password-card .form-group { margin-bottom: 16px; }
.password-card { max-width: 560px; }
.password-client-notice { margin-top: 8px !important; color: #dc2626 !important; font-weight: 700; }
.account-loading { padding: 70px 20px; color: var(--muted); background: white; border: 1px solid var(--border); border-radius: 14px; text-align: center; }
.plans-card, .orders-card { margin-top: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-item { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fbff); }
.plan-item.plan-downgrade { opacity: .55; filter: grayscale(.7); }
.plan-item.plan-downgrade .plan-buy { cursor: not-allowed; background: #cbd5e1; border-color: #cbd5e1; }
.plan-item h3 { margin: 0 0 10px; font-size: 19px; }
.plan-price { margin-bottom: 10px; color: var(--primary-dark); font-size: 28px; font-weight: 800; }
.plan-original-price { margin-bottom: 3px; color: var(--muted); font-size: 13px; text-decoration: line-through; }
.upgrade-price { color: #dc2626; font-size: 22px; }
.plan-item p { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.plan-features { display: grid; gap: 13px; margin: 8px 0 22px; padding: 0; list-style: none; color: #6b7280; font-size: 14px; line-height: 1.45; }
.plan-features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 9px; }
.plan-feature-check { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #fff; background: #55e878; border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 1; }
.plan-features li.is-warning { color: #ef2929; font-weight: 600; }
.plan-item .btn { margin-top: auto; width: 100%; }
.plan-balance-deduction { margin: 0 0 16px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1e3a5f; font-size: 13px; }
.plan-deduction-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.plan-deduction-toggle input { accent-color: var(--primary); }
.plan-deduction-amount { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 0; font-weight: 600; }
.plan-deduction-input { width: 76px; box-sizing: border-box; padding: 5px 7px; border: 1px solid #93c5fd; border-radius: 5px; background: #fff; font: inherit; color: #0f172a; }
.plan-payment-preview { margin-top: 10px; color: #475569; }
.plan-payment-preview strong { color: #0f766e; font-size: 16px; }
.plan-payment-method { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; font-size: 13px; color: #334155; }
.plan-payment-method > span { width: 100%; color: #64748b; font-weight: 600; }
.plan-payment-method label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.plan-payment-method input { accent-color: var(--primary); }
.orders-card .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th, .orders-table td { padding: 13px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; white-space: nowrap; }
.orders-table th { color: var(--muted); font-weight: 600; }
.order-status { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; font-size: 12px; font-weight: 700; }
.status-paid, .status-completed { color: #166534; background: #dcfce7; }
.status-pending { color: #92400e; background: #fef3c7; }
.status-cancelled, .status-expired, .status-failed { color: #991b1b; background: #fee2e2; }
.inline-loading, .empty-state { padding: 24px; color: var(--muted); text-align: center; }
.refresh-orders { min-height: 38px; padding: 7px 14px; }

@media (max-width: 820px) {
  .account-layout { grid-template-columns: 1fr; gap: 20px; }
  .account-sidebar { position: static; }
  .account-menu { grid-template-columns: repeat(3, 1fr); }
  .account-menu-item { justify-content: center; flex-direction: column; gap: 3px; padding: 9px 5px; text-align: center; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid > .profile-card, .account-grid > .client-download-card { grid-column: 1; }
  .client-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .profile-stat { border-right: 0; border-bottom: 1px solid #edf1f5; }
  .profile-stat:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .account-main { padding-top: 34px; }
  .account-heading { align-items: flex-start; }
  .account-nav a { display: none; }
  .account-card { padding: 22px 18px; }
  .client-download-heading { display: block; }
  .client-download-heading .card-mark { display: inline-block; margin-top: 12px; }
  .client-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-download-item { padding: 18px 10px 14px; }
  .client-download-item .btn { padding-inline: 8px; font-size: 13px; }
  .profile-welcome { padding: 24px 22px; }
  .profile-welcome .account-badge { display: none; }
  .detail-list > div { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
}
.orders-table button[data-order-id] {
  border: 1px solid #d9a2a2;
  background: transparent;
  color: #b54c4c;
  border-radius: 6px;
  padding: 3px 9px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 12px;
}
.orders-table button[data-order-id]:hover { background: #fff1f1; }
.orders-table button.retry-payment-button { border: 1px solid #93c5fd; background: #eff6ff; color: #2563eb; border-radius: 6px; padding: 3px 9px; margin-left: 8px; cursor: pointer; font-size: 12px; }
.orders-table button.retry-payment-button:hover { background: #dbeafe; }
.orders-table button:disabled { cursor: wait; opacity: .6; }

/* Action-oriented user dashboard */
.account-grid { gap: 20px; }
.profile-overview { padding: 0 30px; background: linear-gradient(128deg, #172554 0%, #1e40af 52%, #2563eb 100%); }
.profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -30px; }
.profile-stat { min-height: 146px; padding: 25px 30px 24px; }
.profile-stat strong { margin: 7px 0 4px; font-size: 25px; }
.profile-stat span { color: #bfdbfe; font-size: 13px; font-weight: 700; }
.profile-stat small { min-height: 18px; color: #dbeafe; font-size: 13px; }
.profile-traffic-stat strong { font-size: 29px; }
.profile-plan-stat strong.is-no-plan { margin: 7px 0 10px; font-size: 17px; }
.no-plan-purchase, .recent-order-purchase { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; color: #1d4ed8; background: #fff; border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; }
.no-plan-purchase:hover, .recent-order-purchase:hover { background: #eff6ff; }
.no-plan-purchase[hidden], .recent-order-purchase[hidden] { display: none; }
.overview-traffic-progress { width: 100%; height: 6px; margin-top: 13px; overflow: hidden; background: rgba(219, 234, 254, .28); border-radius: 999px; }
.overview-traffic-progress span { display: block; width: 0; height: 100%; background: #86efac; border-radius: inherit; transition: width .25s ease; }
.overview-traffic-progress.is-warning span { background: #fbbf24; }
.overview-traffic-progress.is-exceeded span { background: #f87171; }
.low-traffic-upgrade { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 8px 13px; color: #1d4ed8; background: #fff; border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; }
.low-traffic-upgrade:hover { background: #eff6ff; }
.low-traffic-upgrade[hidden] { display: none; }
.profile-overview .subscription-expired { color: #fecaca !important; }

/* The subscription summary is intentionally quiet: the account page uses
   white surfaces and light borders, reserving blue for labels and actions. */
.profile-overview { color: #1f2937; padding: 0; background: #fff; border: 1px solid #e5eaf1; border-radius: 14px; box-shadow: 0 10px 35px rgba(15, 23, 42, .04); }
.profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: #fff; border-top: 0; }
.profile-stat { min-height: 142px; padding: 24px 26px; border-right: 1px solid #edf1f5; }
.profile-stat span { color: #64748b; font-size: 13px; font-weight: 700; }
.profile-stat small { min-height: 18px; color: #64748b; font-size: 13px; }
.profile-stat strong { color: #172033; font-size: 24px; }
.profile-traffic-stat strong { color: #172033; font-size: 28px; }
.overview-traffic-progress { background: #e8edf4; }
.overview-traffic-progress span { background: #2563eb; }
.overview-traffic-progress.is-warning span { background: #f59e0b; }
.overview-traffic-progress.is-exceeded span { background: #dc2626; }
.no-plan-purchase, .low-traffic-upgrade { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }
.no-plan-purchase:hover, .low-traffic-upgrade:hover { background: #dbeafe; }

.quick-start-card { padding: 28px 30px 30px; }
.quick-start-intro h2 { margin: 6px 0 6px; color: #172033; font-size: 24px; }
.quick-start-intro p { margin: 0; color: #6b7280; font-size: 14px; }
.quick-start-label { color: #2563eb; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.quick-start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 22px; padding: 0; list-style: none; }
.quick-start-steps.is-four-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-start-steps li { display: flex; align-items: center; gap: 12px; padding: 15px; background: #f8fafc; border: 1px solid #e8edf4; border-radius: 11px; }
.quick-start-steps li[hidden] { display: none; }
.quick-start-steps li > b, .quick-start-step-button > b { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #fff; background: #2563eb; border-radius: 50%; font-size: 14px; }
.quick-start-steps .quick-start-purchase { padding: 0; border-color: #bfdbfe; background: #eff6ff; }
.quick-start-step-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.quick-start-purchase:hover { border-color: #60a5fa; background: #dbeafe; }
.quick-start-steps strong, .quick-start-steps small { display: block; }
.quick-start-steps strong { color: #263449; font-size: 14px; }
.quick-start-steps small { margin-top: 3px; color: #8a96a6; font-size: 12px; }
.client-download-grid { gap: 12px; }
.client-download-item { display: grid; grid-template-columns: 42px minmax(76px, 1fr) auto; align-items: center; gap: 7px; padding: 12px 10px; text-align: left; background: #fff; border-color: #e5eaf1; border-radius: 11px; }
.client-download-item:hover { border-color: #bfdbfe; box-shadow: 0 7px 18px rgba(37, 99, 235, .08); }
.client-platform-icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.client-platform-icon svg { width: 25px; height: 25px; }
.client-download-item h3 { margin: 0 0 2px; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; }
.client-download-item > div:nth-child(2) { min-width: 0; overflow: hidden; }
.client-download-item p { min-height: 32px; margin: 0; font-size: 11px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.client-action { padding: 7px; color: #2563eb; background: #eff6ff; border: 0; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.client-action:hover { background: #dbeafe; }

.system-announcement { display: flex; align-items: center; gap: 13px; padding: 15px 18px; color: #475569; background: #fffbeb; border: 1px solid #fde68a; border-radius: 11px; }
.system-announcement[hidden] { display: none; }
.announcement-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: #92400e; background: #fef3c7; border-radius: 50%; font-weight: 900; }
.system-announcement strong { color: #78350f; font-size: 14px; }
.system-announcement p { margin: 2px 0 0; font-size: 13px; }

.profile-secondary-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.profile-secondary-grid .account-card { padding: 22px 24px; box-shadow: none; }
.compact-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-card-heading span, .balance-summary-card span { display: block; color: #7c8797; font-size: 12px; font-weight: 700; }
.compact-card-heading strong { display: block; margin-top: 6px; color: #263449; font-size: 16px; }
.compact-card-heading button, .balance-summary-card button, .account-security-entry button { padding: 7px 10px; color: #2563eb; background: transparent; border: 0; font-size: 12px; font-weight: 800; cursor: pointer; }
.recent-order-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 14px; color: #8994a3; border-top: 1px solid #edf1f5; font-size: 12px; }
.recent-order-purchase { margin-top: 14px; color: #fff; background: #2563eb; }
.recent-order-purchase:hover { background: #1d4ed8; }
.balance-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fffbf0; border-color: #fde7a6; }
.balance-summary-card strong { display: block; margin: 4px 0 1px; color: #d97706; font-size: 26px; }
.balance-summary-card small { color: #a16207; font-size: 11px; }
.balance-summary-card button { color: #a16207; }
.account-security-entry { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 21px; background: #fff; border: 1px solid #e6ebf2; border-radius: 11px; }
.account-security-entry strong, .account-security-entry span { display: block; }
.account-security-entry strong { color: #334155; font-size: 14px; }
.account-security-entry span { margin-top: 3px; color: #94a3b8; font-size: 12px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 20px; align-items: start; }
.settings-grid .profile-card { grid-column: auto; grid-row: auto; }
.settings-grid .password-card { max-width: none; }

@media (max-width: 1100px) {
  .quick-start-steps.is-four-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .account-menu { grid-template-columns: repeat(5, 1fr); }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .profile-stat { border-right: 0; border-bottom: 1px solid rgba(191, 219, 254, .2); }
  .quick-start-steps, .quick-start-steps.is-four-steps { grid-template-columns: 1fr; }
  .profile-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .profile-overview { padding: 0; }
  .profile-stat-grid { margin: 0; }
  .profile-stat { padding: 18px 20px; }
  .quick-start-card { padding: 22px 18px; }
  .client-download-grid { grid-template-columns: 1fr; }
  .client-download-item { padding: 12px; }
  .account-menu { grid-template-columns: repeat(3, 1fr); }
  .recent-order-detail, .balance-summary-card, .account-security-entry { align-items: flex-start; }
}
/* Free trial uses the account page's white cards and blue actions. */
.free-trial-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #e2e8f0;border-radius:20px;padding:32px;color:#243449;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.2)}
.free-trial-dialog::backdrop{background:rgba(15,23,42,.42)}
.free-trial-icon{display:block;font-size:36px;margin-bottom:16px}
.free-trial-dialog h2{margin:0 0 18px;font-size:24px;line-height:1.4}
.free-trial-dialog p,.free-trial-dialog li{font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.free-trial-dialog ul{padding-left:22px}
.free-trial-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.free-trial-actions .btn{flex:1;white-space:nowrap}
.free-trial-dialog .free-trial-error{color:#dc2626}
.free-trial-dialog button:disabled{opacity:.6;cursor:wait}
.free-trial-dialog button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
@media(max-width:480px){.free-trial-dialog{padding:24px}.free-trial-dialog h2{font-size:21px}.free-trial-actions{flex-direction:column}}
