:root {
  --card-bg: #18181b;
  --main-bg: #000;
  --text: #fff;
  --text-muted: #a1a1aa;
  --text-light: #71717a;
  --primary: #a21caf;
  --primary-dark: #7e22ce;
  --shadow: 0 2px 16px 0 rgba(0,0,0,0.2);
  --footer-muted: #818cf8;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

main {
  padding: 32px 16px;
  max-width: 1200px;
  margin: auto; 
  padding-top: 3rem; /* Added spacing between tabs and products */
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5em;
}

.subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 5em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* was 270px */
  gap: 2.2em;
  padding: 0.5em 0.5em 0 0.5em;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /* max-width removed to allow parent/main to control width */
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* force 3 per row on desktop */
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 639px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    justify-items: stretch;
  }
  
  .card {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .rating-container {
    margin: 0.4rem 0;
  }
  
  .price-label {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
  
  .delivery {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stripe-btn, .details-btn {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  
  .plan-select {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .details-section {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

.card {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* Savings Badge */
.savings-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Promotional savings message */
.savings-promo {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #333;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  display: block;
}

.card-content {
  padding: 1em 1.2em 1.5em 1.2em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

/* Star Rating Styles */
.rating-container {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  gap: 0.5rem;
}

.stars {
  color: #ffd700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

.rating-container:hover .stars {
  transform: scale(1.05);
}

.rating-container span {
  color: #888;
  font-size: 0.9rem;
  font-weight: 400;
}

.plans {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8em 0;
  color: var(--text-light);
  font-size: 1em;
}

.plans span {
  font-weight: bold;
  color: var(--text);
}

.desc {
  color: var(--text-muted);
  font-size: 0.96em;
  font-style: italic;
  margin-bottom: 0.6em;
}

.delivery {
  color: var(--text-light);
  font-size: 0.82em;
  margin-bottom: 1.2em;
}

.buy-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 0.9em 0;
  border: none;
  border-radius: 0.75em;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(30, 16, 60, 0.12);
  transition: background .15s;
  margin-top: auto;
}

.buy-btn:hover {
  background: var(--primary-dark);
}

/* Modern Stripe Buy Now Button */
.stripe-btn.modern-btn {
  width: 100%;
  margin-top: auto;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg, #6772e5, #5469d4);
  color: white;
  border: none;
  border-radius: 0.75em;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(103, 114, 229, 0.4);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stripe-btn.modern-btn:hover {
  background: linear-gradient(135deg, #5469d4, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(103, 114, 229, 0.6);
}

.stripe-btn.modern-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(103, 114, 229, 0.4);
}

.stripe-btn.modern-btn .btn-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.5em;
  width: 100%;
  height: 100%;
}

.stripe-btn.modern-btn .btn-text::before {
  content: '🔒';
  margin-right: 0.5em;
  font-size: 0.9em;
}

/* Alternative simple style without extra text */
.stripe-btn.modern-btn.simple .btn-text::before {
  display: none;
}

.details-btn {
  background: #232136;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 0;
  width: 100%;
  padding: 0.9em 0;
  border-radius: 0.75em;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, max-height 0.3s;
}

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

.card-actions {
  display: flex;
  gap: 0.7em;
  margin-top: auto;
  flex-wrap: wrap;
}

.details-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  background: #18181b;
  border-radius: 0.7em;
  margin: 0.7em 0 0.2em 0;
  padding: 0 1em;
}

.details-section.open {
  max-height: 200px;
  opacity: 1;
  padding: 1em 1em 1em 1em;
}

footer {
  margin-top: 3em;
  text-align: center;
  font-size: 1em;
  color: var(--text-light);
}

.footer-highlight {
  color: var(--text);
  font-weight: bold;
  padding: 0 .3em;
}

.plan-label {
  margin-top: 0.7em;
  margin-bottom: 0.2em;
  font-size: 0.98em;
  color: var(--text-light);
  font-weight: 500;
  display: block;
}

.plan-select {
  width: 100%;
  background: #232136;
  color: #fff;
  border: none;
  border-radius: 0.6em;
  padding: 0.7em 0.8em;
  font-size: 1em;
  font-family: 'Inter', Arial, sans-serif;
  margin-bottom: 1em;
  margin-top: 0.1em;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(30, 16, 60, 0.10);
  transition: border 0.15s;
}

.plan-select:focus {
  border: 2px solid var(--primary);
}

.price-label {
  margin: 0.7em 0 1em 0;
  font-size: 1.08em;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
  line-height: 1.3;
}

.my-price {
  color: #22c55e;
  font-weight: 700;
  font-size: 1.08em;
}

.price-label s, .price-label .retail-price {
  color: #ef4444;
  font-size: 0.98em;
  margin-left: 0.4em;
}

.plan-select option[data-outofstock="true"] {
  color: #b91c1c;
  font-style: italic;
}

.out-of-stock-label {
  color: #b91c1c;
  font-size: 0.98em;
  font-weight: 600;
  margin-left: 0.5em;
}

.hidden {
  display: none !important;
}

/* FAQ & Terms Styles */
.faq-section, .terms-section {
  display: none;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 2.5em auto 0 auto;
  max-width: 700px;
  padding: 2em 1.5em 1.5em 1.5em;
}

.faq-title, .terms-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1em;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.faq-item {
  margin-bottom: 1.1em;
}

.faq-question {
  font-size: 1.08em;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0.6em 0;
  border-radius: 8px;
  transition: background 0.15s;
}

.faq-question:hover {
  background: #232136;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 1em;
  margin: 0.2em 0 0.7em 0.5em;
  display: none;
  transition: all 0.2s;
}

.faq-item.active .faq-answer {
  display: block;
}

.terms-list {
  color: var(--text-muted);
  font-size: 1em;
  margin: 0.5em 0 0 1em;
  padding-left: 1em;
}

/* Terms page styling */
.terms-container ul {
  color: var(--text) !important;
}

.terms-container p {
  color: var(--text) !important;
}

.terms-container li {
  color: var(--text) !important;
}

/* Header Navigation */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--main-bg);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(162, 28, 175, 0.1);
  border: 1px solid rgba(162, 28, 175, 0.2);
  transition: all 0.3s ease;
}

.brand:hover {
  background: rgba(162, 28, 175, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(162, 28, 175, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: var(--main-bg);
  border-bottom: none;
  box-sizing: border-box;
}

/* Navigation layout sections */
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  margin: 0 40px;
  max-width: 600px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 20px;
}

/* Main Navigation Container - Groups all navigation elements */
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 12px 20px;
  width: 100%;
  max-width: none;
  min-width: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 10000;
}

.header-link {
  color: var(--primary);
  font-size: 1.08em;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em 1em;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.header-link:hover, .header-link.active {
  background: #232136;
  color: #fff;
}

.discord-link {
  color: #5865F2;
  font-weight: 700;
  font-size: 1.08em;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em 1em;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}

.discord-link:hover {
  background: #232136;
  color: #fff;
}

.announcement-banner {
  width: 100%;
  background: #fff5c2;
  color: #3b3b1b;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7em 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
  z-index: 200;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-ticker {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}

.announcement-ticker__inner {
  display: flex;
}

.announcement-ticker__text {
  padding-right: 4rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .header-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1rem;
    flex-wrap: wrap;
  }
  .brand {
    margin-left: 0;
    font-size: 1.3rem;
    margin-bottom: 0;
  }
  .nav-links {
    margin-right: 0;
    gap: 0.8em;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-nav,
  .nav-links,
  .user-menu,
  .auth-buttons {
    width: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .user-menu {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .auth-buttons {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .header-link {
    font-size: 0.9rem;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .announcement-banner, .announcement-ticker, .announcement-ticker__inner, .announcement-ticker__text {
    width: 100% !important; /* was 100vw */
    box-sizing: border-box;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 2vw;
  }
}

@media (max-width: 639px) {
  main {
    padding: 8px 0;
    max-width: 100%;
    margin: 0;
  }
  .grid {
    width: 100%; /* was 100vw */
    margin: 0;
    justify-items: stretch;
  }
  .card {
    max-width: 100%; /* was 98vw */
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-nav {
    width: 100%; /* was 100vw */
  }
  .nav-links {
    width: 100%; /* was auto or 100vw */
  }
  .header-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 2vw;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  .nav-links a,
  .nav-links button,
  .auth-buttons button,
  .user-menu button {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
    margin: 0;
    min-width: unset;
    width: auto;
  }
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .header-tabs {
    order: 2;
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 12px;
  }
  
  .header-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 16px 12px;
  }
  
  .tab-label {
    font-size: 13px;
  }
  
  .mobile-user-auth {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
  }
  
  .header-search-container {
    order: 4;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  
  .mobile-search-input {
    padding: 14px 16px 14px 44px;
    font-size: 16px;
  }
  
  .brand {
    order: 1;
    align-self: flex-start;
  }
  
  .header-right {
    order: 5;
    width: 100%;
    justify-content: center;
  }
  
  /* Hide desktop auth buttons on mobile */
  .header-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-tabs {
    padding: 8px;
    gap: 4px;
  }
  
  .header-tab-btn {
    padding: 14px 8px;
    min-width: 65px;
  }
  
  .tab-label {
    font-size: 12px;
  }
  
  .mobile-auth-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 70px;
  }
  
  .mobile-search-input {
    padding: 12px 14px 12px 40px;
    font-size: 14px;
  }
  
  .auth-item {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Mobile order adjustment for when user is logged in */
@media (max-width: 768px) {
  .header-nav.logged-in .header-tabs {
    order: 1;
  }
  
  .header-nav.logged-in .user-menu {
    order: 2;
  }
  
  .header-nav.logged-in .header-search-container {
    order: 3;
  }
  
  .header-nav.logged-in .header-right {
    display: none; /* Hide auth buttons when logged in */
  }
}

/* Review Carousel Styles */
.review-section {
  margin: 3em auto 0 auto;
  max-width: 1200px;
  padding: 2em 0 1em 0;
}

.review-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5em;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  gap: 1.5em;
  will-change: transform;
  margin-left: 200px;
}

.review-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 200px;
  height: 160px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em 0.7em;
  margin: 0.5em 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.review-name {
  font-weight: 700;
  font-size: 1.08em;
  margin-bottom: 0.2em;
}

.review-stars {
  color: #facc15;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.review-text {
  color: var(--text-muted);
  font-size: 1em;
  margin-bottom: 0.2em;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
  opacity: 0.85;
}

.carousel-arrow:hover {
  background: var(--primary-dark);
}

.carousel-arrow.left {
  left: calc(50% - 550px);
}

.carousel-arrow.right {
  right: calc(50% - 450px);
}

.review-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 1.08em;
  margin: 2.5em auto 0 auto;
  max-width: 700px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .review-card { width: 180px; height: 150px; flex: 0 0 180px; }
  .carousel-track { margin-left: 160px; }
  .carousel-arrow.left { left: calc(50% - 450px); }
  .carousel-arrow.right { right: calc(50% - 400px); }
}

@media (max-width: 900px) {
  .review-card { width: 160px; height: 140px; flex: 0 0 160px; }
  .carousel-track { margin-left: 130px; }
  .carousel-arrow.left { left: calc(50% - 400px); }
  .carousel-arrow.right { right: calc(50% - 350px); }
}

@media (max-width: 800px) {
  .review-card { width: 180px; height: 150px; flex: 0 0 50%; }
  .carousel-track { margin-left: 80px; }
  .carousel-arrow.left { left: 1em; }
  .carousel-arrow.right { right: 1em; }
}

@media (max-width: 600px) {
  .review-card { width: 90vw; height: 140px; flex: 0 0 100%; max-width: 95vw; }
  .carousel-track { margin-left: 0; }
  .carousel-arrow { top: 90%; }
  .carousel-arrow.left { left: 0.5em; }
  .carousel-arrow.right { right: 0.5em; }
}

/* Form Styles for Submit Info Page */
.form-container {
  max-width: 600px;
  margin: 2em auto;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2em;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5em;
}

.form-input {
  width: 100%;
  background: #232136;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 0.6em;
  padding: 0.8em 1em;
  font-size: 1em;
  font-family: 'Inter', Arial, sans-serif;
  outline: none;
  transition: border 0.15s;
  box-sizing: border-box;
}

.form-input:focus {
  border: 2px solid var(--primary);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 1em 0;
  border: none;
  border-radius: 0.75em;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.submit-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Admin Dashboard Styles */
.admin-container {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

.admin-header {
  text-align: center;
  margin-bottom: 2em;
}

.admin-section {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 2em;
  overflow: hidden;
}

.admin-section-header {
  background: var(--primary);
  color: #fff;
  padding: 1em 1.5em;
  font-size: 1.2em;
  font-weight: 700;
}

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

.admin-table th,
.admin-table td {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid #333;
}

.admin-table th {
  background: #232136;
  color: var(--text);
  font-weight: 600;
}

.admin-table td {
  color: var(--text-muted);
}

.status-badge {
  padding: 0.3em 0.8em;
  border-radius: 1em;
  font-size: 0.85em;
  font-weight: 600;
}

.status-pending {
  background: #fbbf24;
  color: #000;
}

.status-completed {
  background: #22c55e;
  color: #fff;
}

.status-processing {
  background: #3b82f6;
  color: #fff;
}

.admin-action-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  cursor: pointer;
  font-size: 0.9em;
  margin-right: 0.5em;
  transition: background 0.15s;
}

.admin-action-btn:hover {
  background: var(--primary-dark);
}

.netflix-credentials-form {
  display: none;
  background: #232136;
  padding: 1em;
  border-radius: 0.5em;
  margin-top: 0.5em;
}

.netflix-credentials-form.active {
  display: block;
}

.inline-form-group {
  margin-bottom: 0.8em;
}

.inline-form-input {
  width: 100%;
  background: var(--main-bg);
  color: #fff;
  border: 1px solid #444;
  border-radius: 0.4em;
  padding: 0.5em;
  font-size: 0.9em;
}

.inline-submit-btn {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 0.4em;
  cursor: pointer;
  font-weight: 600;
}

.inline-submit-btn:hover {
  background: #16a34a;
}

/* Google Sign-In Button */
.google-signin-btn {
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 0.5em;
  padding: 0.75em 1em;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, box-shadow 0.3s;
  font-family: 'Inter', Arial, sans-serif;
}

.google-signin-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-signin-btn:active {
  background: #f1f3f4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Authentication Buttons */
.auth-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-item {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.signup-btn {
  background: linear-gradient(135deg, #a21caf 0%, #c026d3 100%);
  border: 1px solid rgba(162, 28, 175, 0.3);
  color: #ffffff;
}

.signup-btn:hover {
  background: linear-gradient(135deg, #86198f 0%, #a21caf 100%);
  box-shadow: 0 4px 12px rgba(162, 28, 175, 0.3);
}

/* Modern Header Tab Navigation */
.header-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.header-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  min-width: 80px;
  position: relative;
  overflow: hidden;
}

.header-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.header-tab-btn:hover::before,
.header-tab-btn.active::before {
  opacity: 1;
}

.header-tab-btn:hover {
  color: #ffffff;
  background: transparent;
  transform: none;
  box-shadow: none;
}

.header-tab-btn.active {
  color: #ffffff;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tab-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Search Bar */
.header-search-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0;
  flex-grow: 1;
  flex-shrink: 1;
}

.mobile-search-input {
  width: 100%;
  max-width: 500px;
  padding: 10px 14px 10px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.mobile-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.mobile-search-input:focus {
  outline: none;
  border-color: rgba(162, 28, 175, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(162, 28, 175, 0.1);
}

.header-search-container::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}

/* Enhanced Navigation Layout */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--main-bg);
  border-bottom: none;
}

.brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  filter: drop-shadow(0 0 8px rgba(162, 28, 175, 0.3));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Tab Content Visibility Control */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Trust Section */
.trust-section {
  background: #111111;
  padding: 4rem 0;
  margin-top: 4rem;
}

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

.trust-container h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.trust-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(162, 28, 175, 0.2);
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.trust-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.trust-item p {
  color: #b0b0b0;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .trust-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .trust-item {
    padding: 1.5rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #18181b;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #ffffff;
}

.google-signin-btn {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.google-signin-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #999;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  background: #18181b;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

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

.form-label {
  display: block;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #a21caf;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(162, 28, 175, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #a21caf 0%, #c026d3 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(162, 28, 175, 0.3);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: #999;
  font-size: 14px;
}

.auth-switch a {
  color: #a21caf;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.auth-switch a:hover {
  color: #c026d3;
}

@media (max-width: 480px) {
  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
    width: 95%;
  }
  
  .modal-content h2 {
    font-size: 1.3rem;
  }
}

/* Prevent horizontal scrolling on all screen sizes */
@media (max-width: 1200px) {
  .header-search-container {
    max-width: 400px;
  }
  
  .mobile-search-input {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .header-search-container {
    max-width: 300px;
  }
  
  .mobile-search-input {
    max-width: 300px;
  }
  
  .nav-links {
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .header-search-container {
    max-width: 250px;
  }
  
  .mobile-search-input {
    max-width: 250px;
    font-size: 13px;
    padding: 10px 14px 10px 36px;
  }
  
  .nav-links {
    gap: 6px;
    padding: 8px 12px;
  }
  
  .header-tabs {
    padding: 6px;
    gap: 4px;
  }
  
  .header-tab-btn {
    padding: 10px 16px;
    min-width: 70px;
  }
}

/* Responsive design for unified navigation */
@media (max-width: 1024px) {
  .nav-container {
    gap: 16px;
    padding: 10px 16px;
  }
  
  .header-search-container {
    max-width: 350px;
  }
  
  .mobile-search-input {
    max-width: 350px;
  }
  
  .nav-right {
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .nav-left, .nav-center, .nav-right {
    width: 100%;
    justify-content: center;
  }
  
  .nav-left {
    flex-direction: column;
    gap: 12px;
  }
  
  .brand {
    font-size: 1.3rem;
  }
  
  .header-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .header-tab-btn {
    flex: 1;
    min-width: 0;
  }
  
  .header-search-container {
    width: 100%;
    max-width: none;
  }
  
  .mobile-search-input {
    max-width: none;
  }
  
  .nav-right {
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 12px;
    gap: 10px;
  }
  
  .nav-left {
    gap: 10px;
  }
  
  .brand {
    font-size: 1.2rem;
  }
  
  .header-tabs {
    gap: 4px;
  }
  
  .header-tab-btn {
    padding: 10px 8px;
    min-width: 60px;
  }
  
  .tab-icon {
    font-size: 16px;
  }
  
  .tab-label {
    font-size: 10px;
  }
  
  .mobile-search-input {
    padding: 8px 12px 8px 32px;
    font-size: 13px;
  }
  
  .header-search-container::before {
    left: 10px;
    font-size: 12px;
  }
}

/* Dashboard User Menu Styling */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-menu .header-link {
  color: var(--primary);
  font-size: 1.08em;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em 1em;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.user-menu .header-link:hover {
  background: #232136;
  color: #fff;
}

.user-menu .user-icon {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(162, 28, 175, 0.1);
  border: 1px solid rgba(162, 28, 175, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-menu .user-icon:hover {
  background: rgba(162, 28, 175, 0.15);
  transform: translateY(-1px);
}

/* Mobile User Auth Buttons */
.mobile-user-auth {
  display: none;
  width: 100%;
  gap: 8px;
  padding: 8px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-auth-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-family: 'Inter', Arial, sans-serif;
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-auth-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mobile-auth-btn.logout-btn {
  color: #ef4444;
  border-color: #ef4444;
}

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