/* ==========================================================================
   TEMPLSTOCK REPLICA DESIGN SYSTEM
   Dark Gaming Marketplace Aesthetic
   Primary Dark: #0e1221 | Panel Dark: #141a2e | Card Dark: #1a2238
   Accent Red: #f1484c | Accent Green: #22a86f - #9ddf56
   ========================================================================== */

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

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

body {
  margin: 0;
  color: #c4c9e2;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  background-color: #0b0e19;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: #f1484c;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #ff6b6f;
  text-decoration: underline;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Wrapper */
.wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Notification Banner */
.info_bar {
  background: linear-gradient(90deg, #1f2847 0%, #151b30 50%, #1f2847 100%);
  border-bottom: 1px solid #28345c;
  color: #e2e7ff;
  text-align: center;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 500;
}

.info_bar span {
  background: #f1484c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
  text-transform: uppercase;
  font-size: 11px;
}

/* Header Navbar */
header {
  height: 70px;
  background: #0e1221;
  border-bottom: 1px solid #1c243f;
  color: #fff;
  position: relative;
  z-index: 100;
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo a:hover {
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, #f1484c, #e03236);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mega Menu Navigation */
.nav-menu {
  position: relative;
}

.nav-item-btn {
  background: #19213b;
  border: 1px solid #28355e;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.nav-item-btn:hover {
  background: #222d50;
  border-color: #3b4d84;
}

.mega-menu {
  position: absolute;
  top: 52px;
  left: 0;
  width: 580px;
  background: #12182b;
  border: 1px solid #28355e;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: none;
  padding: 20px;
  gap: 25px;
  z-index: 1000;
}

.mega-menu.show {
  display: flex;
}

.menu-column {
  flex: 1;
}

.menu-column h4 {
  color: #8392b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1c2542;
  padding-bottom: 6px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: #c4c9e2;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.menu-link:hover {
  background: #1c2542;
  color: #fff;
  text-decoration: none;
}

.item-count {
  background: #1c2542;
  color: #7b8bb5;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.menu-link:hover .item-count {
  background: #f1484c;
  color: #fff;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: #141a2e;
  border: 1px solid #26335a;
  border-radius: 6px;
  padding: 7px 14px 7px 35px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  width: 180px;
  transition: width 0.25s ease, border-color 0.2s ease;
}

.search-box input:focus {
  width: 240px;
  border-color: #f1484c;
  outline: none;
}

.search-box input::placeholder {
  color: #63739f;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #63739f;
  pointer-events: none;
}

/* Currency & Language Selectors */
.lang-selector, .currency-selector {
  position: relative;
}

.select-btn {
  background: #141a2e;
  border: 1px solid #26335a;
  color: #c4c9e2;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.select-btn:hover {
  border-color: #3f528c;
  color: #fff;
}

.dropdown-list {
  position: absolute;
  top: 40px;
  right: 0;
  background: #141a2e;
  border: 1px solid #26335a;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: none;
  min-width: 110px;
  overflow: hidden;
  z-index: 500;
}

.dropdown-list.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  color: #c4c9e2;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #1f2847;
  color: #fff;
  text-decoration: none;
}

/* Sign In & Contact Header Buttons */
.btn-primary-header {
  background: linear-gradient(135deg, #f1484c, #d13034);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-header:hover {
  background: linear-gradient(135deg, #ff575b, #e03b3f);
  box-shadow: 0 4px 15px rgba(241, 72, 76, 0.4);
}

/* Secondary Games Bar */
.games-nav-bar {
  background: #090c17;
  border-bottom: 1px solid #161d33;
  padding: 12px 0;
}

.games-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.game-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #111628;
  border: 1px solid #1d2642;
  border-radius: 20px;
  color: #8c9bcf;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.game-nav-item:hover, .game-nav-item.active {
  background: #1d2747;
  border-color: #f1484c;
  color: #fff;
  text-decoration: none;
}

.game-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #242f54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #f1484c;
}

.game-badge {
  background: #1a223a;
  color: #6a7ba8;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

.game-nav-item:hover .game-badge, .game-nav-item.active .game-badge {
  background: #f1484c;
  color: #fff;
}

/* Main Content Layout */
main {
  padding: 30px 0 120px;
  min-height: calc(100vh - 200px);
}

/* Catalog View Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #1c2542;
  padding-bottom: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #f1484c;
  border-radius: 2px;
}

.view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: #7888b5;
}

.view-all-link:hover {
  color: #f1484c;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.product-card {
  background: #13192c;
  border: 1px solid #1f2947;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #3b4d80;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #0a0d17;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

.badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f1484c, #c0282c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 18, 33, 0.85);
  backdrop-filter: blur(4px);
  color: #a4b4e0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  color: #e6ebff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #1a223b;
}

.product-game {
  color: #6b7ca8;
  font-size: 11px;
  font-weight: 600;
}

.product-price-box {
  text-align: right;
}

.price-old {
  color: #63739f;
  text-decoration: line-through;
  font-size: 11px;
  margin-right: 5px;
}

.price-main {
  color: #22a86f;
  font-size: 16px;
  font-weight: 800;
}

/* Product Detail View */
.product-detail-container {
  display: none;
}

.product-detail-container.active {
  display: block;
}

.catalog-container.hidden {
  display: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #6879a8;
  margin-bottom: 25px;
}

.breadcrumbs a {
  color: #9cb0e3;
  cursor: pointer;
}

.breadcrumbs span.separator {
  color: #3a476b;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 35px;
}

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

/* Detail Left Preview */
.detail-preview-card {
  background: #12182a;
  border: 1px solid #1d2642;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detail-main-img {
  width: 100%;
  display: block;
  cursor: pointer;
  background: #090d18;
}

.demo-btn-wrap {
  padding: 15px;
  background: #0f1423;
  border-top: 1px solid #1d2642;
  display: flex;
  justify-content: center;
}

.btn-view-demo {
  background: transparent;
  border: 2px solid #f1484c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-demo:hover {
  background: #f1484c;
  box-shadow: 0 4px 15px rgba(241, 72, 76, 0.4);
}

/* Detail Right Info */
.detail-info-box h1 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.info-block {
  background: #12182b;
  border: 1px solid #1f2a4a;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.info-block h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-meta td {
  padding: 6px 0;
  color: #7b8cb8;
}

.table-meta td.val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.description-text {
  color: #9ab0e0;
  font-size: 13px;
  line-height: 1.6;
}

/* Package Options Checkboxes */
.package-item {
  display: block;
  position: relative;
  background: #161e36;
  border: 1px solid #253359;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.package-item:hover {
  border-color: #3f528a;
  background: #1c2645;
}

.package-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.package-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.package-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #4a5c8c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.package-item input[type="checkbox"]:checked ~ .package-content .custom-checkbox {
  background: #f1484c;
  border-color: #f1484c;
}

.custom-checkbox::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: none;
}

.package-item input[type="checkbox"]:checked ~ .package-content .custom-checkbox::after {
  display: block;
}

.package-item.checked {
  border-color: #f1484c;
  box-shadow: 0 0 0 2px rgba(241, 72, 76, 0.2);
  background: #1d2542;
}

.pkg-title {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

.pkg-subtitle {
  color: #7284b3;
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.pkg-price {
  font-weight: 800;
  color: #22a86f;
  font-size: 14px;
}

/* Volume Discount Bar */
.discount-bar-container {
  margin-top: 15px;
}

.discount-levels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6a7ba8;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #182038;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f1484c, #22a86f);
  width: 0%;
  transition: width 0.3s ease;
}

/* Sticky Buying Bottom Bar */
.buying_form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85px;
  background: #0f1424;
  border-top: 1px solid #1e2847;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  z-index: 900;
  display: flex;
  align-items: center;
}

.buying_form .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.buy-info-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.buy-contact-note {
  color: #8fa1d1;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.buy-contact-note strong {
  color: #fff;
}

.buy-action-side {
  display: flex;
  align-items: center;
  gap: 25px;
}

.total-price-wrap {
  text-align: right;
}

.total-label {
  font-size: 11px;
  color: #6e7ea8;
  text-transform: uppercase;
  font-weight: 700;
}

.total-amount {
  font-size: 26px;
  font-weight: 800;
  color: #22a86f;
  line-height: 1;
}

.btn-buy-now {
  background: linear-gradient(135deg, #22a86f, #1b8a5a);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(34, 168, 111, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, #29be7f, #209f68);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 168, 111, 0.6);
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: #12182b;
  border: 1px solid #28355c;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #1c2542;
  border: none;
  color: #7b8cb8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.modal-header p {
  color: #7888b5;
  font-size: 13px;
  margin-bottom: 20px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.contact-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  text-decoration: none;
}

.btn-telegram {
  background: #0088cc;
}

.btn-whatsapp {
  background: #25d366;
}

.btn-discord {
  background: #5865f2;
}

.quote-summary-box {
  background: #0a0d17;
  border: 1px solid #1c2642;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #8c9cc8;
}

.quote-summary-box strong {
  color: #22a86f;
}

/* Footer Section */
footer {
  background: #070912;
  border-top: 1px solid #161d33;
  padding: 50px 0 30px;
  color: #63739f;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #7283b3;
}

.footer-bottom {
  border-top: 1px solid #12182b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b5880;
}

/* Product Gallery Interactive Thumbnails Strip */
.product-gallery-strip {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.gallery-thumb-btn {
  background: #141a2e;
  border: 2px solid #233054;
  border-radius: 6px;
  padding: 0;
  width: 70px;
  height: 50px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.gallery-thumb-btn:hover, .gallery-thumb-btn.active {
  border-color: #22a86f;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 168, 111, 0.3);
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (Mobile, Tablet, Small Laptops)
   ========================================================================== */

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 992px) {
  header {
    height: auto;
    padding: 12px 0;
  }

  header .wrapper {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-right {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-box input {
    width: 150px;
  }

  .search-box input:focus {
    width: 180px;
  }

  /* Admin & General 2-Column Grids stack to 1-column on tablets */
  div[style*="grid-template-columns: 1fr 450px"],
  div[style*="grid-template-columns: 1fr 480px"],
  div[style*="grid-template-columns: 1fr 380px"],
  .form-row-2col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .info_bar {
    font-size: 11px;
    padding: 8px 10px;
  }

  .logo a {
    font-size: 18px;
  }

  .mega-menu {
    position: fixed;
    top: 75px;
    left: 15px;
    right: 15px;
    width: auto;
    flex-direction: column;
    gap: 15px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }

  /* Sticky Bottom Buying Bar for Mobile Phones */
  .buying_form {
    height: auto;
    padding: 12px 0;
  }

  .buying_form .wrapper {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .buy-info-side {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
  }

  .buy-action-side {
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }

  .btn-buy-now {
    padding: 10px 20px;
    font-size: 12px;
  }

  .total-amount {
    font-size: 22px;
  }

  /* Account Page Responsiveness */
  .user-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .purchase-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .purchase-card img.purchase-thumb {
    width: 100%;
    height: 180px;
  }

  .purchase-card > div:last-child {
    text-align: left !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1a2444;
    padding-top: 12px;
  }

  /* Footer Responsiveness */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

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

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
  }

  .search-box input, .search-box input:focus {
    width: 100%;
  }

  .table-admin, .table-invoice, .table-audit {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================================================
   FRONT-END SECTIONS: CLIENTS CAROUSEL, SKILLS & PAYMENT METHODS
   ========================================================================== */

.front-section {
  margin-top: 45px;
  margin-bottom: 45px;
  padding: 40px 30px;
  background: #111728;
  border: 1px solid #1e2949;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px auto;
}

.section-badge {
  display: inline-block;
  background: rgba(34, 168, 111, 0.15);
  color: #22a86f;
  border: 1px solid rgba(34, 168, 111, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-main-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: #7b8ebf;
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   1. CLIENTS CAROUSEL STYLES
   -------------------------------------------------------------------------- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 20px;
}

.client-card {
  min-width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background: linear-gradient(180deg, #141b30 0%, #0e1424 100%);
  border: 1px solid #223055;
  border-top: 3px solid #22a86f;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  border-top-color: #56e4a8;
  box-shadow: 0 15px 40px rgba(34, 168, 111, 0.25), 0 0 20px rgba(59, 130, 246, 0.15);
}

.client-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e2b4c;
}

/* HIGH-IMPACT 84px AVATAR */
.client-avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  background: radial-gradient(circle at center, #1b284c 0%, #0b1122 100%);
  border: 3px solid #22a86f;
  outline: 2px solid rgba(34, 168, 111, 0.3);
  outline-offset: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(34, 168, 111, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.client-card:hover .client-avatar {
  transform: scale(1.1) rotate(5deg);
  border-color: #56e4a8;
  outline-color: rgba(86, 228, 168, 0.6);
  box-shadow: 0 0 35px rgba(86, 228, 168, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.client-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.client-card:hover .client-avatar-img {
  transform: scale(1.1);
}

.client-info-header {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-info-header h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}

.client-admin-tag {
  color: #7b91ca;
  font-size: 11px;
  font-weight: 600;
}

.client-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.client-rating {
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.client-quote {
  color: #c9d7fb;
  font-size: 13px;
  line-height: 1.65;
  font-style: italic;
  margin: 0;
  flex-grow: 1;
  background: rgba(13, 19, 36, 0.5);
  border-left: 3px solid #22a86f;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

.client-meta h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.client-meta span {
  display: block;
  color: #6c7ea8;
  font-size: 11px;
}

.server-status-badge {
  color: #22a86f !important;
  font-weight: 700;
  font-size: 10px !important;
  margin-top: 2px;
}

.carousel-nav {
  background: #1a243d;
  border: 1px solid #2d3e69;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}

.carousel-nav:hover {
  background: #22a86f;
  border-color: #22a86f;
  color: #fff;
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #233054;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #22a86f;
  width: 24px;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   2. SKILLS SECTION STYLES
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #161e33;
  border: 1px solid #233054;
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.skill-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-icon {
  font-size: 28px;
}

.skill-level {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.skill-card h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.skill-card p {
  color: #7b8ebf;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: #0d1220;
  border-radius: 6px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22a86f);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   3. PAYMENT METHODS STYLES
   -------------------------------------------------------------------------- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.payment-card {
  position: relative;
  background: #161e33;
  border: 1px solid #233054;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.payment-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.payment-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.payment-icon-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  height: 48px;
}

.payment-icon-wrap svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.payment-card:hover .payment-icon-wrap svg {
  transform: scale(1.12);
}

.payment-card h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.payment-card p {
  color: #7b8ebf;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-tags span {
  background: #0f1627;
  color: #9cb0e3;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #1e2a4a;
}

.trust-guarantee-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  background: #0b0f1a;
  border: 1px solid #1f2c4c;
  border-radius: 8px;
  padding: 18px 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b0c2f0;
  font-size: 12px;
}

.trust-item span {
  font-size: 24px;
}

.trust-item strong {
  color: #ffffff;
  display: block;
}

/* Media Queries for Front Sections */
@media (max-width: 992px) {
  .client-card {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .client-card {
    min-width: 100%;
    max-width: 100%;
  }
  .front-section {
    padding: 25px 15px;
  }
  .section-main-title {
    font-size: 20px;
  }
}


