/* Comic Neue Font Faces (local only, no fallback) */
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Regular.woff2') format('woff2'),
       url('fonts/ComicNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Bold.woff2') format('woff2'),
       url('fonts/ComicNeue-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-Italic.woff2') format('woff2'),
       url('fonts/ComicNeue-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  src: url('fonts/ComicNeue-BoldItalic.woff2') format('woff2'),
       url('fonts/ComicNeue-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body, .modal-content, .offcanvas, .main-header, .main-nav, .category-btn, .bundle-card, .business-status-container, .site-footer, .buy-now-btn, .copy-button, .status-details, .status-indicator, .header-logo, .theme-toggle-switch, .offcanvas-nav-link, .offcanvas-tab-btn, .promotions-bar, .bundle-card-content, .bundle-network, .bundle-size, .bundle-price, .categories-bar, .product-title, .product-info, .product-price, .buy-product-btn, .product-card, .product-img, .product-overlay, .shop-search-heading, .search-input, .alert, .page-loader-message, .page-loader-spinner, .footer-emoji {
  font-family: 'Comic Neue' !important;
}

/* Custom CSS overrides and additions */
/* Comic Neue Font Faces */


:root {
    --text: #1f2937; /* Dark gray for light mode text */
    --card: #ffffff; /* White for light mode cards */
    --input: #f3f4f6; /* Light gray for input background */
    --border: #e5e7eb; /* Light gray for borders */
    --button: #3b82f6; /* Blue for primary button */
    --button-text: #ffffff; /* White for button text */
    --bg-body: #f9fafb; /* Light background for body */
    --success-color: #10b981; /* Tailwind's emerald-500 */
    --error-color: #ef4444; /* Tailwind's red-500 */
    /* Custom offcanvas colors for glass-morph */
    --offcanvas-glass-bg: rgba(30, 30, 30, 0.2); /* Dark transparent for light mode */
    --offcanvas-glass-border: rgba(255, 255, 255, 0.1); /* Light border for glass */
    --offcanvas-glass-text: #f8f9fa; /* Light text for dark offcanvas */
    /* Bundle card glass-morph */
    --bundle-card-glass-bg: rgba(255, 255, 255, 0.8); /* More opaque white for light mode */
    --bundle-card-glass-border: rgba(255, 255, 255, 0.5);
}

body.dark {
    --text: #e5e7eb; /* Light gray for dark mode text */
    --card: #1f2937; /* Dark gray for dark mode cards */
    --input: #374151; /* Darker gray for input background */
    --border: #4b5563; /* Medium gray for borders */
    --button: #60a5fa; /* Lighter blue for primary button */
    --button-text: #ffffff; /* White for button text */
    --bg-body: #111827; /* Dark background for body */
    --success-color: #34d399; /* Lighter emerald */
    --error-color: #f87171; /* Lighter red */
    --offcanvas-glass-bg: rgba(15, 23, 42, 0.4); /* Even darker transparent for dark mode */
    --offcanvas-glass-border: rgba(255, 255, 255, 0.05); /* Even lighter border */
    --offcanvas-glass-text: #cbd5e1; /* Lighter text for dark offcanvas */
    --bundle-card-glass-bg: rgba(31, 41, 55, 0.9); /* More opaque dark for dark mode */
    --bundle-card-glass-border: rgba(75, 85, 99, 0.5);
}

body {
    font-family: 'Comic Neue', cursive, sans-serif; /* Prioritize Comic Neue */
    background: #fffde4 !important;
    color: var(--text);
    margin: 0;
    padding-top: 4rem; /* Space for fixed header */
    /* Remove transition and fade effects */
    transition: none !important;
}

body.dark {
    background: #18181c !important;
}

/* Background Overlay for image opacity */
body::before {
    /* Remove overlay opacity/fade */
    background-color: transparent !important;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind content */
}

body.overflow-hidden {
    overflow: hidden; /* Prevent scrolling when offcanvas/modal is open */
}

/* Header (replaces old navbar) */
.main-header {
    background: #18181c !important;
    color: #f8fafc !important;
    border-bottom: 2px solid #e11d48;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 4rem;
    width: 100%;
    z-index: 100;
}

/* Remove header scrolled shadow */
.main-header.scrolled {
  box-shadow: none !important;
}

.header-logo {
    height: 32px; /* Adjust logo size */
    width: auto;
}

/* Hamburger Menu Toggle Button */
.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10; /* Ensure it's above other header elements if needed */
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Animation for 'is-active' state (X icon) */
.menu-toggle-btn.is-active .hamburger-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle-btn.is-active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle-btn.is-active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Offcanvas Menu Custom Styles (overriding Bootstrap defaults) */
.offcanvas {
    font-family: 'Comic Neue', cursive, sans-serif; /* Apply Comic Neue to offcanvas */
    /* Glass-morph effect */
    background-color: var(--offcanvas-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--offcanvas-glass-border) !important;
    color: var(--offcanvas-glass-text) !important; /* Ensure light text */

    border-radius: 1.5rem !important; /* More rounded edges */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important; /* Prominent shadow */
    max-width: 320px !important; /* Fixed max width for desktop */
    height: calc(100vh - 2rem) !important; /* Full height minus top/bottom margin */
    margin: 1rem !important; /* Add some margin from edges on desktop */
    top: 1rem !important; /* Align with top margin */
    bottom: 1rem !important; /* Align with bottom margin */
}
/* Specific adjustment for offcanvas-start to ensure margin is on the right */
.offcanvas-start {
    left: 0;
    right: auto;
    transform: translateX(-100%); /* Default Bootstrap for start */
    border-top-right-radius: 1.5rem !important;
    border-bottom-right-radius: 1.5rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
/* Override Bootstrap's specific transform for offcanvas-start when showing */
.offcanvas-start.showing, .offcanvas-start.show:not(.hiding) {
    transform: translateX(1rem) !important; /* Adjust to account for margin */
}
.offcanvas-start.hiding {
    transform: translateX(-100%) !important;
}


.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.5rem 1rem 1.5rem; /* Adjust padding */
}

.offcanvas-title {
    color: var(--offcanvas-glass-text) !important;
    font-weight: 600;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make Bootstrap close icon white */
}

.offcanvas-body {
    padding: 1.5rem; /* Consistent padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align content */
    justify-content: flex-start; /* Align content to top within body */
    gap: 1.5rem;
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px; /* Limit width */
    margin-bottom: 1.5rem;
    align-items: flex-start; /* Left-align nav links */
}

.offcanvas-nav-link {
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--offcanvas-glass-text); /* Use offcanvas text color */
    text-align: left; /* Left-align text */
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    width: 100%; /* Take full width of parent */
}
.offcanvas-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.offcanvas-nav-link.active {
    background-color: var(--button);
    color: var(--button-text);
}

.offcanvas-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Left-align tabs */
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.offcanvas-tab-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for tabs */
    color: var(--offcanvas-glass-text); /* Use offcanvas text color */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.offcanvas-tab-btn.active {
    background-color: var(--button);
    color: var(--button-text);
    border-color: var(--button);
}
.offcanvas-tab-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Theme Toggle (Header specific styling) */
.header-theme-toggle {
    position: relative; /* Needed for slider's absolute positioning */
    display: inline-block; /* Ensure it takes up space in flex container */
    margin-right: 1rem; /* Space between toggle and hamburger */
    flex-shrink: 0; /* Prevent it from shrinking */
}
/* Fix for the slider appearance */
.theme-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.theme-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
  transition: background 0.4s, box-shadow 0.3s;
  border-radius: 32px;
  box-shadow: 0 2px 8px #e11d4840;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}
.theme-toggle-switch .icon {
  font-size: 1.1em;
  z-index: 2;
  transition: color 0.3s, opacity 0.3s;
  pointer-events: none;
}
.theme-toggle-switch .icon.sun {
  color: #ffb300;
  opacity: 1;
}
.theme-toggle-switch .icon.moon {
  color: #6c63ff;
  opacity: 0.7;
}
.theme-toggle-switch .slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px #e11d4840;
  transition: transform 0.4s, background 0.4s;
  z-index: 1;
}
.theme-toggle-switch input:checked + .slider {
  background: linear-gradient(90deg, #23232b 0%, #e11d48 100%);
}
.theme-toggle-switch input:checked + .slider:before {
  transform: translateX(28px);
  background: #23232b;
}
.theme-toggle-switch input:checked + .slider .icon.sun {
  opacity: 0.5;
}
.theme-toggle-switch input:checked + .slider .icon.moon {
  opacity: 1;
}


/* General button styles */
button {
    padding: 0.9rem 1.5rem;
    background: var(--button);
    color: var(--button-text);
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem; /* Tailwind's rounded-lg */
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, opacity 0.3s, transform 0.2s;
}
button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Promotions Bar */
#promotions-bar {
    width: 90%;
    margin: 1.5rem 5%;
    /* Remove max-width for better responsiveness */
    /* max-width: 1200px; */
    background-color: #e11d48;
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
}

#promotions-bar a {
    display: block; /* Make the entire div clickable */
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#promotions-bar a:hover {
    background-color: rgba(0,0,0,0.1); /* Subtle darkening on hover */
}


/* Bundle Card Styles (Glass-morph effect) - ONLY for index.html */
#bundle-cards-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem 10rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    /* Remove any left/right alignment issues */
    /* Remove transition and fade effects */
    transition: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.bundle-card {
    background: var(--bundle-card-glass-bg); /* Use new glass background variable */
    backdrop-filter: blur(5px); /* Subtle blur for cards */
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--bundle-card-glass-border); /* Subtle border */
    border-radius: 0.75rem; /* Tailwind's rounded-xl */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Subtle shadow */
    overflow: hidden; /* Ensures image corners are rounded */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px; /* Max width for individual card */
    position: relative;
    border: 3px solid transparent !important;
    border-top: 3px solid #e11d48 !important;
    border-radius: 1.25rem !important;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bundle-img {
    width: 100%;
    height: 120px; /* Fixed height for the image */
    object-fit: cover; /* Cover the area */
    display: block;
    border-radius: 0.75rem 0.75rem 0 0; /* Rounded top corners */
}

.bundle-card-content {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 56px; /* Add space for button height + margin */
}

.bundle-network {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: #6b7280; /* Tailwind's gray-500 */
    margin-bottom: 0.25rem;
}

.bundle-size {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* bold */
    color: var(--text);
    margin-bottom: 0.25rem;
}

.bundle-price {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* semibold */
    color: var(--success-color);
}

.buy-now-btn {
  width: 100%;
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 0 0 0.75rem 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 44px;
  height: 44px;
  transition: background 0.3s, color 0.3s;
  box-shadow: none !important;
  border: none;
}
.buy-now-btn:hover {
  background: #e11d48 !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: none;
  min-height: 44px;
  height: 44px;
  box-shadow: none !important;
}


/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Higher than modals */
    transition: opacity 0.3s ease;
    opacity: 1;
}
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Allow clicks through when hidden */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Darker overlay for modals */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0; /* Start hidden for transition */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks through when not active */
}
.modal.modal-active {
    opacity: 1;
    pointer-events: auto; /* Enable clicks when active */
}
.modal.hidden {
    display: none; /* Fallback for initial state or if JS fails */
}

#number-modal, #instruction-modal {
  background: rgba(30, 30, 30, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--card, #fff);
  border: 3px solid #e11d48;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(225,29,72,0.12), 0 1.5px 8px #e11d4815;
  color: var(--text);
  padding: 2rem 2.5rem;
  font-family: 'Comic Neue', cursive, sans-serif;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 380px;
  min-width: 260px;
  margin: 0 auto;
}
body.dark .modal-content, html.dark .modal-content {
  background: rgba(31,41,55,0.95);
  color: #fff;
  border-color: #e11d48;
}
.modal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  width: 100%;
  text-align: center;
}
.modal-content input[type="text"] {
  background: #fff;
  border: 2px solid #e11d48;
  color: #18181c;
  font-size: 1.08rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
}
body.dark .modal-content input[type="text"], html.dark .modal-content input[type="text"] {
  background: #23232b;
  color: #fff;
  border-color: #e11d48;
}
.modal-content input[type="text"]::placeholder {
  color: #b0b0b8;
  opacity: 0.8;
  font-style: italic;
}
body.dark .modal-content input[type="text"]::placeholder, html.dark .modal-content input[type="text"]::placeholder {
  color: #d1d5db;
  opacity: 0.7;
}
.modal-content button {
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 2rem;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px #e11d4840;
  margin-top: 1.2rem;
  padding: 0.85rem 0;
  width: 100%;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.modal-content button:hover {
  background: #b91c1c !important;
  color: #fff !important;
  box-shadow: 0 6px 20px #e11d4860;
}
.close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.5rem;
    color: #e11d48;
    background: none;
    border: none;
    z-index: 10;
}
.close:hover {
    color: var(--error-color);
}
.receipt {
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text);
}
.receipt p {
    margin: 0.5rem 0;
}
.receipt strong {
    color: var(--text);
}

/* Phone Number Validation Feedback */
.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Copy Button for Payment Number */
.payment-number-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-bottom: 0.5rem; /* Adjust margin */
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font size */
    background-color: #4a90e2; /* A shade of blue */
    color: white;
    border-radius: 0.25rem; /* Slightly rounded */
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    width: auto; /* Override 100% width */
    margin-left: 0.5rem; /* Space from number */
    margin-top: 0 !important; /* Override button margin-top */
    flex-shrink: 0; /* Prevent shrinking on small screens */
    position: relative; /* For icon positioning */
    overflow: hidden; /* Hide overflowing icon during transition */
}
.copy-button:hover {
    background-color: #357ABD;
    opacity: 0.9;
}

.copy-icon-svg, .tick-icon-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* Start at scale 1 */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.copy-icon-svg.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.tick-icon-svg {
    opacity: 0; /* Start hidden */
    transform: translate(-50%, -50%) scale(0); /* Start scaled down */
    color: var(--success-color); /* Green for tick */
}

.tick-icon-svg:not(.hidden) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* Business Status */
.business-status-container {
    position: fixed;
    left: 1.5rem; /* 24px */
    bottom: 1.5rem; /* 24px */
    padding: 0.5rem 1.25rem; /* Adjusted padding */
    border-radius: 9999px; /* Full pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999;
    display: flex;
    flex-direction: column; /* Allow details to stack */
    align-items: flex-start; /* Align content to left */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: var(--card);
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 100px; /* Ensure it doesn't collapse too much */
    max-width: 250px; /* Limit width */
    overflow: hidden; /* Hide overflowing text when collapsed */
    border: 3px solid #e11d48 !important;
    border-radius: 1rem !important;
}

.business-status-container.expanded {
    border-radius: 0.75rem; /* Rounded rectangle when expanded */
    padding: 1rem 1.25rem; /* More padding when expanded */
    min-width: 180px;
    align-items: center; /* Center content when expanded */
}

.status-indicator {
    display: flex;
    align-items: center;
    width: 100%; /* Take full width to center dot and text */
    justify-content: center; /* Center the dot and text */
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.business-status-container.open .status-dot {
    background: var(--success-color);
}
.business-status-container.closed .status-dot {
    background: var(--error-color);
}

.status-details {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280; /* Tailwind gray-500 */
    text-align: center;
    width: 100%;
}


/* WhatsApp Button */
#helpButton {
    position: fixed;
    bottom: 1.5rem; /* 24px */
    right: 1.5rem; /* 24px */
    background-color: #25d366; /* WhatsApp green */
    padding: 0.875rem; /* 14px */
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#helpButton:hover {
    transform: scale(1.1);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) { /* md breakpoint for Tailwind */
    body {
        padding-top: 4rem; /* Adjust padding for fixed header on mobile */
    }
    .main-header {
        height: 4rem;
    }
    .header-logo {
        height: 28px;
    }
    .menu-toggle-btn {
        width: 36px;
        height: 36px;
    }
    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        width: 20px;
    }
    .hamburger-icon::before {
        top: -7px;
    }
    .hamburger-icon::after {
        top: 7px;
    }

    /* Bootstrap Offcanvas Mobile Adjustments */
    .offcanvas {
        max-width: 90vw !important; /* Wider on mobile */
        margin: 0 !important; /* No margin on mobile */
        border-radius: 0 !important; /* No rounded corners on mobile for full edge-to-edge */
        top: 0 !important; /* Full height on mobile */
        bottom: 0 !important;
        height: 100vh !important;
    }
    .offcanvas-start.showing, .offcanvas-start.show:not(.hiding) {
        transform: translateX(0) !important; /* No margin offset on mobile */
    }

    .offcanvas-body {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .offcanvas-header .btn-close {
        font-size: 1.2rem; /* Smaller close button */
    }
    .offcanvas-title {
        font-size: 1.25rem; /* Smaller title */
    }
    .offcanvas-nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
    }
    .offcanvas-nav-link.active {
        font-weight: bold;
        color: #e11d48 !important;
        background: transparent;
        border-bottom: 2.5px solid #e11d48;
    }
    .offcanvas-tabs {
        gap: 0.5rem;
    }
    .offcanvas-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    /* Theme toggle in header is already small and green */

    #bundle-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Two cards per line on smaller screens */
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    .bundle-card {
        max-width: 100%; /* Allow cards to fill column width */
    }
    .bundle-img {
        height: 100px; /* Slightly smaller image on mobile */
    }
    .bundle-size {
        font-size: 1.25rem;
    }
    .bundle-price {
        font-size: 1rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .business-status-container {
        left: 1rem;
        bottom: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .business-status-container.expanded {
        padding: 0.8rem 1rem;
    }
    .status-dot {
        width: 10px;
        height: 10px;
    }
    #helpButton {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    #promotions-bar {
        margin: 1.5rem 1rem;
    }
}

#number-modal-title{
  margin-top:20px;
}

/* Page Loader Styles */
.page-loader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  color: #222;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.5s ease;
}
body.dark .page-loader-overlay {
  background: #18181b;
  color: #fff;
}
.page-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.page-loader-message {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-loader-message .loader-heading {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.page-loader-message .loader-subtext {
  font-size: 1.1rem;
  font-weight: normal;
}
.page-loader-spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #ff1744;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.site-footer {
  border-top: 2px solid #e11d48;
  background: linear-gradient(0deg, #18181b 0%, #23232b 100%);
  color: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem 1.5rem 90px 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: 4rem; /* Increased for extra space at the bottom */
}
.site-footer h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #ff1744;
  text-shadow: 0 2px 8px #fff2, 0 1px 0 #e11d48;
}
.site-footer p {
  margin-bottom: 0.25rem;
  color: #e0e0e0;
  font-size: 1.08rem;
  text-shadow: 0 1px 4px #0008;
}
.site-footer .text-sm {
  font-size: 1.08rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 1px 4px #0008;
}
.site-footer a {
  color: #ff1744 !important;
  font-weight: bold;
  text-decoration: none !important;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff !important;
  background: #e11d48;
  border-radius: 0.25rem;
  padding: 0 0.25em;
}
.site-footer .footer-emoji {
  font-size: 1.2em;
  color: #ffeb3b;
  filter: drop-shadow(0 1px 2px #e11d48cc);
  margin: 0 0.1em;
}
@media (max-width: 600px) {
  .site-footer {
    padding: 1rem 0.5rem 90px 0.5rem;
    border-radius: 1rem 1rem 0 0;
  }
  .site-footer h2 {
    font-size: 1.3rem;
  }
}
body.dark .site-footer {
  background: linear-gradient(0deg, #23232b 0%, #18181b 100%);
  color: #e0e0e0;
}
body.dark .site-footer h2 {
  color: #ff8fa3;
  text-shadow: 0 2px 8px #0006, 0 1px 0 #e11d48;
}
body.dark .site-footer p,
body.dark .site-footer .text-sm {
  color: #e0e0e0;
  text-shadow: 0 1px 4px #000a;
}
body.dark .site-footer a {
  color: #ff8fa3 !important;
}
body.dark .site-footer a:hover {
  color: #fff !important;
  background: #e11d48;
}
body.dark .site-footer .footer-emoji {
  color: #ffe066;
  filter: drop-shadow(0 1px 2px #e11d48cc);
}

.main-header .main-nav-link.active {
    color: #e11d48 !important;
    font-weight: 700;
    position: relative;
}
.main-header .main-nav-link.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 4px;
    background: #e11d48;
    border-radius: 2px;
    box-shadow: 0 2px 8px #e11d4840;
}

/* Category Bar - Reduce gap and button size */
.categories-bar {
  gap: 0.25rem !important; /* Minimal gap between buttons */
}
.category-btn {
  padding: 0.4rem 1rem !important; /* Smaller padding */
  font-size: 0.95rem !important; /* Slightly smaller text */
  min-width: 72px;
  min-height: 32px;
}
@media (max-width: 600px) {
  .category-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.92rem !important;
    min-width: 60px;
    min-height: 28px;
  }
}

.category-btn.active[data-network="MTN"] {
    background: #ffe600 !important;
    color: #18181c !important;
    box-shadow: 0 2px 8px #ffe60055;
    border: none;
}
.category-btn.active[data-network="AirtelTigo"] {
    background: linear-gradient(90deg, #e11d48 0%, #1e40af 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px #1e40af55;
    border: none;
}
.category-btn.active[data-network="Telecel"] {
    background: #e11d48 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px #e11d4855;
    border: none;
}

.bundle-card[data-network="MTN"] {
  border: 3px solid #ffe600 !important;
}
.bundle-card[data-network="AirtelTigo"] {
  border-top: 3px solid #1e40af !important;
  border-bottom: 3px solid #1e40af !important;
  border-left: 3px solid #e11d48 !important;
  border-right: 3px solid #e11d48 !important;
}
.bundle-card[data-network="Telecel"] {
  border-top: 3px solid #e11d48 !important;
  border-bottom: 3px solid #e11d48 !important;
  border-left: 3px solid #fff !important;
  border-right: 3px solid #fff !important;
}

.categories-bar {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 3px solid #e11d48;
    border-radius: 1rem;
    background: #ffe4e6;
    box-shadow: 0 2px 8px #e11d4815;
    padding: 0.5rem 1rem;
}
body.dark .categories-bar, html.dark .categories-bar {
    background: #2a0036;
    border-color: #e11d48;
    box-shadow: 0 2px 8px #e11d4840;
}

/* Remove any scroll-triggered or progressive content loading */
@keyframes fadeInDown {}
@keyframes fadeInUp {}

/* Unselectable text for non-interactive elements */
.main-header, .main-nav, .main-nav-link, .categories-bar, .category-btn, .bundle-card, .bundle-card-content, .bundle-network, .bundle-size, .bundle-price, .site-footer, .promotions-bar, .business-status-container, .status-indicator, .status-details, .header-logo, .theme-toggle-switch, .offcanvas-nav-link, .offcanvas-tab-btn, .product-card, .product-title, .product-info, .product-price, .product-img, .product-overlay, .shop-search-heading, .alert, .footer-emoji, h1, h2, h3, h4, h5, h6, label, .shop-status-alert, .shop-search-heading, .status-dot, .status-text, .status-details, .page-loader-spinner {
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -moz-user-select: none !important;
}

/* Allow selection for interactive elements */
input, textarea, button, a, .form-control, .search-input, .buy-now-btn, .copy-button {
  user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  -moz-user-select: text !important;
}

.bundle-card, .product-card {
  background: rgba(255,249,196,0.78); /* More yellowish glass for light mode */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.dark .bundle-card, body.dark .product-card {
  background: rgba(31,41,55,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.help-instructions-btn {
  background: #fffde4;
  color: #b91c1c;
  font-weight: 700;
  padding: 0.55em 1.1em;
  border-radius: 0.6em;
  font-size: 1em;
  box-shadow: 0 2px 8px #e11d4822;
  cursor: pointer;
  border: 2.5px solid #e11d48;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
body.dark .help-instructions-btn {
  background: #e11d48;
  color: #fff;
  border: 2.5px solid #111827;
}
.help-instructions-btn:focus {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

.whatsapp-link {
  color: #25d366;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: color 0.18s, text-decoration 0.18s;
}
.whatsapp-link:hover, .whatsapp-link:focus {
  text-decoration: underline;
  color: #128c7e;
}
body.dark .whatsapp-link {
  color: #25d366;
}

#recipient-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(30,30,30,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
#recipient-modal.hidden { display: none; }
#recipient-modal .modal-content {
  background: rgba(255,255,255,0.85);
  border-radius: 1.2em;
  box-shadow: 0 8px 32px #0002, 0 2px 8px #e11d4822;
  border: 2.5px solid #e11d48;
  padding: 1.5em 1.2em 1.2em 1.2em;
  min-width: 280px;
  max-width: 90vw;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1f2937;
}
body.dark #recipient-modal .modal-content {
  background: rgba(31,41,55,0.92);
  color: #fff;
  border: 2.5px solid #fff2;
}
#recipient-modal .close {
  position: absolute;
  top: 0.5em;
  right: 0.8em;
  font-size: 1.5em;
  color: #e11d48;
  cursor: pointer;
  font-weight: 900;
  background: none;
  border: none;
}
#recipient-modal input[type="text"] {
  font-size: 1em;
  padding: 0.5em 0.8em;
  border-radius: 0.5em;
  border: 1.5px solid #e5e7eb;
  width: 100%;
  margin-bottom: 0.4em;
  background: #fffde4;
  color: #1f2937;
}
body.dark #recipient-modal input[type="text"] {
  background: #18181c;
  color: #fff;
  border: 1.5px solid #fff2;
}
#recipient-modal button {
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.5em;
  padding: 0.6em 1.2em;
  font-size: 1em;
  margin-top: 0.4em;
  cursor: pointer;
  transition: background 0.2s;
}
#recipient-modal button:disabled {
  background: #e5e7eb;
  color: #b91c1c;
  cursor: not-allowed;
}