@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Color Variables & Theme System */
:root {
  /* Midnight Sapphire & Gold Jackpot Theme (โทนไพลินค่ำคืนพรีเมียมหรูหราแบบในภาพแจ็คพอต) */
  --bg-main: #000814; /* Deep midnight blue background */
  --bg-card: #0a1128; /* Deep navy card background */
  --bg-card-hover: #1c2541; /* Slightly lighter navy on hover */
  --bg-input: #001d3d; /* Dark blue inputs */
  --bg-header: rgba(0, 8, 20, 0.9); /* Sticky nav dark translucency */
  --border-color: rgba(0, 180, 216, 0.2); /* Glowing cyan/blue border */
  --border-glow: rgba(0, 180, 216, 0.6); /* Cyan glow on hover */
  
  --primary-gold: #00b4d8; /* Glowing Cyan Accent (like the blue circles in the image) */
  --primary-gold-rgb: 0, 180, 216;
  --secondary-purple: #0077b6; /* Deep Blue Accent */
  --secondary-purple-rgb: 0, 119, 182;
  --accent-magenta: #90e0ef; /* Sky Blue Highlight */
  --accent-magenta-rgb: 144, 224, 239;
  
  --text-main: #f8fafc; /* Crisp white text for excellent readability */
  --text-muted: #94a3b8; /* Soft blue-grey descriptions */
  --text-dark: #ffffff;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 180, 216, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Glowing backdrops match the sparkling stars and coins in the image */
  --radial-glow-color: rgba(0, 180, 216, 0.08);
  --radial-glow-left-color: rgba(255, 215, 0, 0.05);
  --phone-display-grad: linear-gradient(135deg, #00f0ff 0%, #ffffff 50%, #00f0ff 100%);
  --a-plus-grad: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b38600 100%);
  --a-plus-text: #000000;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Noto Sans Thai', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-purple);
}

/* Common Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glowing Background Accents */
.radial-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--radial-glow-color) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.radial-glow-left {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--radial-glow-left-color) 0%, rgba(0,0,0,0) 70%);
  bottom: 20%;
  left: -200px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

/* Premium Header Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-purple) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(var(--secondary-purple-rgb), 0.3);
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

nav ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-gold);
}

nav ul li a.active {
  background: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  color: #000814;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

/* Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--accent-magenta) 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--secondary-purple-rgb), 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--secondary-purple-rgb), 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b38600 100%);
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #cca300 100%);
}

.role-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-gold);
}

/* Floating Cart Trigger */
.floating-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--accent-magenta) 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.5);
  cursor: pointer;
  z-index: 99;
  transition: var(--transition);
}

.floating-cart:hover {
  transform: scale(1.1) translateY(-5px);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary-gold);
  color: #ffd700; /* High contrast yellow/gold number text on blue background */
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px 0;
  text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, rgba(249, 115, 22, 0.06) 0%, rgba(0,0,0,0) 100%);
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary-purple);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-gold) 15%, var(--secondary-purple) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 650px;
  margin: 0 auto 40px auto;
  color: #374151;
  line-height: 1.6;
  font-size: 17px;
}

/* Search Bar & Auspicious filters */
.search-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 18px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(30, 58, 138, 0.06);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 4px;
}

.search-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.search-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-purple);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 180, 216, 0.15);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold);
}

.filter-pill.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #000814;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.35);
}

/* Phone Numbers Grid */
.section-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 50px 0 30px 0;
  border-left: 4px solid var(--primary-gold);
  padding-left: 15px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* Number Card */
.number-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.number-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-purple), var(--primary-gold));
  opacity: 0.6;
}

.number-card.gold-border {
  border: 1.8px solid #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.18);
}

.number-card.gold-border::before {
  background: linear-gradient(to right, #ffd700, #b38600);
  opacity: 1;
}

.number-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(var(--secondary-purple-rgb), 0.15);
}

.btn-prediction-quickview {
  background: none;
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-prediction-quickview:hover {
  background: var(--primary-gold);
  color: #ffffff;
  border-color: var(--primary-gold);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.shop-tag {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.shop-tag:hover {
  color: var(--primary-gold);
}

.grade-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--accent-magenta) 100%);
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(var(--secondary-purple-rgb), 0.3);
}

.grade-badge.a-plus {
  background: var(--a-plus-grad);
  color: var(--a-plus-text);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.phone-display {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 15px 0;
  letter-spacing: 0.5px;
  background: var(--phone-display-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-details {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

.detail-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-badge.sum {
  border-color: var(--border-glow);
  color: var(--primary-gold);
}

.detail-badge.pattern {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--border-glow);
  color: var(--secondary-purple);
}

.number-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.price-display {
  font-size: 22px;
  font-weight: 800;
  color: #b38600;
}

.price-display span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

/* Modals & Popups Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 30px;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--danger);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-purple);
  padding-left: 12px;
}

/* Prediction System View Styles */
.predictor-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.aspect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 25px 0;
}

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

.aspect-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
}

.aspect-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.aspect-value {
  font-size: 28px;
  font-weight: 800;
}

.aspect-value.wealth { color: var(--primary-gold); }
.aspect-value.charm { color: #f472b6; }
.aspect-value.career { color: #60a5fa; }
.aspect-value.health { color: #34d399; }

.predictor-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.predictor-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.pairs-analysis-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.pair-analysis-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  transition: var(--transition);
}

.pair-analysis-row:hover {
  background: rgba(255,255,255,0.05);
}

.pair-digit {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-gold);
  width: 50px;
}

.pair-desc {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.4;
}

.pair-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pair-status.good { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pair-status.bad { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.pair-status.neutral { background: rgba(156, 163, 175, 0.15); color: #d1d5db; }

/* Stores list page styling */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.store-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.store-banner-mini {
  height: 100px;
  width: calc(100% + 60px);
  margin-left: -30px;
  margin-top: -30px;
  margin-bottom: 40px;
  object-fit: cover;
}

.store-logo-wrapper {
  position: absolute;
  top: 40px;
  left: 30px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 3px solid var(--bg-main);
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.store-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.store-card-slogan {
  font-size: 13px;
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.store-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Custom Store view style */
.store-header-banner {
  width: 100%;
  height: 250px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.store-profile-bar {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}

@media (max-width: 650px) {
  .store-profile-bar {
    flex-direction: column;
    text-align: center;
  }
}

.store-header-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  border: 3px solid var(--border-glow);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.store-profile-details {
  flex-grow: 1;
}

.store-profile-details h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-gold);
}

.store-profile-details p.slogan {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 5px;
}

.store-profile-details p.desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

.store-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
}

.contact-pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-muted);
}

/* Blog Articles Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text-main);
}

.blog-card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Seller Center Styling */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  height: fit-content;
}

.sidebar-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-menu ul li a {
  display: block;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-menu ul li a:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
}

.sidebar-menu ul li a.active {
  background: linear-gradient(135deg, var(--secondary-purple) 0%, rgba(var(--primary-gold-rgb), 0.15) 100%);
  border: 1px solid var(--border-glow);
  color: white;
}

.dashboard-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow);
}

/* Dashboard Summary Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
}

.stat-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-gold);
}

/* Package details & Grid */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.package-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  border-color: var(--secondary-purple);
  transform: translateY(-3px);
}

.package-card.recommended {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(var(--primary-gold-rgb), 0.04) 0%, rgba(255,255,255,0.01) 100%);
}

.package-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
}

.package-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.package-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.package-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.package-features {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

/* PromptPay Payment QR styling */
.checkout-payment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 20px;
  margin: 20px 0;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  margin: 15px 0;
}

.promptpay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #005691;
  background: white;
  padding: 8px 15px;
  border-radius: 6px;
  width: 100%;
  justify-content: center;
}

/* Banner creator panel styling */
.banner-creator-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .banner-creator-container {
    grid-template-columns: 1fr;
  }
}

.banner-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.banner-preview-box canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  background: #000;
}

.banner-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Management Tables */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table th {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-bottom: 1.5px solid var(--border-color);
  font-weight: 700;
  color: var(--text-muted);
}

table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

table tr:hover {
  background: rgba(255,255,255,0.01);
}

.action-icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  transition: var(--transition);
}

.action-icon-btn:hover {
  color: var(--primary-gold);
}

.action-icon-btn.delete:hover {
  color: var(--danger);
}

/* Alert toast notifications */
.alert-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-gold);
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  animation: slideInLeft 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Utility form fields styling */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Prediction progress circular visualization */
.aspect-percentage-circle {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aspect-percentage-text {
  font-size: 16px;
  font-weight: 800;
}

/* Chat & Messaging UI Styles */
.floating-chat-icon {
  position: fixed;
  bottom: 25px;
  right: 100px; /* offset from cart button */
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #b38600 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
  z-index: 150;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.floating-chat-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* Chat Bubbles */
.chat-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.chat-msg-self {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-gold) 0%, #b38600 100%);
  color: #000;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.chat-msg-other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-color);
}

.chat-time-tag {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chat-msg-self + .chat-time-tag {
  align-self: flex-end;
}

.chat-msg-other + .chat-time-tag {
  align-self: flex-start;
}

/* Chat Contacts List */
.chat-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.chat-contact-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-gold);
}

.chat-contact-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-main);
}

.chat-contact-info {
  flex: 1;
}

.chat-contact-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.chat-contact-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-gold);
  color: #000;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.auth-badge.admin {
  background: var(--accent-magenta);
  color: white;
}

/* =========================================================================
   --- Mobile & Responsive Design Optimizations ---
   ========================================================================= */
@media (max-width: 768px) {
  /* Header & Navigation */
  .nav-wrapper {
    flex-direction: column;
    height: auto;
    padding: 15px 15px;
    gap: 12px;
    align-items: stretch;
  }
  
  .logo-section {
    justify-content: space-between;
    width: 100%;
  }
  
  .header-actions {
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
  }
  
  nav {
    width: 100%;
    overflow-x: auto;
    margin-top: 5px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  
  nav::-webkit-scrollbar {
    display: none;
  }
  
  nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  nav ul {
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 2px;
  }
  
  nav ul li a {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  
  /* Container spacing */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Hero section typography */
  .hero-section {
    padding: 30px 10px !important;
  }
  
  .hero-title {
    font-size: 26px !important;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 12px !important;
  }
  
  .hero-description {
    font-size: 13px !important;
    margin-top: 8px;
  }

  /* Search bar */
  .search-container {
    padding: 15px;
    border-radius: 16px;
  }
  
  .search-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  
  /* Dashboard layout */
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  .sidebar-menu {
    padding: 10px;
  }
  
  .sidebar-menu ul {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .sidebar-menu ul::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar-menu ul {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .sidebar-menu ul li a {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12.5px;
  }
  
  .dashboard-content {
    padding: 20px 15px;
    border-radius: 18px;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Cards grids */
  .numbers-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .stores-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  /* Floating items */
  .floating-cart {
    width: 48px;
    height: 48px;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
  }
  
  .floating-chat-icon {
    width: 48px;
    height: 48px;
    bottom: 15px;
    right: 75px;
    font-size: 18px;
  }
  
  /* Modal responsive spacing */
  .modal-content {
    padding: 20px 15px;
    border-radius: 18px;
  }
  
  .modal-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  /* Store details */
  .store-header-banner {
    height: 150px;
    border-radius: 16px;
  }
  
  .store-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
  
  .store-profile-details h2 {
    font-size: 22px;
  }
  
  .store-profile-details p.slogan {
    font-size: 13.5px;
  }
  
  .store-profile-details p.desc {
    font-size: 12.5px;
  }
}
