/* NEXUS STORE - Custom Modern Stylesheet */

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography & Glows */
.accent-glow {
  color: var(--primary-color);
  text-shadow: 0 0 15px var(--primary-glow);
}

.highlight {
  color: var(--primary-color);
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.98); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse {
  animation: pulse 2.5s infinite ease-in-out;
}

.animate-bounce {
  animation: bounce 2s infinite ease-in-out;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* 1. Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--primary-color);
  filter: drop-shadow(0 0 8px var(--primary-color));
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

/* Database Warning/Success Banners */
.db-banner {
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-top: 1px solid var(--glass-border);
}

.warning-banner {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.success-banner {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-banner-action {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-banner-action:hover {
  background: rgba(245, 158, 11, 0.4);
}

/* 2. User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  border-radius: 50px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 10px var(--primary-glow);
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

.admin-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-badge {
  background: rgba(168, 85, 247, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.user-balances {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.balance {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.money-bal {
  color: #10b981;
}

.points-bal {
  color: #eab308;
}

/* 3. Buttons & Interactive Controls */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
}

.btn-login-modal {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px var(--primary-glow);
  border-radius: 50px;
}

.btn-login-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-color)54;
}

.btn-logout {
  color: rgba(255, 255, 255, 0.4);
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
}

.btn-logout:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin: 1.5rem auto 0;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  gap: 1rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.6;
}

.alert-close:hover {
  opacity: 1;
}

/* 4. Hero Section */
.hero-section {
  margin: 1.5rem 0 3rem;
}

.hero-slider {
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.hero-slider::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* 4 Quick Buttons Grid */
.quick-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.btn-quick {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.9rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-quick i {
  font-size: 1.4rem;
}

.btn-quick:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.quick-1 i { color: #f59e0b; }
.quick-2 i { color: #eab308; }
.quick-3 i { color: #3b82f6; }
.quick-4 i { color: #818cf8; }

/* 5. Sections Design */
.content-section {
  margin-bottom: 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header h2 i {
  color: var(--primary-color);
}

.section-header .sub-text {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.4;
}

.section-header p {
  opacity: 0.65;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* 6. Categories Layout */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.category-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.category-info {
  padding: 1.2rem;
}

.category-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lang-translations {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lang-item {
  font-size: 0.75rem;
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-item img {
  border-radius: 2px;
}

/* 7. Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px var(--primary-glow);
  transform: translateY(-5px);
}

.product-image-container {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-type-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.type-key {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.type-product {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
}

.product-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-multilang {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lang-line {
  font-size: 0.75rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-desc {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-video {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

.btn-video:hover {
  text-decoration: underline;
}

.product-footer {
  padding: 0 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.product-price-section {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  opacity: 0.5;
}

.price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stock-status {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.in-stock { color: #34d399; }
.out-of-stock { color: #f87171; }

.product-action-btn {
  padding: 0 1.5rem 1.5rem;
}

.btn-buy-now {
  width: 100%;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem;
}

.product-card:hover .btn-buy-now {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-buy-now:disabled {
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--glass-border) !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* 8. Glass Card & Redeem Form */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.redeem-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.redeem-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-glow {
  color: #eab308;
  filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.5));
}

.redeem-info p {
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.demo-hints {
  font-size: 0.8rem;
  opacity: 0.65;
}

.demo-hints code {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 700;
}

.demo-hints code:hover {
  background: var(--primary-color);
  color: #fff;
}

.input-glow-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  padding: 0.4rem;
  border-radius: 12px;
}

.input-glow-group input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.input-glow-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.btn-redeem-submit {
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-redeem-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px var(--primary-color)6e;
}

/* 9. Orders Table */
.empty-orders {
  text-align: center;
  padding: 3rem;
  opacity: 0.7;
}

.empty-orders i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-shop-now {
  background: var(--primary-color);
  color: #fff;
  margin-top: 1rem;
}

.orders-table-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.orders-table th, .orders-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

.orders-table th {
  background: rgba(255,255,255,0.02);
  font-weight: 700;
  opacity: 0.8;
}

.order-prod-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.order-prod-name {
  font-weight: 600;
}

.order-prod-name small {
  display: block;
  font-weight: 400;
  opacity: 0.5;
  font-size: 0.75rem;
}

.key-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-key {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  color: #34d399;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-copy {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.price-paid {
  font-weight: 700;
  color: var(--primary-color);
}

.order-date {
  opacity: 0.6;
  font-size: 0.8rem;
}

/* 10. Client Download */
.download-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(13, 13, 18, 0.9), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.15);
}

.download-icon {
  font-size: 4rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.download-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.download-text p {
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.client-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.client-info i {
  color: #3b82f6;
}

.btn-download-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* 11. Database Status Card */
.db-status-card {
  border-color: rgba(168, 85, 247, 0.15);
}

.db-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.db-status-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.db-status-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-mock {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-connected {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.db-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.details-item {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.setup-instructions {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 12px;
}

.setup-instructions h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fbbf24;
}

.setup-steps {
  padding-left: 1.2rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.setup-steps li {
  margin-bottom: 0.8rem;
}

.terminal-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0.4rem 0;
  color: #22d3ee;
  font-family: monospace;
}

.db-error-log {
  margin-top: 1rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #ef4444;
}

.db-error-log code {
  display: block;
  margin-top: 0.3rem;
  word-break: break-all;
}

/* 12. Admin Form */
.admin-card {
  border-color: rgba(239, 68, 68, 0.15);
}

.admin-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.admin-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.form-section-card {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 12px;
}

.form-section-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  opacity: 0.9;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.form-section-card.wide {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.color-picker-group {
  display: flex;
  gap: 0.5rem;
}

.color-picker-group input[type="color"] {
  width: 44px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.color-picker-group input[type="text"] {
  flex-grow: 1;
}

.buttons-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.btn-config-item {
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-config-item label {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.7;
}

.btn-config-item input {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  outline: none;
}

.btn-config-item input:focus {
  border-color: var(--primary-color);
}

.admin-action-area {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.btn-save-settings {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-save-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
}

/* 13. Interactive Auth Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  background: var(--bg-dark);
  border: 1px solid var(--primary-color);
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--primary-glow);
  animation: fadeIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
}

.modal-tabs {
  display: flex;
  gap: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.auth-form {
  padding: 1.5rem;
}

.form-helper-text {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-hints {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.auth-hints code {
  color: var(--primary-color);
  font-weight: 700;
  background: rgba(0,0,0,0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.btn-auth-submit {
  width: 100%;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem;
  margin-top: 1rem;
}

.btn-auth-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-reg-submit {
  background: var(--accent-color);
}

.hidden {
  display: none !important;
}

/* Standalone DB Error Page */
.db-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem 0;
}

.error-card {
  max-width: 600px;
  width: 100%;
  border-color: #ef4444;
}

.error-header {
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.error-icon {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-subtitle {
  font-size: 0.85rem;
  color: #ef4444;
  font-family: monospace;
}

.error-specs {
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.error-specs ul {
  padding-left: 1.5rem;
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.error-stack {
  background: #000;
  padding: 1rem;
  border-radius: 8px;
  color: #f87171;
  font-family: monospace;
  font-size: 0.78rem;
  margin: 1rem 0;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.troubleshooting-steps h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.troubleshooting-steps ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.troubleshooting-steps li {
  margin-bottom: 0.5rem;
}

.error-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-retry {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Footer Section Styling */
.main-footer-section {
  border-top: 1px solid var(--glass-border);
  background: rgba(13, 13, 18, 0.6);
  padding: 4rem 1.5rem 2rem;
  margin-top: 6rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-desc {
  font-size: 0.88rem;
  opacity: 0.6;
  margin: 1rem 0 1.5rem;
  max-width: 380px;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: #fff;
}

.social-icon.fb:hover { background: #3b82f6; border-color: #3b82f6; }
.social-icon.dc:hover { background: #818cf8; border-color: #818cf8; }

.footer-links h4, .footer-payments h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-links a {
  opacity: 0.65;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: 4px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pay-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.75;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-menu {
    gap: 1rem;
  }
  .hero-slider {
    padding: 1.5rem;
    min-height: auto;
  }
  .hero-title {
    font-size: 2rem;
  }
  .redeem-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
