
:root {
  --bg-primary: #101010;
  --bg-secondary: #1c1c1c;
  --accent-red: #e31b23;
  --text-main: #ffffff;
  --text-secondary: #aaaaaa;
  --border-color: #2e2e2e;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  font-size: 14px; /* Scales down base rem/proportions cleanly for 100% zoom */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-top: 64px; /* Matches compact header height */
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

/* 1. Responsive Container (Prevents Side Cropping) */
.container {
  width: 95%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-padding {
  padding: 48px 0;
}
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title span {
  color: var(--accent-red);
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 30px;
  font-size: 14px;
}

/* 2. Proportionally Scaled Buttons & Badges */
.btn-primary,
.btn-outline {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  font-size: 12.5px;
  border: 2px solid var(--accent-red);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-red);
  color: #fff;
}
.btn-primary:hover {
  background: #b81219;
  border-color: #b81219;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
}
.btn-outline:hover,
.filter-btn.active {
  background: var(--accent-red);
  color: #fff;
}
#auth-btn{
  padding: 8px 10px;
}

.badge {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* 3. Compact Header & Navigation (Fits All 10 Links Without Cropping) */
.header {
  background: rgba(16, 16, 16, 0.96);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo span {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
}

/* 4. Flexible Hero Slider & Banners (Prevents Vertical Cutoffs) */
.hero-slider {
  position: relative;
  min-height: calc(100vh - 64px);
  max-height: 640px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;

  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 40px 15px 70px;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-content {
  max-width: 650px;
  padding: 15px;
}
.slide-content h1 {
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 12px;
}
.slide-content h1 span {
  color: var(--accent-red);
}
.slide-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}
.slider-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.page-banner {
  background:
    linear-gradient(rgba(16, 16, 16, 0.82), rgba(16, 16, 16, 0.9)),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1400")
      center/cover;
  padding: 50px 0;
  text-align: center;
  border-bottom: 2px solid var(--accent-red);
}
.page-banner h1 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}
.page-banner h1 span {
  color: var(--accent-red);
}
.page-banner p {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 14px;
}

/* 5. Safe Responsive Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
  transition: var(--transition);
}
.card:hover,
.card.selected-plan {
  transform: translateY(-4px);
  border-color: var(--accent-red);
}
.card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  margin-bottom: 12px;
}
.card i.icon-lg {
  font-size: 28px;
  color: var(--accent-red);
  margin-bottom: 12px;
  display: inline-block;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.price-tag {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-red);
  margin: 10px 0;
}
.price-tag span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Filter Bar & Search */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.filter-btn {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: var(--transition);
}
.search-box {
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Tables, Forms & Modals */
.table-wrap {
  overflow-x: auto;
  width: 100%;
}
.table-wrap::-webkit-scrollbar {
  height: 8px;
}
.table-wrap::-webkit-scrollbar-track {
  background: #000;
}
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--accent-red);
  border-radius: 4px;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  font-size: 13.5px;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  text-align: center;
}
.schedule-table th {
  background: var(--accent-red);
  color: #fff;
  text-transform: uppercase;
  font-size: 12.5px;
}

.form-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  font-size: 13.5px;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
}
input[type="date"]::-webkit-calendar-picker-indicator{
  filter: invert(1);
  cursor: pointer;
}

.feedback-msg {
  margin-top: 12px;
  padding: 10px;
  border-radius: 4px;
  display: none;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}
.msg-success {
  background: #198754;
  color: #fff;
  display: block;
}
.msg-error {
  background: var(--accent-red);
  color: #fff;
  display: block;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  color: #fff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  flex-direction: column;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-height: 75vh;
  width: auto;
  border: 2px solid var(--accent-red);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 40px 0 16px;
  border-top: 2px solid var(--accent-red);
  margin-top: 45px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 25px;
}
.footer h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text-main);
}
.footer p,
.footer ul li a {
  color: var(--text-secondary);
  font-size: 13px;
}
.footer ul li {
  margin-bottom: 6px;
}
.footer ul li a:hover {
  color: var(--accent-red);
  padding-left: 4px;
}
.footer-bottom {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
}

/* 6. Earlier Breakpoint for Smaller Laptops & Tablets */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
    max-height: 85vh;
    overflow-y: auto;
  }
  .mobile-menu-btn {
    display: block;
  }
  .slide-content h1 {
    font-size: 28px;
  }
}

/* Detail Page Layout: Image on Left (Laptop) & Stacked (Mobile) */
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

/* Exact Same Image Size as Parent Page (300px × 175px) */
.detail-item img {
  width: 300px;
  max-width: 100%;
  height: 175px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  margin: auto;
}

.detail-content {
  flex: 1;
}

.detail-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.detail-content p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.detail-content ul {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.detail-content ul li {
  margin-bottom: 5px;
}

/* Mobile View: Stack Image & Text Cleanly */
@media (max-width: 768px) {
  .detail-item {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .detail-item img {
    width: 100%;
    max-width: 300px;
    height: 175px;
  }
}