/* Overlay */
#sliderSidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}
#sliderSidebarOverlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Sidebar Panel */
#sliderSidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 360px;
    height: 100vh;
    background: #0b0e16;
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0px 20px rgba(0, 255, 255, 0.25);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

#sliderSidebar.active {
    right: 0;
}

/* Close Button */
#sliderSidebarClose {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
}

/* Content */
.slider-sidebar-content {
    margin-top: 50px;
    padding: 20px;
    overflow-y: auto;
    color: white;
}

/* Top Emojis */
.slider-sidebar-top-bar {
    border-top: 4px solid #ff00ff;
    padding: 10px;
}
.emoji-row {
    font-size: 26px;
    text-align: center;
}

/* Title */
.slider-sidebar-title {
    font-size: 21px;
    margin-top: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

/* QR + Link */
.slider-sidebar-qr {
    display: flex;
    gap: 12px;
    align-items: center;
}
.slider-sidebar-link-input {
    width: 150px;
    padding: 6px;
    border-radius: 6px;
    border: none;
}
.copy-link-btn {
    background: #007aff;
    padding: 6px 10px;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* Sections */
.ssb-sections .section {
    background: #111827;
    margin-top: 16px;
    padding: 10px;
    border-radius: 10px;
    border-right: 3px solid #00d9ff;
}
.section.locked {
    opacity: 0.65;
}

.ssb-section.locked::before {
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 15px rgba(255,215,0,0.25);
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 10px rgba(255,215,0,0.25);
    opacity: 0.5;
}

.ssb-section:not(.locked)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    box-shadow: 0 0 10px var(--border-color);
    opacity: 0.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: bold;
}
.section-links {
    margin-top: 10px;
}
.section-links li {
    margin-bottom: 6px;
    cursor: pointer;
}
.locked-link {
    pointer-events: none;
    color: #f78;
}

/* Premium Banner */
.premium-banner {
    margin-top: 20px;
    padding: 10px;
    background: #ff00ff44;
    border: 1px solid #ff00ff;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}


/* glassy modern */
/* ===============================
   OVERLAY
================================ */

#sliderSidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

#sliderSidebarOverlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* ===============================
   SIDEBAR PANEL
================================ */

#sliderSidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.38);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-left: 2px solid var(--border-color);
    box-shadow: -5px 0px 20px rgba(0, 255, 255, 0.25);
}

#sliderSidebar.active {
    right: 0;
}


/* ===============================
   CLOSE BUTTON
================================ */

#sliderSidebarClose {
    position: absolute;
    top: 15px;
    left: 15px;

    font-size: 21px;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(6px);
    transition: 0.25s;
}

#sliderSidebarClose:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg);
}


/* ===============================
   CONTENT AREA
================================ */

#sliderSidebarContent {
    padding: 60px 25px 40px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    box-shadow: -5px 0px 20px rgba(0, 255, 255, 0.25);
    background: var(--panel-bg);
}

#sliderSidebarContent::-webkit-scrollbar {
    width: 6px;
}
#sliderSidebarContent::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}


/* ===============================
   HEADER
================================ */

.slider-sidebar-inner {
    color: white;
    font-family: "IRANSans", sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.slider-sidebar-header {
    margin-bottom: 25px;
    text-align: center;
}

.slider-sidebar-emojis {
    font-size: 30px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.slider-sidebar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.slider-sidebar-desc {
    opacity: 0.8;
    font-size: 15px;
}


/* ===============================
   MAIN LINK AREA
================================ */

.slider-sidebar-main-link {
    margin: 25px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.visit-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #6a5af9, #9e44ff);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(138, 72, 255, 0.55);
    transition: 0.25s;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(138, 72, 255, 0.75);
}

.copy-link-btn {
    padding: 10px 14px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.25s;
}

.copy-link-btn:hover {
    background: rgba(255,255,255,0.25);
}


/* ===============================
   QR CONTAINER
================================ */

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.qr-code {
    width: 128px;
    height: 128px;
    background: rgba(255,255,255,0.12);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    z-index: 1000;
}


/* ===============================
   MULTI LINKS
================================ */

.slider-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.slider-sidebar-link {
    padding: 12px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;

    color: white;
    text-decoration: none;
    font-size: 15px;

    backdrop-filter: blur(8px);
    transition: 0.25s;

    display: block;
}

.slider-sidebar-link:hover {
    background: rgba(255,255,255,0.22);
    transform: translateX(-4px);
}


/* ===============================
   SECTIONS
================================ */

.ssb-section {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 15px;
    backdrop-filter: blur(10px);
    transition: 0.25s;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ssb-section.locked {
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 15px rgba(255,215,0,0.25);
}

.ssb-section.locked::before {
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 15px rgba(255,215,0,0.25);
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 10px rgba(255,215,0,0.25);
    opacity: 0.5;
}

.ssb-section:not(.locked)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
    box-shadow: 0 0 10px var(--border-color);
    opacity: 0.5;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.lock {
    font-size: 16px;
}

.section-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-link {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
    display: block;
    text-align: right;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    /* background: rgba(0, 0, 0, 0.2); */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-link:hover:not(.locked) {
    color: var(--html-color);
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.section-link.locked {
    opacity: 0.5;
    background: rgba(255,255,255,0.08);
}


/* ===============================
   PREMIUM BADGE
================================ */

.premium-badge {
    text-align: center;
    padding: 12px;
    border-radius: 10px;

    background: linear-gradient(135deg, #ffdd57, #ffb300);
    color: #5e4500;
    font-size: 16px;
    font-weight: 700;

    margin-top: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
}


/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 600px) {
    #sliderSidebar {
        width: 100%;
        right: -100%;
    }

    #sliderSidebar.active {
        right: 0;
    }

    .visit-btn,
    .copy-link-btn {
        flex: 1;
        text-align: center;
    }

    #sliderSidebarContent .section-link {
        padding: 8px;
    }
}


/* new */
/* Add this to your existing CSS file, e.g., slider-sidebar.css */

/* Glassmorphism base style for the sidebar itself */
.sliderSidebar {
  background: rgba(10, 10, 18, 0.45); /* Dark, transparent background */
  backdrop-filter: blur(18px); /* The glass effect */
  -webkit-backdrop-filter: blur(18px); /* For Safari */
  border: 1px solid rgba(255, 255, 255, 0.10); /* Subtle border */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55), /* Outer shadow */
    inset 0 1px 0 rgba(255, 255, 255, 0.06); /* Inner highlight */
  transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Smooth transitions */
}

/* Styles for individual content blocks */
.ssb-block {
  margin-top: 14px; /* Space between blocks */
  border-radius: 14px; /* Rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
  background: rgba(0, 0, 0, 0.22); /* Slightly darker background for blocks */
  padding: 12px;
  transition: background 0.2s ease;
}

.ssb-blockTitle {
  margin: 0 0 8px;
  font-size: 13px;
  opacity: 0.9;
  color: #eee; /* Light color for titles */
  font-weight: 500;
}

/* Specific style for text blocks */
.ssb-textBlock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); /* Subtle gradient */
}

.ssb-text {
  margin: 0;
  line-height: 1.9;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88); /* Readable text color */
  white-space: pre-wrap; /* Preserves line breaks from JSON */
}

/* Styles for link containers (single or multiple) */
.ssb-linksBlock .ssb-linksGrid {
  display: grid;
  grid-template-columns: 1fr; /* Single column by default */
  gap: 10px; /* Space between links */
}

/* Style for individual link buttons */
.ssb-linkBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  /* Gradient background for links */
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.55), rgba(255, 0, 122, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease;
}

.ssb-linkBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.7), rgba(255, 0, 122, 0.7)); /* Brighter on hover */
}

.ssb-linkTitle {
  font-size: 13px;
  font-weight: 600;
}
.ssb-linkIcon {
  opacity: 0.9;
  font-size: 14px;
}

/* Styles for sections */
.ssb-section {
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18); /* Slightly different background for sections */
  border: 1px dashed rgba(255, 255, 255, 0.12); /* Dashed border for sections */
  margin-top: 10px;
  transition: opacity 0.2s ease;
}

.ssb-sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ssb-sectionTitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}

.ssb-lockBadge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px; /* Fully rounded */
  background: rgba(255, 215, 0, 0.18); /* Gold-like background */
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700; /* Gold text color */
  font-weight: 500;
}

/* Style for locked sections */
.ssb-section.is-locked {
  opacity: 0.72; /* Slightly faded */
}
.ssb-section.is-unavailable {
    opacity: 0.6; /* More faded if section itself is unavailable */
}

.ssb-sectionList {
  margin: 0; /* Reset default ul margin */
  padding-right: 18px; /* Space for bullets */
  list-style: disc; /* Standard bullets */
  padding-left: 20px; /* Indentation */
}
.ssb-sectionList li {
  margin: 6px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}
/* Style for links within locked sections */
.ssb-sectionList li.is-unavailable {
    color: rgba(255, 255, 255, 0.45); /* Faded out */
    text-decoration: line-through; /* Strikethrough */
}

/* Ensure the QR code container and buttons are styled appropriately */
.qr-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-sidebar-main-link {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 0 12px; /* Add padding if needed */
}

.visit-btn, .copy-link-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #fff;
}

.visit-btn {
    background: linear-gradient(90deg, #ff6a00, #ff007a);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}
.visit-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.copy-link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Premium badge */
.premium-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
}
.premium-badge span { font-size: 14px; }

