
@theme {
  --color-brand-25: #f5f3ff;
  --color-brand-50: #fce7f3;
  --color-brand-100: #fbcfe8;
  --color-brand-200: #f9a8d4;
  --color-brand-300: #7c3aed;
  --color-brand-400: #ec4899;
  --color-brand-500: #db2777;
  --color-brand-600: #be185d;
  --color-brand-700: #9d174d;
  --color-brand-800: #831843;
  --color-brand-900: #500724;
  --color-brand-950: #3f0318;
}

[x-cloak] {
  display: none !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-pill--pending {
  background: #fffaeb;
  color: #b54708;
}
.status-pill--processing {
  background: #f0f9ff;
  color: #026aa2;
}
.status-pill--completed {
  background: #ecfdf3;
  color: #027a48;
}
.status-pill--cancelled {
  background: #fef3f2;
  color: #b42318;
}
.dark .status-pill--pending {
  background: rgb(247 144 9 / 0.15);
  color: #fdb022;
}
.dark .status-pill--processing {
  background: rgb(11 165 236 / 0.15);
  color: #7cd4fd;
}
.dark .status-pill--completed {
  background: rgb(18 183 106 / 0.15);
  color: #6ce9a6;
}
.dark .status-pill--cancelled {
  background: rgb(240 68 56 / 0.15);
  color: #fda29b;
}

.ta-surface,
.ta-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e4e7ec;
  background: #fff;
  box-shadow: 0 1px 3px rgb(16 24 40 / 0.1);
}
html.dark .admin-ui .ta-surface,
html.dark .admin-ui .ta-card,
html.dark .ta-card,
html.dark .ta-surface {
  border-color: #344054;
  background: #1d2939;
}
.ta-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e4e7ec;
  padding: 1rem 1.25rem;
}
html.dark .ta-card-header {
  border-color: #344054;
}
@media (min-width: 768px) {
  .ta-card-header {
    padding: 1rem 1.5rem;
  }
}
.ta-card-body {
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .ta-card-body {
    padding: 1.5rem;
  }
}
.ta-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #101828;
}
html.dark .ta-card-title {
  color: rgb(255 255 255 / 0.9);
}

.ta-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #667085;
}
.ta-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: #344054;
  vertical-align: middle;
}

.ta-price-cell {
  white-space: nowrap;
}

.ta-products-table .ta-col-id {
  width: 4rem;
  white-space: nowrap;
}

.ta-products-table .ta-col-wp {
  width: 5.5rem;
  white-space: nowrap;
}

.ta-products-table .ta-col-price {
  width: 7.5rem;
  white-space: nowrap;
}

.ta-products-table .ta-col-stock {
  width: 5rem;
  white-space: nowrap;
}

.ta-products-table .ta-col-actions {
  width: 6.5rem;
  white-space: nowrap;
}

.ta-products-table .ta-col-name {
  min-width: 12rem;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ta-products-table .ta-col-category {
  min-width: 10rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ta-products-table .ta-col-sku {
  min-width: 7rem;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ta-products-table tbody tr {
  height: 3rem;
}

.ta-card-footer {
  border-top: 1px solid #e4e7ec;
  padding: 1rem 1.25rem 1.25rem;
}

html.dark .ta-card-footer {
  border-color: #344054;
}

.ta-pagination {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ta-pagination-info {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #667085;
  white-space: nowrap;
}

.ta-pagination-info-sep {
  margin: 0 0.25rem;
}

html.dark .ta-pagination-info {
  color: #98a2b3;
}

.ta-pagination-controls {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
}

.ta-pagination-list {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ta-pagination-list > li {
  display: flex;
  flex-shrink: 0;
}

.ta-pagination-btn {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e4e7ec;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #344054;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

a.ta-pagination-btn:hover {
  border-color: #7c3aed;
  background: #fff5f9;
  color: #7c3aed;
}

.ta-pagination-btn.is-active {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 600;
}

.ta-pagination-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ta-pagination-ellipsis {
  display: inline-flex;
  min-width: 1.25rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 0.8125rem;
  user-select: none;
}

@media (max-width: 639px) {
  .ta-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ta-pagination-info {
    width: 100%;
    text-align: center;
  }

  .ta-pagination-controls {
    width: 100%;
    justify-content: center;
  }

  .ta-pagination-list {
    justify-content: center;
  }
}

html.dark .ta-pagination-btn {
  border-color: #475467;
  background: #101828;
  color: #d0d5dd;
}

html.dark a.ta-pagination-btn:hover {
  border-color: #7c3aed;
  background: rgb(124 58 237 / 0.12);
  color: #ff4d9a;
}

html.dark .ta-pagination-btn.is-active {
  border-color: #7c3aed;
  background: rgb(124 58 237 / 0.18);
  color: #ff4d9a;
}
html.dark .ta-table th {
  color: #98a2b3;
}
html.dark .ta-table td {
  color: #d0d5dd;
}

.ta-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #344054;
}
html.dark .ta-label {
  color: #98a2b3;
}
.ta-btn {
  display: inline-flex;
  height: 32px;
  min-height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  background: #7c3aed;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.15s;
}
.ta-btn:hover {
  background: #6d28d9;
  color: #fff;
}
.ta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #475569;
  white-space: nowrap;
  box-sizing: border-box;
}
.ta-btn-outline:hover {
  background: #f9fafb;
}
html.dark .ta-btn-outline {
  border-color: #475467;
  background: #1d2939;
  color: #d0d5dd;
}
.ta-btn-danger {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d92d20;
}
.ta-btn-danger:hover {
  color: #b42318;
}

.admin-login-wrap {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 1.5rem;
}
.admin-login-shell {
  width: 100%;
  max-width: 22rem;
}
.admin-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}
.admin-login-brand__logo {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 1.25rem;
  object-fit: cover;
  display: block;
  margin-bottom: 1.15rem;
}
.admin-login-brand__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7c3aed;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}
.admin-login-brand__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.admin-login-error {
  margin-bottom: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
}
.admin-login-form {
  display: flex;
  flex-direction: column;
}
.admin-login-field {
  margin-bottom: 0.75rem;
}
.admin-login-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  box-shadow: none;
}
.admin-login-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.admin-login-btn {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.875rem;
  background: #7c3aed;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.admin-login-btn:active {
  background: #6d28d9;
}

.alert-danger {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fecdca;
  background: #fef3f2;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #b42318;
}
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.col-md-4 {
  grid-column: span 12;
}
.col-md-6 {
  grid-column: span 12;
}
.col-md-12 {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .col-md-4 {
    grid-column: span 4;
  }
  .col-md-6 {
    grid-column: span 6;
  }
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.w-100 {
  width: 100%;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-0 {
  margin-bottom: 0;
}
.text-muted {
  color: #667085;
}
.stat-card,
.orders-premium {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e4e7ec;
  background: #fff;
  box-shadow: 0 1px 3px rgb(16 24 40 / 0.1);
}
html.dark .admin-ui .stat-card,
html.dark .admin-ui .orders-premium {
  border-color: #344054;
  background: #1d2939;
}
.stat-card {
  padding: 1.25rem;
}
.orders-premium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e7ec;
  padding: 1rem 1.25rem;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
}
.orders-table th,
.orders-table td {
  border-bottom: 1px solid #f2f4f7;
}
.dark .orders-table th,
.dark .orders-table td {
  border-color: rgb(255 255 255 / 0.06);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #7c3aed;
  color: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #6d28d9;
  color: #fff;
}

.admin-shell {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.admin-ui .admin-sidebar-dark {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255, 255, 255, 0.65);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(102, 126, 234, 0.2);
}

@media (min-width: 1024px) {
  .admin-ui .sidebar.admin-sidebar-dark {
    width: 290px !important;
  }

  .admin-ui .sidebar.admin-sidebar-dark .logo,
  .admin-ui .sidebar.admin-sidebar-dark .logo-icon,
  .admin-ui .sidebar.admin-sidebar-dark .logo-text,
  .admin-ui .sidebar.admin-sidebar-dark .menu-item-text,
  .admin-ui .sidebar.admin-sidebar-dark .menu-group-title,
  .admin-ui .sidebar.admin-sidebar-dark .menu-item-arrow,
  .admin-ui .sidebar.admin-sidebar-dark .menu-dropdown {
    display: block !important;
  }
}

.admin-ui .admin-sidebar-dark .sidebar-header {
  background: transparent;
}

.admin-ui .admin-sidebar-dark .sidebar-header a {
  color: #f8fafc;
  text-decoration: none;
}

.admin-ui .admin-sidebar-dark .admin-sidebar-logo-text {
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.admin-ui .ta-table tbody tr.ta-row-link {
  cursor: pointer;
}

.admin-ui .ta-table tbody tr.ta-row-link:hover {
  background: rgb(249 250 251);
}

.admin-ui .customer-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-ui .customer-period-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e4e7ec;
  color: #475467;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-ui .customer-period-tabs a:hover {
  border-color: #d0d5dd;
  color: #1d2939;
}

.admin-ui .customer-period-tabs a.is-active {
  border-color: #7c3aed;
  background: #fff5f9;
  color: #7c3aed;
}

.admin-ui .customer-order-card + .customer-order-card {
  margin-top: 1rem;
}

.admin-ui .customer-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f2f4f7;
}

.admin-ui .customer-order-body {
  padding: 0 1.25rem 1rem;
}

.admin-ui .customer-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-ui .admin-sidebar-dark .menu-group-title {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.admin-ui .admin-sidebar-dark .menu-item {
  color: rgba(255, 255, 255, 0.65);
  border-left: 3px solid transparent;
  border-radius: 0.625rem;
  margin: 2px 0;
  transition: all 0.2s ease;
}

.admin-ui .admin-sidebar-dark .menu-item:hover {
  color: #fff;
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.admin-ui .admin-sidebar-dark .menu-item-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.1));
  border-left-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.admin-ui .admin-sidebar-dark .menu-item .fi {
  font-size: 1rem;
  width: 1.35rem;
  text-align: center;
}

.admin-ui .admin-sidebar-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-ui .admin-sidebar-user {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-ui [data-admin-main].admin-nav-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.admin-ui .payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.admin-ui .payment-method-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid #e4e7ec;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .admin-ui .payment-method-card {
  border-color: #344054;
  background: #1d2939;
}

.admin-ui .payment-method-card--active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.admin-ui .payment-method-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.admin-ui .payment-method-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #f2f4f7;
  flex-shrink: 0;
}

.dark .admin-ui .payment-method-card__icon {
  background: #344054;
}

.admin-ui .payment-method-card__icon svg {
  max-width: 1.75rem;
  max-height: 1.75rem;
}

.admin-ui .payment-method-card__meta {
  flex: 1;
  min-width: 0;
}

.admin-ui .payment-method-card__title {
  font-weight: 600;
  color: #101828;
}

.dark .admin-ui .payment-method-card__title {
  color: #f9fafb;
}

.admin-ui .payment-method-card__slug {
  font-size: 0.75rem;
  color: #667085;
}

.admin-ui .payment-method-card__toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.admin-ui .payment-method-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-ui .payment-method-card__edit summary {
  width: fit-content;
}

.admin-ui .payment-method-card__form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e4e7ec;
}

.dark .admin-ui .payment-method-card__form {
  border-top-color: #344054;
}

.admin-premium-surface .ta-card,
.admin-premium-surface .ta-surface {
  border: none !important;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-premium-surface .ta-card-header,
.admin-premium-surface .ta-card-footer {
  border: none !important;
}

.admin-premium-surface .ta-table th,
.admin-premium-surface .ta-table td {
  border: none !important;
}

.admin-premium-surface .ta-table tbody td {
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.admin-premium-surface .ta-table tbody tr:last-child td {
  box-shadow: none;
}

.admin-premium-surface .ta-btn {
  border: none;
  background: #7c3aed;
}

.admin-premium-surface .ta-btn:hover {
  background: #6d28d9;
  color: #fff;
}

.admin-premium-surface .ta-input,
.admin-premium-surface .ta-textarea,
.admin-premium-surface select.ta-input {
  border: none;
  background: #f1f5f9;
}

.admin-premium-surface .ta-input:focus,
.admin-premium-surface .ta-textarea:focus,
.admin-premium-surface select.ta-input:focus {
  border: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.admin-premium-surface .admin-flash-banner {
  border: none !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.admin-premium-surface .payment-method-card__form {
  border-top: none !important;
  padding-top: 0.75rem;
}

.admin-premium-surface .payment-method-card {
  border: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

