/* ==================== VARIABLES ==================== */
:root {
  --pink-primary: #FF41A5;
  --pink-hover: #FF1F92;
  --pink-light: #FFE5F3;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --text-gray: #64748B;
  --border-gray: #E2E8F0;
  --bg-gray: #F8FAFC;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg-gray);
  color: var(--black);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Top Bar - Logo, Search, Auth */
.navbar-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.5rem 0;
  border-bottom: none;
}

.navbar-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Search Button (Center) */
.nav-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--pink-light);
  border: 2px solid var(--pink-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.search-btn:hover {
  background: var(--pink-primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.search-btn i {
  font-size: 1rem;
}

.search-btn span {
  font-size: 0.9rem;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 100;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--pink-primary);
}

.search-results {
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

/* Bottom Pink Bar - Navigation Links */
.navbar-bottom {
  background: linear-gradient(135deg, var(--pink-primary) 0%, #e91e8c 100%);
  padding: 0.5rem 0;
}

.navbar-bottom .container {
  display: flex;
  align-items: center;
}

.nav-links-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links-scroll::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--white);
  text-decoration: none;
  border-radius: 1.5rem;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffd700;
}

.nav-link i {
  font-size: 0.9rem;
}

/* Cart Badge in Pink Bar */
.nav-link.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 5px;
  background: #ffd700;
  color: var(--text-dark);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* More Dropdown */
.nav-more-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-more-btn #moreChevron {
  transition: transform 0.3s;
  font-size: 0.75rem;
}

.nav-more-btn.active #moreChevron {
  transform: rotate(180deg);
}

.more-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  z-index: 50;
}

.more-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.more-dropdown-menu a:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}

.more-dropdown-menu a i {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.auth-buttons .btn {
  font-size: 0.9rem;
  padding: 0.625rem 1.25rem;
}

.auth-buttons .btn-pink {
  background: var(--pink-primary) !important;
  color: var(--white) !important;
}

.auth-buttons .btn-pink:hover {
  background: var(--pink-hover) !important;
}

.user-menu {
  position: relative;
}

.profile-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255, 31, 146, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-avatar-btn:hover {
  transform: translateY(-1px);
  border-color: var(--pink-primary);
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gray);
  overflow: hidden;
  z-index: 1000;
}

.profile-dropdown-header {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 31, 146, 0.12), rgba(255, 31, 146, 0.05));
  border-bottom: 1px solid var(--border-gray);
}

.profile-dropdown-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--white);
  background: var(--pink-primary);
  margin-bottom: 0.5rem;
}

.profile-dropdown-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.profile-dropdown-email {
  color: var(--text-gray);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  word-break: break-all;
}

.profile-dropdown-balance {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--pink-primary);
  font-weight: 700;
}

.profile-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 1rem;
  color: var(--black);
  border-bottom: 1px solid var(--border-gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-dropdown-menu a:last-child {
  border-bottom: none;
}

.profile-dropdown-menu a:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
}

.dropdown a {
  display: block;
  color: var(--black);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-gray);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}

.buyer-dashboard-modal {
  max-width: 980px;
  width: 94%;
}

.buyer-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.buyer-panel {
  background: #fff7fb;
  border: 1px solid #ffd6ea;
  border-radius: 12px;
  padding: 1rem;
}

.buyer-panel h3 {
  margin-bottom: 0.75rem;
  color: var(--pink-primary);
}

.buyer-panel p {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.buyer-scroll-list {
  max-height: 280px;
  overflow-y: auto;
}

.buyer-order-item,
.buyer-account-item {
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
  background: var(--white);
}

.buyer-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.buyer-order-status {
  display: inline-block;
  background: rgba(255, 31, 146, 0.12);
  color: var(--pink-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
}

.buyer-account-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.buyer-accounts-panel {
  margin-top: 1rem;
}

.buyer-empty {
  color: var(--text-gray);
  text-align: center;
  padding: 1rem;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  margin-left: auto;
}

.notifications-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 1098;
}

.notifications-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.notifications-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 94vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1099;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.notifications-drawer.open {
  transform: translateX(0);
}

.notifications-drawer-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close-btn {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-dark);
}

.notifications-drawer-actions {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-gray);
}

.notifications-drawer-list {
  overflow-y: auto;
  padding: 0.75rem;
  flex: 1;
}

.notification-item {
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.notification-item.unread {
  border-color: #f9a8d4;
  background: #fff1f7;
}

.notification-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.notification-message {
  color: var(--text-dark);
  font-size: 0.92rem;
}

.notification-time {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-gray);
}

.user-page-layout {
  padding: 6.6rem 0 2.2rem;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8fc 0%, #ffffff 45%, #fff8fc 100%);
}

.user-page-title {
  font-size: 1.7rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.cart-grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cart-check-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-items-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.cart-item-row {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cart-item-image {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-gray);
}

.cart-item-title {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-item-price {
  font-size: 0.84rem;
  color: var(--text-gray);
  margin-top: 0.2rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-item-actions button,
.cart-item-actions input {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  background: var(--white);
  min-width: 34px;
  height: 34px;
  text-align: center;
}

.cart-item-actions button {
  cursor: pointer;
}

.cart-item-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-item-actions button.danger {
  color: #ef4444;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.transactions-list {
  display: grid;
  gap: 0.8rem;
}

.transaction-card {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  background: var(--white);
}

.transaction-card:hover {
  background: #fff8fc;
}

.transaction-meta {
  text-align: right;
}

.profile-section {
  margin-bottom: 1rem;
}

.profile-complete-fab {
  position: fixed;
  left: 16px;
  top: 88px;
  z-index: 1050;
  border: none;
  border-radius: 999px;
  background: var(--pink-primary);
  color: #fff;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 8px 18px rgba(255, 31, 146, 0.35);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.profile-complete-fab:hover {
  background: var(--pink-hover);
}

.profile-complete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 1095;
}

.profile-complete-overlay.open {
  opacity: 1;
  visibility: visible;
}

.profile-complete-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: #fff;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
  z-index: 1096;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.profile-complete-drawer.open {
  transform: translateX(0);
}

.profile-menu-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #fff9fd 0%, #ffffff 30%, #ffffff 100%);
}

.profile-menu-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem 0;
  flex-shrink: 0;
}

.profile-menu-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem 0.75rem;
  flex-shrink: 0;
}

.profile-menu-logo {
  height: 40px;
  width: auto;
}

.profile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.6rem 0.85rem;
}

.profile-menu-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.profile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #4b5563;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.18s;
}

.profile-menu-link:hover {
  background: #ffeaf5;
  color: #1f2937;
}

.profile-menu-link.active {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-hover) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 31, 146, 0.3);
}

.profile-menu-link i {
  width: 18px;
  text-align: center;
}

.profile-menu-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--pink-primary);
  color: #fff;
}

.profile-menu-pill {
  margin-left: 0.45rem;
  font-size: 0.64rem;
  border-radius: 999px;
  background: #fb7185;
  color: #fff;
  padding: 0.12rem 0.45rem;
}

.profile-menu-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #db2777;
  margin: 0.7rem 0.45rem 0.45rem;
  letter-spacing: 0.35px;
}

.profile-menu-separator {
  border-top: 1px solid #e5e7eb;
  margin: 0.6rem 0;
}

.profile-complete-card {
  margin-top: 0.9rem;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  padding: 0.8rem;
  background: linear-gradient(180deg, #fff3fa 0%, #fff 100%);
  box-shadow: 0 6px 16px rgba(255, 31, 146, 0.08);
}

.profile-complete-card h4 {
  margin-bottom: 0.55rem;
  color: var(--pink-primary);
}

.profile-menu-footer {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  padding: 0.7rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  background: #fff8fc;
}

.profile-complete-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-complete-progress {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ffd8ea;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4ca7 0%, #ff1f92 100%);
  transition: width 0.25s ease;
}

.profile-complete-progress p {
  margin-top: 0.5rem;
  color: var(--text-dark);
  font-size: 0.88rem;
}

.profile-complete-list {
  padding: 0.85rem;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 0.55rem;
}

.profile-check-item {
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 600;
}

.profile-check-item.done {
  border-color: #f9a8d4;
  background: #fff1f8;
}

.profile-check-icon {
  color: var(--pink-primary);
}

.profile-check-item:not(.done) .profile-check-icon {
  color: #9ca3af;
}

.profile-complete-actions {
  padding: 0.85rem;
  border-top: 1px solid var(--border-gray);
}

.profile-section-focus {
  animation: profileSectionPulse 1.2s ease;
}

@keyframes profileSectionPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 31, 146, 0.35); }
  100% { box-shadow: 0 0 0 18px rgba(255, 31, 146, 0); }
}

.user-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  z-index: 3000;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ==================== BUTTONS ==================== */
.btn {
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-pink {
  background: var(--pink-primary) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn-pink:hover {
  background: var(--pink-hover) !important;
  box-shadow: var(--shadow-md);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--pink-primary);
  border: 1.5px solid var(--pink-primary);
}

.btn-outline:hover {
  background: var(--pink-primary);
  color: var(--white);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-checkout-cta {
  width: auto;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #ff41a5 0%, #ff1f92 60%, #e91e8c 100%);
  box-shadow: 0 10px 22px rgba(255, 31, 146, 0.3);
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
}

.btn-checkout-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 31, 146, 0.36);
  background: linear-gradient(135deg, #ff2f9c 0%, #ff0f88 60%, #d81b84 100%);
}

.btn-checkout-cta:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-checkout-compact {
  min-height: 40px;
  padding: 0.52rem 0.85rem;
  font-size: 0.86rem;
}

.checkout-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}

.payment-action-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* ==================== ADS BANNER ==================== */
.ads-container {
  background: var(--white);
  padding: 1.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gray);
}

.ads-slider {
  display: flex;
  gap: 1rem;
  animation: slide 20s linear infinite;
}

.ad-item {
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--border-gray);
}

.ad-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ad-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.ad-item .ad-title {
  padding: 0.875rem;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(135deg, #FF41A5 0%, #FF1F92 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  color: var(--white);
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
  animation: fadeInUp 0.6s 0.15s both;
}

.hero .btn {
  animation: fadeInUp 0.6s 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECTIONS ==================== */
section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ==================== FLASH SALE ==================== */
.flash-sale {
  background: var(--white);
}

.countdown {
  display: inline-flex;
  gap: 0.75rem;
  background: var(--pink-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pink-primary);
  border: 2px solid var(--pink-primary);
}

/* ==================== PRODUCTS ==================== */
.filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border-gray);
  color: var(--text-gray);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

.filter-btn.active {
  background: var(--pink-primary);
  color: var(--white);
  border-color: var(--pink-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid var(--border-gray);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-gray);
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.375rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-section {
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink-primary);
}

.product-price-original {
  font-size: 0.875rem;
  color: var(--text-gray);
  text-decoration: line-through;
}

.product-stock {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.product-stock .available {
  color: var(--success);
  font-weight: 600;
}

.product-stock .unavailable {
  color: var(--danger);
  font-weight: 600;
}

.product-badges-row {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.mini-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

.badge-flash {
  background: var(--danger);
  color: var(--white);
}

.badge-instant {
  background: var(--success);
  color: var(--white);
}

.badge-variant {
  background: var(--warning);
  color: var(--white);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.625rem;
}

.search-filter-section {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.search-input,
.category-filter {
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  background: var(--white);
  color: var(--black);
}

.search-input:focus,
.category-filter:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 3px rgba(255, 65, 165, 0.1);
}

/* ==================== LEADERBOARD ==================== */
.leaderboard-section {
  background: var(--white);
}

.leaderboard-table {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gray);
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  background: var(--pink-primary);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.leaderboard-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.9rem;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover {
  background: var(--bg-gray);
}

.rank-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
}

.rank-1 { background: #FFD700; color: var(--black); }
.rank-2 { background: #C0C0C0; color: var(--black); }
.rank-3 { background: #CD7F32; }

.user-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  background: var(--pink-light);
  color: var(--pink-primary);
}

/* ==================== BADGES ==================== */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.badge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--border-gray);
}

.badge-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--pink-primary);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.badge-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.badge-description {
  color: var(--text-gray);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.badge-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink-primary);
  margin-bottom: 1rem;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
}

.modal-lg {
  max-width: 800px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--pink-primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-gray);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.tv-target-modal {
  z-index: 2100;
}

.tv-target-content {
  width: min(520px, 92vw);
  border-radius: 18px;
  overflow: hidden;
}

.tv-target-header {
  background: linear-gradient(135deg, #ff41a5 0%, #ff1f92 55%, #e91e8c 100%);
}

.tv-target-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tv-target-body {
  display: grid;
  gap: 0.8rem;
  padding-top: 1.4rem;
  padding-bottom: 1.35rem;
}

.tv-target-desc {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  background: #fff4fa;
  border: 1px solid #ffd2e8;
  border-radius: 10px;
  padding: 0.68rem 0.78rem;
}

.tv-target-body .form-group {
  margin-bottom: 0;
}

.tv-target-body .form-control {
  border-width: 1.6px;
  border-radius: 10px;
}

.tv-target-hint {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #64748b;
}

.tv-target-error {
  margin: 0;
  font-size: 0.86rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.tv-target-footer {
  gap: 0.6rem;
}

.tv-target-footer .btn {
  min-width: 118px;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--black);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
  background: var(--white);
  color: var(--black);
}

.form-control:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 3px rgba(255, 65, 165, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ==================== CART ==================== */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  align-items: center;
  background: var(--white);
  transition: all 0.2s;
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-gray);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--pink-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-item-quantity {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.cart-item-meta {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #f3f4f6;
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: #e5e7eb;
}

.cart-qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  padding: 0 0.35rem;
}

.cart-remove {
  background: var(--danger);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-remove:hover {
  background: #DC2626;
  transform: scale(1.05);
}

.cart-empty-state {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-gray);
}

.cart-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gray);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.cart-summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-summary-actions .btn {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 640px) {
  .cart-item {
    align-items: flex-start;
  }

  .cart-remove {
    padding: 0.45rem 0.7rem;
  }

  .cart-summary-actions .btn {
    min-width: 100%;
  }
}

.cart-total {
  text-align: right;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--pink-primary);
}

.cart-total h3 {
  color: var(--pink-primary);
  font-size: 1.8rem;
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-detail img {
  width: 100%;
  border-radius: 10px;
}

.product-info h3 {
  color: var(--pink-primary);
  margin-bottom: 1rem;
}

.price-info {
  background: var(--gray-light);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-selector input {
  width: 100px;
  margin-top: 0.5rem;
}

.cart-total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-gray);
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-primary);
  margin-bottom: 0.5rem;
}

/* ==================== ORDERS ==================== */
.order-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-gray);
  color: var(--black);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--pink-primary);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-id {
  font-weight: 700;
  color: var(--pink-primary);
  font-size: 0.9rem;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--success);
}

.order-detail-content {
  background: var(--bg-gray);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.order-product {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.875rem;
  border: 1px solid var(--border-gray);
}

.product-data {
  background: var(--bg-gray);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: var(--black);
  font-size: 0.85rem;
  line-height: 1.6;
}

.product-data-item {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-gray);
}

.product-data-item:last-child {
  border-bottom: none;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 3px solid var(--pink-primary);
}

.footer p {
  opacity: 0.9;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--pink-primary);
  transform: translateY(-3px);
}

/* ==================== ALERT & NOTIFICATIONS ==================== */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--pink-light);
  color: var(--pink-primary);
  border-color: var(--pink-primary);
}

.alert-error {
  background: #FEE2E2;
  color: var(--danger);
  border-color: var(--danger);
}

.alert-warning {
  background: #FEF3C7;
  color: var(--warning);
  border-color: var(--warning);
}

/* ==================== UTILITIES ==================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none !important;
}

/* ==================== LOADING SPINNER ==================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 65, 165, 0.3);
  border-radius: 50%;
  border-top-color: var(--pink-primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .brand-logo {
    height: 42px;
  }
  
  .search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .auth-buttons .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Navigation responsive - tetap horizontal */
  .navbar-top .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  
  .nav-brand {
    flex-shrink: 0;
  }
  
  .brand-logo {
    height: 35px;
  }
  
  .nav-brand h1 {
    font-size: 1.5rem;
  }
  
  .nav-search {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  
  .search-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    width: 100%;
  }
  
  .search-btn span {
    display: none;
  }
  
  .search-btn i {
    margin-right: 0;
  }
  
  .auth-buttons {
    flex-shrink: 0;
  }
  
  .auth-buttons .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .auth-buttons .btn span {
    display: none;
  }
  
  .auth-buttons .btn i {
    margin-right: 0;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }
  
  .navbar-bottom {
    padding: 0.4rem 0;
  }
  
  .nav-links-scroll {
    gap: 0.15rem;
  }
  
  .more-dropdown-menu {
    right: -1rem;
  }

  .profile-dropdown-menu {
    width: 250px;
    right: -0.35rem;
  }

  .buyer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .buyer-scroll-list {
    max-height: 220px;
  }

  .cart-grid-layout {
    grid-template-columns: 1fr;
  }

  .cart-item-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-actions {
    justify-content: flex-end;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.875rem;
  }

  .product-image {
    height: 140px;
  }

  .filters {
    gap: 0.375rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .modal-header h3 {
    font-size: 1.1rem;
  }
  
  .close-btn {
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
  }
  
  .cart-total h3 {
    font-size: 1.4rem;
  }
  
  .total-amount {
    font-size: 1.25rem;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item img {
    width: 100%;
    height: 120px;
  }

  .leaderboard-table {
    font-size: 0.85rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .stats-section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }
  
  .navbar-top .container {
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
  }

  .brand-logo {
    height: 30px;
  }

  .nav-brand h1 {
    font-size: 1.25rem;
  }
  
  .search-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .search-btn span {
    display: none;
  }
  
  .search-btn i {
    font-size: 1rem;
    margin: 0;
  }
  
  .auth-buttons .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }
  
  .auth-buttons .btn span {
    display: none;
  }
  
  .auth-buttons .btn i {
    margin: 0;
    font-size: 1rem;
  }

  .profile-avatar-btn {
    width: 38px;
    height: 38px;
  }

  .profile-dropdown-menu {
    width: calc(100vw - 1.5rem);
    max-width: 320px;
    right: -0.5rem;
  }

  .buyer-dashboard-modal {
    width: 98%;
  }

  .user-page-layout {
    padding-top: 5.8rem;
  }

  .profile-complete-fab {
    top: 78px;
    left: 10px;
    padding: 0.55rem 0.8rem;
    font-size: 0.83rem;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 0.5rem;
  }
  
  .nav-link i {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .modal-content {
    max-width: 98%;
    width: 98%;
  }
  
  .modal-header {
    padding: 0.85rem 1rem;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .close-btn {
    font-size: 1.25rem;
    width: 24px;
    height: 24px;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 0.85rem 1rem;
  }
  
  .cart-total {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
  }
  
  .cart-total h3 {
    font-size: 1.2rem;
  }
  
  .total-amount {
    font-size: 1.1rem;
  }
  
  .price-info {
    padding: 0.75rem;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
  }
  
  .section-title-modern {
    font-size: 1.15rem;
  }
  
  .section-icon {
    font-size: 1.15rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  .product-name {
    font-size: 0.875rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .product-info {
    padding: 0.85rem;
  }
  
  .stats-section {
    padding: 2rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .banner-wrapper {
    border-radius: 16px;
  }
  
  .banner-slide img {
    max-height: 200px;
  }
  
  .banner-nav {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .banner-prev {
    left: 5px;
  }
  
  .banner-next {
    right: 5px;
  }
  
  .banner-indicators {
    bottom: 8px;
  }
  
  .banner-dot {
    width: 6px;
    height: 6px;
  }
  
  .banner-dot.active {
    width: 18px;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
  }
}

/* ===================================================================================
   NEW MODERN HOMEPAGE STYLES - SEKALIPAY INSPIRED
   =================================================================================== */

/* ==================== BANNER SLIDER ==================== */
.banner-slider {
  width: 100%;
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
  background: transparent;
}

.banner-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 32px;
  background: #f9fafb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: grab;
  transition: cursor 0.2s ease;
}

.banner-wrapper:active {
  cursor: grabbing;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
}

.banner-slide a {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  user-select: none;
}

.banner-slide a img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-nav:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  width: 24px;
  border-radius: 4px;
  background: white;
}

/* ==================== FEATURES STRIP ==================== */
.features-strip {
  padding: 0.75rem 0;
  background: transparent;
  margin-bottom: 2rem;
}

.features-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.feature-icon {
  width: 18px;
  height: 18px;
  color: var(--pink-primary);
  font-size: 18px;
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.feature-divider {
  width: 1px;
  height: 1rem;
  background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .features-strip {
    padding: 0.6rem 0;
    margin-bottom: 1.5rem;
  }
  
  .features-wrapper {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .feature-item {
    gap: 0.4rem;
  }
  
  .feature-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
  }
  
  .feature-text {
    font-size: 0.8rem;
  }
  
  .feature-divider {
    display: none;
  }
}

/* ==================== SECTION HEADERS ==================== */
.section-header-modern {
  margin-bottom: 1.5rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.flash-icon {
  color: #FFB800;
}

.featured-icon {
  color: var(--primary);
}

.section-title-modern {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-subtitle {
  color: var(--text-gray);
  margin-top: 0.5rem;
}

.countdown-badge {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #FFB800, #FF6B00);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==================== FLASH SALE SECTION ==================== */
.flash-sale-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.horizontal-scroll-wrapper {
  position: relative;
}

.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--border-gray);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scroll-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.scroll-left {
  left: -20px;
}

.scroll-right {
  right: -20px;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #FFE5F3 0%, #FFF0F9 100%);
  border-radius: 16px;
}

.featured-section .container {
  padding: 1rem;
}

/* ==================== CATEGORY FILTER ==================== */
.category-filter-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.category-scroll-container {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-track {
  background: var(--bg-gray);
  border-radius: 2px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  width: max-content;
}

.category-pill {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-gray);
  background: white;
  color: var(--text-gray);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-pill:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

.category-pill.active {
  background: #3B82F6;
  border-color: #3B82F6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-toggle {
  flex-shrink: 0;
}

.btn-filter {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-gray);
  background: white;
  color: var(--text-gray);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

.btn-filter.active {
  background: #3B82F6;
  border-color: #3B82F6;
  color: white;
}

/* ==================== MODERN PRODUCT CARDS ==================== */
.products-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.product-card-modern {
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  border-color: #3B82F6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-gray);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-modern:hover .product-gradient-overlay {
  opacity: 1;
}

.product-stock-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 2;
}

.badge-available {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.badge-low-stock {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.badge-out-of-stock {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.product-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #3B82F6, #60A5FA, #3B82F6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card-modern:hover .product-progress-bar {
  transform: scaleX(1);
}

.product-info-modern {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.product-name-modern {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-modern:hover .product-name-modern {
  color: #3B82F6;
}

/* Flash Sale Card Variant */
.flash-card {
  min-width: 200px;
  max-width: 200px;
}

.flash-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #FFB800, #FF6B00);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Featured Card Variant */
.featured-card {
  min-width: 200px;
  max-width: 200px;
  border-color: var(--primary);
}

.featured-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .banner-wrapper {
    border-radius: 20px;
  }
  
  .banner-slide img {
    max-height: 250px;
  }
  
  .banner-nav {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .banner-prev {
    left: 10px;
  }
  
  .banner-next {
    right: 10px;
  }
  
  .section-title-modern {
    font-size: 1.25rem;
  }
  
  .section-icon {
    font-size: 1.25rem;
  }
  
  .products-grid-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .category-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .scroll-btn {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .products-grid-modern {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid-modern {
    grid-template-columns: repeat(6, 1fr);
  }
}


/* ===================================================================================
   PROMO BANNER, STATS, FAQ, AND FOOTER SECTIONS
   =================================================================================== */

/* ==================== PROMO BANNER SECTION ==================== */
.promo-banner-section {
  padding: 4rem 0;
  background: var(--bg-gray);
}

.promo-banner-card {
  position: relative;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.15);
  min-height: 350px;
}

.promo-gradient-bg {
  position: absolute;
  width: 256px;
  height: 96px;
  top: 0;
  right: 10%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(168,85,247,0.7), rgba(59,130,246,1), rgba(59,130,246,0.7));
  filter: blur(100px);
  pointer-events: none;
}

.promo-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  min-height: 350px;
}

.promo-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  text-transform: capitalize;
}

.promo-description {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

.btn-promo {
  align-self: flex-start;
  padding: 1rem 2rem;
  background: var(--pink-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 65, 165, 0.3);
}

.btn-promo:hover {
  background: var(--pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 65, 165, 0.4);
}

.promo-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
}

.promo-image img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

/* ==================== STATISTICS SECTION ==================== */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ==================== AUTH PAGES (LOGIN/REGISTER) ==================== */
.auth-section {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #fef3f7 0%, #fff 100%);
}

.auth-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(255, 65, 165, 0.1);
  border: 1px solid rgba(255, 65, 165, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--pink-primary);
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group label i {
  color: var(--pink-primary);
  margin-right: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 3px rgba(255, 65, 165, 0.1);
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
}

.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.auth-footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.auth-link {
  color: var(--pink-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-link:hover {
  color: var(--pink-hover);
  text-decoration: underline;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .auth-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-icon {
    font-size: 2rem;
  }
  
  .auth-subtitle {
    font-size: 0.85rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.85rem;
  }
  
  .form-group input {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }
  
  .btn-full {
    padding: 0.85rem;
    font-size: 0.9rem;
  }
  
  .auth-footer p {
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 2rem 0 0;
  }
  
  .footer-logo-img {
    height: 32px;
  }
  
  .footer-description {
    font-size: 0.8rem;
  }
  
  .footer-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    padding: 1rem 0;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
  }
  
  .footer-bottom-links {
    gap: 1rem;
  }
  
  .footer-bottom-links a {
    font-size: 0.8rem;
  }
  
  /* Stats Section Mobile */
  .stat-box {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .stat-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    font-size: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

.stat-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.stat-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.stat-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
}

.stat-blue .stat-icon-wrapper {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.stat-green .stat-icon-wrapper {
  background: linear-gradient(135deg, #10B981, #34D399);
}

.stat-purple .stat-icon-wrapper {
  background: linear-gradient(135deg, #A855F7, #C084FC);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-blue .stat-number {
  color: #3B82F6;
}

.stat-green .stat-number {
  color: #10B981;
}

.stat-purple .stat-number {
  color: #A855F7;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-gray);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.faq-badge {
  color: #3B82F6;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.faq-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.faq-star-icon {
  width: 96px;
  height: 96px;
  margin-top: 0.25rem;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-gray);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-gray);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: white;
  border-top: 1px solid var(--border-gray);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo-link {
  display: block;
  margin: 0 0 1rem 0;
  width: fit-content;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.footer-logo-link:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-primary);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  padding: 0;
  max-width: 360px;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 10px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  background: var(--pink-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 65, 165, 0.3);
}

.footer-column {
  min-width: 0;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--pink-primary);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-gray);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-gray);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .promo-banner-content {
    grid-template-columns: 1fr;
  }
  
  .promo-text {
    padding: 2rem;
  }
  
  .promo-title {
    font-size: 1.5rem;
  }
  
  .promo-image {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-main-title {
    font-size: 2rem;
  }
  
  .faq-star-icon {
    width: 64px;
    height: 64px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-logo-img {
    height: 38px;
  }
  
  .footer-description {
    max-width: 100%;
  }
  
  .footer {
    padding: 3rem 0 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .promo-banner-content {
    grid-template-columns: 2fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}


/* ==================== CART BALANCE WARNING ==================== */
.cart-balance-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff3cd;
  border: 1px solid #ffd07a;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: #92600a;
  margin-top: 0.5rem;
}
.cart-balance-warning a { color: var(--pink-primary); font-weight: 600; }

/* ==================== STATUS BADGE ==================== */
.tx-status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
}
.tx-status-badge.completed, .tx-status-badge.approved { background: #d1fae5; color: #065f46; }
.tx-status-badge.pending   { background: #fef3c7; color: #92600a; }
.tx-status-badge.rejected, .tx-status-badge.cancelled { background: #fee2e2; color: #991b1b; }
.tx-status-badge.open      { background: #dbeafe; color: #1e40af; }
.tx-status-badge.answered  { background: #e0e7ff; color: #3730a3; }
.tx-status-badge.closed    { background: #f3f4f6; color: #6b7280; }

/* ==================== DASHBOARD PAGE ==================== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.dash-stat-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dash-stat-icon.pink   { background: var(--pink-light); color: var(--pink-primary); }
.dash-stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.dash-stat-icon.yellow { background: #fef3c7; color: #d97706; }
.dash-stat-body { flex: 1; }
.dash-stat-label { font-size: 0.78rem; color: #888; margin-bottom: 0.2rem; }
.dash-stat-value { font-size: 1.25rem; font-weight: 700; color: #1a1a2e; }
.dash-stat-action {
  position: absolute; bottom: 0.7rem; right: 1rem;
  font-size: 0.75rem; color: var(--pink-primary); font-weight: 600;
  text-decoration: none;
}
.dash-stat-action:hover { text-decoration: underline; }
.dashboard-section { padding: 1.25rem; }
.section-heading {
  font-size: 1rem; font-weight: 700; color: #1a1a2e;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.section-heading i { color: var(--pink-primary); }
.dashboard-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}
.quicklink-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  background: var(--pink-light);
  border-radius: 12px; padding: 1rem 0.5rem;
  text-decoration: none; color: var(--pink-primary);
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.quicklink-item:hover { background: #ffd0eb; transform: translateY(-2px); }
.quicklink-item i { font-size: 1.4rem; }

/* ==================== TOP UP PAGE ==================== */
.topup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 720px) { .topup-grid { grid-template-columns: 1fr; } }
.topup-balance-display {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-hover));
  border-radius: 12px; padding: 1.2rem;
  margin-bottom: 1rem; text-align: center;
}
.topup-balance-label { font-size: 0.82rem; color: rgba(255,255,255,0.85); margin-bottom: 0.3rem; }
.topup-balance-value { font-size: 1.7rem; font-weight: 800; color: #fff; }
.topup-preset-amounts {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem;
}
.topup-preset-amounts button {
  padding: 0.3rem 0.75rem; border-radius: 20px; border: 1.5px solid var(--pink-primary);
  background: #fff; color: var(--pink-primary); font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.topup-preset-amounts button:hover { background: var(--pink-light); }
.topup-info-box {
  background: #fffbea; border: 1px solid #fcd34d; border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.83rem; color: #92600a; display: flex; gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ==================== INCOME PAGE ==================== */
.income-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.income-stat-card {
  background: #fff; border-radius: 14px; padding: 1.1rem;
  box-shadow: var(--shadow-sm); text-align: center;
}
.income-stat-card.highlight { border: 2px solid var(--pink-primary); }
.income-stat-icon { font-size: 1.5rem; color: var(--pink-primary); margin-bottom: 0.4rem; }
.income-stat-label { font-size: 0.75rem; color: #888; margin-bottom: 0.3rem; }
.income-stat-value { font-size: 1.15rem; font-weight: 700; color: #1a1a2e; }

/* ==================== RESELLER PAGE ==================== */
.reseller-hero {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #fff0f9, #ffe4f4);
  border: 1.5px solid #ffc0e0;
}
.reseller-hero-content h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 0.5rem; }
.reseller-hero-content p { color: #555; margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.6; }
.reseller-hero-icon { font-size: 3rem; color: var(--pink-primary); flex-shrink: 0; }
.reseller-steps { display: flex; flex-direction: column; gap: 1rem; }
.reseller-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.75rem; background: #fafafa; border-radius: 10px;
}
.reseller-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.reseller-step strong { display: block; color: #1a1a2e; margin-bottom: 0.2rem; }
.reseller-step p { color: #666; font-size: 0.85rem; margin: 0; }
.reseller-benefits {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem;
}
.reseller-benefit-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; background: var(--pink-light); border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; color: #333;
}

/* ==================== SUPPORT PAGE ==================== */
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } }
.support-ticket-card {
  background: #fff; border-radius: 10px; padding: 1rem;
  border: 1px solid #f0d0e4; margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.support-ticket-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.5rem; margin-bottom: 0.5rem;
}
.support-ticket-subject { font-weight: 600; color: #1a1a2e; font-size: 0.92rem; }
.support-ticket-msg { color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.45rem; }
.support-ticket-reply {
  background: #ffeaf5; border-radius: 8px; padding: 0.6rem 0.85rem;
  font-size: 0.83rem; color: #333; margin-bottom: 0.4rem;
}
.tx-date { font-size: 0.75rem; color: #aaa; }

/* ==================== DEVICES PAGE ==================== */
.device-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border-radius: 12px; padding: 1rem 1.25rem;
  border: 1.5px solid #ffe0f0; margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.device-card.active-device { border-color: var(--pink-primary); background: #fff9fd; }
.device-icon { font-size: 1.8rem; color: var(--pink-primary); flex-shrink: 0; padding-top: 0.1rem; }
.device-name { font-weight: 600; color: #1a1a2e; margin-bottom: 0.25rem; }
.device-meta { font-size: 0.82rem; color: #888; margin-bottom: 0.3rem; }
.device-badge {
  display: inline-block; padding: 0.15rem 0.6rem;
  border-radius: 20px; font-size: 0.72rem; font-weight: 700;
  background: #d1fae5; color: #065f46;
}
.devices-info-box {
  background: #fff3cd; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 0.85rem 1rem; font-size: 0.85rem; color: #92600a;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.devices-info-box i { margin-top: 0.1rem; flex-shrink: 0; }

/* ==================== USER SIDEBAR ==================== */
.user-sidebar {
  position: fixed;
  top: 66px;
  left: 0;
  width: 240px;
  height: calc(100vh - 66px);
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--border-gray);
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.has-sidebar {
  padding-left: 240px !important;
}

.sidebar-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--border-gray);
  gap: 0.3rem;
  background: linear-gradient(135deg, #fff8fc 0%, #fff 100%);
}

.sidebar-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--pink-primary);
  box-shadow: 0 2px 8px rgba(255,65,165,0.18);
}

.sidebar-username {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
  text-align: center;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-balance {
  font-size: 0.78rem;
  color: var(--text-gray);
  font-weight: 500;
}

.user-sidebar nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.sidebar-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gray);
  padding: 0.65rem 1rem 0.2rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}

.sidebar-nav-link.active {
  background: var(--pink-light);
  color: var(--pink-primary);
  font-weight: 600;
  border-left-color: var(--pink-primary);
}

.sidebar-nav-link i {
  width: 17px;
  text-align: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--pink-primary);
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sidebar-pill {
  margin-left: auto;
  background: var(--pink-light);
  color: var(--pink-primary);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 0.55rem 0 0.75rem;
  border-top: 1px solid var(--border-gray);
  background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  font-size: 0.86rem;
  color: #ef4444;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-logout-btn:hover {
  background: #fef2f2;
}

.sidebar-footer-meta {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-gray);
  letter-spacing: 0.03em;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .user-sidebar {
    display: flex;
    top: 0;
    left: 0;
    width: min(82vw, 300px);
    height: 100vh;
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    z-index: 1200;
    border-right: 1px solid #f1d7e7;
    box-shadow: 14px 0 30px rgba(15, 23, 42, 0.15);
  }

  body.mobile-sidebar-open .user-sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    z-index: 1190;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.mobile-sidebar-open .mobile-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .has-sidebar {
    padding-left: 0 !important;
  }
}

/* ==================== AVATAR UPLOAD ==================== */
.avatar-upload-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-gray);
}

.avatar-preview-ring {
  position: relative;
  display: inline-block;
}

.avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pink-primary);
  box-shadow: 0 4px 16px rgba(255,65,165,0.18);
  display: block;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--pink-primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.15s;
}

.avatar-upload-btn:hover {
  background: var(--pink-hover);
  transform: scale(1.1);
}

.avatar-upload-hint {
  font-size: 0.76rem;
  color: var(--text-gray);
  text-align: center;
  margin: 0;
}

/* ==================== REVIEW SYSTEM ==================== */
.review-modal-content {
  max-width: 440px;
  width: 95%;
}

.review-stars-wrap {
  text-align: center;
}

.review-stars-label {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.review-star-btns {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
  padding: 0.1rem;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Review button on transaction detail */
.buyer-account-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--pink-light);
  color: var(--pink-primary);
  border: 1px solid var(--pink-primary);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-review:hover {
  background: var(--pink-primary);
  color: #fff;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  padding: 3.2rem 0;
  background: linear-gradient(180deg, #fff8fd 0%, #ffffff 100%);
}

.about-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.about-copy {
  background: #fff;
  border: 1px solid #f5d9ea;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 16px rgba(255, 65, 165, 0.08);
}

.about-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pink-primary);
  background: #ffe8f5;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  margin-bottom: 0.7rem;
}

.about-copy h2 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.about-copy p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

.about-copy li {
  margin-bottom: 0.42rem;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.about-point-card {
  background: #fff;
  border: 1px solid #f5d9ea;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 5px 14px rgba(255, 65, 165, 0.07);
}

.about-point-card i {
  color: var(--pink-primary);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.about-point-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.about-point-card p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.84rem;
}

/* ==================== SECTION EMPTY STATE ==================== */
.section-empty-state {
  width: min(680px, 100%);
  margin: 0.4rem auto;
  text-align: center;
  background: #fff;
  border: 1px dashed #f3bfdc;
  border-radius: 14px;
  padding: 1.2rem 0.9rem;
}

.section-empty-state i {
  color: var(--pink-primary);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.section-empty-state h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.section-empty-state p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.83rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 3.2rem 0;
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
  border-top: 1px solid #f7d7ea;
  border-bottom: 1px solid #f7d7ea;
}

.contact-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.contact-badge {
  display: inline-block;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: #ffe8f5;
  color: var(--pink-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.contact-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
}

.contact-header p {
  color: var(--text-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid #f2d5e6;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(255, 65, 165, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 65, 165, 0.12);
}

.contact-card h4 {
  margin: 0 0 0.1rem;
  font-size: 0.92rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.82rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.contact-icon.wa {
  background: #dcfce7;
  color: #16a34a;
}

.contact-icon.tg {
  background: #dbeafe;
  color: #2563eb;
}

.contact-icon.mail {
  background: #ffe4e6;
  color: #e11d48;
}

@media (max-width: 900px) {
  .about-shell {
    grid-template-columns: 1fr;
  }

  .about-copy h2 {
    font-size: 1.22rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-header h2 {
    font-size: 1.32rem;
  }
}

/* ==================== PRICE LIST PAGE ==================== */
.price-list-toolbar {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.price-list-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.price-list-search-wrap i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.price-list-search-wrap input {
  padding-left: 2.2rem;
}

.price-list-meta {
  font-size: 0.86rem;
  color: var(--text-gray);
  margin-bottom: 0.7rem;
}

.price-list-table-wrap {
  overflow-x: auto;
}

.price-list-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.price-list-table th,
.price-list-table td {
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
  padding: 0.72rem 0.65rem;
  vertical-align: middle;
}

.price-list-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  background: #fff8fc;
}

.price-product-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.price-product-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-gray);
}

.price-product-name {
  font-weight: 600;
  color: #1f2937;
}

.price-stock {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.price-stock.in-stock {
  color: #166534;
  background: #dcfce7;
}

.price-stock.out-stock {
  color: #b91c1c;
  background: #fee2e2;
}

.price-list-empty {
  text-align: center;
  color: var(--text-gray);
  padding: 1.1rem 0.8rem !important;
}

@media (max-width: 720px) {
  .price-list-search-wrap {
    min-width: 0;
    width: 100%;
  }

  .price-list-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .price-list-table {
    min-width: 620px;
  }
}

/* ==================== HEADER + SIDEBAR + FOOTER POLISH ==================== */
.navbar {
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.navbar-top {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 0;
}

.user-page-layout {
  min-height: calc(100vh - 66px);
}

.user-sidebar {
  border-right: 1px solid #f0d4e6;
  box-shadow: 8px 0 20px rgba(255, 65, 165, 0.06);
}

.sidebar-user-card {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(160deg, #fff9fc 0%, #fff 100%);
}

.sidebar-section-title {
  margin-top: 0.25rem;
}

.sidebar-nav-link {
  margin: 0.1rem 0.45rem;
  border-radius: 10px;
  border-left: none;
}

.sidebar-nav-link.active {
  border-left: none;
  box-shadow: inset 0 0 0 1px rgba(255, 65, 165, 0.2);
}

.footer {
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  border-top: 1px solid #f2d8e8;
}

.footer-bottom {
  border-top: 1px dashed #f2d8e8;
}

.footer-bottom-links a:hover {
  color: var(--pink-primary);
}

.mobile-sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #f3cfe3;
  background: #fff6fb;
  color: var(--pink-primary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mobile-sidebar-toggle:hover {
  background: var(--pink-light);
}

section[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 900px) {
  .navbar-top {
    padding: 0.28rem 0;
  }

  .navbar-top .container {
    gap: 0.55rem;
  }

  .brand-logo {
    height: 38px;
  }

  .auth-buttons {
    gap: 0.45rem;
    align-items: center;
    min-width: 0;
  }

  .auth-buttons .btn {
    padding: 0.45rem 0.72rem;
    font-size: 0.76rem;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 36px;
  }

  .navbar {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .user-page-layout {
    min-height: auto;
  }

  .footer-grid {
    gap: 1.8rem;
  }

  .about-section,
  .contact-section {
    padding: 2.4rem 0;
  }

  .about-copy,
  .about-point-card,
  .contact-card {
    border-radius: 12px;
  }

  .section-empty-state {
    padding: 1rem 0.8rem;
  }
}

@media (max-width: 520px) {
  section[id] {
    scroll-margin-top: 72px;
  }

  .user-page-layout {
    padding: 5.4rem 0 1.5rem;
  }

  .user-page-title {
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }

  .card {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .form-control,
  .cart-item-actions input,
  .cart-item-actions button {
    font-size: 16px;
  }

  .cart-grid-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .checkout-action-row {
    grid-template-columns: 1fr;
  }

  .payment-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .payment-action-row .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-checkout-cta {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .tv-target-content {
    width: min(96vw, 520px);
    max-height: 88vh;
    border-radius: 14px;
  }

  .tv-target-body {
    gap: 0.72rem;
    padding: 1rem;
  }

  .tv-target-desc {
    font-size: 0.86rem;
    padding: 0.58rem 0.65rem;
  }

  .tv-target-body .form-control {
    font-size: 16px;
    padding: 0.68rem;
  }

  .tv-target-footer {
    padding: 0.78rem 1rem;
    flex-direction: column-reverse;
  }

  .tv-target-footer .btn {
    width: 100%;
    min-width: 0;
  }

  .cart-item-row {
    padding: 0.65rem;
    gap: 0.6rem;
  }

  .cart-item-left {
    align-items: flex-start;
  }

  .cart-item-image {
    width: 48px;
    height: 48px;
  }

  .transaction-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
    padding: 0.78rem;
  }

  .transaction-meta {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .profile-complete-fab {
    top: 72px;
    left: 8px;
    padding: 0.5rem 0.72rem;
    font-size: 0.78rem;
  }

  .profile-complete-drawer {
    width: min(92vw, 330px);
  }

  .profile-menu-link {
    font-size: 0.84rem;
    padding: 0.56rem 0.62rem;
  }

  body[data-page="docs"] .user-page-layout .container {
    max-width: 100% !important;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  body[data-page="docs"] .card {
    padding: 0.92rem !important;
  }

  body[data-page="docs"] h2 {
    font-size: 1rem !important;
  }

  body[data-page="docs"] p,
  body[data-page="docs"] li {
    font-size: 0.84rem !important;
    line-height: 1.65 !important;
  }

  .navbar-top .container {
    gap: 0.42rem;
  }

  .brand-logo {
    height: 32px;
  }

  .auth-buttons .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .mobile-sidebar-toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .user-sidebar {
    width: min(88vw, 300px);
  }

  .about-copy h2,
  .contact-header h2 {
    font-size: 1.14rem;
    line-height: 1.35;
  }

  .about-copy,
  .contact-card {
    padding: 0.9rem;
  }

  .section-empty-state {
    border-radius: 12px;
  }
}
