:root {
    --bg-color: #f0f2f5;
    --title-color: #1a1a1a;
    --text-color: #333333;
    --card-bg: #ffffff;
    --secondary-text: rgba(0, 0, 0, 0.5);
    --accent-color: #007aff;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --title-color: #dddad5;
        --text-color: #c6c1b9;
        --card-bg: #1c1c1e;
        --secondary-text: rgba(255, 255, 255, 0.4);
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-color);
    /* Prevent theme color from showing through at top on mobile */
    height: 100%;
    width: 100%;
    /* Force background to cover entire viewport including status bar area */
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Explicitly prevent any blue line at top */
    border-top: none !important;
    box-shadow: none !important;
}

/* Prevent any blue line at the very top of viewport */
html::before,
html::after,
body::before,
body::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Ensure no gap at top on mobile */
    margin: 0;
    padding: 0;
    position: relative;
    /* Explicitly prevent any blue line at top */
    border-top: none !important;
    box-shadow: none !important;
    /* Ensure background covers status bar area */
    background-image: none !important;
}

h1,
h2 {
    margin-bottom: 0.78rem;
}

p {
    margin-bottom: 0.78rem;
    margin-top: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

.swiper {
    width: 100%;
    height: 100%;
}

/* Section Swiper (Horizontal) */
.section-swiper {
    width: 100%;
    height: 100%;
}

.section-swiper .swiper-slide {
    height: 100%;
    overflow: hidden;
}

/* Vertical Swiper for each section */
.section-vertical-swiper {
    width: 100%;
    height: 100%;
}

/* Vertical Slide Styling - Main slides only (not carousel items) */
.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    /* Make the slide itself transparent so the pseudo-element shows through */
    background-color: transparent;
    height: 100%;
    overflow: clip;
}

/* For both themes: use a pseudo-element with vibrant palette color at 17% opacity */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--palette-light-vibrant, var(--bg-color));
    opacity: 0.17;
    z-index: -1;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {

    /* For dark theme: use dark vibrant instead of light vibrant */
    .swiper-slide::before {
        background-color: var(--palette-dark-vibrant, #1a1a1a);
    }
}

/* Override: Carousel items should always be transparent */
.related-swiper .swiper-slide {
    background-color: transparent !important;
}

.related-swiper .swiper-slide::before {
    display: none !important;
}

.news-card {
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: calc(100vh - 110px); /* Full height minus top and bottom bars (50px top + 60px bottom) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-width: 0;
    /* Allow text to wrap properly */
    overflow-wrap: break-word;
    padding-bottom: 0; /* No extra padding needed since section swiper handles spacing */
}

.news-main {
    padding: 24px;
    min-width: 0;
    /* Allow text to wrap properly */
    max-width: 100%;
}

/* Header Section */
.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--secondary-text);
    flex-shrink: 0;
}

.favicon {
    width: 20px;
    height: 20px;
    border-radius: 40px;
    object-fit: cover;
}

.source-name {
    font-weight: 600;
    color: var(--text-color);
}

.time-ago {
    /* Inherits color from parent */
    display: inline;
}

/* Main Headline */
.main-headline {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
    flex-shrink: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.main-headline a {
    color: var(--title-color);
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    width: 100%;
}

/* Horizontal Carousel (Related Articles) */
.related-swiper {
    width: 100%;
    position: absolute;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)); /* Account for Android navigation bar (60px bar + spacing) */
    left: 0;
    right: 0;
    height: auto;
    min-height: 160px;
    max-height: 250px; /* Increased to accommodate more text */
    padding-bottom: 4px;
    margin-top: auto;
    flex-shrink: 0;
}

.related-swiper .swiper-slide {
    padding: 0;
    height: auto;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: calc(85vw - 24px);
    align-items: flex-start;
    min-width: 0;
    /* Allow flex items to shrink and wrap text */
    max-width: 100%;
    /* Carousel items should always have transparent background */
    background-color: transparent !important;
}

/* Ensure theme classes work on carousel slides */
.related-swiper .swiper-slide[class*="theme-"] {
    /* Theme CSS variables cascade to child elements for typography */
    min-width: 0;
    /* Allow flex items to shrink below content size */
}


.related-publisher {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-headline {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title-color);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Allow text to wrap naturally instead of clamping */
    display: block;
    max-height: none;
}

.related-headline a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    width: 100%;
}

/* Vertical List Layout (Related Articles) */
.related-list {
    width: 100%;
    position: absolute;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)); /* Account for Android navigation bar (60px bar + spacing) */
    left: 0;
    right: 0;
    padding: 0 24px;
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 210px); /* Adjust based on card header height (50px top + 60px bottom + spacing) */
    overflow-y: auto;
}

.related-list-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    background-color: transparent !important;
}

/* Ensure theme classes work on list items */
.related-list-item[class*="theme-"] {
    /* Theme CSS variables cascade to child elements for typography */
    min-width: 0;
}

/* Vertical layout specific styles */
.related-list .related-headline {
    /* Desktop: smaller font size */
    font-size: 0.9rem;
    /* Prevent mobile browsers from auto-adjusting text size */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: use 1rem to match what mobile browsers enforce anyway */
@media (max-width: 768px) {
    .related-list .related-headline {
        font-size: 1rem; /* 16px - matches mobile browser minimum */
    }
}

.related-list .related-publisher {
    margin-bottom: 6px;
}

/* Reader Overlay */
.reader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 1000;
    /* Remove overflow-y: auto from here - article content will scroll separately */
    overflow: hidden;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    /* Prevent any dragging or manipulation of the overlay */
    touch-action: none; /* Prevent all touch gestures on overlay itself */
    user-select: none; /* Prevent text selection on overlay */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    will-change: transform; /* Only for the slide-in animation */
}

.reader-overlay.reader-visible {
    transform: translateY(0) !important; /* Force fixed position - no dragging */
    pointer-events: auto;
    /* Once visible, the overlay should be completely fixed - no dragging */
    /* Keep touch-action: none to prevent dragging, but allow children to handle their own */
    touch-action: none; /* Prevent dragging overlay, children override this */
    will-change: auto; /* No longer animating, so remove will-change */
    /* Lock transform - prevent any manipulation */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.reader-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    /* Make reader-inner scrollable */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    width: 100%;
    /* Allow scrolling only on the inner content, not the overlay */
    touch-action: pan-y; /* Allow vertical panning (scrolling) only - overrides parent's touch-action: none */
    overscroll-behavior: contain; /* Prevent scroll chaining to overlay */
    /* Re-enable text selection inside scrollable content */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Error state - centered and styled */
.reader-error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px); /* Full height minus bottom bar */
    padding: 24px;
}

.error-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 110px); /* Full height minus top and bottom bars (50px top + 60px bottom) */
}

.error-icon-container svg {
    opacity: 0.5;
}

/* Article wrapper in reader */
.reader-overlay article {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
    order: 1;
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--secondary-text);
}

.reader-header button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.reader-header a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.reader-headline {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--title-color);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Pinch-to-zoom support - smooth font-size transitions */
    transition: font-size 0.2s ease-out;
}

.reader-content {
    line-height: 1.6;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Pinch-to-zoom support - smooth font-size transitions */
    transition: font-size 0.2s ease-out, line-height 0.2s ease-out;
}

.reader-content img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar hiding */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}



/* Additions for Top Bar and Region Sheet */

/* Loader Bar */
.loader {
    width: 100%;
    height: 4.8px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    z-index: 1;
}

.loader::after {
    content: '';
    width: 192px;
    height: 4.8px;
    background: #FFF;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: animloader 2s linear infinite;
}

@keyframes animloader {
    0% {
        left: 0;
        transform: translateX(-100%);
    }
    100% {
        left: 100%;
        transform: translateX(0%);
    }
}

@media (prefers-color-scheme: dark) {
    .loader {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .loader::after {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Hide loader by default */
.loader.hidden {
    display: none;
}

/* Main Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none; /* Explicitly no top border */
    transition: transform 0.3s ease;
    /* Ensure no blue line appears above */
    box-shadow: none;
}

@media (prefers-color-scheme: dark) {
    .top-bar {
        background: rgba(28, 28, 30, 0);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.section-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    scroll-behavior: smooth;
    scroll-padding: 0 16px; /* Add padding for scroll-into-view */
}

.section-tabs::-webkit-scrollbar {
    display: none;
}

.section-tab {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    padding-bottom: 8px;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s, border-bottom 0.2s;
    user-select: none;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.section-tab:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.section-tab.active {
    color: var(--text-color);
    background-color: transparent;
    border-bottom: 2px solid var(--text-color);
    border-radius: 0;
}

@media (prefers-color-scheme: dark) {
    .section-tab:active {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .section-tab.active {
        background-color: transparent;
        border-bottom: 2px solid var(--text-color);
    }
}

/* Main Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0px); /* Account for Android navigation bar */
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .bottom-bar {
        background: rgba(28, 28, 30, 0);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.region-selector {
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.2s;
    user-select: none;
}

.region-selector:active {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .region-selector:active {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* News card padding is already set above */

/* Region Sheet */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    will-change: transform;
}

.sheet.partial {
    height: calc(5 * 48px + 80px);
    max-height: calc(5 * 48px + 80px);
}

.sheet.partial .sheet-content {
    overflow-y: hidden;
    touch-action: none;
}

.sheet:not(.partial) .sheet-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.sheet-handle-bar {
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none; /* Always allow dragging on handle */
    user-select: none;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--secondary-text);
    border-radius: 2px;
    opacity: 0.5;
}

.sheet-content {
    overflow-y: auto;
    padding: 0 24px 24px 24px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.sheet-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: var(--title-color);
}

.region-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.region-item {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    .region-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.region-item:last-child {
    border-bottom: none;
}

.region-item.selected {
    color: var(--text-color);
    font-weight: 600;
}

.region-name {
    flex: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-lang {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-left: 8px;
    font-weight: 400;
    /* Ensure it's not bold even if selected */
}

.region-item.selected .region-lang {
    color: var(--secondary-text);
}

.checkmark {
    margin-left: 8px;
    margin-right: 0;
    color: var(--text-color);
    font-weight: bold;
    flex: 1;
}



/* Article Bottom Bar */
.article-bottom-bar {
    /* Use relative positioning within flex container */
    position: relative;
    height: 60px;
    min-height: 60px;
    flex-shrink: 0;
    background: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Above reader overlay content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    /* Always visible, no hiding */
    /* Add backdrop blur for better visibility */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    order: 2;
}

@media (prefers-color-scheme: dark) {
    .article-bottom-bar {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Hide original reader header since we have a new top bar */
.reader-header {
    display: none;
}

/* Adjust reader content padding */
.reader-inner {
    padding-bottom: 80px;
    /* 60px bar + 20px padding */
}

.article-bar-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--title-color);
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.article-bar-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-bar-icon svg {
    width: 24px;
    height: 24px;
}

/* Article header in reader (like news-header but without favicon) */
.article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--secondary-text);
    flex-shrink: 0;
}

.article-header .source-name {
    font-weight: 600;
    color: var(--text-color);
}

.article-header .time-ago {
    display: inline;
}

/* Plainsheet (bottom sheet library) styling */
.pbs-root {
    z-index: 1002 !important; /* Above bottom bar (100) and reader (1000-1001) */
}

.pbs-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1001 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
    /* Hidden by default - only show when sheet is open */
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Show backdrop when sheet is open - plainsheet manages visibility via data attributes or classes */
.pbs-root[data-state="open"] ~ .pbs-backdrop,
.pbs-root[data-state="open"] .pbs-backdrop,
.pbs-backdrop[data-state="open"],
.pbs-backdrop[data-open],
.pbs-root[data-open] ~ .pbs-backdrop,
.pbs-root[data-open] .pbs-backdrop,
.pbs-root:not([data-state="closed"]) .pbs-backdrop:not([data-state="closed"]),
.pbs-backdrop:not([data-state="closed"]):not([style*="display: none"]) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.pbs-container {
    z-index: 1002 !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.pbs-content-wrapper {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    padding: 0 !important; /* Remove default padding, we'll add our own */
    width: 100% !important; /* Full width */
}

/* Add proper padding to content inside the wrapper - only to direct children that need it */
.pbs-content-wrapper > .sheet-header {
    padding: 24px 24px 16px 24px !important;
}

.pbs-content-wrapper > .region-list,
.pbs-content-wrapper > ul.region-list {
    padding: 0 !important; /* Remove horizontal padding for full width */
    margin: 0 !important;
}

.pbs-handle-bar {
    background-color: var(--secondary-text) !important;
    opacity: 0.5 !important;
}

/* Dark mode for plainsheet */
@media (prefers-color-scheme: dark) {
    .pbs-container {
        background-color: var(--bg-color) !important;
        color: var(--text-color) !important;
    }
    
    .pbs-content-wrapper {
        background-color: var(--bg-color) !important;
        color: var(--text-color) !important;
    }
    
    .pbs-backdrop {
        background-color: rgba(0, 0, 0, 0.7) !important;
    }
}

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.pull-to-refresh-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.1s ease;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section-vertical-swiper {
    position: relative;
}