.account-wrap {
  padding: 28px 0 24px;
  display: grid;
  gap: 14px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.5px;
}

.hero-card p {
  margin: 10px 0 0;
  color: #3f444a;
  max-width: 70ch;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

#loginCard {
  width: 100%;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.info {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control + .control {
  margin-top: 10px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.btn {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px;
  cursor: pointer;
}

.btn:hover {
  background: #f8f8f8;
}

.btn.primary {
  border-color: rgba(31, 95, 91, .35);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(.95);
}

.message {
  display: none;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  padding: 10px 12px;
}

.message.error {
  color: #7c2a2a;
  border-color: rgba(124, 42, 42, .2);
  background: rgba(124, 42, 42, .05);
}

.message.ok {
  color: var(--ok);
  border-color: rgba(21, 111, 61, .2);
  background: rgba(21, 111, 61, .06);
}

.dashboard {
  display: none;
  gap: 12px;
}

.dashboard-card {
  width: 100%;
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 9px 14px;
  cursor: pointer;
}

.tab-btn:hover {
  background: #f8f8f8;
}

.tab-btn.active {
  border-color: rgba(31, 95, 91, .35);
  background: rgba(31, 95, 91, .12);
  color: #18413e;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  margin: 0 0 12px;
}

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome h2 {
  margin: 0;
  font-size: 24px;
}

.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

/* ── Order card: 3-column grid ── */
.order-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: start;
  gap: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

/* Col 1 — meta block */
.order-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-id {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.order-date {
  color: var(--muted);
  font-size: 12px;
}

.order-desc {
  color: var(--muted);
  font-size: 12px;
}

/* ── Status badges ── */
.order-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
}

.order-badge--active  { background: #d1fae5; color: var(--ok); }
.order-badge--pending { background: #fef3c7; color: var(--warn); }
.order-badge--failed  { background: #fee2e2; color: #b91c1c; }

/* Col 2 — items list */
.order-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3f444a;
  font-size: 13px;
  line-height: 1.7;
}

/* Col 3 — total + actions */
.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.order-total {
  font-size: 14px;
  font-weight: 700;
}

.order-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Reset btn margin inside order card */
.order-item .btn {
  margin-top: 0;
}

/* Responsive — stack on narrow screens */
@media (max-width: 680px) {
  .order-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .order-right {
    align-items: flex-start;
  }
  .order-actions {
    justify-content: flex-start;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .tabs {
    width: 100%;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
