:root { --standard-accent: #119FE9; }

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0f0f0f;
    color: #e1e1e1;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.subheading {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #b0b0b0;
}

.device-limit {
    color: white;
    font-size: 0.7em;
    margin-top: 20px;
    text-align: center;
}

/* Carousel Styles */
#carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Image Paths */
.carousel-slide:nth-child(1) { background-image: url('/images/mando.jpg'); }
.carousel-slide:nth-child(2) { background-image: url('/images/twisters.jpg'); }
.carousel-slide:nth-child(3) { background-image: url('/images/got.jpg'); }
.carousel-slide:nth-child(4) { background-image: url('/images/beetle.jpg'); }
.carousel-slide:nth-child(5) { background-image: url('/images/borderlands.jpg'); }
.carousel-slide:nth-child(6) { background-image: url('/images/inside.jpg'); }
.carousel-slide:nth-child(7) { background-image: url('/images/boys.jpg'); }
.carousel-slide:nth-child(8) { background-image: url('/images/harry.jpg'); }
.carousel-slide:nth-child(9) { background-image: url('/images/starwars.jpg'); }
.carousel-slide:nth-child(10) { background-image: url('/images/avengers.jpg'); }
.carousel-slide:nth-child(11) { background-image: url('/images/rings.jpg'); }
.carousel-slide:nth-child(12) { background-image: url('/images/ufc.jpg'); }
.carousel-slide:nth-child(13) { background-image: url('/images/stranger.jpg'); }
.carousel-slide:nth-child(14) { background-image: url('/images/breaking.jpg'); }
.carousel-slide:nth-child(15) { background-image: url('/images/hocus.jpg'); }

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.55) 0%,
        rgba(17, 24, 39, 0.75) 40%,
        rgba(17, 24, 39, 0.85) 60%,
        rgba(17, 24, 39, 0.95) 100%
    );
    z-index: 1;
}

/* Container */
#container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

/* Status Indicator */
.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#server-status-icon {
    font-size: 24px; /* Adjust size as needed */
}

.status-text {
    font-size: 16px; /* Ensure text size is consistent */
}

.online {
    color: green; /* Color for online status */
}

.offline {
    color: red; /* Color for offline status */
}

.unknown {
    color: purple; /* Color for unknown status */
}

#server-status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Logo and Nav */
.logo-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    position: absolute;
    top: 25px;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding and width are handled properly */
}

.logo-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    z-index: 1000;
}

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

.logo-text {
    display: flex;
    align-items: center;
    position: absolute;
    left: 85px; /* Adjust this value as needed to move the text further right */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem; /* Adjust size as needed */
    color: #ffffff; /* Change the color to white */
}

.nav-bar {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    gap: 30px;
    font-family: 'Montserrat', sans-serif;
}

.nav-bar a {
    color: #e1e1e1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-bar a:hover {
    color: #6366f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Tier Section */
.tiers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 30px 0;
    flex-wrap: wrap; /* Ensure items wrap in smaller viewports */
}

.tier {
    background: #161C2C;
    color: #e1e1e1;
    border-radius: 8px;
    border: 1px solid #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px); /* Adjust for spacing and responsiveness */
    min-height: 450px;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tier.best-seller {
    background: #1F2837;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    padding: 25px;
}

.tier h2, .tier h3 {
    color: #ff6f61;
    font-family: 'Montserrat', sans-serif;
}

.tier h2 { 
    font-size: 1.8rem; 
    margin-top: 0; 
}

.tier h3 {
    font-size: 0.9rem;
    margin: 10px 0;
}

.tier .summary {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 20px;
}

/* Price Box */
.price-box {
    background: #444D5A;
    border-radius: 8px;
    padding: 6px 85px;
    margin: 5px 0;
    font-size: 1rem;
    color: #ffffff;
    display: inline-block;
}

.price-box small {
    font-size: 0.8rem;
    color: #b0b0b0;
}

/* List Styles */
ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    color: #fff;
    text-align: left;
}

ul li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 10px 0;
    width: 100%;
}

ul li a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

ul li a:hover {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Checkmark and Cross */
.checkmark {
    color: #77dd77;
    font-size: 1.5rem;
    margin-right: 10px;
}

.cross {
    color: #ff6f6f;
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Button */
button {
    background: #CA4C77;
    border: none;
    color: #ffffff;
    padding: 10px 70px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

button:hover {
    background: #933756;
}

/* Footer */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.footer {
    background-color: rgba(0, 0, 0, 0.25); /* Black background with 25% opacity */
    color: #ffffff; /* White text color */
    padding: 1px 4px;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
}

/* Apply the same style to links within the footer */
.footer a {
    color: #e1e1e1; /* Text color */
    text-decoration: none; /* Remove underline */
    font-size: 0.8rem; /* Font size (same as nav links) */
    transition: color 0.3s, text-shadow 0.3s; /* Smooth color and shadow transition */
}

.footer a:hover {
    color: #6366f1; /* Hover color (same as nav links) */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Hover text shadow */
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer p {
    margin: 10px 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .logo-nav-container {
        padding: 0 10px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 992px) {
    .nav-bar {
        gap: 20px;
    }

    .logo-text {
        font-size: 1.2rem; /* Smaller font size on medium screens */
    }

    .tier {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .tiers {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Adjust spacing for smaller screens */
    }

    .tier {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .logo-nav-container {
        position: fixed;
        top: 0px; /* Increase this value to move it further down */
        left: 0;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
        z-index: 1000;
        background: transparent;
    }

    .logo-text {
        position: static; /* Make logo text static for small screens */
        font-size: 1.2rem; /* Adjust font size */
        margin-top: 10px;
    }

    .nav-bar {
        flex-direction: column;
        gap: 10px;
        align-items: center; /* Center items for better mobile layout */
    }

    .price-box {
        padding: 6px 10px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem; /* Adjust heading size for small screens */
    }

    .subheading {
        font-size: 0.9rem; /* Adjust subheading size */
    }

    .status-text {
        font-size: 14px; /* Smaller font size for status text */
    }

    .footer {
        padding: 10px; /* Increase padding in footer for better readability */
    }

    .footer p {
        font-size: 0.7rem; /* Adjust font size in footer */
    }

    button {
        padding: 10px 40px; /* Adjust button padding */
        font-size: 0.8rem; /* Smaller button font size */
    }

@media (max-width: 768px) {
    #container {
        margin-top: 80px; /* Adjust this value to ensure space below fixed nav bar */
    }

    .logo-nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
        z-index: 1000;
    }

    .logo-text {
        display: flex;
        align-items: center;
        position: absolute;
        left: 85px; /* Adjust this value as needed to move the text further right */
        font-family: 'Montserrat', sans-serif;
        font-size: 1.4rem; /* Adjust size as needed */
        color: #ffffff; /* Change the color to white */
    }

    .nav-bar {
        flex-direction: column;
        gap: 10px;
        align-items: center; /* Center items for mobile layout */
    }
}


/* === Additions: STANDARD accent, stats title spacing, and contact morph effect === */

/* Use the same accent blue as STANDARD for reuse across the site */
.best-seller h2 { color: var(--standard-accent); }

/* Stats page H1 spacing so it doesn't overlap the header */
.page-title { margin-top: 120px; }
@media (max-width: 768px) {
  .page-title { margin-top: 100px; }
}

/* Morph effect for the Contact link */
.nav-bar a { transition: color 0.3s, text-shadow 0.3s, opacity 0.25s; }
.nav-bar a.morphing { opacity: 0; }
.nav-bar a.morphed  { opacity: 1; color: var(--standard-accent); }


/* === Fixes & enhancements (2025-08-09) === */

/* STANDARD accent reuse */
.best-seller h2 { color: var(--standard-accent); }

/* Stats page spacing: ensure title never overlaps header */
.page-title { margin-top: 140px; }
@media (max-width: 768px) {
  .page-title { margin-top: 120px; }
}

/* Email display (replaces Contact link post-morph) */
.nav-bar .email-display {
  color: var(--standard-accent);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

/* Charts: fixed card height and canvas sizing to prevent infinite growth */
.chart-card { height: 360px; }
.chart-card canvas { width: 100% !important; height: 100% !important; display: block; }

/* Make first chart wider than second on large screens */
.chart-wide { grid-column: span 8; }
.chart-narrow { grid-column: span 4; }

@media (max-width: 1200px) {
  .chart-wide, .chart-narrow { grid-column: span 12; }
}

/* Keep nav above everything */
.logo-nav-container { z-index: 2000; }


/* === Link states & Contact morph === */
.nav-bar a {
  color: #ffffff;
  transition: color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}
.nav-bar a:hover { color: var(--accent-purple); }
.nav-bar a.contact-morphed { color: var(--standard-accent) !important; }

/* Keep nav above content and ensure it doesn't block clicks on links */
.logo-nav-container { z-index: 2000; }

/* Stats page layout (redesigned) */
body.page-stats #container { padding-top: 120px; } /* avoid header overlap */
@media (max-width: 768px) { body.page-stats #container { padding-top: 100px; } }

.stats-header { margin-bottom: 16px; }
.stats-header h1 { margin: 0 0 8px 0; }
.stats-header .subheading { margin: 0; }

/* KPI strip styled like tier boxes */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 16px auto;
}
.kpi {
  grid-column: span 3;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.kpi h4 {
  margin: 0 0 6px 0;
  font-size: 0.85rem;
  color: #b0b0b0;
}
.kpi .value {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1200px) { .kpi { grid-column: span 4; } }
@media (max-width: 768px)  { .kpi { grid-column: span 6; } }
@media (max-width: 576px)  { .kpi { grid-column: span 12; } }

/* Chart cards mirror index tiers */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 120px auto; /* space above footer */
}
.chart-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  height: 420px; /* fixed height to avoid stretch */
}
.chart-card h4 {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: 0.95rem;
}

/* Wide vs narrow layout */
.chart-wide  { grid-column: span 8; }
.chart-narrow{ grid-column: span 4; }

@media (max-width: 1200px) {
  .chart-wide, .chart-narrow { grid-column: span 12; }
}

/* Canvas should fill the card safely */
.chart-card canvas {
  display: block;
  width: 100% !important;
  height: calc(100% - 28px) !important; /* leave room for title */
}

/* Accent chips and small badges styled with pink accent */
.badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
}


/* === Stats Controls & Layout (overhaul) === */
body.page-stats #container { padding-top: 120px; }
@media (max-width: 768px) { body.page-stats #container { padding-top: 100px; } }

.stats-header { margin: 0 auto 12px auto; max-width: 1200px; text-align: left; }
.stats-header h1 { margin: 0 0 6px 0; }
.stats-header .subheading { margin: 0; color: #b0b0b0; }

.stats-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 12px auto 16px auto;
  flex-wrap: wrap;
}
.control-group { display: flex; gap: 8px; align-items: center; }
.control-group .label { color: #b0b0b0; font-size: 0.9rem; }
.btn {
  background: transparent;
  color: #e1e1e1;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--accent-purple); color: #ffffff; }
.btn.active { background: var(--panel-bg); color: var(--standard-accent); border-color: var(--standard-accent); }

/* KPI strip carries over */
.kpi-strip { margin-top: 8px; }

/* Charts grid overhaul */
.stats-grid { grid-template-columns: repeat(12, 1fr); gap: 16px; }
.chart-card { height: 440px; }
.chart-card h4 { display: flex; align-items: center; justify-content: space-between; }
.chart-actions { display: flex; gap: 6px; }

/* Panel colors consistent with index */
.chart-card { background: var(--panel-bg); border: 1px solid var(--border); }
.kpi { background: var(--card-bg); border: 1px solid var(--border); }

/* Wider primary chart */
.chart-wide { grid-column: span 8; }
.chart-narrow { grid-column: span 4; }

@media (max-width: 1200px) {
  .chart-wide, .chart-narrow { grid-column: span 12; }
}

.chart-card canvas { width: 100% !important; height: calc(100% - 30px) !important; }


/* Degraded status (amber) */
.degraded { color: #f59e0b; }

/* Select dropdowns styled */
.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--panel-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 36px 8px 10px;
  font-size: 0.95rem;
  position: relative;
}
.select:focus { outline: 2px solid var(--standard-accent); outline-offset: 0; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap::after {
  content: '▼';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #b0b0b0;
  pointer-events: none;
}

/* ==== Mobile swipeable tiers (<= 900px) ==== */
@media (max-width: 900px) {

  /* Turn tiers into a horizontal, swipeable carousel */
  .tiers {
    display: flex !important;      /* override any grid rules */
    flex-direction: row !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap !important;
  touch-action: pan-x;
}
  .tiers::-webkit-scrollbar { display: none; }

  /* Each tier occupies (almost) the full viewport */
  .tier {
    min-width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0;
    margin: 0 !important;
    scroll-snap-align: start;
    height: calc(100dvh - 140px);
    min-height: calc(100dvh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 16px 24px 16px;
    box-sizing: border-box;
  }

  /* Slightly larger text for readability when a tier fills the screen */
  .tier h2 { font-size: 2rem; }
  .tier .price-box { font-size: 1.1rem; }
  .tier .summary { font-size: 1rem; }
  ul li { font-size: 1rem; }
  button { font-size: 1rem; padding: 12px 64px; }

  /* Keep the intro text readable without overwhelming the first slide */
  h1 { font-size: 1.8rem; margin-bottom: 8px; }
  .subheading { font-size: 0.95rem; margin-bottom: 12px; }

  /* Avoid overlap with fixed header/footer if present */
  #container { padding-top: 90px; }
  .footer { padding: 10px; }
}
