* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter,
    Arial,
    sans-serif;
  color: #17202a;
  background: #f4f6f8;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.store-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #dfe4ea;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(10px);
}

.store-header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.store-brand {
  font-size: 20px;
  font-weight: 800;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.store-nav a {
  color: #5b6573;
  font-weight: 700;
}

.store-nav a:hover,
.store-nav a.active {
  color: #17202a;
}

.store-main {
  min-height: calc(100vh - 70px);
}

.store-hero {
  padding: 56px 0 36px;
  background:
    linear-gradient(
      135deg,
      #111827,
      #253345
    );
  color: white;
}

.store-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
}

.store-hero p {
  max-width: 650px;
  margin: 0;
  color: #d9e0e8;
  font-size: 18px;
  line-height: 1.6;
}

.store-filter-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: white;
  box-shadow:
    0 10px 30px
    rgb(15 23 42 / 6%);
}

.store-filter-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(200px, 1fr)
    );
  gap: 18px;
}

.store-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-field label {
  font-size: 14px;
  font-weight: 700;
}

.store-field input,
.store-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 9px;
  background: white;
}

.store-field input:focus,
.store-field select:focus {
  border-color: #17202a;
  outline: none;
  box-shadow:
    0 0 0 3px
    rgb(23 32 42 / 10%);
}

.store-filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #17202a;
  border-radius: 9px;
  background: #17202a;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.store-button:hover {
  background: #2d3745;
}

.store-button.secondary {
  border-color: #cfd6df;
  background: white;
  color: #17202a;
}

.store-button.secondary:hover {
  background: #f0f3f6;
}

.store-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.store-button.full-width {
  width: 100%;
}

.store-products-section {
  padding: 36px 0 60px;
}

.store-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.store-section-heading h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.store-section-heading p {
  margin: 0;
  color: #66717e;
}

.account-card-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(260px, 1fr)
    );
  gap: 20px;
}

.account-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: white;
  box-shadow:
    0 10px 24px
    rgb(15 23 42 / 5%);
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf1f5;
}

.account-card-header h3 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}

.account-card-header p {
  margin: 0;
  color: #66717e;
  overflow-wrap: anywhere;
}

.account-card-badges,
.account-feature-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-badge,
.account-feature-list span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf1f5;
  color: #3b4654;
  font-size: 12px;
  font-weight: 800;
}

.store-badge.verified {
  background: #dbeafe;
  color: #1e40af;
}

.store-badge.featured {
  background: #fef3c7;
  color: #92400e;
}

.account-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-stat-grid div {
  padding: 12px;
  border-radius: 10px;
  background: #f7f9fb;
}

.account-stat-grid span {
  display: block;
  margin-bottom: 4px;
  color: #66717e;
  font-size: 12px;
}

.account-stat-grid strong {
  font-size: 18px;
}

.account-price {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  gap: 4px;
}

.account-price strong {
  font-size: 24px;
}

.original-price {
  color: #8a94a2;
  text-decoration: line-through;
}

.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.store-message {
  min-height: 24px;
  margin-top: 18px;
  white-space: pre-line;
}

.store-message.success {
  color: #137333;
}

.store-message.error {
  color: #b42318;
}

.store-empty-state {
  grid-column: 1 / -1;
  padding: 46px 20px;
  border: 1px dashed #cfd6df;
  border-radius: 14px;
  background: white;
  color: #66717e;
  text-align: center;
}

.store-empty-state.error {
  color: #b42318;
}

@media (max-width: 720px) {
  .store-header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .store-nav {
    width: 100%;
    justify-content: space-between;
  }

  .store-hero {
    padding: 42px 0 30px;
  }

  .store-filter-panel {
    padding: 18px;
  }

  .account-card-grid {
    grid-template-columns: 1fr;
  }

  .store-pagination {
    flex-wrap: wrap;
  }
}
.account-detail-page {
  padding-top: 30px;
  padding-bottom: 60px;
}

.account-detail-toolbar {
  display: flex;
  margin-bottom: 20px;
}

.account-detail-layout {
  min-height: 300px;
}

.account-detail-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.account-detail-main,
.account-purchase-card {
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: white;
  box-shadow:
    0 10px 24px
    rgb(15 23 42 / 5%);
}

.account-detail-main {
  padding: 26px;
}

.account-detail-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.account-detail-avatar {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf1f5;
}

.account-detail-profile-text {
  min-width: 0;
}

.account-detail-profile-text h1 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  overflow-wrap: anywhere;
}

.account-detail-username {
  margin: 0;
  color: #66717e;
  font-size: 18px;
}

.account-detail-bio {
  margin: 16px 0 0;
  color: #4f5a68;
  line-height: 1.7;
  white-space: pre-line;
}

.account-detail-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.account-detail-stat-grid div {
  padding: 16px;
  border-radius: 12px;
  background: #f7f9fb;
}

.account-detail-stat-grid span {
  display: block;
  margin-bottom: 5px;
  color: #66717e;
  font-size: 13px;
}

.account-detail-stat-grid strong {
  font-size: 22px;
}

.account-detail-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e6eaf0;
}

.account-detail-section h2 {
  margin: 0 0 18px;
}

.account-detail-info-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-detail-info-item {
  padding: 14px;
  border-radius: 10px;
  background: #f7f9fb;
}

.account-detail-info-item span {
  display: block;
  margin-bottom: 5px;
  color: #66717e;
  font-size: 13px;
}

.account-detail-info-item strong {
  overflow-wrap: anywhere;
}

.account-detail-features {
  min-height: 30px;
}

.account-detail-note {
  margin: 0;
  color: #4f5a68;
  line-height: 1.7;
  white-space: pre-line;
}

.account-purchase-card {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.account-purchase-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-purchase-price strong {
  font-size: 32px;
}

.account-purchase-summary {
  display: grid;
  gap: 12px;
}

.account-purchase-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e6eaf0;
}

.account-purchase-summary span {
  color: #66717e;
}

.account-purchase-summary strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.account-purchase-warning {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 13px;
  line-height: 1.6;
}

.store-footer {
  padding: 24px 0;
  border-top: 1px solid #dfe4ea;
  background: white;
  color: #66717e;
  text-align: center;
}

@media (max-width: 900px) {
  .account-detail-card {
    grid-template-columns: 1fr;
  }

  .account-purchase-card {
    position: static;
  }
}

@media (max-width: 650px) {
  .account-detail-main {
    padding: 20px;
  }

  .account-detail-profile {
    align-items: center;
    flex-direction: column;
  }

  .account-detail-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .account-detail-stat-grid,
  .account-detail-info-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}
/* ===========================
   My Orders
=========================== */

.orders-list{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:24px;
}

.store-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:22px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:.2s;
}

.store-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.store-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:20px;
}

.store-card-header h2{
    margin:6px 0 0;
    font-size:26px;
    font-weight:700;
}

.store-card-header p{
    margin:0;
    color:#6b7280;
    font-size:14px;
}

.store-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:13px;
    font-weight:600;
}

.store-card-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:24px;
}

.store-card-grid div{
    background:#f9fafb;
    border-radius:10px;
    padding:14px;
}

.store-card-grid span{
    display:block;
    color:#6b7280;
    font-size:13px;
    margin-bottom:6px;
}

.store-card-grid strong{
    font-size:16px;
    color:#111827;
}

.store-card-actions{
    display:flex;
    justify-content:flex-end;
}

.store-empty-state{
    text-align:center;
    padding:50px;
    background:#fff;
    border-radius:14px;
    border:1px dashed #d1d5db;
    color:#6b7280;
}

.store-message{
    color:#dc2626;
    margin:18px 0;
}

@media(max-width:900px){

.store-card-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.store-card-header{
    flex-direction:column;
}

.store-card-grid{
    grid-template-columns:1fr;
}

.store-card-actions{
    justify-content:stretch;
}

.store-card-actions a{
    width:100%;
}

}
/* ==================================================
   ORDER DETAIL PAGE
================================================== */

.order-detail-page {
  padding-top: 32px;
  padding-bottom: 72px;
}

.order-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.order-detail-layout {
  display: grid;
  gap: 24px;
}

/* Card chính */

.order-detail-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e1e6ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 12px 36px
    rgb(15 23 42 / 7%);
}

.order-detail-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      #17202a,
      #475569,
      #17202a
    );
  content: "";
}

/* Header đơn hàng */

.order-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.order-detail-label {
  margin: 0 0 7px;
  color: #7b8794;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-detail-header h1 {
  margin: 0;
  color: #17202a;
  font-size: clamp(22px, 4vw, 32px);
  overflow-wrap: anywhere;
}

.order-status-badge {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid #a7e7bf;
  border-radius: 999px;
  background: #dcfae6;
  color: #087443;
  font-size: 13px;
  font-weight: 800;
}

/* Grid thông tin đơn */

.order-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.order-summary-grid > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #f3f6f9
    );
}

.order-summary-grid span {
  display: block;
  margin-bottom: 7px;
  color: #768291;
  font-size: 13px;
  font-weight: 600;
}

.order-summary-grid strong {
  display: block;
  color: #17202a;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Phần tài khoản TikTok */

.order-account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.order-account-avatar {
  display: flex;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3ea;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #17202a,
      #435064
    );
  color: #ffffff;
  box-shadow:
    0 8px 20px
    rgb(15 23 42 / 18%);
  font-size: 30px;
  font-weight: 800;
}

.order-account-header p {
  margin: 0 0 4px;
  color: #7b8794;
  font-size: 13px;
  font-weight: 700;
}

.order-account-header h2 {
  margin: 0 0 5px;
  color: #17202a;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.order-account-header > div:last-child > span {
  color: #677382;
  font-size: 14px;
  font-weight: 600;
}

/* Phần credentials */

.credentials-card {
  border-color: #cad7e3;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcfd 100%
    );
}

.credentials-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.credentials-heading h2 {
  margin: 0;
  color: #17202a;
  font-size: 26px;
}

.credentials-warning {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #f1d59a;
  border-radius: 12px;
  background: #fff8e8;
  color: #78510b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.credentials-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.credential-item {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e2e7ec;
  border-radius: 13px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.credential-item:hover {
  border-color: #b7c3cf;
  box-shadow:
    0 8px 22px
    rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.credential-item > span {
  display: block;
  margin-bottom: 10px;
  color: #74808d;
  font-size: 13px;
  font-weight: 700;
}

.credential-value-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.credential-value-row strong {
  min-width: 0;
  flex: 1;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Nút hiện/ẩn và sao chép */

.copy-button,
.toggle-secret-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #ccd4dd;
  border-radius: 8px;
  background: #ffffff;
  color: #273444;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.copy-button:hover,
.toggle-secret-button:hover {
  border-color: #17202a;
  background: #17202a;
  color: #ffffff;
}

/* Recovery codes */

.recovery-codes-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e2e7ec;
  border-radius: 13px;
  background: #f8fafc;
}

.recovery-codes-box > div {
  min-width: 0;
  flex: 1;
}

.recovery-codes-box span {
  display: block;
  margin-bottom: 10px;
  color: #74808d;
  font-size: 13px;
  font-weight: 700;
}

.recovery-codes-box pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border-radius: 9px;
  background: #17202a;
  color: #e7edf3;
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Trạng thái chưa thanh toán */

.order-detail-card .store-empty-state {
  padding: 42px 24px;
  border-color: #d8dee6;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.7;
}

/* Hiệu ứng khi tải trang */

.order-detail-card {
  animation:
    order-card-appear
    0.35s ease both;
}

.order-detail-card:nth-child(2) {
  animation-delay: 0.05s;
}

.order-detail-card:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes order-card-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 900px) {
  .order-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 650px) {
  .order-detail-page {
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .order-detail-card {
    padding: 20px;
    border-radius: 14px;
  }

  .order-detail-header,
  .credentials-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .order-status-badge {
    align-self: flex-start;
  }

  .credentials-heading .store-button {
    width: 100%;
  }

  .order-summary-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .order-account-header {
    align-items: flex-start;
  }

  .order-account-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 24px;
  }

  .order-account-header h2 {
    font-size: 21px;
  }

  .credential-value-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .credential-value-row strong {
    width: 100%;
    flex-basis: 100%;
  }

  .copy-button,
  .toggle-secret-button {
    flex: 1;
  }

  .recovery-codes-box {
    flex-direction: column;
  }

  .recovery-codes-box .copy-button {
    width: 100%;
  }
}
/* =========================================================
   PREMIUM CUSTOMER STORE UI
   Dán ở cuối public/admin/css/store.css
========================================================= */

:root {
  --store-ink: #111827;
  --store-ink-soft: #263548;
  --store-muted: #667085;
  --store-line: #e4e9ef;
  --store-surface: #ffffff;
  --store-background: #f3f6f9;
  --store-success: #087443;
  --store-success-bg: #dcfae6;
  --store-warning: #9a6700;
  --store-warning-bg: #fff4cf;
  --store-danger: #b42318;
  --store-danger-bg: #fee4e2;
  --store-shadow:
    0 18px 48px
    rgb(15 23 42 / 8%);
  --store-shadow-hover:
    0 28px 70px
    rgb(15 23 42 / 14%);
}

/* =========================
   Nền và bố cục tổng thể
========================= */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgb(75 85 99 / 7%),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgb(15 23 42 / 5%),
      transparent 32%
    ),
    var(--store-background);
  color: var(--store-ink);
}

.store-container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.store-main {
  min-height: calc(100vh - 150px);
}

/* =========================
   Header cao cấp
========================= */

.store-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid
    rgb(228 233 239 / 88%);
  background:
    rgb(255 255 255 / 90%);
  box-shadow:
    0 8px 30px
    rgb(15 23 42 / 5%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.store-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.store-brand {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--store-ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.store-brand::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid
    rgb(255 255 255 / 14%);
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      #111827,
      #334155
    );
  box-shadow:
    0 10px 24px
    rgb(15 23 42 / 20%);
  color: #ffffff;
  content: "T";
  font-size: 17px;
  font-weight: 900;
}

.store-brand::after {
  position: absolute;
  right: -9px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #12b76a;
  content: "";
}

/* =========================
   Navigation khách hàng
========================= */

.store-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.store-nav > a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 11px;
  color: #5d6978;
  font-size: 14px;
  font-weight: 750;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.store-nav > a:hover {
  background: #f1f4f7;
  color: var(--store-ink);
  transform: translateY(-1px);
}

.store-nav > a.active {
  background:
    linear-gradient(
      145deg,
      #111827,
      #29364d
    );
  box-shadow:
    0 8px 20px
    rgb(15 23 42 / 17%);
  color: #ffffff;
}

.store-nav > a.active::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background:
    rgb(255 255 255 / 75%);
  content: "";
}

/* =========================
   Tên người dùng
========================= */

.customer-user-name {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  max-width: 250px;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 7px 13px 7px 8px;
  border: 1px solid #e1e6ec;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f7f9fb
    );
  box-shadow:
    0 6px 18px
    rgb(15 23 42 / 5%);
  color: #768291;
  font-size: 13px;
  white-space: nowrap;
}

.customer-user-name::before {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #17202a,
      #3b4758
    );
  color: #ffffff;
  content: "U";
  font-size: 12px;
  font-weight: 900;
}

.customer-user-name strong {
  max-width: 130px;
  overflow: hidden;
  color: var(--store-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   Nút đăng xuất
========================= */

.customer-logout-button,
.store-nav .store-button.secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid #d8dfe7;
  border-radius: 11px;
  background: #ffffff;
  color: #3e4957;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.customer-logout-button:hover,
.store-nav .store-button.secondary:hover {
  border-color: #f0b4af;
  background: #fff5f4;
  box-shadow:
    0 8px 20px
    rgb(180 35 24 / 9%);
  color: var(--store-danger);
  transform: translateY(-1px);
}

/* =========================
   Hero cửa hàng
========================= */

.store-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background:
    linear-gradient(
      125deg,
      #101827 0%,
      #1e2d41 52%,
      #314158 100%
    );
  color: #ffffff;
}

.store-hero::before {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background:
    rgb(255 255 255 / 5%);
  content: "";
}

.store-hero::after {
  position: absolute;
  bottom: -150px;
  left: -110px;
  width: 350px;
  height: 350px;
  border: 1px solid
    rgb(255 255 255 / 7%);
  border-radius: 80px;
  background:
    rgb(255 255 255 / 2%);
  content: "";
  transform: rotate(30deg);
}

.store-hero .store-container {
  position: relative;
  z-index: 1;
}

.store-hero h1 {
  max-width: 800px;
  margin: 0 0 13px;
  font-size:
    clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.store-hero p {
  max-width: 650px;
  margin: 0;
  color: #dbe3ec;
  font-size: 17px;
  line-height: 1.75;
}

/* =========================
   Tiêu đề trang
========================= */

.store-page-heading,
.account-detail-toolbar {
  margin-bottom: 26px;
}

.store-page-heading h1,
.account-detail-toolbar h1 {
  margin: 0 0 8px;
  color: var(--store-ink);
  font-size:
    clamp(27px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.store-page-heading p,
.account-detail-toolbar p {
  margin: 0;
  color: var(--store-muted);
  line-height: 1.65;
}

/* =========================
   Bộ lọc cửa hàng
========================= */

.store-filter-card,
.store-panel {
  border: 1px solid
    rgb(225 230 236 / 90%);
  border-radius: 20px;
  background:
    rgb(255 255 255 / 95%);
  box-shadow: var(--store-shadow);
  backdrop-filter: blur(12px);
}

.store-filter-card {
  position: relative;
  margin-top: 28px;
  padding: 26px;
}

.store-filter-card::before {
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #17202a,
      transparent
    );
  content: "";
}

.store-filter-card h2 {
  margin: 0 0 5px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.store-filter-card > p {
  margin: 0 0 21px;
  color: var(--store-muted);
  font-size: 14px;
}

.store-filter-grid {
  gap: 16px;
}

.store-field label {
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.store-field input,
.store-field select {
  min-height: 46px;
  border: 1px solid #d4dbe3;
  border-radius: 11px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.store-field input:hover,
.store-field select:hover {
  border-color: #aeb8c3;
}

.store-field input:focus,
.store-field select:focus {
  border-color: #17202a;
  outline: none;
  box-shadow:
    0 0 0 4px
    rgb(23 32 42 / 9%);
  transform: translateY(-1px);
}

/* =========================
   Nút chung
========================= */

.store-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid #17202a;
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      #17202a,
      #29364d
    );
  box-shadow:
    0 8px 18px
    rgb(15 23 42 / 14%);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.store-button:hover {
  background:
    linear-gradient(
      145deg,
      #263548,
      #111827
    );
  box-shadow:
    0 13px 26px
    rgb(15 23 42 / 20%);
  transform: translateY(-2px);
}

.store-button:active {
  transform: translateY(0);
}

.store-button.secondary {
  border-color: #d7dee6;
  background: #ffffff;
  box-shadow: none;
  color: #344054;
}

.store-button.secondary:hover {
  border-color: #aeb8c3;
  background: #f8fafc;
  color: var(--store-ink);
}

/* =========================
   Danh sách tài khoản
========================= */

.store-section-heading {
  margin-top: 32px;
  margin-bottom: 18px;
}

.store-section-heading h2 {
  margin: 0 0 5px;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.store-section-heading p {
  margin: 0;
  color: var(--store-muted);
}

.account-grid,
.store-account-grid {
  gap: 22px;
}

/* =========================
   Card tài khoản
========================= */

.account-card,
.store-account-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e6ec;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcfd 100%
    );
  box-shadow:
    0 12px 32px
    rgb(15 23 42 / 7%);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.account-card::before,
.store-account-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      #111827,
      #475569,
      #111827
    );
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
}

.account-card:hover,
.store-account-card:hover {
  border-color: #c4ced8;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-5px);
}

.account-card:hover::before,
.store-account-card:hover::before {
  opacity: 1;
}

/* Avatar */

.account-avatar,
.store-account-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #dce3ea;
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      #eef2f6,
      #dfe5eb
    );
  color: #17202a;
  box-shadow:
    inset 0 1px 0
    rgb(255 255 255 / 70%);
  font-size: 20px;
  font-weight: 900;
}

/* Badge */

.store-badge,
.account-type-badge,
.account-status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #b7e8c7;
  border-radius: 999px;
  background: var(--store-success-bg);
  color: var(--store-success);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Thông tin thống kê */

.account-stat,
.store-stat,
.account-meta-item {
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #f3f6f9
    );
}

.account-stat span,
.store-stat span,
.account-meta-item span {
  color: #7b8794;
  font-size: 11px;
}

.account-stat strong,
.store-stat strong,
.account-meta-item strong {
  color: var(--store-ink);
  font-size: 16px;
}

/* Giá */

.account-price,
.store-account-price {
  color: var(--store-ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

/* =========================
   Đơn hàng
========================= */

.orders-list {
  gap: 22px;
}

.store-card {
  border-radius: 19px;
  box-shadow:
    0 13px 34px
    rgb(15 23 42 / 7%);
}

.store-card:hover {
  border-color: #c7d0da;
  box-shadow:
    0 24px 60px
    rgb(15 23 42 / 12%);
  transform: translateY(-4px);
}

.store-card-grid > div {
  border: 1px solid #edf0f3;
  background:
    linear-gradient(
      145deg,
      #fafbfc,
      #f4f7f9
    );
}

/* =========================
   Thông báo và trạng thái rỗng
========================= */

.store-message:not(:empty) {
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid #f1bab5;
  border-radius: 11px;
  background: #fff3f2;
  color: var(--store-danger);
  font-weight: 650;
}

.store-empty-state {
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fafc
    );
  box-shadow:
    0 12px 32px
    rgb(15 23 42 / 5%);
}

/* =========================
   Footer
========================= */

.store-footer {
  margin-top: 60px;
  border-top: 1px solid #e4e9ef;
  background:
    rgb(255 255 255 / 78%);
  backdrop-filter: blur(14px);
}

.store-footer .store-container {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.store-footer p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
}

/* =========================
   Hiệu ứng xuất hiện
========================= */

.store-filter-card,
.store-card,
.account-card,
.store-account-card {
  animation:
    premium-store-appear
    0.4s ease both;
}

@keyframes premium-store-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Tablet
========================= */

@media (max-width: 920px) {
  .store-header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 16px;
  }

  .store-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .store-nav::-webkit-scrollbar {
    height: 4px;
  }

  .store-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd3dc;
  }

  .customer-user-name {
    margin-left: 0;
  }

  .store-hero {
    padding: 48px 0;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 650px) {
  .store-container {
    width: min(100% - 24px, 1180px);
  }

  .store-header {
    position: relative;
  }

  .store-header-inner {
    padding-block: 14px;
  }

  .store-brand {
    font-size: 18px;
  }

  .store-brand::before {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .store-nav {
    align-items: stretch;
    flex-wrap: wrap;
    overflow: visible;
  }

  .store-nav > a {
    min-height: 39px;
    flex: 1 1 auto;
    padding: 8px 11px;
    font-size: 13px;
  }

  .customer-user-name {
    width: 100%;
    max-width: none;
    order: -1;
  }

  .customer-user-name strong {
    max-width: calc(100vw - 160px);
  }

  .customer-logout-button {
    flex: 1;
  }

  .store-hero {
    padding: 40px 0;
  }

  .store-hero h1 {
    font-size: 36px;
  }

  .store-hero p {
    font-size: 15px;
  }

  .store-filter-card {
    padding: 20px;
    border-radius: 16px;
  }

  .store-filter-card h2 {
    font-size: 22px;
  }

  .store-button {
    min-height: 43px;
  }

  .store-footer {
    margin-top: 42px;
  }

  .store-footer .store-container {
    min-height: 72px;
  }
}
.customer-user-name {
  text-decoration: none;
}

.customer-user-name:hover {
  border-color: #b8c2ce;
  background: #f8fafc;
  box-shadow:
    0 10px 24px
    rgb(15 23 42 / 9%);
  transform: translateY(-1px);
}

.customer-user-name.active {
  border-color: #17202a;
  box-shadow:
    0 0 0 3px
    rgb(23 32 42 / 8%);
}
.store-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.store-button.danger {
  border-color: #f0b4af;
  background: #ffffff;
  box-shadow: none;
  color: #b42318;
}

.store-button.danger:hover {
  border-color: #b42318;
  background: #fff1f0;
  box-shadow:
    0 10px 22px
    rgb(180 35 24 / 12%);
  color: #9d1c13;
}

.store-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.store-message.success:not(:empty) {
  border-color: #a7e7bf;
  background: #e8faef;
  color: #087443;
}

.store-message.error:not(:empty) {
  border-color: #f3bbb6;
  background: #fff0ef;
  color: #a4261b;
}

.store-badge.warning {
  border-color: #f1d59a;
  background: #fff8e8;
  color: #78510b;
}

.store-badge.danger {
  border-color: #f3bbb6;
  background: #fff0ef;
  color: #a4261b;
}

.store-badge.success {
  border-color: #a7e7bf;
  background: #e8faef;
  color: #087443;
}

@media (max-width: 620px) {
  .store-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-card-actions
  .store-button {
    width: 100%;
  }
}
/* =========================================================
   STORE UI V2 - COLOR + MOTION + MOBILE 2 COLUMNS
   Dán ở CUỐI CÙNG public/admin/css/store.css
========================================================= */

:root {
  --tm-pink: #ff2d6f;
  --tm-pink-dark: #e6004c;
  --tm-cyan: #00d7d7;
  --tm-blue: #2563eb;
  --tm-purple: #7c3aed;

  --tm-dark: #111827;
  --tm-text: #1f2937;
  --tm-muted: #64748b;

  --tm-card: rgba(255, 255, 255, 0.96);
  --tm-line: rgba(148, 163, 184, 0.24);

  --tm-shadow:
    0 14px 35px rgba(15, 23, 42, 0.08);

  --tm-shadow-hover:
    0 24px 60px rgba(15, 23, 42, 0.16);
}


/* =========================================================
   BODY
========================================================= */

body {
  background:
    radial-gradient(
      circle at 8% 15%,
      rgba(0, 215, 215, 0.09),
      transparent 26%
    ),
    radial-gradient(
      circle at 90% 30%,
      rgba(255, 45, 111, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(124, 58, 237, 0.06),
      transparent 30%
    ),
    #f5f7fb;

  color: var(--tm-text);
}


/* =========================================================
   HEADER
========================================================= */

.store-header {
  border-bottom:
    1px solid rgba(148, 163, 184, 0.18);

  background:
    rgba(255, 255, 255, 0.90);

  box-shadow:
    0 8px 35px rgba(15, 23, 42, 0.07);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* Logo */

.store-brand {
  background:
    linear-gradient(
      90deg,
      var(--tm-dark),
      var(--tm-purple),
      var(--tm-pink)
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
}


/* Icon T */

.store-brand::before {
  background:
    linear-gradient(
      145deg,
      #111827 0%,
      #202c42 45%,
      #3730a3 100%
    );

  box-shadow:
    -4px 5px 0 rgba(0, 215, 215, 0.55),
    4px -4px 0 rgba(255, 45, 111, 0.40),
    0 10px 24px rgba(15, 23, 42, 0.20);
}


/* Menu */

.store-nav > a {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.store-nav > a:hover {
  background:
    linear-gradient(
      135deg,
      rgba(0, 215, 215, 0.10),
      rgba(255, 45, 111, 0.08)
    );

  transform: translateY(-2px);
}


.store-nav > a.active {
  border: 0;

  background:
    linear-gradient(
      135deg,
      #111827,
      #283750
    );

  box-shadow:
    -3px 3px 0 rgba(0, 215, 215, 0.38),
    3px -3px 0 rgba(255, 45, 111, 0.30),
    0 10px 24px rgba(15, 23, 42, 0.15);

  color: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.store-hero {
  position: relative;
  overflow: hidden;

  padding:
    64px 0 58px;

  background:
    linear-gradient(
      125deg,
      #0f172a 0%,
      #172554 38%,
      #3b1b55 70%,
      #18181b 100%
    );

  background-size: 200% 200%;

  animation:
    tmHeroGradient
    12s ease infinite;

  color: #ffffff;
}


@keyframes tmHeroGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.store-hero::before {
  position: absolute;

  top: -170px;
  right: -80px;

  width: 430px;
  height: 430px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0, 242, 234, 0.25),
      transparent 65%
    );

  content: "";

  animation:
    tmFloatOne
    8s ease-in-out infinite;
}


.store-hero::after {
  position: absolute;

  bottom: -190px;
  left: -100px;

  width: 430px;
  height: 430px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 0, 80, 0.25),
      transparent 65%
    );

  content: "";

  animation:
    tmFloatTwo
    10s ease-in-out infinite;
}


@keyframes tmFloatOne {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-35px, 30px);
  }
}


@keyframes tmFloatTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(40px, -25px);
  }
}


.store-hero h1 {
  text-shadow:
    0 8px 28px rgba(0, 0, 0, 0.25);

  letter-spacing: -0.04em;
}


.store-hero p {
  color:
    rgba(255, 255, 255, 0.80);
}


/* =========================================================
   FILTER
========================================================= */

.store-filter-panel {
  position: relative;

  overflow: hidden;

  margin-top: 32px;

  border:
    1px solid rgba(148, 163, 184, 0.22);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 251, 255, 0.98) 55%,
      rgba(255, 247, 251, 0.98)
    );

  box-shadow:
    0 18px 55px rgba(15, 23, 42, 0.09);
}


.store-filter-panel::before {
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--tm-cyan),
      var(--tm-blue),
      var(--tm-purple),
      var(--tm-pink)
    );

  content: "";
}


.store-field input,
.store-field select {
  border:
    1px solid #dce3ec;

  border-radius: 12px;

  background: #ffffff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}


.store-field input:hover,
.store-field select:hover {
  border-color: #aab7c7;
}


.store-field input:focus,
.store-field select:focus {
  border-color:
    rgba(37, 99, 235, 0.65);

  box-shadow:
    0 0 0 4px
    rgba(37, 99, 235, 0.10);

  transform:
    translateY(-1px);
}


/* =========================================================
   BUTTON
========================================================= */

.store-button {
  position: relative;

  overflow: hidden;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #111827 0%,
      #24324a 100%
    );

  box-shadow:
    0 8px 20px
    rgba(15, 23, 42, 0.16);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}


.store-button:hover {
  background:
    linear-gradient(
      135deg,
      #172033,
      #334155
    );

  box-shadow:
    0 13px 27px
    rgba(15, 23, 42, 0.22);

  transform:
    translateY(-2px);
}


.store-button:active {
  transform:
    translateY(0)
    scale(0.98);
}


/* Nút xem chi tiết */

.account-card
.store-button:not(.secondary) {
  background:
    linear-gradient(
      135deg,
      #111827 0%,
      #312e81 100%
    );
}


/* Nút thêm giỏ */

.account-card
.store-button.secondary {
  border:
    1px solid rgba(255, 45, 111, 0.25);

  background:
    linear-gradient(
      135deg,
      rgba(255, 45, 111, 0.08),
      rgba(0, 215, 215, 0.07)
    );

  box-shadow: none;

  color: #b3134e;
}


.account-card
.store-button.secondary:hover {
  border-color:
    rgba(255, 45, 111, 0.45);

  background:
    linear-gradient(
      135deg,
      rgba(255, 45, 111, 0.15),
      rgba(0, 215, 215, 0.12)
    );
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.account-card-grid {
  gap: 22px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.account-card {
  position: relative;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.20);

  border-radius: 20px;

  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 1),
      rgba(249, 251, 255, 1)
    );

  box-shadow:
    var(--tm-shadow);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;

  animation:
    tmCardAppear
    0.45s ease both;
}


.account-card::before {
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--tm-cyan),
      var(--tm-blue),
      var(--tm-purple),
      var(--tm-pink)
    );

  content: "";
}


.account-card::after {
  position: absolute;

  top: -70px;
  right: -70px;

  width: 150px;
  height: 150px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(124, 58, 237, 0.08),
      transparent 70%
    );

  pointer-events: none;

  content: "";
}


.account-card:hover {
  border-color:
    rgba(99, 102, 241, 0.25);

  box-shadow:
    var(--tm-shadow-hover);

  transform:
    translateY(-7px);
}


@keyframes tmCardAppear {
  from {
    opacity: 0;

    transform:
      translateY(16px)
      scale(0.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


/* Delay nhẹ từng thẻ */

.account-card:nth-child(2n) {
  animation-delay: 0.04s;
}

.account-card:nth-child(3n) {
  animation-delay: 0.08s;
}

.account-card:nth-child(4n) {
  animation-delay: 0.12s;
}


/* Avatar */

.account-avatar {
  border:
    3px solid #ffffff;

  box-shadow:
    0 0 0 2px
    rgba(0, 215, 215, 0.20),
    0 8px 18px
    rgba(15, 23, 42, 0.12);

  transition:
    transform 0.25s ease;
}


.account-card:hover
.account-avatar {
  transform:
    scale(1.07)
    rotate(-2deg);
}


/* Username */

.account-card-header h3 {
  color: #111827;

  font-weight: 900;

  letter-spacing:
    -0.02em;
}


.account-card-header p {
  color: #8490a0;
}


/* =========================================================
   BADGES
========================================================= */

.store-badge {
  border:
    1px solid rgba(148, 163, 184, 0.16);

  background:
    linear-gradient(
      135deg,
      #eef2ff,
      #f5f3ff
    );

  color: #4338ca;
}


.store-badge.verified {
  border-color:
    rgba(37, 99, 235, 0.15);

  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #e0f2fe
    );

  color: #1d4ed8;
}


.store-badge.featured {
  border-color:
    rgba(245, 158, 11, 0.20);

  background:
    linear-gradient(
      135deg,
      #fff7d6,
      #ffedd5
    );

  color: #a16207;
}


/* LIVE SHOP AFFILIATE... */

.account-feature-list span {
  border:
    1px solid rgba(0, 215, 215, 0.13);

  background:
    linear-gradient(
      135deg,
      rgba(0, 215, 215, 0.09),
      rgba(255, 45, 111, 0.07)
    );

  color: #475569;
}


/* =========================================================
   STATS
========================================================= */

.account-stat-grid div {
  border:
    1px solid rgba(148, 163, 184, 0.12);

  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #f1f5f9
    );

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.account-card:hover
.account-stat-grid div {
  background:
    linear-gradient(
      145deg,
      #f8fbff,
      #f6f5ff
    );
}


/* =========================================================
   PRICE
========================================================= */

.account-price strong {
  background:
    linear-gradient(
      90deg,
      #e11d48,
      #7c3aed
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;

  font-weight: 900;

  letter-spacing:
    -0.035em;
}


/* =========================================================
   PAGINATION
========================================================= */

.store-pagination {
  padding-top: 12px;
}


.store-pagination #page-info {
  padding: 9px 15px;

  border:
    1px solid #e2e8f0;

  border-radius: 999px;

  background: #ffffff;

  box-shadow:
    0 5px 16px rgba(15, 23, 42, 0.06);

  color: #475569;

  font-weight: 800;
}


/* =========================================================
   MOBILE
   QUAN TRỌNG: 2 THẺ / 1 HÀNG
========================================================= */

@media (max-width: 720px) {

  .store-container {
    width:
      calc(100% - 20px);
  }


  /* Header */

  .store-header-inner {
    gap: 10px;

    padding:
      11px 0 9px;
  }


  .store-brand {
    font-size: 18px;
  }


  .store-brand::before {
    width: 34px;
    height: 34px;

    border-radius: 11px;
  }


  /* Menu kéo ngang */

  .store-nav {
    width: 100%;

    justify-content:
      flex-start;

    gap: 5px;

    overflow-x: auto;

    padding-bottom: 3px;

    scrollbar-width: none;

    -webkit-overflow-scrolling:
      touch;
  }


  .store-nav::-webkit-scrollbar {
    display: none;
  }


  .store-nav > a,
  .customer-logout-button {
    min-height: 36px;

    flex:
      0 0 auto;

    padding:
      7px 10px;

    font-size: 12px;
  }


  /* Hero */

  .store-hero {
    padding:
      36px 0 32px;
  }


  .store-hero h1 {
    margin-bottom: 9px;

    font-size:
      clamp(27px, 8vw, 36px);
  }


  .store-hero p {
    font-size: 14px;

    line-height: 1.6;
  }


  /* Filter */

  .store-filter-panel {
    margin-top: 18px;

    padding: 15px;

    border-radius: 16px;
  }


  .store-filter-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 10px;
  }


  .store-field {
    gap: 5px;
  }


  .store-field label {
    font-size: 11px;
  }


  .store-field input,
  .store-field select {
    min-height: 39px;

    padding: 8px;

    border-radius: 9px;

    font-size: 12px;
  }


  .store-filter-actions {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 8px;

    margin-top: 13px;
  }


  .store-filter-actions
  .store-button {
    width: 100%;

    min-height: 40px;

    padding: 8px;

    font-size: 12px;
  }


  /* =====================================================
     2 PRODUCT CARDS / ROW
  ===================================================== */

  .account-card-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 9px;
  }


  .account-card {
    gap: 10px;

    padding: 11px;

    border-radius: 14px;
  }


  .account-card::before {
    height: 3px;
  }


  /* Header card */

  .account-card-header {
    gap: 8px;

    align-items: center;
  }


  .account-avatar {
    width: 43px;
    height: 43px;

    flex-basis: 43px;

    border-width: 2px;
  }


  .account-card-header > div {
    min-width: 0;
  }


  .account-card-header h3 {
    max-width: 100%;

    margin-bottom: 2px;

    overflow: hidden;

    font-size: 13px;

    text-overflow:
      ellipsis;

    white-space: nowrap;
  }


  .account-card-header p {
    max-width: 100%;

    overflow: hidden;

    font-size: 10px;

    text-overflow:
      ellipsis;

    white-space: nowrap;
  }


  /* Badge */

  .account-card-badges,
  .account-feature-list {
    gap: 4px;
  }


  .store-badge,
  .account-feature-list span {
    padding:
      3px 6px;

    font-size: 8px;

    line-height: 1.2;
  }


  /* Stats */

  .account-stat-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 5px;
  }


  .account-stat-grid div {
    min-width: 0;

    padding:
      7px 5px;

    border-radius: 8px;
  }


  .account-stat-grid span {
    margin-bottom: 2px;

    font-size: 8px;
  }


  .account-stat-grid strong {
    display: block;

    overflow: hidden;

    font-size: 12px;

    text-overflow:
      ellipsis;

    white-space: nowrap;
  }


  /* Giá */

  .account-price {
    gap: 2px;
  }


  .account-price strong {
    font-size:
      clamp(
        15px,
        4.3vw,
        19px
      );
  }


  .original-price {
    font-size: 10px;
  }


  /* Button */

  .account-card
  .store-button {
    min-height: 35px;

    padding:
      6px 5px;

    border-radius: 9px;

    font-size: 10px;

    line-height: 1.2;
  }


  .store-products-section {
    padding:
      25px 0 45px;
  }


  .store-section-heading h2 {
    font-size: 22px;
  }


  .store-section-heading p {
    font-size: 12px;
  }


  /* Pagination */

  .store-pagination {
    gap: 6px;
  }


  .store-pagination
  .store-button {
    min-height: 37px;

    padding:
      7px 9px;

    font-size: 11px;
  }


  .store-pagination
  #page-info {
    padding:
      7px 9px;

    font-size: 11px;
  }
}


/* =========================================================
   MOBILE RẤT NHỎ
   VẪN GIỮ 2 CARD / HÀNG
========================================================= */

@media (max-width: 380px) {

  .store-container {
    width:
      calc(100% - 14px);
  }


  .account-card-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 7px;
  }


  .account-card {
    padding: 9px;

    gap: 8px;
  }


  .account-avatar {
    width: 37px;
    height: 37px;

    flex-basis: 37px;
  }


  .account-card-header {
    gap: 6px;
  }


  .account-card-header h3 {
    font-size: 11px;
  }


  .account-card-header p {
    font-size: 9px;
  }


  .account-stat-grid div {
    padding:
      6px 3px;
  }


  .account-stat-grid span {
    font-size: 7px;
  }


  .account-stat-grid strong {
    font-size: 10px;
  }


  .account-price strong {
    font-size: 14px;
  }


  .account-card
  .store-button {
    min-height: 32px;

    font-size: 9px;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {

  .store-hero,
  .store-hero::before,
  .store-hero::after,
  .account-card {
    animation: none;
  }


  .account-card,
  .account-avatar,
  .store-button,
  .store-nav > a {
    transition: none;
  }
}
/* =========================================================
   ACCOUNT DETAIL V2
   Giao diện chi tiết tài khoản cao cấp
========================================================= */

.account-detail-page {
  position: relative;
  padding-top: 34px;
  padding-bottom: 80px;
}


/* =========================================================
   TOOLBAR
========================================================= */

.account-detail-toolbar {
  margin-bottom: 22px;
}

.account-detail-toolbar .store-button.secondary {
  border:
    1px solid rgba(148, 163, 184, 0.22);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 8px 24px
    rgba(15, 23, 42, 0.06);

  color: #334155;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.account-detail-toolbar
.store-button.secondary:hover {
  border-color:
    rgba(124, 58, 237, 0.28);

  box-shadow:
    0 12px 30px
    rgba(15, 23, 42, 0.10);

  transform:
    translateY(-2px);
}


/* =========================================================
   LAYOUT
========================================================= */

.account-detail-card {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 350px);

  gap: 22px;
}


/* =========================================================
   CARD CHÍNH
========================================================= */

.account-detail-main {
  position: relative;

  overflow: hidden;

  padding: 28px;

  border:
    1px solid rgba(148, 163, 184, 0.20);

  border-radius: 22px;

  background:
    linear-gradient(
      155deg,
      #ffffff 0%,
      #fbfdff 55%,
      #fffafd 100%
    );

  box-shadow:
    0 18px 55px
    rgba(15, 23, 42, 0.08);
}


/* Thanh màu trên card */

.account-detail-main::before {
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #00d7d7,
      #2563eb,
      #7c3aed,
      #ff2d6f
    );

  content: "";
}


/* Hiệu ứng nền */

.account-detail-main::after {
  position: absolute;

  top: -130px;
  right: -120px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(124, 58, 237, 0.08),
      transparent 68%
    );

  pointer-events: none;

  content: "";
}


/* =========================================================
   PROFILE
========================================================= */

.account-detail-profile {
  position: relative;
  z-index: 1;

  align-items: center;
}


/* Avatar */

.account-detail-avatar {
  width: 116px;
  height: 116px;

  flex-basis: 116px;

  border: 4px solid #ffffff;

  box-shadow:
    -4px 5px 0
    rgba(0, 215, 215, 0.25),

    4px -4px 0
    rgba(255, 45, 111, 0.20),

    0 14px 32px
    rgba(15, 23, 42, 0.14);

  transition:
    transform 0.3s ease;
}

.account-detail-main:hover
.account-detail-avatar {
  transform:
    scale(1.04)
    rotate(-2deg);
}


/* Badge loại account */

.account-detail-profile
.store-badge {
  border:
    1px solid
    rgba(99, 102, 241, 0.16);

  background:
    linear-gradient(
      135deg,
      #eef2ff,
      #f5f3ff
    );

  color: #4f46e5;
}


/* Tên */

.account-detail-profile-text h1 {
  margin-top: 10px;

  background:
    linear-gradient(
      90deg,
      #111827,
      #312e81,
      #be185d
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;

  font-weight: 900;

  letter-spacing:
    -0.035em;
}

.account-detail-username {
  color: #748094;
}


/* =========================================================
   STAT: FOLLOWER / FOLLOWING / LIKE / VIDEO
========================================================= */

.account-detail-stat-grid {
  gap: 12px;
}

.account-detail-stat-grid div {
  position: relative;

  overflow: hidden;

  min-width: 0;

  padding: 16px;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #f1f5f9
    );

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.account-detail-stat-grid div:hover {
  box-shadow:
    0 10px 24px
    rgba(15, 23, 42, 0.08);

  transform:
    translateY(-2px);
}

.account-detail-stat-grid div:nth-child(1) {
  background:
    linear-gradient(
      145deg,
      #ecfeff,
      #f0fdfa
    );
}

.account-detail-stat-grid div:nth-child(2) {
  background:
    linear-gradient(
      145deg,
      #eff6ff,
      #eef2ff
    );
}

.account-detail-stat-grid div:nth-child(3) {
  background:
    linear-gradient(
      145deg,
      #fff1f2,
      #fdf2f8
    );
}

.account-detail-stat-grid div:nth-child(4) {
  background:
    linear-gradient(
      145deg,
      #faf5ff,
      #f5f3ff
    );
}

.account-detail-stat-grid span {
  color: #7a8697;

  font-size: 12px;
  font-weight: 650;
}

.account-detail-stat-grid strong {
  color: #111827;

  font-size: 22px;
  font-weight: 900;
}


/* =========================================================
   SECTION
========================================================= */

.account-detail-section {
  position: relative;
  z-index: 1;

  margin-top: 28px;
  padding-top: 25px;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.18);
}

.account-detail-section h2 {
  margin-bottom: 17px;

  color: #17202a;

  font-size: 22px;

  letter-spacing:
    -0.025em;
}


/* =========================================================
   THÔNG TIN TÀI KHOẢN
========================================================= */

.account-detail-info-grid {
  gap: 10px;
}

.account-detail-info-item {
  min-width: 0;

  padding: 14px;

  border:
    1px solid
    rgba(148, 163, 184, 0.12);

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #f3f6fa
    );

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.account-detail-info-item:hover {
  border-color:
    rgba(99, 102, 241, 0.20);

  background: #ffffff;

  transform:
    translateY(-1px);
}

.account-detail-info-item span {
  color: #8490a1;

  font-size: 11px;
  font-weight: 650;
}

.account-detail-info-item strong {
  display: block;

  color: #182230;

  font-weight: 800;
}


/* =========================================================
   CARD MUA HÀNG BÊN PHẢI
========================================================= */

.account-purchase-card {
  position: sticky;

  top: 100px;

  overflow: hidden;

  padding: 24px;

  border:
    1px solid
    rgba(148, 163, 184, 0.20);

  border-radius: 20px;

  background:
    linear-gradient(
      160deg,
      #ffffff 0%,
      #fbfcff 52%,
      #fff8fb 100%
    );

  box-shadow:
    0 18px 50px
    rgba(15, 23, 42, 0.10);
}


/* Accent trên card */

.account-purchase-card::before {
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #00d7d7,
      #7c3aed,
      #ff2d6f
    );

  content: "";
}


/* Giá */

.account-purchase-price strong {
  display: inline-block;

  background:
    linear-gradient(
      90deg,
      #e11d48,
      #7c3aed
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;

  font-size: 34px;

  font-weight: 950;

  letter-spacing:
    -0.04em;
}


/* Thông tin username / trạng thái */

.account-purchase-summary div {
  padding: 13px 0;

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.16);
}

.account-purchase-summary span {
  color: #7c8797;
}

.account-purchase-summary strong {
  color: #17202a;

  font-weight: 800;
}


/* =========================================================
   BUTTON MUA NGAY
========================================================= */

.account-purchase-card
.store-button:not(.secondary) {
  min-height: 48px;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #111827 0%,
      #312e81 65%,
      #4c1d95 100%
    );

  box-shadow:
    0 11px 25px
    rgba(49, 46, 129, 0.22);

  color: #ffffff;

  font-weight: 850;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.account-purchase-card
.store-button:not(.secondary):hover {
  box-shadow:
    0 16px 34px
    rgba(49, 46, 129, 0.30);

  transform:
    translateY(-2px);
}


/* =========================================================
   WARNING
========================================================= */

.account-purchase-warning {
  border:
    1px solid
    rgba(245, 158, 11, 0.18);

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #fffbea,
      #fff7e6
    );

  color: #8a5800;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  .account-detail-card {
    grid-template-columns: 1fr;
  }

  .account-purchase-card {
    position: static;
  }
}


@media (max-width: 650px) {

  .account-detail-page {
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .account-detail-main {
    padding: 17px;

    border-radius: 17px;
  }

  .account-detail-profile {
    flex-direction: row;

    align-items: center;

    gap: 12px;
  }

  .account-detail-avatar {
    width: 68px;
    height: 68px;

    flex-basis: 68px;

    border-width: 3px;
  }

  .account-detail-profile-text {
    min-width: 0;
  }

  .account-detail-profile-text h1 {
    max-width: 100%;

    margin:
      6px 0 3px;

    overflow: hidden;

    font-size: 23px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  .account-detail-username {
    max-width: 100%;

    overflow: hidden;

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  /* 4 chỉ số vẫn 2 ô / hàng */

  .account-detail-stat-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 8px;

    margin-top: 20px;
  }

  .account-detail-stat-grid div {
    padding: 11px;
  }

  .account-detail-stat-grid span {
    font-size: 10px;
  }

  .account-detail-stat-grid strong {
    font-size: 18px;
  }


  /* Thông tin account vẫn 2 ô / hàng */

  .account-detail-info-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 7px;
  }

  .account-detail-info-item {
    padding: 10px;
  }

  .account-detail-info-item span {
    font-size: 9px;
  }

  .account-detail-info-item strong {
    overflow: hidden;

    font-size: 12px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  /* Purchase */

  .account-purchase-card {
    padding: 18px;

    border-radius: 17px;
  }

  .account-purchase-price strong {
    font-size: 28px;
  }

  .account-detail-section h2 {
    font-size: 19px;
  }
}


/* =========================================================
   MÀN HÌNH RẤT NHỎ
========================================================= */

@media (max-width: 380px) {

  .account-detail-main {
    padding: 14px;
  }

  .account-detail-avatar {
    width: 58px;
    height: 58px;

    flex-basis: 58px;
  }

  .account-detail-profile-text h1 {
    font-size: 19px;
  }

  .account-detail-stat-grid div {
    padding: 9px;
  }

  .account-detail-stat-grid strong {
    font-size: 16px;
  }

  .account-detail-info-item strong {
    font-size: 11px;
  }
}
/* =========================================================
   MY ORDERS + CUSTOMER POLICY V2
========================================================= */

.orders-page {
  padding-top: 34px;
  padding-bottom: 80px;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.orders-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.orders-page-heading h1 {
  margin: 6px 0 8px;

  color: #111827;

  font-size:
    clamp(30px, 4vw, 42px);

  letter-spacing: -0.04em;
}

.orders-page-heading p {
  max-width: 680px;

  margin: 0;

  color: #667085;

  line-height: 1.7;
}

.orders-eyebrow,
.policy-section-heading > span {
  color: #7c3aed;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}


/* =========================================================
   NOTICE
========================================================= */

.orders-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 32px;
  padding: 18px 20px;

  border:
    1px solid
    rgba(0, 180, 180, 0.16);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(236, 254, 255, 0.95),
      rgba(245, 243, 255, 0.95)
    );
}

.orders-notice-icon {
  display: grid;

  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #00b8b8,
      #2563eb
    );

  color: #ffffff;

  font-weight: 900;
}

.orders-notice-card h2 {
  margin: 0 0 5px;

  font-size: 17px;
}

.orders-notice-card p {
  margin: 0;

  color: #566274;

  line-height: 1.65;
}


/* =========================================================
   ORDER SECTION
========================================================= */

.orders-section-heading {
  margin-bottom: 16px;
}

.orders-section-heading h2 {
  margin: 0 0 5px;

  font-size: 25px;
}

.orders-section-heading p {
  margin: 0;

  color: #667085;
}


/* =========================================================
   POLICY SECTION
========================================================= */

.customer-policy-section {
  margin-top: 54px;
}

.policy-section-heading {
  max-width: 780px;

  margin-bottom: 22px;
}

.policy-section-heading h2 {
  margin: 7px 0 8px;

  color: #111827;

  font-size:
    clamp(25px, 4vw, 34px);

  letter-spacing: -0.035em;
}

.policy-section-heading p {
  margin: 0;

  color: #667085;

  line-height: 1.75;
}


/* =========================================================
   AFTER PURCHASE
========================================================= */

.after-purchase-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.after-purchase-card {
  position: relative;

  overflow: hidden;

  padding: 20px;

  border:
    1px solid #e6eaf0;

  border-radius: 17px;

  background: #ffffff;

  box-shadow:
    0 10px 30px
    rgb(15 23 42 / 5%);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.after-purchase-card:hover {
  box-shadow:
    0 18px 40px
    rgb(15 23 42 / 9%);

  transform:
    translateY(-3px);
}

.policy-number {
  margin-bottom: 16px;

  background:
    linear-gradient(
      90deg,
      #00aeb5,
      #7c3aed,
      #e11d48
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;

  font-size: 21px;
  font-weight: 950;
}

.after-purchase-card h3 {
  margin: 0 0 9px;

  color: #17202a;
}

.after-purchase-card p {
  margin: 0;

  color: #667085;

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   POLICY COLUMNS
========================================================= */

.policy-columns {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.policy-card {
  padding: 24px;

  border-radius: 19px;

  background: #ffffff;

  box-shadow:
    0 14px 38px
    rgb(15 23 42 / 6%);
}

.policy-card-success {
  border:
    1px solid
    rgba(18, 183, 106, 0.20);
}

.policy-card-warning {
  border:
    1px solid
    rgba(245, 158, 11, 0.24);
}

.policy-card-heading {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-bottom: 18px;
}

.policy-card-heading span {
  color: #8a94a2;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.10em;
}

.policy-card-heading h3 {
  margin: 3px 0 0;

  color: #17202a;

  font-size: 20px;
}

.policy-icon {
  display: grid;

  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  place-items: center;

  border-radius: 13px;

  font-size: 19px;
  font-weight: 950;
}

.policy-icon.success {
  background: #dcfae6;

  color: #087443;
}

.policy-icon.warning {
  background: #fff4cf;

  color: #9a6700;
}

.policy-card ul,
.buyer-responsibility-card ul {
  display: grid;

  gap: 12px;

  margin: 0;

  padding-left: 21px;
}

.policy-card li,
.buyer-responsibility-card li {
  color: #526071;

  line-height: 1.65;
}


/* =========================================================
   IMPORTANT NOTE
========================================================= */

.policy-important-note {
  margin-top: 18px;

  padding: 18px 20px;

  border:
    1px solid
    rgba(124, 58, 237, 0.15);

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #faf5ff,
      #f8fafc
    );
}

.policy-important-note strong {
  color: #6d28d9;
}

.policy-important-note p {
  margin:
    5px 0 0;

  color: #596678;

  line-height: 1.7;
}


/* =========================================================
   DISCLAIMER
========================================================= */

.disclaimer-card {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  overflow: hidden;

  border:
    1px solid #e3e8ef;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 16px 45px
    rgb(15 23 42 / 6%);
}

.disclaimer-item {
  padding: 22px;

  border-bottom:
    1px solid #edf0f3;

  border-right:
    1px solid #edf0f3;
}

.disclaimer-item:nth-child(2n) {
  border-right: 0;
}

.disclaimer-item h3 {
  margin: 0 0 9px;

  color: #182230;

  font-size: 17px;
}

.disclaimer-item p {
  margin: 0;

  color: #667085;

  font-size: 14px;

  line-height: 1.7;
}

.disclaimer-item p + p {
  margin-top: 9px;
}


/* =========================================================
   BUYER RESPONSIBILITY
========================================================= */

.buyer-responsibility-card {
  padding: 24px;

  border:
    1px solid #e4e9ef;

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fafc
    );

  box-shadow:
    0 12px 35px
    rgb(15 23 42 / 5%);
}


/* =========================================================
   SUPPORT
========================================================= */

.support-policy-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 26px;

  margin-top: 50px;
  padding: 28px;

  border-radius: 21px;

  background:
    linear-gradient(
      125deg,
      #101827,
      #1f2c43 55%,
      #3b1d50
    );

  color: #ffffff;

  box-shadow:
    0 18px 50px
    rgb(15 23 42 / 18%);
}

.support-policy-card h2 {
  margin: 6px 0 7px;

  font-size: 27px;
}

.support-policy-card p {
  max-width: 650px;

  margin: 0;

  color:
    rgb(255 255 255 / 70%);

  line-height: 1.7;
}

.support-policy-card .store-button {
  flex: 0 0 auto;

  border:
    1px solid
    rgb(255 255 255 / 18%);

  background: #ffffff;

  color: #17202a;
}


/* =========================================================
   ACCEPTANCE
========================================================= */

.policy-acceptance-note {
  margin-top: 20px;

  padding: 18px 20px;

  border-left:
    4px solid #7c3aed;

  border-radius:
    0 13px 13px 0;

  background:
    rgba(124, 58, 237, 0.05);
}

.policy-acceptance-note strong {
  color: #4c1d95;
}

.policy-acceptance-note p {
  margin: 5px 0 0;

  color: #5e6978;

  font-size: 14px;

  line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.store-footer-policy {
  margin-top: 7px;

  font-size: 12px;

  opacity: 0.8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .after-purchase-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .orders-page {
    padding-top: 22px;
    padding-bottom: 50px;
  }

  .orders-page-heading {
    align-items: stretch;

    flex-direction: column;
  }

  .orders-page-heading
  .store-button {
    width: 100%;
  }


  .after-purchase-grid,
  .policy-columns,
  .disclaimer-card {
    grid-template-columns: 1fr;
  }


  .after-purchase-card,
  .policy-card,
  .disclaimer-item,
  .buyer-responsibility-card {
    padding: 17px;
  }


  .disclaimer-item {
    border-right: 0;
  }


  .support-policy-card {
    align-items: stretch;

    flex-direction: column;

    padding: 21px;
  }


  .support-policy-card
  .store-button {
    width: 100%;
  }


  .customer-policy-section {
    margin-top: 40px;
  }

}
/* =========================================================
   MY ORDERS - 2 ĐƠN HÀNG / 1 HÀNG
========================================================= */

.orders-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-top: 24px;

  align-items: stretch;
}


/* Mỗi đơn hàng */
.orders-list .store-card {
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
}


/* Phần thông tin bên trong card */
.orders-list .store-card-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}


/* Nút luôn nằm cuối card */
.orders-list .store-card-actions {
  margin-top: auto;
  padding-top: 16px;
}


/* Empty state chiếm toàn bộ hàng */
.orders-list > .store-empty-state {
  grid-column: 1 / -1;
}


/* =========================================================
   TABLET
   VẪN 2 ĐƠN / HÀNG
========================================================= */

@media (max-width: 900px) {

  .orders-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

}


/* =========================================================
   ĐIỆN THOẠI
   VẪN 2 ĐƠN / HÀNG
========================================================= */

@media (max-width: 650px) {

  .orders-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }


  .orders-list .store-card {
    padding: 11px;

    border-radius: 14px;
  }


  .store-card-header {
    gap: 7px;

    margin-bottom: 10px;

    flex-direction: column;
  }


  .store-card-header h2 {
    max-width: 100%;

    margin-top: 3px;

    overflow: hidden;

    font-size: 13px;

    line-height: 1.35;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  .store-card-header p {
    max-width: 100%;

    overflow: hidden;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  .store-badge {
    align-self: flex-start;

    padding: 4px 7px;

    font-size: 8px;
  }


  /* Số tiền / tài khoản / ngày / thanh toán */
  .orders-list .store-card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }


  .orders-list .store-card-grid div {
    min-width: 0;

    padding: 7px;

    border-radius: 8px;
  }


  .orders-list .store-card-grid span {
    margin-bottom: 3px;

    font-size: 8px;
  }


  .orders-list .store-card-grid strong {
    display: block;

    max-width: 100%;

    overflow: hidden;

    font-size: 10px;

    line-height: 1.35;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  .orders-list .store-card-actions {
    justify-content: stretch;

    padding-top: 10px;
  }


  .orders-list .store-card-actions .store-button,
  .orders-list .store-card-actions a {
    width: 100%;

    min-height: 32px;

    padding: 6px;

    font-size: 9px;
  }

}


/* =========================================================
   IPHONE NHỎ
========================================================= */

@media (max-width: 390px) {

  .orders-list {
    gap: 6px;
  }


  .orders-list .store-card {
    padding: 9px;
  }


  .store-card-header h2 {
    font-size: 11px;
  }


  .orders-list .store-card-grid div {
    padding: 6px 4px;
  }


  .orders-list .store-card-grid span {
    font-size: 7px;
  }


  .orders-list .store-card-grid strong {
    font-size: 9px;
  }

}
/* =========================================================
   FIX MY ORDERS MOBILE 2 COLUMNS
========================================================= */

@media (max-width: 650px) {

  .orders-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }

  .orders-list .store-card {
    min-width: 0;
    height: 100%;

    padding: 11px;

    overflow: hidden;

    border-radius: 15px;
  }


  /* Header đơn */
  .orders-list .store-card-header {
    min-width: 0;

    margin-bottom: 12px;

    flex-direction: column;

    gap: 7px;
  }


  .orders-list .store-card-header > div {
    width: 100%;
    min-width: 0;
  }


  /* Mã đơn */
  .orders-list .store-card-header p {
    width: 100%;
    max-width: 100%;

    margin: 0;

    overflow: hidden;

    color: #7a8492;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
  }


  /* Tên tài khoản */
  .orders-list .store-card-header h2 {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 4px 0 0;

    overflow: hidden;

    font-size: 13px;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
  }


  /* Badge */
  .orders-list .store-badge {
    width: fit-content;

    align-self: flex-start;

    padding: 5px 8px;

    font-size: 8px;

    white-space: nowrap;
  }


  /* 4 ô thông tin */
  .orders-list .store-card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;

    margin-bottom: 0;
  }


  .orders-list .store-card-grid > div {
    min-width: 0;

    padding: 8px 7px;

    border-radius: 9px;
  }


  .orders-list .store-card-grid span {
    display: block;

    margin-bottom: 4px;

    font-size: 8px;
  }


  .orders-list .store-card-grid strong {
    display: block;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    font-size: 10px;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
  }


  /* Action luôn xuống cuối card */
  .orders-list .store-card-actions {
    display: flex;

    margin-top: auto;

    padding-top: 14px;

    justify-content: stretch;
  }


  .orders-list .store-card-actions a,
  .orders-list .store-card-actions button,
  .orders-list .store-card-actions .store-button {
    width: 100%;

    min-height: 34px;

    padding: 6px;

    border-radius: 9px;

    font-size: 9px;

    text-align: center;
  }
}


/* iPhone nhỏ */

@media (max-width: 390px) {

  .orders-list {
    gap: 6px;
  }

  .orders-list .store-card {
    padding: 9px;
  }

  .orders-list .store-card-header h2 {
    font-size: 11px;
  }

  .orders-list .store-card-grid > div {
    padding: 6px 5px;
  }

  .orders-list .store-card-grid strong {
    font-size: 9px;
  }
}
/* =========================================================
   CUSTOMER ORDER DETAIL PAGE V2
========================================================= */

.order-detail-page-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 24px;
}


.order-detail-page-heading h1 {
  margin: 6px 0 8px;

  color: #111827;

  font-size:
    clamp(30px, 4vw, 42px);

  letter-spacing:
    -0.04em;
}


.order-detail-page-heading p {
  max-width: 650px;

  margin: 0;

  color: #667085;

  line-height: 1.7;
}


/* =========================================================
   NOTICE
========================================================= */

.order-security-notice {
  display: flex;

  align-items: flex-start;

  gap: 15px;

  margin-bottom: 30px;

  padding: 18px 20px;

  border:
    1px solid
    rgba(0, 190, 190, 0.16);

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      rgba(236, 254, 255, 0.96),
      rgba(245, 243, 255, 0.96),
      rgba(255, 241, 247, 0.90)
    );

  box-shadow:
    0 10px 30px
    rgba(15, 23, 42, 0.04);
}


.order-security-icon {
  display: grid;

  width: 40px;
  height: 40px;

  flex:
    0 0 40px;

  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #00b8b8,
      #2563eb,
      #7c3aed
    );

  box-shadow:
    0 8px 18px
    rgba(37, 99, 235, 0.18);

  color: #ffffff;

  font-weight: 900;
}


.order-security-notice h2 {
  margin:
    0 0 5px;

  color: #17202a;

  font-size: 17px;
}


.order-security-notice p {
  margin: 0;

  color: #5f6c7c;

  line-height: 1.65;
}


/* =========================================================
   MAIN ORDER
========================================================= */

.order-main-section {
  margin-top: 12px;
}


.order-detail-container {
  min-width: 0;
}


/* =========================================================
   SECURITY GRID
========================================================= */

.order-security-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}


.order-security-card {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 20px;

  border:
    1px solid #e5eaf0;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fafc
    );

  box-shadow:
    0 10px 30px
    rgb(15 23 42 / 5%);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.order-security-card:hover {
  box-shadow:
    0 17px 40px
    rgb(15 23 42 / 9%);

  transform:
    translateY(-2px);
}


.order-security-card-icon {
  display: grid;

  width: 40px;
  height: 40px;

  flex:
    0 0 40px;

  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #eef2ff,
      #fdf2f8
    );

  color: #6d28d9;

  font-size: 12px;
  font-weight: 950;
}


.order-security-card h3 {
  margin:
    0 0 6px;

  color: #17202a;

  font-size: 16px;
}


.order-security-card p {
  margin: 0;

  color: #667085;

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .order-detail-page-heading {
    align-items: stretch;

    flex-direction: column;

    gap: 16px;
  }


  .order-detail-page-heading
  .store-button {
    width: 100%;
  }


  .order-security-notice {
    padding: 15px;

    border-radius: 14px;
  }


  .order-security-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }


  .order-security-notice h2 {
    font-size: 14px;
  }


  .order-security-notice p {
    font-size: 12px;
  }


  .order-security-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 7px;
  }


  .order-security-card {
    min-width: 0;

    flex-direction: column;

    gap: 8px;

    padding: 11px;

    border-radius: 13px;
  }


  .order-security-card-icon {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    border-radius: 9px;

    font-size: 9px;
  }


  .order-security-card h3 {
    font-size: 12px;
  }


  .order-security-card p {
    font-size: 10px;

    line-height: 1.5;
  }

}
/* =========================================================
   STORE HOME EXTRA UI
========================================================= */

.store-hero-eyebrow,
.store-section-eyebrow {
  display: inline-block;

  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.13em;
}

.store-hero-eyebrow {
  color:
    rgba(255, 255, 255, 0.64);
}

.store-section-eyebrow {
  color: #7c3aed;
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.store-hero-actions {
  display: flex;

  gap: 10px;

  margin-top: 24px;

  flex-wrap: wrap;
}

.store-hero-primary {
  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  background:
    linear-gradient(
      135deg,
      #ffffff,
      #edf2ff
    );

  box-shadow:
    0 12px 30px
    rgba(0, 0, 0, 0.18);

  color: #17202a;
}

.store-hero-primary:hover {
  background: #ffffff;

  color: #17202a;
}

.store-hero-secondary {
  border:
    1px solid
    rgba(255, 255, 255, 0.20);

  background:
    rgba(255, 255, 255, 0.08);

  color: #ffffff;

  backdrop-filter: blur(10px);
}

.store-hero-secondary:hover {
  background:
    rgba(255, 255, 255, 0.16);

  color: #ffffff;
}


/* =========================================================
   HERO FEATURES
========================================================= */

.store-hero-features {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  max-width: 780px;

  margin-top: 28px;
}

.store-hero-features > div {
  padding: 13px 15px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(10px);
}

.store-hero-features strong {
  display: block;

  margin-bottom: 3px;

  color: #ffffff;

  font-size: 13px;
}

.store-hero-features span {
  color:
    rgba(255, 255, 255, 0.63);

  font-size: 11px;
}


/* =========================================================
   INTRO
========================================================= */

.store-intro-section {
  padding-top: 28px;
}

.store-intro-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;
}

.store-intro-card {
  display: flex;

  min-width: 0;

  align-items: flex-start;

  gap: 12px;

  padding: 17px;

  border:
    1px solid
    rgba(148, 163, 184, 0.18);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.92);

  box-shadow:
    0 10px 28px
    rgba(15, 23, 42, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-intro-card:hover {
  box-shadow:
    0 17px 38px
    rgba(15, 23, 42, 0.09);

  transform:
    translateY(-3px);
}

.store-intro-icon {
  display: grid;

  width: 38px;
  height: 38px;

  flex:
    0 0 38px;

  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #ecfeff,
      #eef2ff,
      #fdf2f8
    );

  color: #6d28d9;

  font-size: 10px;
  font-weight: 950;
}

.store-intro-card h2 {
  margin: 0 0 5px;

  color: #17202a;

  font-size: 15px;
}

.store-intro-card p {
  margin: 0;

  color: #667085;

  font-size: 12px;

  line-height: 1.55;
}


/* =========================================================
   SUPPORT WRAPPER
========================================================= */

.support-policy-wrapper {
  margin-bottom: 55px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .store-intro-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .store-hero-actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  .store-hero-actions
  .store-button {
    width: 100%;

    min-height: 39px;

    padding: 7px;

    font-size: 10px;
  }


  .store-hero-features {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 5px;

    margin-top: 18px;
  }

  .store-hero-features > div {
    min-width: 0;

    padding: 8px 5px;

    border-radius: 9px;
  }

  .store-hero-features strong {
    overflow: hidden;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  .store-hero-features span {
    display: none;
  }


  .store-intro-section {
    padding-top: 18px;
  }

  .store-intro-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }

  .store-intro-card {
    flex-direction: column;

    gap: 7px;

    padding: 11px;

    border-radius: 13px;
  }

  .store-intro-icon {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    font-size: 8px;
  }

  .store-intro-card h2 {
    font-size: 12px;
  }

  .store-intro-card p {
    font-size: 9px;

    line-height: 1.45;
  }

}