.sycona-account-page {
  min-height: 40vh;
}

.account-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 600px;
}

.account-columns.has-register {
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
}

.account-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.account-section-desc {
  color: var(--color-text-light);
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}

.sycona-form .form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sycona-form .remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}

.sycona-form .remember-me input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.sycona-form .form-footer {
  margin-top: 1.5rem;
}

.sycona-form .form-footer a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.required-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.password-info {
  color: var(--color-text-light);
  font-size: 0.875rem;
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.account-nav {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--sticky-header-h) + 1.5rem);
}

.account-user-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.user-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

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

.user-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.9375rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-email {
  color: var(--color-text-light);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  list-style: none;
  margin: 0 !important;
  padding: 0.5rem !important;
  border: none !important;
}

.account-menu li {
  margin: 0 0 0.125rem !important;
  padding: 0 !important;
  border: none !important;
}

.account-nav .account-menu a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.account-nav .account-menu a svg {
  color: var(--color-text-light);
  flex-shrink: 0;
}

.account-nav .account-menu a:hover,
.account-nav .account-nav .account-menu li.is-active a {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.account-nav .account-menu a:hover svg,
.account-nav .account-menu li.is-active a svg {
  color: var(--color-primary);
}

.account-menu li.is-active a {
  font-weight: 700;
}

.account-content {
  min-width: 0;
}

.dashboard-greeting {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.dashboard-greeting h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin: 0 0 0.5rem;
}

.dashboard-greeting p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.9375rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.25rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.dash-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dash-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.dash-card-content {
  flex: 1;
  min-width: 0;
}

.dash-card-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-card-label {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.dash-card-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-section {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.section-head h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0;
}

.view-all {
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.recent-orders-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.recent-orders-table :is(th, td) {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  text-align: left;
  vertical-align: middle;
}

.recent-orders-table tr:last-child td {
  border-bottom: 0;
}

.recent-orders-table td:last-child {
  text-align: right;
}

.recent-orders-table th {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.recent-orders-table td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text);
}

.order-status {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
}

.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}
.status-processing {
  background: #e3f2fd;
  color: #1565c0;
}
.status-on-hold {
  background: #fff3e0;
  color: #ef6c00;
}
.status-pending {
  background: #f5f5f5;
  color: #616161;
}
.status-cancelled {
  background: #ffebee;
  color: #c62828;
}
.status-refunded {
  background: #f3e5f5;
  color: #6a1b9a;
}
.status-failed {
  background: #ffebee;
  color: #c62828;
}

.woocommerce form.login,
.woocommerce form.register,
.account-content > form,
.account-content .woocommerce-address-fields {
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
}

.account-content > form .woocommerce-address-fields {
  padding: 0;
  border: 0;
}

.account-content > form > h2,
.account-content > form > h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
}

.account-content > form > p:last-of-type,
.woocommerce-address-fields > p:last-child {
  margin: 0.5rem 0 0;
}

.address-intro {
  margin: 0 0 1rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.address-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.address-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  overflow: hidden;
}

.address-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.address-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.address-card-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
}

.address-card-edit {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.875rem;
  border: 1px solid #c9d0cc;
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.address-card-edit:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.address-card address {
  flex: 1;
  margin: 0;
  padding: 1.125rem 1.25rem 1.25rem;
  color: var(--color-secondary);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.7;
}

.address-card-empty {
  color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .account-nav {
    position: static;
  }

  .account-user-summary {
    display: none;
  }

  .account-nav .account-menu {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account-nav .account-menu li {
    flex-shrink: 0;
    margin: 0 !important;
  }

  .account-nav .account-menu a {
    padding: 0.5rem 0.875rem;
    white-space: nowrap;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

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

  .woocommerce form.login,
  .woocommerce form.register,
  .account-content > form,
  .account-content .woocommerce-address-fields {
    padding: 1.25rem;
  }

  .dashboard-greeting,
  .dashboard-section {
    padding: 1.25rem;
  }

  .recent-orders-table {
    display: block;
    overflow-x: auto;
  }
}

.orders-toolbar {
  display: none;
}

.orders-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.orders-table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}

.orders-col-number {
  width: 140px;
}

.orders-col-status {
  width: 165px;
}

.orders-col-total {
  width: 112px;
}

.orders-col-actions {
  width: 272px;
}

.orders-table :is(th, td) {
  padding: 1rem;
  border: 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  background: none;
  text-align: left;
  vertical-align: middle;
}

.orders-table th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.orders-table tbody tr:hover td {
  background: #fafbfa;
}

.orders-table .is-numeric {
  text-align: right;
}

.orders-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
}

.orders-sort .icon {
  opacity: 0.45;
}

.orders-sort:hover,
.orders-sort.is-active {
  color: var(--color-secondary);
}

.orders-sort.is-active .icon {
  opacity: 1;
}

.orders-cell-number a {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.orders-date {
  display: block;
  margin-top: 0.125rem;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.orders-table .order-status {
  white-space: nowrap;
}

.orders-products {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 0.875rem;
}

.orders-products li {
  line-height: 1.4;
}

.orders-products li + li {
  margin-top: 0.375rem;
}

.orders-product-name {
  color: var(--color-secondary);
}

.orders-product-qty,
.orders-products-more {
  color: var(--color-text-light);
  white-space: nowrap;
}

.orders-products-more {
  font-size: 0.8125rem;
}

.orders-total {
  display: block;
  color: var(--color-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.orders-total del {
  display: block;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  font-weight: 400;
}

.orders-items {
  display: block;
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.orders-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.375rem;
}

.order-action {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.order-action:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.order-action--pay:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.order-action--cancel {
  border-color: transparent;
  color: var(--color-accent);
}

.order-action--cancel:hover {
  border-color: transparent;
  background: #fdeceb;
  color: var(--color-accent);
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.orders-pagination .btn {
  min-height: 40px;
  padding: 0 1rem;
  gap: 0.375rem;
}

.orders-pagination-info {
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.orders-empty {
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-align: center;
}

.orders-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.orders-empty p {
  margin: 0 0 1.25rem;
  color: var(--color-text-light);
}

@media (max-width: 1200px) {
  .orders-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
  }

  .orders-sort-select {
    position: relative;
  }

  .orders-sort-select select {
    height: 40px;
    padding: 0 2.25rem 0 0.875rem;
    border: 1px solid var(--field-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-secondary);
    font-size: 0.875rem;
    appearance: none;
  }

  .orders-sort-select .icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .orders-card {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table,
  .orders-table tbody {
    display: block;
    table-layout: auto;
  }

  .orders-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number status"
      "number total"
      "products products"
      "actions actions";
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
  }

  .orders-table :is(th, td) {
    padding: 0;
    border: 0 !important;
  }

  .orders-table tbody tr:hover td {
    background: none;
  }

  .orders-cell-number {
    grid-area: number;
  }

  .orders-cell-status {
    grid-area: status;
    text-align: right;
  }

  .orders-cell-total {
    grid-area: total;
  }

  .orders-cell-products {
    grid-area: products;
    padding-top: 0.5rem !important;
  }

  .orders-products li {
    max-width: none;
  }

  .orders-cell-actions {
    grid-area: actions;
    margin-top: 0.5rem;
    padding-top: 0.75rem !important;
    border-top: 1px solid var(--color-border) !important;
  }

  .orders-actions {
    justify-content: flex-start;
  }

  .orders-items {
    display: inline;
    margin-left: 0.25rem;
  }

  .orders-total {
    display: inline;
  }
}

.order-summary-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.order-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 0;
}

.order-summary-meta dt {
  margin: 0 0 0.25rem;
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.order-summary-meta dd {
  margin: 0;
  color: var(--color-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.order-summary-total {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

.order-summary-total del {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 400;
}

.order-updates {
  margin-bottom: 1.75rem;
}

.order-updates-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.order-updates-list li {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.order-updates-list li + li {
  margin-top: 0.5rem;
}

.order-updates-list time {
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

.order-updates-text p {
  margin: 0.25rem 0 0;
}

.downloads-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.downloads-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.downloads-item + .downloads-item {
  border-top: 1px solid var(--color-border);
}

.downloads-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.downloads-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.downloads-name {
  color: var(--color-secondary);
  font-weight: 600;
  line-height: 1.4;
}

a.downloads-name:hover {
  color: var(--color-primary);
}

.downloads-product,
.downloads-meta {
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

.downloads-meta a {
  color: var(--color-primary);
  font-weight: 600;
}

.downloads-sep {
  margin: 0 0.375rem;
  color: #b8c0bc;
}

.downloads-button {
  flex-shrink: 0;
  gap: 0.375rem;
}

@media (max-width: 560px) {
  .downloads-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .downloads-info {
    flex-basis: calc(100% - 60px);
  }

  .downloads-button {
    margin-left: 60px;
  }
}
