/*──────────────────────────────────────────────────────────────────────────────
  style.css — All‐in‐One “Top up MMO TH” Theme (รวมหน้า Contact, ฟอร์ม ฯลฯ)
──────────────────────────────────────────────────────────────────────────────*/

/* 1) RESET & GLOBAL VARIABLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

:root {
  /* Color Palette */
  --bg-page:        #0F0F0F;   /* Dark page background */
  --bg-nav:         #1C1C1C;   /* Navbar & footer background */
  --bg-card:        #1B1B1B;   /* Cards and inner containers */
  --bg-panel:       #1B1B1B;   /* Panel/card background */
  --bg-panel-alt:   #2E2E2E;   /* Slightly different panel shade */
  --bg-highlight:   #FF8C00;   /* Vibrant orange accent */
  --txt-light:      #E5E5E5;   /* Light text on dark bg */
  --txt-muted:      #A0A0A0;   /* Secondary/muted text */
  --border-color:   #444444;   /* Border for inputs */
  --border-radius:   8px;
  --transition:      0.2s ease-in-out;
  /* Stepper variables (ท้ายไฟล์) */
  --step-completed-color:   #0d6efd;
  --step-pending-color:     #dee2e6;
  --step-text-color:        #212529;
  --step-bg-color:          #ffffff;
  --step-icon-color:        #ffffff;
  --step-circle-size:       36px;
  --step-line-height:       4px;
}

/* 2) BASE LAYOUT */
html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  color: var(--txt-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Ensure page content starts below the fixed navbar */
.page-content {
  padding-top: 80px;    /* space for navbar */
  padding-bottom: 40px; /* bottom breathing room */
  min-height: calc(100vh - 80px - 80px);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  color: var(--txt-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

p, span, label, td, th, a {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--txt-light);
}

a {
  text-decoration: none;
}

/* 3) NAVBAR (FIXED AT TOP) */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-nav);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  z-index: 1000;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__logo img {
  height: 32px;
  width: 32px;
  filter: invert(100%) brightness(1.1);
}

.site-nav__logo span {
  color: var(--bg-highlight);
  font-size: 1.5rem;
  font-weight: bold;
}

.site-nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav__links a {
  color: var(--txt-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  background: var(--bg-highlight);
  color: #0F0F0F;
}

/* 4) FOOTER */
.footer {
  background: var(--bg-nav);
  padding: 1.5rem 0;
  border-top: 2px solid var(--bg-highlight);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer__inner span {
  color: var(--txt-muted);
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--txt-light);
  text-decoration: none;
  margin-left: 1rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--bg-highlight);
}

/* 5) BUTTONS (GENERAL) */
.btn {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--bg-highlight);
  color: #0F0F0F;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: #e67200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--bg-highlight);
  color: var(--bg-highlight);
  padding: 0.5rem 1rem;
}

.btn-secondary:hover {
  background: var(--bg-highlight);
  color: #0F0F0F;
  transform: translateY(-2px);
}

/* 6) GRIDS & CARDS (Browse Games) */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #2a2a2a;
}

.category-card .card__title {
  padding: 0.75rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--txt-light);
  transition: color var(--transition);
}

.category-card:hover .card__title {
  color: var(--bg-highlight);
}

/* 7) PACKAGE CARDS (game.php) */
.package-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.package-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #2a2a2a;
}

.package-card .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.package-card .card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.package-card .card__desc {
  font-size: 0.95rem;
  color: var(--txt-muted);
  flex: 1;
  margin-bottom: 0.75rem;
}

.package-card .card__price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--bg-highlight);
  margin-bottom: 1rem;
}

.package-card .card__actions {
  padding: 0.75rem 1rem;
  text-align: center;
}

/* 8) TABLES (order history, admin) */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: #2a2a2a;
  color: var(--txt-light);
  font-weight: 600;
}

.table tbody tr:nth-child(odd) {
  background: #1e1e1e;
}

.table tbody tr:hover {
  background: #2a2a2a;
}

/* 9) FORMS (login, register, contact, checkout, etc.) */
.form-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 400px;
  margin: 3rem auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.form-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--bg-highlight);
}

.error-message {
  background: rgba(255, 72, 72, 0.1);
  border: 1px solid #FF4848;
  color: #FFB3B3;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-panel-alt);
  border: 1px solid #444;
  border-radius: var(--border-radius);
  color: var(--txt-light);
  font-size: 1rem;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--txt-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--bg-highlight);
}

/* 9.1) CONTACT US PAGE */
.contact-page-panel {
  background-color: #1F1F1F;              /* กล่องหลักโทนเข้ม */
  border: 2px solid var(--border-color);   /* ขอบหนาเพื่อความชัด */
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.panel-inner {
  background-color: #262626;              /* กล่องย่อยสีเข้มกว่าเล็กน้อย */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 280px;
}

.contact-info .panel-title {
  font-size: 1.6rem;
  color: var(--bg-highlight);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info .panel-subtext {
  color: var(--txt-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--txt-light);
  font-size: 1rem;
}

.info-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.contact-form-wrapper {
  flex: 1 1 280px;
}

.contact-form-wrapper .panel-title {
  font-size: 1.6rem;
  color: var(--bg-highlight);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form-wrapper .panel-subtext {
  color: var(--txt-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--txt-light);
  font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  background-color: #303030;              /* ช่องข้อมูลโทนเข้ม */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  color: var(--txt-light);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--txt-muted);
  opacity: 0.8;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--bg-highlight);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.form-group-submit {
  text-align: right;
}

.btn-submit-primary {
  background-color: #333333;              /* ปุ่มโทนเข้ม */
  color: #E5E5E5;
  padding: 0.75rem 1.5rem;
  border: 1px solid #444444;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.btn-submit-primary:hover {
  background-color: #1B1B1B;              /* ยิ่งเข้มขึ้นเมื่อ hover */
  border-color: #555555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* 10) HERO, SEARCH & FEATURES (homepage index.php) */
.hero {
  background: linear-gradient(135deg, #1C1C1C 0%, #0F0F0F 100%);
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: var(--txt-light);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--txt-muted);
}

.hero .btn-primary {
  font-size: 1rem;
}

.search-bar {
  padding: 1rem 0;
  text-align: center;
}

.search-bar .search-inner {
  display: inline-flex;
  width: 100%;
  max-width: 500px;
  background: var(--bg-panel-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.search-bar .search-inner input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--txt-light);
}

.search-bar .search-inner input::placeholder {
  color: var(--txt-muted);
}

.search-bar .search-inner button {
  background: var(--bg-highlight);
  border: none;
  color: #0F0F0F;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-bar .search-inner button:hover {
  background: #e67200;
}

.features {
  padding: 2rem 0 3rem;
  background: #111;
}

.features .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--txt-light);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: #222;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--bg-highlight);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--txt-muted);
}

.featured-games-section {
  background-color: #111;
  padding: 2rem 0;
  margin-top: 2rem;
}

.featured-games-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--txt-light);
}

.game-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.game-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.game-card img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.game-card h3 {
  color: var(--txt-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.customer-reviews-section {
  background-color: #111;
  padding: 2rem 0;
  margin-top: 2rem;
}

.customer-reviews-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--txt-light);
}

.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.review-text {
  color: #CCCCCC;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  color: var(--txt-light);
  font-weight: bold;
}

.review-stars {
  color: #FFD700;
  font-size: 1.1rem;
}

/* 11) PACKAGES PAGE (game.php?slug=…) — TWO‐COLUMN LAYOUT */
.package-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.package-title {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--txt-light);
}

.packages-wrapper {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .packages-wrapper {
    grid-template-columns: 1fr;
  }
}

/* 12) PANELS (Server, Quantity, Price) */
.panel {
  background-color: var(--bg-panel);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  color: var(--txt-light);
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--txt-light);
}

/* 13) SERVER SELECTION */
.server-panel {
  background-color: var(--bg-panel);
  padding: 1rem;
}

.region-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-region {
  flex: 1;
  background-color: var(--bg-panel-alt);
  color: var(--txt-light);
  border: none;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-region.active {
  background-color: var(--bg-highlight);
  color: #0F0F0F;
}

.btn-region:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.server-grid--hidden {
  display: none;
}

.server-grid--visible {
  display: grid;
}

.btn-server {
  background-color: var(--bg-panel-alt);
  color: var(--txt-light);
  border: 1px solid #333;
  padding: 0.65rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-server.active {
  background-color: var(--bg-highlight);
  color: #0F0F0F;
  border-color: var(--bg-highlight);
}

.btn-server:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* 14) QUANTITY SELECTION */
.quantity-panel {
  margin-top: 2rem;
}

.qty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.btn-qty {
  background-color: var(--bg-panel-alt);
  color: var(--txt-light);
  border: 1px solid #333;
  padding: 0.65rem;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-qty.active {
  background-color: var(--bg-highlight);
  color: #0F0F0F;
  border-color: var(--bg-highlight);
}

.btn-qty:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.custom-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-custom {
  background-color: var(--bg-panel-alt);
  color: var(--txt-light);
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-custom:hover {
  background-color: var(--bg-highlight);
  color: #0F0F0F;
  transform: translateY(-2px);
}

#qty-input {
  width: 100px;
  text-align: center;
  padding: 0.75rem;
  background-color: var(--bg-panel-alt);
  color: var(--txt-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  outline: none;
}

#qty-input:focus {
  border-color: var(--bg-highlight);
}

/* 15) PRICE SUMMARY PANEL */
.price-panel {
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.summary-row span {
  color: var(--txt-muted);
}

.total-row {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

#total-price {
  color: var(--bg-highlight);
}

.btn-buy {
  background-color: var(--bg-highlight);
  color: #0F0F0F;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  margin-top: 1.5rem;
  width: 100%;
}

.btn-buy:hover {
  background-color: #e67200;
  transform: translateY(-2px);
}

/* 16) ABOUT PANEL (bottom of packages page) */
.about-panel {
  max-width: 1100px;
  margin: 3rem auto;
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}

.about-title {
  font-size: 1.8rem;
  color: var(--txt-light);
  margin-bottom: 1rem;
}

.about-text {
  color: var(--txt-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* 17) NO PACKAGES MESSAGE */
.centered-message {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--txt-light);
}

/* 18) PACKAGE BANNER (OPTIONAL) */
.package-banner {
  width: 100%;
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.package-banner__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.4);
}

/* 19) RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .site-nav__inner {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 1rem;
  }
  .site-nav__logo {
    margin-bottom: 0.5rem;
  }
  .site-nav__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .grid {
    grid-template-columns: 1fr;
  }
  .feature-card h3 {
    font-size: 1.1rem;
  }
  .search-inner {
    flex-direction: column;
  }
  .search-inner input,
  .search-inner button {
    width: 100%;
  }
  .packages-wrapper {
    grid-template-columns: 1fr;
  }
  .btn-buy {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
  .panel {
    padding: 1rem;
  }
  .panel-title {
    font-size: 1.2rem;
  }
  .qty-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  .server-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  #qty-input {
    width: 80px;
    font-size: 0.9rem;
  }
  .btn-custom {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .summary-row {
    font-size: 0.9rem;
  }
}

/*───────────────────────────────────────────────────────────────────────────
  BROWSE GAMES REDESIGN (Glassy/Blur Cards)
───────────────────────────────────────────────────────────────────────────*/

/* 1) PAGE TITLE */
.page-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--txt-light);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 2) GRID CONTAINER */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

/* If there are no games, center the message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2rem;
  color: var(--txt-muted);
  padding: 2rem 0;
}

/* 3) GLASS-STYLE GAME CARD */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);   /* slightly translucent white */
  border-radius: var(--border-radius);
  overflow: hidden;
  backdrop-filter: blur(8px);               /* blur behind */
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  text-decoration: none;
}

/* 4) IMAGE WRAPPER (16:9 RATIO) */
.game-card__image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #2a2a2a;    /* fallback background */
}

.game-card__image-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

/* 5) CARD TITLE */
.game-card__title {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--txt-light);
  text-align: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: color var(--transition);
}

/* 6) HOVER / FOCUS STATES */
.game-card:hover,
.game-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Slight zoom on the image */
.game-card:hover .game-card__image-wrapper img,
.game-card:focus .game-card__image-wrapper img {
  transform: scale(1.05);
}

/* Change title color on hover */
.game-card:hover .game-card__title,
.game-card:focus .game-card__title {
  color: var(--bg-highlight);
}

/* 7) RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .game-card__title {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .game-card__image-wrapper {
    padding-bottom: 50%; /* a bit squarer on very small screens */
  }
}

/* Optional scroll hint (requires JS to toggle) */
.games-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
  display: none;
}

/*───────────────────────────────────────────────────────────────────────────
  STATUS STEPPER OVERRIDES (วางที่ท้ายไฟล์)
───────────────────────────────────────────────────────────────────────────*/
.status-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c2c2c !important;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  flex-wrap: nowrap;
}

.status-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.status-stepper .step .circle {
  width: var(--step-circle-size);
  height: var(--step-circle-size);
  border-radius: 50%;
  background-color: #ffffff !important;
  border: 2px solid #777777 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000 !important;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.status-stepper .step .label {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  text-align: center;
  color: #eeeeee !important;
  white-space: nowrap;
}

.status-stepper .step::after {
  content: "";
  position: absolute;
  top: calc(var(--step-circle-size) / 2 - var(--step-line-height) / 2);
  left: calc(50% + var(--step-circle-size) / 2);
  height: var(--step-line-height);
  width: 100%;
  background-color: #666666 !important;
  z-index: 1;
}

.status-stepper .step:last-child::after {
  display: none !important;
}

.status-stepper .step.completed .circle {
  background-color: var(--bg-highlight) !important;
  border: 2px solid var(--bg-highlight) !important;
  color: #ffffff !important;
}

.status-stepper .step.completed::after {
  background-color: var(--bg-highlight) !important;
}

.status-stepper .step.active .circle {
  background-color: var(--bg-highlight) !important;
  border: 2px solid var(--bg-highlight) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255,127,0,0.25) !important;
}

@media (max-width: 600px) {
  .status-stepper {
    flex-wrap: wrap;
  }
}
.footer {
  background: var(--bg-nav);
  padding: 1.5rem 0;
  border-top: 2px solid var(--bg-highlight);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer__inner span {
  color: var(--txt-muted);
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--txt-light);
  text-decoration: none;
  margin-left: 1rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--bg-highlight);
}
/* somewhere at the bottom of css/style.css */
@media (max-width: 600px) {
  /* let the nav wrap to multiple lines */
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .site-nav ul li {
    /* each link can take up half the width on very small */
    flex: 1 1 45%;
    text-align: center;
  }

  /* shrink font a touch */
  .site-nav a {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}


