/* Basic Reset and Variables */
:root {
    --primary-color: #007bff; /* Bright Primary Blue */
    --text-color: #f0f0f0;
    --background-dark: #1a1a1a;
    --button-dark: #2c2c2c;
    --hover-dark: #3a3a3a;
    --star-color: #555; /* Subtle color for stars/lines */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Background Image and Shooting Stars Styling --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('techbackground.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    filter: grayscale(100%); 
}

/* Shooting Star / Animated Line Container */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--star-color) 1px, transparent 1px);
    background-size: 150px 150px;
    animation: star-stream 100s linear infinite; /* Slow, constant movement */
    opacity: 0.15;
    z-index: -1;
}

@keyframes star-stream {
    from {
        background-position: 0 0;
    }
    to {
        /* Move diagonally (down-right) */
        background-position: 10000px 10000px; 
    }
}
/* END Shooting Star Animation */


/* --- Icon and Navbar Styling --- */
.navbar {
  position: fixed;
  top: 60px; /* or enough to clear the announcement bar height */
  width: 100%;
  /* rest of your styles */
  padding: 20px 50px;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a i {
    margin-right: 5px; /* Spacing for icons */
    color: var(--star-color); /* Subtle icon color */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.dashboard-button {
    background-color: var(--button-dark);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.dashboard-button i {
    margin-right: 5px;
}

.dashboard-button:hover {
    background-color: var(--hover-dark);
    transform: translateY(-2px);
}


/* --- Hero Section Styling --- */
.hero-section {
    position: relative; /* Needed for the ::after shooting stars positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh;
    padding-top: 80px;
}

.promo-tag {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-title strong {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}


.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

/* Start Creating Button */
.primary-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}



.primary-btn:hover {
    background-color: #0069d9;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.6);
}

/* Join Discord Button */
.secondary-btn {
    background-color: var(--button-dark);
    color: var(--text-color);
    border: 1px solid var(--hover-dark);
}

.secondary-btn:hover {
    background-color: var(--hover-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Suggested Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Hero Section Styling --- */
/* ... (Keep your existing styles) ... */

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the entire group */
    flex-wrap: wrap; /* Allows the third button to drop to the next line */
    max-width: 650px; /* Constrain max width to fit 3 buttons nicely */
    margin: 0 auto 40px auto; /* Center the container and add bottom margin */
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Maintain a consistent minimum width for the first two buttons */
    min-width: 200px;
}

.btn i {
    margin-right: 8px;
}

/* --- Tertiary Button (Eye-catching X/Twitter Button) --- */
.tertiary-btn {
    /* Critical centering styles: */
    width: 90%; /* Take up most of the space on the new line */
    max-width: 440px; /* Don't let it get too wide */
    margin-top: 20px; /* Space it visually below the main buttons */
    
    /* Make it center-aligned on the page: */
    margin-left: auto;
    margin-right: auto;
    
    /* Eye-catching X/Twitter Style */
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    border: 1px solid #1DA1F2; /* Light Blue Border */
    box-shadow: 0 4px 20px rgba(29, 161, 242, 0.4); /* Blue glow */
    font-weight: 700;
}

.tertiary-btn i {
    color: #1DA1F2; /* Use the iconic Twitter blue for the icon */
    font-size: 1.2em;
}

.tertiary-btn:hover {
    background-color: #1a1a1a;
    border-color: #ffffff; 
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 30px rgba(29, 161, 242, 0.8); /* Brighter glow on hover */
}


/* --- Mobile Responsiveness Adjustments --- */
@media (max-width: 768px) {
    .cta-buttons {
        /* On mobile, stack all three buttons vertically */
        flex-direction: column; 
        gap: 15px;
        width: 80%; 
        max-width: 350px;
    }
    
    .btn {
        width: 100%; /* All buttons should be full width of the container */
        min-width: unset;
        margin: 0 !important; /* Remove any overriding auto margins */
    }

    .tertiary-btn {
        /* Override specific tertiary styles for mobile */
        max-width: 100%;
        margin-top: 0;
    }
}


/* Inherit colors from the main style.css root variables */

/* General Layout for Documentation */
.docs-container {
    display: flex;
    padding-top: 70px; /* Space for the fixed navbar */
    min-height: 100vh;
}

/* --- Sidebar Styling --- */
.docs-sidebar {
    width: 280px;
    background-color: var(--button-dark);
    padding: 30px 20px;
    position: fixed; /* Makes the navigation stay in place */
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto; /* Allows scrolling for long documentation */
    border-right: 1px solid var(--hover-dark);
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hover-dark);
    padding-bottom: 10px;
}
.sidebar-title i {
    margin-right: 8px;
}

.docs-sidebar nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.docs-sidebar nav a i {
    margin-right: 10px;
    color: var(--star-color);
}

.docs-sidebar nav a:hover {
    background-color: var(--hover-dark);
    color: var(--primary-color);
}

.docs-sidebar nav a.active {
    background-color: var(--primary-color);
    color: var(--background-dark);
    font-weight: 600;
}
.docs-sidebar nav a.active i {
    color: var(--background-dark);
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hover-dark);
    text-align: center;
}

.sidebar-cta {
    width: 100%;
    padding: 10px 15px;
    text-align: center;
}

/* --- Main Content Styling --- */
.docs-content {
    margin-left: 280px; /* Offset to make space for the fixed sidebar */
    flex-grow: 1;
    padding: 30px 50px;
    line-height: 1.8;
}

.docs-h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    line-height: 1.2;
}

.docs-h3 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-color);
    opacity: 0.9;
}

.docs-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.docs-content ul, .docs-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

.docs-content li {
    margin-bottom: 8px;
    opacity: 0.85;
}

.docs-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--hover-dark), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

.code-example code {
    display: block;
    background-color: var(--button-dark);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    font-family: monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    opacity: 0.9;
}

.docs-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

/* ... [Your existing CSS goes here] ... */

/* ======================================= */
/* --- Mobile Responsiveness (Max 768px) --- */
/* ======================================= */

@media (max-width: 768px) {
    
    /* --- Navbar Adjustments --- */
    .navbar {
        /* Reduce horizontal padding */
        padding: 15px 20px;
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
        justify-content: center; /* Center items when they wrap */
    }

    .logo {
        width: 100%; /* Take full width on top */
        text-align: center;
        margin-bottom: 15px; /* Add space below logo */
        font-size: 1.8em; /* Slightly larger logo on mobile top */
    }
    
    .nav-links {
        display: none; /* Hide secondary links to save space (Hamburger menu is a better long-term solution, but hiding is quicker) */
    }

    .dashboard-button {
        padding: 6px 12px; /* Smaller button padding */
        font-size: 0.9em;
        /* Center the button under the logo if nav-links are hidden */
        margin: 0 auto; 
    }
    
    /* --- Hero Section Adjustments --- */
    .hero-section {
        /* Add more padding to the sides and reduce min-height */
        padding: 100px 20px 40px; 
        min-height: 80vh; 
    }

    .promo-tag {
        font-size: 0.9em; /* Smaller promo text */
        margin-bottom: 15px;
    }

    .hero-title {
        /* Significantly reduce the font size for mobile screens */
        font-size: 2.5em; 
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1em; /* Standard mobile text size */
        max-width: 90%; /* Ensure it fits well within the screen */
        margin-bottom: 30px;
    }

    .cta-buttons {
        /* Stack buttons vertically instead of horizontally */
        flex-direction: column; 
        gap: 15px;
        width: 80%; /* Make buttons take up more horizontal space */
        max-width: 350px; /* Limit max button width */
    }

    .btn {
        padding: 12px 20px; /* Adjust button padding */
        width: 100%; /* Full width within the max-width container */
        justify-content: center; /* Center the icon and text */
    }

    /* --- Documentation Page (If it were visible) --- */
    .docs-container {
        flex-direction: column; /* Stack sidebar and content */
        padding-top: 85px; /* Adjust for the new navbar height */
    }

    .docs-sidebar {
        position: static; /* Stop fixing the sidebar to allow scrolling with content */
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--hover-dark); /* Add separator */
    }

    .docs-content {
        margin-left: 0; /* Remove the left offset */
        padding: 20px; /* Reduce padding */
    }

    .docs-h2 {
        font-size: 2em; /* Smaller heading */
    }
}


/* =============================== */
/* === UPGRADED SHOOTING STARS ==== */
/* =============================== */

.shooting-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 140px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,1),
        rgba(0,123,255,1),
        rgba(0,123,255,0)
    );
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(0,123,255,1));
    opacity: 1;
    animation: shoot 2s linear forwards;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-1400px, 1400px) rotate(45deg);
        opacity: 0;
    }
}


/* Announcement bar styles (add this to your CSS) */
/* Announcement Bar matching your style */
.announcement-bar {
  width: 100%;
  background-color: #07b0ff; /* matching your color scheme */
  color: #343a40;
  padding: 10px 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite ease-in-out;
  /* No position: fixed; */
}

.announcement-link {
    color: #ff0000; /* Highlight the new domain with your brand color */
    text-decoration: underline;
    font-weight: 800; /* Extra bold */
    margin: 0 5px;
}

/* Optional: Slight color change on hover */
.announcement-link:hover {
    color: #fbff00;
}

/* Keyframe animation for the pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
    100% {
        transform: scale(1);
    }
}

/* Keep the overall promo style */
.highlight-promo {
    border-color: #ff69b4; /* Pink border */
    color: #ff69b4; /* Pink text */
    background-color: transparent;
    font-weight: 700;
    animation: pulsePink 1.5s infinite;
}

/* Style for HOLIDAY25 - softer pink, no glow, just a gentle bounce */
.special-code {
    font-size: 1.5em;
    font-weight: bold;
    color: #d36bdc; /* Muted pink */
    text-shadow: none; /* Remove glow for subtlety */
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Style for 25% off - softer teal, no glow, gentle bounce */
.discount-amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #5bc0be; /* Muted teal */
    text-shadow: none; /* Remove glow for subtlety */
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Animations for bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Optional pulse animation for the whole banner to draw attention gently */
@keyframes pulsePink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}


/* --- Beta Page Specific Styles --- */

/* Adjust the announcement bar for the Beta lock page */
.announcement-bar .fa-exclamation-triangle {
    color: #ffc107; /* Warning yellow */
    margin-right: 5px;
}
.announcement-bar a {
    color: #ff0000;
}

/* Style for the beta tag to make it stand out */
.beta-tag {
    border-color: #ff0000; /* Red border */
    color: #ff0000; /* Red text */
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(1); opacity: 1; border-color: #ff0000; }
    50% { transform: scale(1.03); opacity: 0.9; border-color: #ffc107; }
    100% { transform: scale(1); opacity: 1; border-color: #ff0000; }
}

/* Style for the locked dashboard button on the navbar */
.beta-locked-btn {
    background-color: #343a40; /* Darker gray to look disabled */
    color: #999999; /* Light gray text */
    pointer-events: none; /* Make it unclickable */
    cursor: default;
    box-shadow: none;
    transition: none;
}

.beta-locked-btn:hover {
    background-color: #343a40; /* Remove hover effect */
    transform: none; /* Remove hover transform */
}

/* Optional: Make the primary button pulse to draw attention to the Discord CTA */
.pulse-btn {
    animation: pulseCta 2s infinite ease-in-out;
}

.pulse-btn:hover {
    animation: none; /* Stop the animation on hover */
}

@keyframes pulseCta {
    0% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 123, 255, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
}




/* --- TICKET SYSTEM GENERAL STYLES (Add to style.css) --- */

.tickets-container {
    padding: 120px 50px 50px; /* Space for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
}

.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--hover-dark);
    padding-bottom: 15px;
}

.tickets-h1 {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary-color);
}

/* Open New Ticket Section */
.new-ticket-area {
    background-color: var(--button-dark);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid var(--hover-dark);
}

.new-ticket-area h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}


/* ======================================= */
/* --- APPLICATION LIST FIXES (REVERTED TO STACKED) --- */
/* ======================================= */

#applications-list {
    /* REVERT: Remove Grid layout to stop multi-column display */
    display: flex; /* Use flex to manage vertical flow */
    flex-direction: column; /* Stack items vertically */
    gap: 15px; /* Add vertical spacing between cards */
    padding-top: 10px;
}

.application-card {
    /* Use 'application-card' for better semantic naming */
    background-color: var(--button-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--hover-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between; /* Space out info and status tag */
    align-items: flex-start; /* Align items to the top of the card */
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%; /* Ensure it spans the full width of the container */
    flex-wrap: wrap; /* Allow elements inside to wrap if necessary */
}

.application-card:hover {
    transform: none; /* Remove vertical transform */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.application-info {
    /* Ensure the info block takes up most of the space */
    flex-grow: 1;
    max-width: 70%; 
}

.application-info h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.application-info p {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 0; /* Adjust spacing */
}

/* ======================================= */
/* --- NEW STATUS TAG STYLES --- */
/* ======================================= */

.application-status-tag {
    align-self: flex-start; /* Keeps the tag anchored to the left/start of its container */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.application-status-tag i {
    margin-right: 6px;
}

/* Pending (Default/Open) - Yellow/Amber */
.status-pending {
    background-color: #ffc10720; /* Light yellow background */
    color: #ffc107;
    border: 1px solid #ffc107;
}

/* Accepted - Green */
.status-accepted {
    background-color: #28a74520; /* Light green background */
    color: #28a745;
    border: 1px solid #28a745;
}

/* Denied/Closed - Red/Danger */
.status-denied {
    background-color: #dc354520; /* Light red background */
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* ======================================= */
/* --- MOD NOTE STYLES --- */
/* ======================================= */

.mod-note-section {
    width: 100%; /* Forces it to the next line and spans full width */
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--hover-dark);
}

.mod-note-section .note-header {
    font-weight: 600;
    font-size: 0.85em;
    color: #ffc107; /* Warning yellow for attention */
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.mod-note-section .note-header i {
    margin-right: 5px;
}

.mod-note-section .note-content {
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.9;
    padding-left: 5px;
    border-left: 2px solid #ffc107; /* Subtle visual cue for the note text */
}

.no-mod-note {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9em;
}

.ticket-input, .ticket-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--hover-dark);
    border-radius: 5px;
    background-color: var(--background-dark); /* Changed from var(--ba to --background-dark) */
    color: var(--text-color);
    font-size: 1em;
}

.ticket-textarea {
    resize: vertical;
}

/* Tickets List */
#tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--button-dark);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: background-color 0.2s;
    cursor: pointer;
}

.ticket-card:hover {
    background-color: var(--hover-dark);
}

.ticket-info {
    flex-grow: 1;
}

.ticket-info h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.ticket-info p {
    font-size: 0.9em;
    opacity: 0.7;
}

.ticket-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 15px;
    min-width: 90px;
    text-align: center;
}

.status-open { background-color: #28a745; color: white; } /* Green */
.status-in_progress { background-color: #ffc107; color: #333; } /* Yellow */
.status-closed { background-color: #dc3545; color: white; } /* Red */

.open-chat-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.open-chat-btn:hover {
    opacity: 0.9;
}

/* Live Chat Modal */
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.chat-modal {
    background-color: var(--background-dark);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-color);
}

.chat-header {
    background-color: var(--button-dark);
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 700;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-close-btn:hover {
    color: var(--primary-color);
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #111111; /* Slightly darker chat background */
}

.chat-message {
    margin-bottom: 10px;
    display: flex;
    font-size: 0.95em;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

.user-message {
    justify-content: flex-end;
}
.user-message .message-content {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border-bottom-right-radius: 5px;
}

.admin-message {
    justify-content: flex-start;
}
.admin-message .message-content {
    background-color: var(--button-dark);
    color: var(--text-color);
    border: 1px solid var(--hover-dark);
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid var(--hover-dark);
}

#chat-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--hover-dark);
    border-radius: 20px;
    margin-right: 10px;
    background-color: var(--background-dark);
    color: var(--text-color);
}

#send-message-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}

#send-message-btn:hover {
    opacity: 0.8;
}


/* Minimalist Promo Styles */
.promo-minimal {
  background-color: #f0f0f0; /* Light gray background */
  padding: 12px 20px;
  border-radius: 6px;
  max-width: 700px;
  margin: 20px auto;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95em;
  text-align: center;
  color: #555; /* Dark gray text for readability */
}

.promo-text {
  margin: 0;
}

.promo-code {
  font-weight: 600;
  background-color: transparent; /* No background, subtle emphasis */
  color: #333; /* Darker text for promo code */
  font-weight: 700;
}


/* ======================================= */
/* --- STATS PAGE STYLES --- */
/* ======================================= */

.stats-page-container {
    padding: 120px 50px 50px; /* Space for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-h1 i {
    margin-right: 15px;
    font-size: 1.1em;
}

.stats-subtitle {
    font-size: 1.2em;
    margin-bottom: 50px;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    /* 3 columns on desktop, adapts to 2 or 1 column on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--button-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--hover-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-stat {
    /* Highlight the main stat (Active Users) */
    background-color: #2b3a4a; /* Slightly different dark blue tint */
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.4);
}

.primary-stat .stat-value {
    color: var(--primary-color);
}

.icon-pulse {
    /* Subtle animation for the main icon */
    animation: icon-pulse-glow 2s infinite alternate;
}

@keyframes icon-pulse-glow {
    from {
        text-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    }
    to {
        text-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
    }
}

.metrics-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--hover-dark);
}

.metrics-footer p {
    margin-bottom: 20px;
    font-size: 0.9em;
    opacity: 0.6;
}

.metrics-footer i {
    margin-right: 5px;
}

/* Responsive adjustments for stats page */
@media (max-width: 768px) {
    .stats-page-container {
        padding: 100px 20px 30px; 
    }
    .stats-grid {
        /* Forces a single column layout on smaller phones for better readability */
        grid-template-columns: 1fr; 
    }
    .stats-h1 {
        font-size: 2em;
    }
    .stat-value {
        font-size: 2em;
    }
}

/* ======================================= */
/* --- ADDITIONS TO STATS PAGE STYLES --- */
/* ======================================= */

/* Special Stat for New Ownership Tag */
.special-stat {
    background-color: #3f2b4a; /* A purple-dark tint for distinction */
    border-color: #d36bdc; /* Muted pink/purple border */
    position: relative; /* Needed for absolute tag positioning */
}

/* Style for the 'Since New Ownership' Tag */
.stat-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the tag */
    padding: 3px 10px;
    background-color: #d36bdc; /* Muted pink/purple background */
    color: var(--background-dark); /* Dark text */
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(211, 107, 220, 0.5);
    z-index: 5;
}

.special-stat .stat-value {
    color: #d36bdc; /* Match value color to the tag/theme */
}

/* Ensure the grid adapts nicely to 4 stats.
   We will keep the existing grid styles from the previous response:
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
*/

/* ======================================= */
/* --- NEW FEATURES SECTION STYLES --- */
/* ======================================= */

.features-section {
    padding: 80px 50px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    /* Visual separation from the hero section */
    border-top: 1px solid var(--hover-dark); 
}

.features-section h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.2em;
    opacity: 0.7;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    /* Create 4 columns on desktop, adapts to 2 or 1 column on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--button-dark); /* Use dark button background for cards */
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--hover-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2); /* Subtle blue glow on hover */
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 3.5em;
    color: var(--primary-color); /* Highlight icons with primary blue */
    margin-bottom: 15px;
    animation: icon-pulse-glow 2s infinite alternate; /* Reusing glow animation */
}

.feature-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95em;
    opacity: 0.75;
    line-height: 1.5;
}

/* Mobile Responsiveness for Features */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 20px;
    }
    
    .features-section h2 {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .features-grid {
        /* Force single column stack on small screens */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}