/* ================= VARIABLES ================= */
:root {
  --c1: #fd215e;
  --c2: #fd229b;
  --c3: #fd23c2;
  --c6: #59c167;

  --bg: #fafafa;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --muted: #8a8a8a;
  --foreground: #1a1a1a;

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  background: linear-gradient(180deg, #fff, #f4f6f8);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================= APP LAYOUT ================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: #111;
  border-radius: 4px;
  transition: 0.3s ease;
}

/* ================= OVERLAY ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 98;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 280px;
  padding: 32px;
  background: linear-gradient(180deg, #ff2b8a 0%, #ff3aa6 50%, #6ee28e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.brand-logo {
  width: 200px;
  max-width: 100%;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.nav-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-family: inherit;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav-item .ico-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active {
  background: #fff;
  color: var(--c1);
  font-weight: 600;
}

.nav-item.active .ico-box {
  background: linear-gradient(135deg, var(--c1), var(--c3));
  color: #fff;
}

.upgrade-wrapper {
  margin-top: auto;
  padding-top: 32px;
}

.upgrade {
  width: 100%;
  background: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--c1);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: box-shadow 0.2s ease;
}

.upgrade:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sidebar-foot {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 24px;
}

/* ================= MAIN CONTENT ================= */
.main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
.header {
  margin-bottom: 24px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-row h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--foreground);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search input {
  padding: 14px 20px 14px 48px;
  width: 320px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(253, 33, 94, 0.1);
}

.notif {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--c1), var(--c3));
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.notif:hover {
  transform: scale(1.05);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--foreground);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* ================= DASHBOARD CARD ================= */
.page {
  display: none;
}

.page.active {
  display: block;
}

.dashboard-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(18, 22, 26, 0.08);
}

/* ================= STAT CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 20px rgba(18, 22, 26, 0.04);
}

.stat {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 2px solid rgba(253, 33, 94, 0.1);
}

.stat .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.stat .meta .label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.stat .meta .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--foreground);
}

.stat .meta .small {
  font-size: 12px;
  color: var(--muted);
}

/* ================= LAYOUT GRID ================= */
.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= HERO CARD ================= */
.hero {
  padding: 24px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-text {
  flex: 1;
}

.hero-text small {
  color: var(--muted);
  font-size: 14px;
}

.hero-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
  margin: 8px 0;
}

.hero-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-text .learn {
  color: var(--c1);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.hero-text .learn:hover {
  text-decoration: underline;
}

.hero-media {
  width: 200px;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1), var(--c3), var(--c6));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-media img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* ================= ACTIVITY CARD ================= */
.activity-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}

.activity {
  list-style: none;
}

.activity li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--foreground);
}

.activity li:last-child {
  border-bottom: none;
}

.activity li span {
  color: var(--muted);
  font-size: 12px;
}

/* ================= ORDERS OVERVIEW ================= */
.orders h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}

.orders ul {
  list-style: none;
}

.orders li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.orders li:last-child {
  margin-bottom: 0;
}

.order-item .order-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.order-item small {
  font-size: 12px;
  color: var(--muted);
}

.order-status {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.order-status.processing {
  background: #ff9b70;
}

.order-status.shipped {
  background: #5aa8ff;
}

.order-status.delivered {
  background: #3fc36a;
}

.order-status.refunded {
  background: #c1c1c1;
  color: #222;
}

.order-status.paid {
  background: #b46bff;
}

/* ================= TABLE ================= */
.table-container {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 100%;
}

.orders-table th,
.orders-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  word-wrap: break-word;
  /* Break long words */
}

.orders-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.orders-table td {
  font-size: 14px;
  color: var(--foreground);
}

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

.action-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.action-btn:hover {
  background: var(--border);
}

/* ================= ORDERS PAGE (Scoped) ================= */
#ordersPage .orders-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

#ordersPage .orders-page-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--foreground);
}

#ordersPage .orders-page-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

#ordersPage .orders-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

#ordersPage .orders-actions select,
#ordersPage .orders-actions input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

#ordersPage .export-btn {
  background: linear-gradient(135deg, var(--c1), var(--c3));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ordersPage .export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(253, 33, 94, 0.3);
}

/* Orders Stats */
#ordersPage .orders-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

#ordersPage .orders-stat {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(18, 22, 26, 0.05);
}

#ordersPage .orders-stat span {
  font-size: 13px;
  color: var(--muted);
}

#ordersPage .orders-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
}

/* Badges */
#ordersPage .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

#ordersPage .badge.processing {
  background: rgba(255, 155, 112, 0.15);
  color: #ff7a3d;
}

#ordersPage .badge.shipped {
  background: rgba(90, 168, 255, 0.15);
  color: #3d8bfd;
}

#ordersPage .badge.delivered {
  background: rgba(63, 195, 106, 0.15);
  color: #2da44e;
}

#ordersPage .badge.refunded {
  background: rgba(193, 193, 193, 0.25);
  color: #555;
}

/* Table */
#ordersPage .table-container {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

#ordersPage .orders-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 100%;
}

#ordersPage .orders-table th,
#ordersPage .orders-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  word-wrap: break-word;
}

#ordersPage .orders-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

#ordersPage .orders-table td {
  font-size: 14px;
  color: var(--foreground);
}

#ordersPage .orders-table tbody tr:hover {
  background: #fafafa;
}

#ordersPage .action-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

#ordersPage .action-btn:hover {
  background: var(--border);
}

.status-popup {
  display: none;
  /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.status-popup-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.status-popup .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--foreground);
}

.page-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.page-actions input,
.page-actions select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.page-actions input:focus,
.page-actions select:focus {
  outline: none;
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(253, 33, 94, 0.12);
}

/* Customer Stats */
.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.customer-stat {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(18, 22, 26, 0.05);
}

.customer-stat span {
  font-size: 13px;
  color: var(--muted);
}

.customer-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
}

/* Customer Table */
.customers-table {
  width: 100%;
  border-collapse: collapse;
}

.customers-table th,
.customers-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.customers-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.customers-table td {
  font-size: 14px;
  color: var(--foreground);
}

.customers-table tbody tr:hover {
  background: #fafafa;
}

.badge.active {
  background: rgba(92, 196, 158, 0.15);
  color: #2da44e;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.inactive {
  background: rgba(193, 193, 193, 0.25);
  color: #555;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Action Button */
.action-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.action-btn:hover {
  background: var(--border);
}

/* ================= PRODUCTS PAGE ================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

.page-header p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.2rem;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.page-actions input,
.page-actions select {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  outline: none;
}

.page-actions input:focus,
.page-actions select:focus {
  border-color: #fd215e;
}

/* Product Stats */
.customer-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.customer-stat {
  flex: 1 1 150px;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.customer-stat span {
  display: block;
  font-size: 0.9rem;
  color: #777;
}

.customer-stat strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

/* Products Table */
.table-container {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.products-table th,
.products-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.products-table th {
  background: #fafafa;
  font-weight: 600;
}

.products-table td .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  text-align: center;
}

.badge.active {
  background-color: #59c167;
}

.badge.inactive {
  background-color: #fd215e;
}

.action-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #555;
}

/* ================= PRODUCT STATUS POPUP ================= */
.status-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
}

.status-popup-content {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-popup-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.status-popup-content p {
  font-size: 0.95rem;
  color: #555;
}

.status-popup-content .close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.status-popup-content .close-btn:hover {
  color: #fd215e;
}

/* ================= MARKETING PAGE ================= */
.marketing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.marketing-table th,
.marketing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.marketing-table th {
  background: #fafafa;
  font-weight: 600;
}

.marketing-table td .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  text-align: center;
}

.badge.active {
  background-color: #59c167;
}

.badge.paused {
  background-color: #fdba21;
}

.badge.completed {
  background-color: #3b82f6;
}

#marketingPopup .status-popup-content {
  max-width: 400px;
}

/* ================= SUPPORT PAGE ================= */
.support-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.support-table th,
.support-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.support-table th {
  background: #fafafa;
  font-weight: 600;
}

.support-table td .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  text-align: center;
}

.badge.open {
  background-color: #fd215e;
}

.badge.inprogress {
  background-color: #fdba21;
}

.badge.resolved {
  background-color: #59c167;
}

.badge.closed {
  background-color: #6b7280;
}

#supportPopup .status-popup-content {
  max-width: 400px;
}

/* ================= REPORTS PAGE ================= */
.reports-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reports-table th,
.reports-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.reports-table th {
  background: #fafafa;
  font-weight: 600;
}

.reports-table td .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  text-align: center;
}

.badge.open {
  background-color: #fd215e;
}

.badge.inprogress {
  background-color: #fdba21;
}

.badge.resolved {
  background-color: #59c167;
}

.reports-popup-content {
  max-width: 400px;
}

/* ================= SETTINGS PAGE ================= */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.settings-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.settings-form label {
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-form input,
.settings-form select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.settings-form input:focus,
.settings-form select:focus {
  outline: none;
  border-color: var(--c1);
}

.save-btn {
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--c1);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.save-btn:hover {
  background: var(--c2);
}

/* Auth Buttons Wrapper */
.auth-buttons {
  display: flex;
  gap: 0rem;
}

/* Sign Up Button */
.signup-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #ff1abf, #ff0099, #00ff66);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.signup-btn:hover {
  background: #fff;
  color: #000;
}

/* Gradient Login Button */
.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #ff1abf, #ff0099, #00ff66);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
}

.login-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.login-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  #ordersPage .orders-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    /* Single column layout */
  }

  .hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 99;
    transition: left 0.35s ease;
  }

  /* Open Sidebar */
  #sidebar-toggle:checked~.app .sidebar {
    left: 0;
  }

  /* Show Overlay */
  #sidebar-toggle:checked~.overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Animate Hamburger → X */
  #sidebar-toggle:checked~.app .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #sidebar-toggle:checked~.app .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #sidebar-toggle:checked~.app .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

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

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .search input {
    width: 100%;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-media {
    width: 100%;
  }

  .orders-table {
    display: block;
    overflow-x: auto;
    /* Scroll table horizontally if needed */
    white-space: nowrap;
  }

  #ordersPage .orders-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #ordersPage .orders-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  #ordersPage .orders-actions select,
  #ordersPage .orders-actions input,
  #ordersPage .export-btn {
    width: 100%;
  }

  #ordersPage .orders-stats {
    grid-template-columns: 1fr;
  }

  #ordersPage .orders-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .page-actions input,
  .page-actions select {
    width: 100%;
  }

  .customer-stats {
    grid-template-columns: 1fr;
  }

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