/*============================================================
   MY-ACCOUNT.HTML - PAGE STYLES
   ------------------------------------------------------------
   Change styles for ONLY this page here.
   Shared header/footer/navigation styles live in common.css.
   ============================================================*/

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4fa;
  font-size: 10px;
  font-weight: 900;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  margin: 28px 0;
}

@media (max-width:600px) {
  .order-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/*============================================================
   PAGE-SPECIFIC STYLES MOVED FROM THE HTML
   ============================================================*/

:root {
  --acc-blue: #087df1;
  --acc-blue-dark: #0567c9;
  --acc-navy: #061f3e;
  --acc-text: #102a43;
  --acc-muted: #718196;
  --acc-border: #dfe7ee;
  --acc-soft: #f5f8fb;
  --acc-green: #087642;
  --acc-red: #b42318;
  --acc-yellow: #8a6514;
}

body {
  margin: 0;
  background: var(--acc-soft);
  color: var(--acc-text);
}

/*=====================================================
       HEADER
       =====================================================*/

.account-header {
  background: #fff;
  border-bottom: 1px solid #e5ebf1;
}

.account-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-brand img {
  display: block;
  max-height: 50px;
  max-width: 185px;
  object-fit: contain;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-nav a,
    .account-nav button {
  border: 0;
  background: transparent;
  color: #31506e;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.account-nav a:hover,
    .account-nav button:hover {
  color: var(--acc-blue);
}

/*=====================================================
       HERO
       =====================================================*/

.account-hero {
  padding: 38px 0 34px;
  color: #fff;
  background: radial-gradient(
          circle at 85% 15%,
          rgba(8,125,241,.23),
          transparent 30%
        ),
        linear-gradient(
          135deg,
          #04182f,
          #083c6d
        );
}

.account-kicker {
  margin-bottom: 8px;
  color: #b8ff00;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-hero h1 {
  margin: 0 0 9px;
  font-size: clamp(30px,5vw,48px);
  line-height: 1.08;
}

.account-hero p {
  margin: 0;
  max-width: 650px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.7;
}

/*=====================================================
       MAIN
       =====================================================*/

.account-main {
  padding: 32px 0 80px;
}

.account-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.account-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 22px;
  align-items: start;
}

.account-card {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: 16px;
  box-shadow: 0 12px 35px
        rgba(7,31,61,.045);
  overflow: hidden;
}

.account-card-head {
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f5;
}

.account-card-head h2 {
  margin: 0 0 5px;
  color: var(--acc-text);
  font-size: 17px;
}

.account-card-head p {
  margin: 0;
  color: #8593a2;
  font-size: 10px;
  line-height: 1.5;
}

.account-card-body {
  padding: 22px;
}

/*=====================================================
       PROFILE
       =====================================================*/

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eaf5ff;
  color: var(--acc-blue);
  font-size: 20px;
  font-weight: 900;
}

.profile-name {
  min-width: 0;
}

.profile-name strong {
  display: block;
  margin-bottom: 3px;
  color: #17324e;
  font-size: 15px;
}

.profile-name span {
  color: #8493a2;
  font-size: 10px;
  word-break: break-word;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-field {
  display: grid;
  gap: 6px;
}

.profile-field label {
  color: #43566a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
}

.profile-field input {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #dce5ee;
  border-radius: 9px;
  outline: none;
  color: #17324e;
  background: #fff;
  font-size: 12px;
}

.profile-field input:focus {
  border-color: #84bef5;
  box-shadow: 0 0 0 3px
        rgba(8,125,241,.08);
}

.profile-field input[readonly] {
  background: #f7f9fb;
  color: #718196;
  cursor: not-allowed;
}

.profile-save {
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(
          90deg,
          var(--acc-blue),
          var(--acc-blue-dark)
        );
  font-weight: 850;
  font-size: 11px;
}

.profile-save:disabled {
  opacity: .65;
  cursor: wait;
}

/*=====================================================
       ACCOUNT MESSAGE
       =====================================================*/

.account-message {
  display: none;
  margin-bottom: 15px;
  padding: 12px 13px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
}

.account-message.success {
  display: block;
  background: #ecfff4;
  color: var(--acc-green);
  border: 1px solid #bdebd1;
}

.account-message.error {
  display: block;
  background: #fff2f2;
  color: var(--acc-red);
  border: 1px solid #ffd0d0;
}

/*=====================================================
       ORDERS
       =====================================================*/

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.orders-toolbar strong {
  color: #17324e;
  font-size: 12px;
}

.orders-toolbar a {
  color: var(--acc-blue);
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fafcfe;
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.order-id strong {
  display: block;
  margin-bottom: 4px;
  color: #17324e;
  font-size: 12px;
}

.order-id span {
  color: #8493a2;
  font-size: 9px;
}

.status-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.payment-pending,
    .status-pill.pending {
  background: #fff7df;
  color: var(--acc-yellow);
}

.status-pill.confirmed {
  background: #eaf3ff;
  color: #1559a6;
}

.status-pill.processing {
  background: #eef0ff;
  color: #4740a8;
}

.status-pill.dispatched {
  background: #e9f8ff;
  color: #086b8c;
}

.status-pill.delivered,
    .status-pill.paid {
  background: #e8fff2;
  color: var(--acc-green);
}

.status-pill.cancelled,
    .status-pill.failed,
    .status-pill.refunded {
  background: #fff0f0;
  color: var(--acc-red);
}

.order-card-bottom {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8eef3;
}

.order-meta small {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.order-meta strong {
  color: #263f57;
  font-size: 11px;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.order-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #d4dee8;
  border-radius: 8px;
  background: #fff;
  color: #23405b;
  text-decoration: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.order-action.primary {
  border-color: var(--acc-blue);
  background: var(--acc-blue);
  color: #fff;
}

.orders-empty,
    .account-loading {
  padding: 35px 18px;
  text-align: center;
  color: #718196;
  font-size: 11px;
}

/*=====================================================
       SECURITY BOX
       =====================================================*/

.account-security {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.account-security strong {
  display: block;
  margin-bottom: 4px;
  color: #2a4661;
  font-size: 10px;
}

.account-security p {
  margin: 0;
  color: #7c8b99;
  font-size: 9px;
  line-height: 1.6;
}

/*=====================================================
       PROFESSIONAL ORDER DETAILS MODAL
       =====================================================*/

body.modal-open {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3,18,35,.66);
  backdrop-filter: blur(5px);
}

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

.order-modal-panel {
  width: min(820px,100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0,20,45,.28);
}

.order-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.order-modal-kicker {
  margin-bottom: 5px;
  color: var(--acc-blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-modal-head h2 {
  margin: 0;
  color: #102a43;
  font-size: 20px;
}

.order-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  color: #34506a;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.order-modal-close:hover {
  background: #f5f8fb;
}

.order-modal-body {
  padding: 22px;
}

.order-modal-loading {
  padding: 45px 15px;
  text-align: center;
  color: #718196;
  font-size: 12px;
}

.order-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbfe;
}

.order-detail-status-left strong {
  display: block;
  margin-bottom: 4px;
  color: #17324e;
  font-size: 13px;
}

.order-detail-status-left span {
  color: #8493a2;
  font-size: 9px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.order-detail-box {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  background: #fff;
}

.order-detail-box small {
  display: block;
  margin-bottom: 5px;
  color: #8a99a8;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.order-detail-box strong {
  display: block;
  color: #263f57;
  font-size: 11px;
  word-break: break-word;
}

.order-detail-section {
  margin-top: 20px;
}

.order-detail-section-title {
  margin: 0 0 10px;
  color: #17324e;
  font-size: 12px;
  font-weight: 900;
}

.order-item-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
}

.order-item-table th,
    .order-item-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
  font-size: 10px;
}

.order-item-table th {
  background: #f6f9fc;
  color: #65778a;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-item-table td {
  color: #314b64;
}

.order-item-table tr:last-child td {
  border-bottom: 0;
}

.order-item-name {
  color: #17324e;
  font-weight: 850;
}

.order-item-table .right {
  text-align: right;
}

.order-total-card {
  margin-top: 12px;
  margin-left: auto;
  width: min(330px,100%);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  overflow: hidden;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f5;
  color: #65778a;
  font-size: 10px;
}

.order-total-row:last-child {
  border-bottom: 0;
}

.order-total-row.total {
  background: #f6faff;
  color: #102a43;
  font-size: 12px;
  font-weight: 900;
}

.order-timeline {
  display: grid;
  gap: 0;
}

.order-timeline-item {
  position: relative;
  padding: 0 0 18px 25px;
}

.order-timeline-item:last-child {
  padding-bottom: 0;
}

.order-timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  bottom: -2px;
  width: 1px;
  background: #dbe4ec;
}

.order-timeline-item:last-child::before {
  display: none;
}

.order-timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border: 3px solid #d9edff;
  border-radius: 50%;
  background: var(--acc-blue);
  box-sizing: border-box;
}

.order-timeline-item strong {
  display: block;
  margin-bottom: 3px;
  color: #263f57;
  font-size: 10px;
}

.order-timeline-item p {
  margin: 0 0 3px;
  color: #718196;
  font-size: 9px;
  line-height: 1.55;
}

.order-timeline-item time {
  color: #9aa7b4;
  font-size: 8px;
}

.order-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
}

.order-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d4dee8;
  border-radius: 8px;
  background: #fff;
  color: #23405b;
  text-decoration: none;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.order-modal-button.primary {
  border-color: var(--acc-blue);
  background: var(--acc-blue);
  color: #fff;
}

@media (max-width:700px) {
  .order-modal {
    padding: 10px;
  }

  .order-modal-panel {
    max-height: 94vh;
    border-radius: 14px;
  }

  .order-modal-head,
      .order-modal-body {
    padding: 16px;
  }

  .order-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-item-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width:430px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

/*=====================================================
       MOBILE
       =====================================================*/

@media (max-width:850px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:600px) {
  .account-header-inner {
    min-height: 62px;
  }

  .account-brand img {
    max-height: 42px;
    max-width: 150px;
  }

  .account-nav {
    gap: 10px;
  }

  .account-nav a,
      .account-nav button {
    font-size: 10px;
  }

  .account-hero {
    padding: 28px 0 26px;
  }

  .account-main {
    padding: 20px 0 55px;
  }

  .account-card-head,
      .account-card-body {
    padding: 18px;
  }

  .profile-grid-2 {
    grid-template-columns: 1fr;
  }

  .order-card-bottom {
    grid-template-columns: 1fr;
  }

  .status-stack {
    justify-content: flex-start;
  }
}

/*============================================================
   SAFE CUSTOM OVERRIDES
   Add future page-only edits below this line.
   ============================================================*/
