/* ============================================
   xSmart.cz — Account & Auth Pages
   Premium redesign (Alza/Apple style)
   ============================================ */

/* === AUTH PAGES (Login, Register, Password) === */

.xs-auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 48px 16px 64px;
}

.xs-auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  padding: 48px 40px 40px;
}

.xs-auth-card--wide {
  max-width: 520px;
}

.xs-auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.xs-auth-logo img {
  height: 36px;
  width: auto;
}

.xs-auth-logo .xs-auth-logo-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.xs-auth-logo .xs-auth-logo-text span {
  color: #2563eb;
}

.xs-auth-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.xs-auth-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* --- Form fields override for auth pages --- */

.xs-auth-card .form-group {
  margin-bottom: 20px;
  display: block !important;
  flex-direction: unset !important;
}

.xs-auth-card .form-group .form-control-label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 6px;
  padding: 0 !important;
  text-align: left !important;
}

.xs-auth-card .form-group .js-input-column,
.xs-auth-card .form-group [class*="col-md"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

.xs-auth-card .form-group .form-control-comment {
  display: none !important;
}

.xs-auth-card .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Satoshi', sans-serif;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  width: 100%;
  height: auto;
  box-shadow: none;
}

.xs-auth-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
  outline: none;
}

.xs-auth-card .form-control::placeholder {
  color: #94a3b8;
}

/* Password field with show/hide */
.xs-auth-card .input-group {
  position: relative;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.xs-auth-card .input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

.xs-auth-card .input-group .form-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.xs-auth-card .input-group .input-group-btn {
  display: flex;
  align-items: center;
}

.xs-auth-card .input-group .input-group-btn .btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.xs-auth-card .input-group .input-group-btn .btn:hover {
  color: #2563eb;
}

/* Password policy bar */
.xs-auth-card .field-password-policy {
  margin: 0;
  padding: 0;
}

/* Forgot password link */
.xs-auth-card .forgot-password {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 24px;
}

.xs-auth-card .forgot-password a {
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.xs-auth-card .forgot-password a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* --- Buttons --- */

.xs-auth-btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #f97316;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.xs-auth-btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
  color: #fff !important;
  text-decoration: none;
}

.xs-auth-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.xs-auth-btn-secondary {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  color: #2563eb !important;
  border: 2px solid #2563eb;
  border-radius: 12px;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.xs-auth-btn-secondary:hover {
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

/* Divider */
.xs-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.xs-auth-divider::before,
.xs-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.xs-auth-divider span {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Trust badge */
.xs-auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.xs-auth-trust svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

.xs-auth-trust span {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Login already link */
.xs-auth-already {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #64748b;
}

.xs-auth-already a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.xs-auth-already a:hover {
  text-decoration: underline;
}

/* Checkbox styling */
.xs-auth-card .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.xs-auth-card .custom-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  cursor: pointer;
}

.xs-auth-card .custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #2563eb;
}

/* Form errors */
.xs-auth-card .ps-alert-error,
.xs-auth-card .help-block {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  list-style: none;
}

.xs-auth-card .ps-alert-error .item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xs-auth-card .ps-alert-error .item i {
  display: none;
}

.xs-auth-card .form-group.has-error .form-control {
  border-color: #dc2626;
}

/* Radio buttons */
.xs-auth-card .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 0.9rem;
  color: #334155;
}

/* Select fields */
.xs-auth-card .form-control-select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: #f8fafc;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Birthday fields */
.xs-auth-card .js-parent-focus {
  display: flex;
  gap: 8px;
}

.xs-auth-card .js-parent-focus select {
  flex: 1;
  min-width: 0;
}

/* Hide original form footer, replaced by custom buttons */
.xs-auth-card .form-footer {
  margin-top: 24px;
  text-align: center;
}

.xs-auth-card .form-footer .btn-primary,
.xs-auth-card .form-footer .form-control-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #f97316 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  float: none !important;
}

.xs-auth-card .form-footer .btn-primary:hover,
.xs-auth-card .form-footer .form-control-submit:hover {
  background: #ea580c !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}

/* Required field indicator */
.xs-auth-card .form-control-label.required::after {
  content: ' *';
  color: #dc2626;
  font-weight: 700;
}

/* === MY ACCOUNT DASHBOARD === */

.xs-account-wrapper {
  padding: 32px 0 48px;
}

.xs-account-header {
  text-align: center;
  margin-bottom: 40px;
}

.xs-account-header h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.xs-account-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.xs-account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.xs-account-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.xs-account-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.xs-account-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #eff6ff;
}

.xs-account-card-icon svg {
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.xs-account-card-icon--orange {
  background: #fff7ed;
}

.xs-account-card-icon--orange svg {
  color: #f97316;
}

.xs-account-card-icon--green {
  background: #f0fdf4;
}

.xs-account-card-icon--green svg {
  color: #22c55e;
}

.xs-account-card-icon--purple {
  background: #faf5ff;
}

.xs-account-card-icon--purple svg {
  color: #8b5cf6;
}

.xs-account-card-icon--red {
  background: #fef2f2;
}

.xs-account-card-icon--red svg {
  color: #ef4444;
}

.xs-account-card-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.xs-account-card-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.xs-account-signout {
  text-align: center;
  margin-top: 32px;
}

.xs-account-signout a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.xs-account-signout a:hover {
  color: #ef4444;
}

.xs-account-signout svg {
  width: 18px;
  height: 18px;
}

/* === ORDER HISTORY === */

.xs-history-wrapper {
  padding: 16px 0 32px;
}

.xs-history-intro {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.xs-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.xs-history-table thead {
  background: #f8fafc;
}

.xs-history-table thead th {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.xs-history-table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.xs-history-table tbody tr:last-child td {
  border-bottom: none;
}

.xs-history-table tbody tr:hover {
  background: #f8fafc;
}

.xs-history-table .label-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

.xs-history-table .order-actions a {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 12px;
}

.xs-history-table .order-actions a:hover {
  text-decoration: underline;
}

/* Mobile order cards */
.xs-history-mobile {
  display: none;
}

.xs-history-mobile .xs-order-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.xs-history-mobile .xs-order-card h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.xs-history-mobile .xs-order-card .date,
.xs-history-mobile .xs-order-card .total {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 4px;
}

.xs-history-mobile .xs-order-card .total {
  font-weight: 700;
  color: #0f172a;
}

/* Empty state */
.xs-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.xs-empty-state svg {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.xs-empty-state p {
  color: #64748b;
  font-size: 0.95rem;
}

/* === ORDER DETAIL === */

.xs-order-detail .box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.xs-order-detail h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.xs-order-detail .box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xs-order-detail .box ul li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.xs-order-detail .box ul li:last-child {
  border-bottom: none;
}

.xs-order-detail .box ul li strong {
  color: #0f172a;
}

.xs-order-detail .addresses article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.xs-order-detail .addresses h4 {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.xs-order-detail .addresses address {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.xs-order-detail .button-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #f97316;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.xs-order-detail .button-primary:hover {
  background: #ea580c;
}

.xs-order-detail .table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-collapse: separate;
  border-spacing: 0;
}

.xs-order-detail .table thead {
  background: #f8fafc;
}

.xs-order-detail .table th {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.xs-order-detail .table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

/* === PASSWORD PAGES === */

.xs-auth-card .renew-password {
  padding: 0;
}

.xs-auth-card .renew-password .form-group {
  display: block !important;
}

.xs-auth-card .renew-password .form-group label {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  text-align: left !important;
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 6px;
}

.xs-auth-card .renew-password .form-group [class*="col-md"] {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.xs-auth-card .renew-password .email {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 20px;
}

.xs-auth-card .center-email-fields {
  display: block !important;
}

.xs-auth-card .center-email-fields label {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  text-align: left !important;
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 6px;
}

.xs-auth-card .center-email-fields .email {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin-bottom: 16px;
}

.xs-auth-card .center-email-fields .btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #f97316 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.xs-auth-card .center-email-fields .btn-primary:hover {
  background: #ea580c !important;
}

/* Forgotten password back link */
.xs-auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
}

.xs-auth-back-link:hover {
  text-decoration: underline;
}

.xs-auth-back-link svg {
  width: 18px;
  height: 18px;
}

/* === IDENTITY PAGE === */

.xs-identity-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.xs-identity-wrapper .xs-auth-card {
  max-width: 100%;
}

/* === ACCOUNT INNER PAGES LAYOUT === */

.xs-account-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 0 48px;
}

.xs-account-page-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

/* My account links footer */
.xs-account-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.xs-account-footer a {
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

.xs-account-footer a:hover {
  color: #2563eb;
}

.xs-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s;
}

.xs-logout-link:hover {
  color: #ef4444 !important;
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .xs-auth-card {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }

  .xs-auth-wrapper {
    padding: 24px 16px 40px;
  }

  .xs-account-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .xs-account-card {
    padding: 20px 16px;
  }

  .xs-history-table {
    display: none;
  }

  .xs-history-mobile {
    display: block;
  }

  .xs-order-detail .addresses .col-lg-6 {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .xs-account-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .xs-account-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .xs-account-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .xs-account-card-title {
    font-size: 0.85rem;
  }

  .xs-account-card-desc {
    display: none;
  }
}

/* === GUEST TRACKING === */

.xs-guest-tracking .box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

/* === PAGE.TPL OVERRIDE for account pages === */

body.page-my-account #left-column,
body.page-authentication #left-column,
body.page-registration #left-column,
body.page-password #left-column,
body.page-identity #left-column,
body.page-history #left-column,
body.page-order-detail #left-column,
body.page-guest-tracking #left-column,
body.page-addresses #left-column,
body.page-address #left-column,
body.page-order-follow #left-column,
body.page-order-slip #left-column,
body.page-discount #left-column {
  display: none !important;
}

body.page-my-account #content-wrapper,
body.page-authentication #content-wrapper,
body.page-registration #content-wrapper,
body.page-password #content-wrapper,
body.page-identity #content-wrapper,
body.page-history #content-wrapper,
body.page-order-detail #content-wrapper,
body.page-guest-tracking #content-wrapper,
body.page-addresses #content-wrapper,
body.page-address #content-wrapper,
body.page-order-follow #content-wrapper,
body.page-order-slip #content-wrapper,
body.page-discount #content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Hide default breadcrumb + page header on auth pages */
body.page-authentication .page-header,
body.page-registration .page-header,
body.page-password .page-header {
  display: none !important;
}

/* Account inner pages header styling */
body.page-my-account .page-header,
body.page-identity .page-header,
body.page-history .page-header,
body.page-order-detail .page-header,
body.page-addresses .page-header,
body.page-address .page-header {
  text-align: center;
  margin-bottom: 8px;
}

body.page-my-account .page-header h1,
body.page-identity .page-header h1,
body.page-history .page-header h1,
body.page-order-detail .page-header h1,
body.page-addresses .page-header h1,
body.page-address .page-header h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

/* === MY ACCOUNT: Alternative layout with bootstrap grid + xs-account-links === */

.xs-account-links {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  max-width: 760px;
  margin: 0 auto !important;
  padding: 0 !important;
}

.xs-account-link {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  flex: none !important;
  float: none !important;
  text-decoration: none !important;
  color: inherit !important;
}

.xs-account-link .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px 24px;
  transition: all 0.25s ease;
  cursor: pointer;
  height: 100%;
}

.xs-account-link:hover .link-item {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.xs-account-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #eff6ff;
}

.xs-account-icon svg {
  color: #2563eb;
}

.xs-account-card-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.xs-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s;
}

.xs-logout-link:hover {
  color: #ef4444 !important;
}

@media (max-width: 768px) {
  .xs-account-links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .xs-account-link .link-item {
    padding: 20px 16px;
  }
  .xs-account-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .xs-account-links {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .xs-account-card-label {
    font-size: 0.85rem;
  }
}
