:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --navy: #08152f;
  --blue: #2878f0;
  --line: #e4e9f2;
  --canvas: #f5f7fc;
  --card: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); font: 14px/1.55 Inter, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(40, 120, 240, .28); outline-offset: 2px; }
.account-header { min-height: 72px; border-bottom: 1px solid #e9edf4; background: #fff; }
.account-header-inner { display: flex; width: min(1180px, calc(100% - 40px)); min-height: 72px; align-items: center; gap: 30px; margin: auto; }
.dataon-logo { display: inline-flex; align-items: center; gap: 10px; color: #0b1730; font-size: 19px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.dataon-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(140deg, #18c8ed, #426df2 65%, #8759ef); font-size: 16px; }
.account-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.2vw, 29px); }
.account-nav a { color: #4b566b; font-size: 12px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.account-nav a:hover, .account-nav a[aria-current="page"] { color: var(--blue); }
.profile-link { display: grid !important; width: 36px; height: 36px; place-items: center; border: 1px solid #e4eaf3; border-radius: 50%; color: #fff !important; background: #182b4e; font-size: 12px !important; }
.account-main { width: min(1120px, calc(100% - 40px)); margin: 32px auto 70px; }
.profile-banner { position: relative; display: flex; min-height: 190px; align-items: center; gap: 22px; overflow: hidden; padding: 28px clamp(22px, 5vw, 54px); border-radius: 18px; color: #fff; background: radial-gradient(ellipse at 82% 25%, rgba(52, 124, 255, .36), transparent 35%), linear-gradient(115deg, #0b1730, #12274b 62%, #101a39); box-shadow: 0 16px 36px rgba(13, 30, 65, .12); }
.profile-banner::after { position: absolute; right: 7%; bottom: -106px; width: 280px; height: 220px; border: 1px solid rgba(137, 193, 255, .17); border-radius: 50%; box-shadow: 0 0 0 24px rgba(137, 193, 255, .035), 0 0 0 50px rgba(137, 193, 255, .025); content: ""; pointer-events: none; }
.profile-avatar { position: relative; z-index: 1; display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: linear-gradient(140deg, #28b7e7, #5f70e9); font-size: 25px; font-weight: 700; }
.profile-copy { position: relative; z-index: 1; min-width: 0; }
.profile-copy p { margin: 0 0 5px; color: #a9c5ed; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.profile-copy h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.profile-copy .profile-email { margin-top: 6px; color: #c3cee0; font-size: 13px; letter-spacing: 0; }
.account-tabs { display: flex; gap: 7px; margin: 22px 0; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-tabs a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 19px; border-radius: 8px; color: #596579; font-size: 12px; font-weight: 650; text-decoration: none; transition: color .18s ease, background .18s ease; }
.account-tabs a:hover { color: var(--blue); }
.account-tabs a[aria-current="page"] { color: #1762d4; background: #edf4ff; }
.account-card { padding: clamp(20px, 3.2vw, 32px); border: 1px solid #e8edf5; border-radius: 15px; background: var(--card); box-shadow: 0 8px 26px rgba(20, 42, 78, .045); }
.card-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.card-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.order-count { color: var(--muted); font-size: 12px; }
.order-search { display: flex; gap: 9px; margin-bottom: 22px; }
.text-input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #dfe5ef; border-radius: 9px; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.text-input:focus { border-color: #69a1f7; outline: 0; box-shadow: 0 0 0 3px rgba(40, 120, 240, .1); }
.text-input::placeholder { color: #98a2b3; }
.primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.primary-button { color: #fff; background: linear-gradient(105deg, #2878f0, #4a68ea); box-shadow: 0 5px 13px rgba(40, 120, 240, .16); }
.primary-button:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.secondary-button { border-color: var(--line); color: #475467; background: #fff; }
.secondary-button:hover { background: #f8faff; }
button:disabled { cursor: not-allowed; opacity: .58; }
.empty-state { display: grid; min-height: 240px; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 12px; border: 1px solid #e4ebf5; border-radius: 18px; color: #7b8ba5; background: #f7f9fc; font-size: 25px; }
.empty-state strong { color: #344054; font-size: 14px; }
.empty-state p { margin: 5px 0 0; font-size: 12px; }
.order-list { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 20px; padding: 17px; border: 1px solid #e7ecf4; border-radius: 12px; background: #fff; }
.order-top, .order-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.order-code { color: #1c3764; font-size: 13px; font-weight: 750; }
.order-date { color: #7a8698; font-size: 11px; }
.status-pill { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 9px; border-radius: 999px; color: #8a5a08; background: #fff5dc; font-size: 10px; font-weight: 700; }
.status-pill.paid, .status-pill.delivered { color: #147047; background: #e7f8ef; }
.status-pill.failed, .status-pill.refunded { color: #ae3445; background: #fff0f1; }
.order-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 14px; grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid #eef1f6; }
.order-detail { min-width: 0; }
.order-detail small { display: block; margin-bottom: 3px; color: #8792a4; font-size: 10px; }
.order-detail strong { display: block; overflow-wrap: anywhere; color: #344054; font-size: 12px; font-weight: 600; }
.order-actions { display: flex; flex-wrap: wrap; gap: 7px; grid-column: 1 / -1; }
.order-actions a, .order-actions button { min-height: 32px; padding: 6px 10px; font-size: 10px; }
.install-data { grid-column: 1/-1; padding: 12px; border-radius: 9px; color: #344054; background: #f5f8fc; font-size: 11px; overflow-wrap: anywhere; }
.install-data img { display: block; width: 160px; max-width: 100%; margin-top: 9px; border: 1px solid #e4e9f2; border-radius: 8px; background: white; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: #344054; font-size: 12px; font-weight: 650; }
.form-field input { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-help { margin: 0; color: var(--muted); font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.section-divider { margin: 26px 0 20px; border: 0; border-top: 1px solid #edf0f5; }
.feedback { min-height: 21px; margin: 12px 0 0; color: #19724d; font-size: 12px; }
.feedback.error { color: #bd3445; }
.auth-main { display: grid; min-height: calc(100vh - 74px); place-items: center; padding: 34px 20px 60px; background: radial-gradient(ellipse at 50% 0, rgba(43, 122, 240, .1), transparent 38%), var(--canvas); }
.auth-card { width: min(100%, 440px); padding: clamp(24px, 5vw, 38px); border: 1px solid #e5eaf2; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(15, 36, 72, .09); }
.auth-card h1 { margin: 0; color: #101828; font-size: 25px; letter-spacing: -.045em; }
.auth-intro { margin: 8px 0 24px; color: #697586; font-size: 13px; }
.auth-form { display: grid; gap: 15px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 77px; }
.password-toggle { position: absolute; top: 50%; right: 9px; padding: 5px 6px; transform: translateY(-50%); border: 0; color: #63718a; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; color: #596579; font-size: 11px; }
.auth-links a { color: #276fdb; font-weight: 650; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-notice { margin-top: 14px; padding: 10px 12px; border: 1px solid #f5d38a; border-radius: 8px; color: #77530b; background: #fff8e6; font-size: 11px; }
.auth-back { display: inline-flex; margin-bottom: 23px; color: #64748b; font-size: 11px; text-decoration: none; }
.page-footer { padding: 18px 20px; color: #8792a4; font-size: 10px; text-align: center; }

@media (max-width: 760px) {
  .account-header-inner { width: min(100% - 28px, 1180px); flex-wrap: wrap; gap: 8px 18px; padding-block: 12px 0; }
  .account-header { min-height: auto; }
  .account-header-inner { min-height: 0; }
  .account-nav { flex-basis: 100%; justify-content: flex-start; gap: 22px; overflow-x: auto; padding: 5px 0 11px; }
  .account-nav a { flex: 0 0 auto; font-size: 11px; }
  .account-nav .profile-link { margin-left: auto; }
  .account-main { width: min(100% - 28px, 1120px); margin-top: 20px; }
  .profile-banner { min-height: 155px; padding: 22px; }
  .profile-avatar { width: 62px; height: 62px; flex-basis: 62px; }
}
@media (max-width: 520px) {
  .account-nav { gap: 17px; }
  .account-main { margin-bottom: 36px; }
  .profile-banner { min-height: 140px; gap: 14px; padding: 19px 16px; border-radius: 14px; }
  .profile-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 19px; }
  .profile-copy h1 { font-size: 21px; }
  .profile-copy .profile-email { font-size: 11px; overflow-wrap: anywhere; }
  .account-tabs { gap: 2px; margin-block: 15px; }
  .account-tabs a { flex: 1; padding-inline: 8px; font-size: 10px; }
  .account-card { padding: 18px 14px; }
  .card-heading { align-items: flex-start; flex-direction: column; margin-bottom: 17px; }
  .card-heading h2 { font-size: 17px; }
  .order-search { align-items: stretch; flex-direction: column; }
  .order-card { padding: 13px; }
  .order-details { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
