/* ALL THE CSS STYLES REMAIN EXACTLY THE SAME - NO CHANGES NEEDED */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--primary: #2c5aa0;
--primary-light: #4a76c4;
--primary-dark: #1a3a6e;
--secondary: #e74c3c;
--accent: #27ae60;
--light: #f8f9fa;
--dark: #2c3e50;
--gray: #7f8c8d;
--gold: #f39c12;
--shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
--shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
--transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
--border-radius: 16px;
}

body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background-color: #f0f2f5;
color: var(--dark);
line-height: 1.6;
min-height: 100vh;
padding-bottom: 80px;
display: flex;
flex-direction: column;
}
/* LOADER STYLES - NO CHANGES NEEDED */
#initial-loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #f0f2f5;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    position: relative;
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.loader {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color:none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.8s ease;
}

.loader-text {
    font-size: 0.59em;
    font-weight: bold;
    color: #3498db;
    z-index: 1;
    animation: pulse 1.5s ease-in-out infinite alternate;
    background: transparent;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    }


/* Ensure the spinner animations are on top of transparent background */
.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner:nth-child(2) {
    width: 130%;
    height: 130%;
    border-top-color: transparent;
    border-right-color: #2ecc71;
    animation: spinReverse 2s linear infinite;
}

.spinner:nth-child(3) {
    width: 80%;
    height: 80%;
    border-top-color: transparent;
    border-left-color: #e74c3c;
    animation: spin 1s linear infinite;
}
.pulse {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: rgba(52, 152, 219, 0.1);
animation: expand 2s ease-out infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes pulse {
0% {
transform: scale(1);
text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
100% {
transform: scale(1.1);
text-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
}
}

@keyframes expand {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(1.5);
opacity: 0;
}
}

.fade-out {
opacity: 0;
transform: scale(1.5);
pointer-events: none;
}


  /* ... ALL OTHER CSS STYLES REMAIN EXACTLY THE SAME ... */
.top-bar {
background-color: var(--primary-dark);
color: white;
padding: 0.2rem 0;
font-size: 0.75rem;
}

.top-bar-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.date-display {
display: flex;
align-items: center;
gap: 0.5rem;
}

.social-links {
display: flex;
gap: 1rem;
}

.social-links a {
color: rgba(255, 255, 255, 0.8);
transition: var(--transition);
}

header {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
position: sticky;
top: 0;
z-index: 1000;
}

.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0.3rem 1.5rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}

.logo-section {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.6rem;
}

.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}

.logo-icon {
width: 28px;
height: 28px;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 0.9rem;
}

.logo-text h1 {
font-size: 1.2rem;
font-weight: 800;
color: var(--primary);
letter-spacing: -0.5px;
}

.logo-text p {
font-size: 0.6rem;
color: var(--gray);
margin-top: -2px;
}

.user-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}

.subscribe-btn {
background: linear-gradient(135deg, var(--secondary), #c0392b);
color: white;
border: none;
padding: 0.3rem 0.8rem;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.3rem;
font-size: 0.8rem;
}

.search-container {
display: flex;
gap: 0.5rem;
align-items: center;
}

.search-box {
flex: 1;
position: relative;
}

.search-box input {
width: 100%;
padding: 0.5rem 1rem 0.5rem 2.3rem;
border: 2px solid #e0e0e0;
border-radius: 30px;
font-size: 0.8rem;
transition: var(--transition);
outline: none;
}

.search-icon {
position: absolute;
left: 0.8rem;
top: 50%;
transform: translateY(-50%);
color: var(--gray);
}

.categories {
display: flex;
overflow-x: auto;
gap: 0.2rem;
padding: 0.1rem 0;
scrollbar-width: none;
}

.categories::-webkit-scrollbar {
display: none;
}

.category-btn {
background: white;
border: 2px solid #e0e0e0;
color: var(--dark);
padding: 0.3rem 0.7rem;
border-radius: 30px;
cursor: pointer;
white-space: nowrap;
transition: var(--transition);
font-weight: 500;
display: flex;
align-items: center;
gap: 0.2rem;
font-size: 0.8rem;
}

.category-btn:hover, .category-btn.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}

/* UPDATED: Plasma TV Slideshow - Full Width & Responsive */
.trending-slideshow {
width: 100%;
margin: 1.5rem 0;
position: relative;
}

.slideshow-wrapper {
max-width: 1600px;
margin: 0 auto;
padding: 0 1.5rem;
}

.slideshow-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.slideshow-title {
font-size: 1.8rem;
font-weight: 700;
color: var(--primary-dark);
display: flex;
align-items: center;
gap: 0.8rem;
}

.slideshow-title i {
color: var(--gold);
background: rgba(243, 156, 18, 0.1);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.slideshow-container {
position: relative;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border: 8px solid #0f0f1a;
height: 500px;
width: 100%;
}

.slideshow-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
z-index: 2;
pointer-events: none;
}

.slideshow-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.slideshow-slide.active {
opacity: 1;
}

.slide-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}

.slide-background img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.7);
}

.slide-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 3rem;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
color: white;
z-index: 2;
}

.slide-title {
font-size: 2.8rem;
font-weight: 800;
line-height: 1.2;
margin: 0;
text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.slideshow-nav {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 1rem;
z-index: 3;
}

.slide-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(255,255,255,0.3);
cursor: pointer;
transition: var(--transition);
}

.slide-dot.active {
background: var(--gold);
transform: scale(1.2);
}

.slideshow-arrows {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 2rem;
transform: translateY(-50%);
z-index: 3;
}

.slide-arrow {
background: rgba(255,255,255,0.2);
border: none;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
backdrop-filter: blur(10px);
}

.slide-arrow:hover {
background: rgba(255,255,255,0.3);
transform: scale(1.1);
}

.slideshow-indicator {
position: absolute;
top: 2rem;
right: 2rem;
background: rgba(0,0,0,0.5);
color: white;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
z-index: 3;
backdrop-filter: blur(10px);
}

main {
max-width: 1200px;
margin: 1.5rem auto;
padding: 0 1.5rem;
flex: 1;
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}

.section-title {
font-size: 1.8rem;
font-weight: 700;
color: var(--primary-dark);
display: flex;
align-items: center;
gap: 0.8rem;
}

.section-title i {
color: var(--secondary);
background: rgba(231, 76, 60, 0.1);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.view-all {
color: var(--primary);
font-weight: 600;
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
transition: var(--transition);
}

.news-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}

.news-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
display: flex;
flex-direction: column;
position: relative;
}

.news-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-hover);
}

.card-image {
height: 200px;
overflow: hidden;
position: relative;
}

.card-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.7s ease;
}

.news-card:hover .card-image img {
transform: scale(1.1);
}

.card-badge {
position: absolute;
top: 15px;
left: 15px;
background: linear-gradient(135deg, var(--accent), #2ecc71);
color: white;
padding: 0.3rem 0.8rem;
border-radius: 30px;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.card-content {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
}

.card-meta {
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
font-size: 0.85rem;
color: var(--gray);
}

.card-title {
font-size: 1.2rem;
line-height: 1.4;
margin-bottom: 1rem;
color: var(--dark);
flex: 1;
font-weight: 700;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.card-description {
color: var(--gray);
margin-bottom: 1.5rem;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.card-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
}

.publisher {
display: flex;
align-items: center;
gap: 0.5rem;
}

.publisher-logo {
width: 30px;
height: 30px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 0.7rem;
font-weight: bold;
}

.publisher-name {
font-size: 0.9rem;
font-weight: 600;
color: var(--primary);
}

.read-more-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--primary);
font-weight: 600;
text-decoration: none;
transition: var(--transition);
background: rgba(67, 97, 238, 0.1);
padding: 0.5rem 1rem;
border-radius: 30px;
cursor: pointer;
border: none;
}

.read-more-btn:hover {
background: rgba(67, 97, 238, 0.2);
transform: translateX(5px);
}

/* UPDATED: Enhanced Responsive Footer */
.main-footer {
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
color: white;
margin-top: auto;
padding: 3rem 0 1rem;
width: 100%;
}

.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2.5rem;
margin-bottom: 2rem;
}

.footer-column {
display: flex;
flex-direction: column;
}

.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 0.5rem;
font-weight: 700;
}

.footer-column h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 3px;
background: var(--accent);
border-radius: 2px;
}

.footer-links {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.footer-links li {
margin-bottom: 0;
}

.footer-links a {
color: rgba(255,255,255,0.85);
text-decoration: none;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.3rem 0;
font-size: 0.95rem;
}

.footer-links a:hover {
color: white;
transform: translateX(5px);
}

.footer-links a i {
color: var(--accent);
font-size: 0.8rem;
width: 16px;
text-align: center;
}

.footer-social {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}

.social-icon {
width: 42px;
height: 42px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: var(--transition);
text-decoration: none;
font-size: 1.1rem;
}

.social-icon:hover {
background: var(--accent);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-newsletter {
margin-top: 0.5rem;
}

.footer-newsletter p {
margin-bottom: 1.2rem;
color: rgba(255,255,255,0.85);
line-height: 1.6;
font-size: 0.95rem;
}

.newsletter-form {
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.newsletter-input {
padding: 0.9rem 1.2rem;
border: none;
border-radius: 30px;
background: rgba(255,255,255,0.15);
color: white;
outline: none;
font-size: 0.95rem;
transition: var(--transition);
backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
background: rgba(255,255,255,0.2);
box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.newsletter-btn {
background: var(--accent);
color: white;
border: none;
padding: 0.9rem 1.5rem;
border-radius: 30px;
cursor: pointer;
transition: var(--transition);
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-size: 0.95rem;
}

.newsletter-btn:hover {
background: #2ecc71;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
margin-top: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.contact-info p {
display: flex;
align-items: center;
gap: 0.8rem;
color: rgba(255,255,255,0.85);
font-size: 0.95rem;
}

.contact-info i {
color: var(--accent);
width: 20px;
text-align: center;
}

.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.15);
padding-top: 1.5rem;
text-align: center;
color: rgba(255,255,255,0.7);
font-size: 0.9rem;
}

.footer-bottom p {
margin-bottom: 1rem;
}

.footer-legal {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1rem;
flex-wrap: wrap;
}

.footer-legal a {
color: rgba(255,255,255,0.7);
text-decoration: none;
transition: var(--transition);
font-size: 0.9rem;
padding: 0.3rem 0.5rem;
border-radius: 4px;
}

.footer-legal a:hover {
color: white;
background: rgba(255,255,255,0.1);
}

/* UPDATED: Enhanced Article Modal */
.article-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
z-index: 2000;
overflow-y: auto;
backdrop-filter: blur(10px);
}

.article-modal.active {
display: flex;
align-items: center;
justify-content: center;
}

.article-modal-content {
background: white;
margin: 2rem auto;
width: 95%;
max-width: 1200px;
border-radius: 24px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
animation: modalFadeIn 0.4s ease-out;
overflow: hidden;
max-height: 95vh;
display: flex;
flex-direction: column;
position: relative;
}

@keyframes modalFadeIn {
from { opacity: 0; transform: translateY(-30px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}

.article-modal-header {
background: linear-gradient(135deg, var(--primary-dark), var(--primary));
color: white;
padding: 2rem;
position: relative;
overflow: hidden;
}

.article-modal-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><polygon points="0,0 1000,50 1000,100 0,100"></polygon></svg>');
background-size: cover;
}

.article-modal-title {
font-size: 2.5rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 1rem;
position: relative;
z-index: 1;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-modal-meta {
display: flex;
gap: 2rem;
flex-wrap: wrap;
position: relative;
z-index: 1;
}

.meta-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
opacity: 0.9;
}

.meta-item i {
color: var(--accent);
}

.close-article-modal {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
font-size: 1.8rem;
cursor: pointer;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
backdrop-filter: blur(10px);
z-index: 10;
}

.close-article-modal:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}

.article-modal-body {
flex: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
background: white;
}

.article-hero-image {
width: 100%;
height: 400px;
object-fit: cover;
display: block;
}

.article-content-wrapper {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 3rem;
padding: 3rem;
}

.article-main-content {
flex: 1;
}

.article-content {
font-size: 1.1rem;
line-height: 1.8;
color: #374151;
}

.article-content p {
margin-bottom: 1.5rem;
}

.article-content h2 {
font-size: 1.8rem;
color: var(--primary-dark);
margin: 2.5rem 0 1rem 0;
font-weight: 700;
}

.article-content h3 {
font-size: 1.4rem;
color: var(--primary);
margin: 2rem 0 1rem 0;
font-weight: 600;
}

.article-sidebar {
background: #f8fafc;
border-radius: 16px;
padding: 2rem;
height: fit-content;
position: sticky;
top: 2rem;
}

.sidebar-title {
font-size: 1.3rem;
font-weight: 700;
color: var(--primary-dark);
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.sidebar-title i {
color: var(--accent);
}

.related-articles {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.related-article-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
transition: var(--transition);
cursor: pointer;
}

.related-article-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article-image {
width: 100%;
height: 120px;
object-fit: cover;
}

.related-article-content {
padding: 1rem;
}

.related-article-title {
font-size: 0.95rem;
font-weight: 600;
line-height: 1.4;
color: var(--dark);
margin-bottom: 0.5rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.related-article-meta {
display: flex;
justify-content: space-between;
font-size: 0.75rem;
color: var(--gray);
}

.article-actions {
display: flex;
gap: 1rem;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}

.action-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.8rem 1.5rem;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 0.9rem;
}

.action-btn.share {
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
}

.action-btn.save {
background: #f1f5f9;
color: var(--dark);
border: 1px solid #e2e8f0;
}

.action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bottom Navigation Bar */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 0.5rem 0;
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-around;
align-items: center;
}

.nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: 12px;
cursor: pointer;
transition: var(--transition);
position: relative;
flex: 1;
max-width: 80px;
}

.nav-item:hover {
background: rgba(44, 90, 160, 0.05);
transform: translateY(-3px);
}

.nav-item.active {
background: rgba(44, 90, 160, 0.1);
}

.nav-icon {
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
color: white;
font-size: 1.2rem;
transition: var(--transition);
box-shadow: 0 4px 10px rgba(44, 90, 160, 0.3);
margin-bottom: 0.3rem;
}

.nav-item:hover .nav-icon {
transform: scale(1.1);
box-shadow: 0 6px 15px rgba(44, 90, 160, 0.4);
}

.nav-item.active .nav-icon {
background: linear-gradient(135deg, var(--secondary), #c0392b);
}

.nav-label {
font-size: 0.75rem;
font-weight: 600;
color: var(--dark);
transition: var(--transition);
}

/* Inner Pages for Navigation */
.inner-page {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
z-index: 1500;
padding: 1rem;
overflow-y: auto;
transform: translateY(100%);
transition: transform 0.4s ease;
}

.inner-page.active {
transform: translateY(0);
}

.inner-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid #eee;
}

.back-btn {
background: none;
border: none;
font-size: 1.5rem;
color: var(--primary);
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

.back-btn:hover {
background: rgba(44, 90, 160, 0.1);
}

.inner-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-dark);
}

/* Settings Page */
.settings-grid {
display: grid;
gap: 1rem;
}

.setting-item {
background: white;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
gap: 1rem;
cursor: pointer;
transition: var(--transition);
}

.setting-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.setting-icon {
width: 50px;
height: 50px;
border-radius: 12px;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
}

.setting-content {
flex: 1;
}

.setting-title {
font-weight: 600;
color: var(--dark);
margin-bottom: 0.3rem;
}

.setting-description {
font-size: 0.85rem;
color: var(--gray);
}

.setting-arrow {
color: var(--gray);
font-size: 1.2rem;
}

/* Live TV Page */
.live-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-top: 1rem;
}

.live-player {
background: var(--dark);
border-radius: var(--border-radius);
overflow: hidden;
position: relative;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
}

.live-placeholder {
color: white;
text-align: center;
}

.live-placeholder i {
font-size: 3rem;
margin-bottom: 1rem;
color: var(--secondary);
}

.live-channels {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
}

.channel-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
cursor: pointer;
}

.channel-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.channel-logo {
height: 100px;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
}

.channel-name {
padding: 0.8rem;
text-align: center;
font-weight: 600;
}

/* Watch Page */
.watch-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 1rem;
}

.watch-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
cursor: pointer;
}

.watch-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.watch-image {
height: 150px;
background: linear-gradient(135deg, var(--accent), #2ecc71);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
}

.watch-content {
padding: 1rem;
}

.watch-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--dark);
}

.watch-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--gray);
}

/* Podcast Page */
.podcast-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 1rem;
}

.podcast-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
cursor: pointer;
}

.podcast-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.podcast-image {
height: 150px;
background: linear-gradient(135deg, var(--accent), #2ecc71);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
}

.podcast-content {
padding: 1rem;
}

.podcast-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--dark);
}

.podcast-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--gray);
}

/* NEW: Categories Management Page */
.categories-management {
padding: 1rem 0;
}

.category-toggle {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
background: white;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
margin-bottom: 1rem;
cursor: pointer;
}

.category-info {
display: flex;
align-items: center;
gap: 1rem;
}

.category-icon {
width: 40px;
height: 40px;
border-radius: 10px;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
}

.category-name {
font-weight: 600;
color: var(--dark);
}

.toggle-switch {
position: relative;
width: 50px;
height: 24px;
}

.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}

.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}

.toggle-slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .toggle-slider {
background-color: var(--accent);
}

input:checked + .toggle-slider:before {
transform: translateX(26px);
}

/* NEW: Saved Articles Page */
.saved-articles-container {
padding: 1rem 0;
}

.saved-articles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
}

.saved-article-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
}

.saved-article-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.saved-article-image {
width: 100%;
height: 150px;
object-fit: cover;
}

.saved-article-content {
padding: 1rem;
}

.saved-article-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--dark);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.saved-article-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--gray);
margin-bottom: 1rem;
}

.saved-article-actions {
display: flex;
gap: 0.5rem;
}

.saved-action-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 20px;
font-size: 0.8rem;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.3rem;
}

.saved-action-btn.read {
background: var(--primary);
color: white;
}

.saved-action-btn.remove {
background: #f1f5f9;
color: var(--dark);
border: 1px solid #e2e8f0;
}

.no-saved-articles {
text-align: center;
padding: 3rem;
color: var(--gray);
grid-column: 1 / -1;
}

.no-saved-articles i {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.5;
}

/* NEW: All News Page */
.all-news-container {
padding: 1rem 0;
}

.all-news-filters {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}

.filter-select {
padding: 0.5rem 1rem;
border: 2px solid #e0e0e0;
border-radius: 8px;
background: white;
color: var(--dark);
font-size: 0.9rem;
cursor: pointer;
transition: var(--transition);
}

.filter-select:focus {
outline: none;
border-color: var(--primary);
}

.all-news-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1.5rem;
}

.all-news-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
display: flex;
flex-direction: column;
}

.all-news-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.all-news-image {
width: 100%;
height: 200px;
object-fit: cover;
}

.all-news-content {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
}

.all-news-title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.8rem;
color: var(--dark);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.all-news-description {
color: var(--gray);
margin-bottom: 1rem;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
flex: 1;
}

.all-news-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--gray);
margin-bottom: 1rem;
}

.all-news-category {
background: var(--primary);
color: white;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.7rem;
font-weight: 600;
}

.all-news-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
}

.all-news-publisher {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
font-weight: 600;
color: var(--primary);
}

.all-news-date {
font-size: 0.8rem;
color: var(--gray);
}

.no-all-news {
text-align: center;
padding: 3rem;
color: var(--gray);
grid-column: 1 / -1;
}

.no-all-news i {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
.footer-content {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 2rem;
}
}

@media (max-width: 992px) {
.footer-content {
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}

.footer-newsletter {
grid-column: 1 / -1;
max-width: 500px;
margin: 0 auto;
}
}

@media (max-width: 768px) {
.header-container {
padding: 0.5rem 1rem;
}

.logo-section {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}

.search-box {
width: 100%;
}

/* UPDATED: Responsive Slideshow */
.slideshow-wrapper {
padding: 0 1rem;
}

.slideshow-container {
height: 400px;
}

.slide-content {
padding: 2rem;
}

.slide-title {
font-size: 2rem;
}

.slideshow-arrows {
padding: 0 1rem;
}

.news-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}

.article-content-wrapper {
grid-template-columns: 1fr;
gap: 2rem;
padding: 2rem;
}

.article-modal-title {
font-size: 1.8rem;
}

.article-hero-image {
height: 250px;
}

.footer-content {
grid-template-columns: 1fr;
gap: 2rem;
}

.footer-newsletter {
grid-column: auto;
max-width: 100%;
}

.newsletter-form {
flex-direction: row;
}

.newsletter-input {
flex: 1;
}

.nav-container {
padding: 0 1rem;
}

.nav-item {
max-width: 70px;
}

.nav-icon {
width: 45px;
height: 45px;
font-size: 1rem;
}

.nav-label {
font-size: 0.7rem;
}

.live-channels,
.watch-grid,
.podcast-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.saved-articles-grid {
grid-template-columns: 1fr;
}

.all-news-grid {
grid-template-columns: 1fr;
}

.all-news-filters {
flex-direction: column;
}

.filter-select {
width: 100%;
}
}

@media (max-width: 576px) {
.footer-content {
gap: 1.5rem;
}

.footer-column h3 {
font-size: 1.2rem;
margin-bottom: 1rem;
}

.footer-links a {
font-size: 0.9rem;
}

.footer-social {
justify-content: center;
}

.social-icon {
width: 38px;
height: 38px;
font-size: 1rem;
}

.newsletter-form {
flex-direction: column;
}

.footer-legal {
flex-direction: column;
gap:0.8rem;
}

.footer-legal a {
padding: 0.5rem 0;
}
}

@media (max-width: 480px) {
.top-bar {
display: none;
}

.categories {
gap: 0.1rem;
}

.category-btn {
padding: 0.2rem 0.5rem;
font-size: 0.75rem;
}

.section-title {
font-size: 1.5rem;
}

.card-content {
padding: 1rem;
}

/* UPDATED: Mobile Slideshow */
.slideshow-container {
height: 350px;
}

.slide-content {
padding: 1.5rem;
}

.slide-title {
font-size: 1.5rem;
}

.article-modal-content {
margin: 0;
width: 100%;
height: 100%;
border-radius: 0;
}

.article-modal-header {
padding: 1.5rem;
}

.article-content-wrapper {
padding: 1.5rem;
}

.live-channels,
.watch-grid,
.podcast-grid {
grid-template-columns: 1fr;
}

.footer-container {
padding: 0 1rem;
}

.footer-content {
gap: 1.5rem;
}

.footer-column {
text-align: center;
}

.footer-column h3::after {
left: 50%;
transform: translateX(-50%);
}

.footer-links a {
justify-content: center;
}

.contact-info p {
justify-content: center;
}
}

@media (max-width: 360px) {
.footer-content {
gap: 1.2rem;
}

.footer-column h3 {
font-size: 1.1rem;
}

.footer-links a {
font-size: 0.85rem;
}

.footer-bottom {
font-size: 0.8rem;
}

.footer-legal a {
font-size: 0.8rem;
}
}

/* Loading States */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 3rem;
color: var(--gray);
}

.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 1rem;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
text-align: center;
padding: 3rem 1rem;
color: var(--gray);
}

.empty-state i {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.5;
}

.empty-state h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--dark);
}

/* Notification */
.notification {
position: fixed;
top: 20px;
right: 20px;
background: var(--accent);
color: white;
padding: 1rem 1.5rem;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
z-index: 3000;
transform: translateX(400px);
transition: transform 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
max-width: 350px;
}

.notification.active {
transform: translateX(0);
}

.notification.error {
background: var(--secondary);
}

.notification.warning {
background: var(--gold);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
body {
background-color: #0f172a;
color: #e2e8f0;
}

.news-card, .setting-item, .article-sidebar, .channel-card, .watch-card, .podcast-card, .category-toggle, .saved-article-card, .all-news-card {
background: #1e293b;
color: #e2e8f0;
}

.card-title, .setting-title, .channel-name, .watch-title, .podcast-title, .category-name, .saved-article-title, .all-news-title {
color: #f8fafc;
}

.card-description, .setting-description, .watch-meta, .podcast-meta, .saved-article-meta, .all-news-description {
color: #94a3b8;
}

.category-btn {
background: #1e293b;
border-color: #334155;
color: #e2e8f0;
}

.search-box input {
background: #1e293b;
border-color: #334155;
color: #e2e8f0;
}

.read-more-btn {
background: rgba(67, 97, 238, 0.2);
color: #60a5fa;
}

.saved-action-btn.remove {
background: #334155;
color: #e2e8f0;
border-color: #475569;
}

.filter-select {
background: #1e293b;
border-color: #475569;
color: #e2e8f0;
}
}


/* Notification Styles */
.notifications-management {
    padding: 20px;
}

.notifications-composer {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.composer-form .form-group {
    margin-bottom: 20px;
}

.composer-form label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 600;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 14px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.notification-item {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #3b82f6;
}

.notification-item.info {
    border-left-color: #3b82f6;
}

.notification-item.warning {
    border-left-color: #f59e0b;
}

.notification-item.success {
    border-left-color: #10b981;
}

.notification-item.error {
    border-left-color: #ef4444;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    color: #f8fafc;
    font-size: 16px;
}

.notification-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-type.info {
    background: #1e40af;
    color: #dbeafe;
}

.notification-type.warning {
    background: #92400e;
    color: #fef3c7;
}

.notification-type.success {
    background: #047857;
    color: #d1fae5;
}

.notification-type.error {
    background: #991b1b;
    color: #fee2e2;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
}

.notification-message {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-small {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small.danger {
    background: #dc2626;
    color: white;
}

.btn-small.danger:hover {
    background: #b91c1c;
}

/* User Notifications Styles */
.notifications-container {
    padding: 20px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.notifications-stats {
    color: #94a3b8;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #1e293b;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn.danger {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.action-btn:hover {
    background: #334155;
}

.action-btn.danger:hover {
    background: #b91c1c;
}

.user-notification-item {
    background: #1e293b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s;
    position: relative;
}

.user-notification-item.unread {
    background: #1e3a8a;
    border-left-color: #60a5fa;
    border-left-width: 4px;
    padding-right: 50px; /* Space for badge */
}

.user-notification-item.info {
    border-left-color: #3b82f6;
}

.user-notification-item.warning {
    border-left-color: #f59e0b;
}

.user-notification-item.success {
    border-left-color: #10b981;
}

.user-notification-item.error {
    border-left-color: #ef4444;
}

.user-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.user-notification-title {
    font-weight: 600;
    color: #f8fafc;
    font-size: 16px;
}

.user-notification-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-notification-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-notification-type.info {
    background: #1e40af;
    color: #dbeafe;
}

.user-notification-type.warning {
    background: #92400e;
    color: #fef3c7;
}

.user-notification-type.success {
    background: #047857;
    color: #d1fae5;
}

.user-notification-type.error {
    background: #991b1b;
    color: #fee2e2;
}

.user-notification-time {
    font-size: 12px;
    color: #94a3b8;
}

.user-notification-message {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.user-notification-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.mark-read {
    background: #059669;
    color: white;
    border: none;
}

.mark-read:hover {
    background: #047857;
}

.mark-unread {
    background: #6366f1;
    color: white;
    border: none;
}

.mark-unread:hover {
    background: #4f46e5;
}

.user-notification-item.read {
    background: #1e293b;
    border-left-color: #475569;
    opacity: 0.8;
}

/* NEW: Notification Badge Item in List */
.notification-badge-item {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

/* NEW: Red Dot for Unread Notifications */
.user-notification-item.unread::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}


/* Add these styles to your existing CSS */
.session-indicator {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.session-indicator:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.session-indicator i {
  font-size: 14px;
}

/* Enhanced notification styles */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Session-aware toast notifications */
.session-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #3b82f6;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Keep all your existing CSS - these are just additions */

/* NEW: Badge for notification count in header */
.header-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    border-radius: 20px;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    padding: 0 6px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Notification Badge (for bottom nav) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-item {
    position: relative;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.empty-state p {
    color: #64748b;
}

/* Enhanced Podcast Styles */
.podcast-header {
background: linear-gradient(135deg, var(--primary-dark), var(--primary));
color: white;
padding: 2rem;
margin-bottom: 2rem;
border-radius: var(--border-radius);
}

.podcast-info-card {
display: flex;
gap: 2rem;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}

.podcast-cover {
width: 150px;
height: 150px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.podcast-details {
flex: 1;
}

.podcast-details h1 {
font-size: 2rem;
margin-bottom: 1rem;
font-weight: 700;
}

.podcast-details p {
opacity: 0.9;
margin-bottom: 1rem;
line-height: 1.5;
}

.podcast-meta {
display: flex;
gap: 2rem;
font-size: 0.9rem;
opacity: 0.8;
}

.podcast-meta span {
display: flex;
align-items: center;
gap: 0.5rem;
}


/* NEW: Enhanced Podcast Media Player */
.podcast-player-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
z-index: 3000;
backdrop-filter: blur(20px);
animation: playerFadeIn 0.4s ease-out;
}

.podcast-player-modal.active {
display: flex;
align-items: center;
justify-content: center;
}

@keyframes playerFadeIn {
from { opacity: 0; backdrop-filter: blur(0px); }
to { opacity: 1; backdrop-filter: blur(20px); }
}

.podcast-player-container {
background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
border-radius: 32px;
padding: 3rem;
width: 95%;
max-width: 500px;
box-shadow: 
0 25px 50px -12px rgba(0, 0, 0, 0.8),
0 0 0 1px rgba(255, 255, 255, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
position: relative;
overflow: hidden;
animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
from { 
transform: translateY(50px) scale(0.9);
opacity: 0;
}
to { 
transform: translateY(0) scale(1);
opacity: 1;
}
}

.podcast-player-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.player-close-btn {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.1);
border: none;
color: white;
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
z-index: 10;
font-size: 1.2rem;
}

.player-close-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: rotate(90deg) scale(1.1);
}

/* Fix the spinner positioning for the artwork container */
.player-artwork-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ensure the artwork is properly centered */
.player-artwork {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: artworkGlow 3s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

@keyframes artworkGlow {
from {
box-shadow: 
0 20px 40px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.1);
}
to {
box-shadow: 
0 20px 40px rgba(59, 130, 246, 0.3),
0 0 0 1px rgba(59, 130, 246, 0.2);
}
}

.player-artwork:hover {
transform: scale(1.02);
}

/* FIX FOR ISSUE 1: Podcast Media Player Spinner Positioning */
.artwork-spinner {
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 300px;
    height: 300px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.player-info {
text-align: center;
margin-bottom: 2.5rem;
}

.player-title {
font-size: 1.4rem;
font-weight: 700;
color: white;
margin-bottom: 0.5rem;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.player-podcast {
font-size: 1rem;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 1rem;
}

.player-progress-section {
margin-bottom: 2rem;
}

.progress-bar-container {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
cursor: pointer;
position: relative;
margin-bottom: 0.8rem;
transition: height 0.2s ease;
}

.progress-bar-container:hover {
height: 8px;
}

.progress-bar {
height: 100%;
background: linear-gradient(90deg, #3b82f6, #60a5fa);
border-radius: 3px;
width: 0%;
position: relative;
transition: width 0.1s linear;
}

.progress-bar::after {
content: '';
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
width: 12px;
height: 12px;
background: white;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
opacity: 0;
transition: opacity 0.2s ease;
}

.progress-bar-container:hover .progress-bar::after {
opacity: 1;
}

.time-display {
display: flex;
justify-content: space-between;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
font-weight: 500;
}

.player-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}

.control-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}

.control-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.5s ease;
}

.control-btn:hover::before {
left: 100%;
}

.control-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
}

.control-btn:active {
transform: scale(0.95);
}

.play-pause-btn {
width: 70px;
height: 70px;
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.play-pause-btn:hover {
background: linear-gradient(135deg, #60a5fa, #3b82f6);
box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
transform: scale(1.15);
}

.control-btn i {
font-size: 1.2rem;
transition: transform 0.2s ease;
}

.play-pause-btn i {
font-size: 1.6rem;
}

.control-btn:hover i {
transform: scale(1.1);
}

.player-volume-section {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
}

.volume-icon {
color: rgba(255, 255, 255, 0.7);
font-size: 1.2rem;
width: 24px;
}

.volume-slider-container {
flex: 1;
height: 4px;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
position: relative;
cursor: pointer;
}

.volume-slider {
height: 100%;
background: linear-gradient(90deg, #10b981, #34d399);
border-radius: 2px;
width: 50%;
position: relative;
transition: width 0.2s ease;
}

.volume-slider::after {
content: '';
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
width: 12px;
height: 12px;
background: white;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6);
opacity: 0;
transition: opacity 0.2s ease;
}

.volume-slider-container:hover .volume-slider::after {
opacity: 1;
}

.player-additional-actions {
display: flex;
justify-content: center;
gap: 1rem;
}

.action-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.8);
padding: 0.8rem 1.5rem;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
font-weight: 500;
backdrop-filter: blur(10px);
}

.action-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wave-animation {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
height: 20px;
margin-top: 1rem;
}

.wave-bar {
width: 3px;
height: 10px;
background: linear-gradient(to top, #3b82f6, #60a5fa);
border-radius: 2px;
animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
0%, 100% { transform: scaleY(0.5); }
50% { transform: scaleY(1.5); }
}

/* Playing state animations */
.podcast-player-container.playing .artwork-spinner {
animation-duration: 4s;
}

.podcast-player-container.playing .player-artwork {
animation: artworkPulse 2s ease-in-out infinite;
}

@keyframes artworkPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}

/* Responsive Design */
@media (max-width: 768px) {
.podcast-player-container {
padding: 2rem 1.5rem;
margin: 1rem;
border-radius: 24px;
}

.player-artwork {
width: 220px;
height: 220px;
}

.artwork-spinner {
width: 240px;
height: 240px;
}

.player-title {
font-size: 1.2rem;
}

.play-pause-btn {
width: 60px;
height: 60px;
}

.control-btn {
width: 45px;
height: 45px;
}
}

@media (max-width: 480px) {
.podcast-player-container {
padding: 1.5rem 1rem;
border-radius: 20px;
}

.player-artwork {
width: 180px;
height: 180px;
}

.artwork-spinner {
width: 200px;
height: 200px;
}

.player-controls {
gap: 1rem;
}

.player-title {
font-size: 1.1rem;
}

.action-btn {
padding: 0.6rem 1rem;
font-size: 0.8rem;
}
}
/* Podcast Categories Navigation */
.podcast-categories-nav {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
overflow-x: auto;
padding-bottom: 1rem;
}

.podcast-category-btn {
background: white;
border: 2px solid #e0e0e0;
color: var(--dark);
padding: 0.8rem 1.5rem;
border-radius: 30px;
cursor: pointer;
white-space: nowrap;
transition: var(--transition);
font-weight: 500;
display: flex;
align-items: center;
gap: 0.5rem;
}

.podcast-category-btn:hover,
.podcast-category-btn.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}

/* Podcast Sections */
.podcast-section {
margin-bottom: 3rem;
}

.featured-episodes {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}

.category-episodes {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}

/* Enhanced Podcast Cards */
.podcast-episode-card {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
cursor: pointer;
position: relative;
}

.podcast-episode-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.podcast-episode-card.featured {
grid-column: span 1;
}

.podcast-episode-image {
width: 100%;
height: 200px;
object-fit: cover;
}

.podcast-episode-content {
padding: 1.5rem;
}

.podcast-episode-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}

.podcast-episode-title {
font-size: 1.1rem;
font-weight: 700;
line-height: 1.4;
color: var(--dark);
margin-bottom: 0.5rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.podcast-episode-meta {
display: flex;
gap: 1rem;
font-size: 0.8rem;
color: var(--gray);
margin-bottom: 1rem;
}

.podcast-episode-description {
color: var(--gray);
line-height: 1.5;
margin-bottom: 1.5rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.podcast-episode-actions {
display: flex;
justify-content: space-between;
align-items: center;
}

.podcast-play-btn {
background: var(--primary);
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 30px;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
}

.podcast-play-btn:hover {
background: var(--primary-light);
transform: translateY(-2px);
}

.podcast-play-btn.playing {
background: var(--accent);
}

.podcast-episode-duration {
font-size: 0.8rem;
color: var(--gray);
display: flex;
align-items: center;
gap: 0.3rem;
}

/* Podcast Share Button */
.podcast-share-btn {
background: rgba(67, 97, 238, 0.1);
color: var(--primary);
border: none;
padding: 0.8rem 1.2rem;
border-radius: 30px;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
font-size: 0.9rem;
}

.podcast-share-btn:hover {
background: rgba(67, 97, 238, 0.2);
transform: translateY(-2px);
}

/* Podcast Modal */
.podcast-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
z-index: 2000;
overflow-y: auto;
backdrop-filter: blur(10px);
}

.podcast-modal.active {
display: flex;
align-items: center;
justify-content: center;
}

.podcast-modal-content {
background: white;
margin: 2rem auto;
width: 95%;
max-width: 800px;
border-radius: 24px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
animation: modalFadeIn 0.4s ease-out;
overflow: hidden;
max-height: 95vh;
display: flex;
flex-direction: column;
position: relative;
}

.podcast-modal-header {
background: linear-gradient(135deg, var(--primary-dark), var(--primary));
color: white;
padding: 2rem;
position: relative;
overflow: hidden;
}

.podcast-modal-title {
font-size: 2rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 1rem;
position: relative;
z-index: 1;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.podcast-modal-meta {
display: flex;
gap: 2rem;
flex-wrap: wrap;
position: relative;
z-index: 1;
}

.close-podcast-modal {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
font-size: 1.8rem;
cursor: pointer;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
backdrop-filter: blur(10px);
z-index: 10;
}

.close-podcast-modal:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}

.podcast-modal-body {
flex: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
background: white;
padding: 2rem;
}

.podcast-modal-image {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 12px;
margin-bottom: 2rem;
}

.podcast-modal-description {
font-size: 1.1rem;
line-height: 1.6;
color: #374151;
margin-bottom: 2rem;
}

.podcast-modal-actions {
display: flex;
gap: 1rem;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}

/* Responsive Podcast Styles */
@media (max-width: 768px) {
.podcast-info-card {
flex-direction: column;
text-align: center;
gap: 1rem;
}

.podcast-cover {
width: 120px;
height: 120px;
}

.podcast-details h1 {
font-size: 1.5rem;
}

.podcast-meta {
flex-direction: column;
gap: 0.5rem;
}


.featured-episodes {
grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.podcast-header {
padding: 1.5rem;
}



/* ===== GEMIE ANNOUNCEMENT POPUP - FULLY RESPONSIVE WITH CENTERED POSITION ===== */

.gemie-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.gemie-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gemie-popup-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.gemie-popup-card {
    width: 100%;
    max-width: 550px;
    background: linear-gradient(145deg, #0f3460, #1a1a2e);
    border-radius: 24px;
    padding: 40px 35px;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin: auto;
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom scrollbar for the popup card */
.gemie-popup-card::-webkit-scrollbar {
    width: 8px;
}

.gemie-popup-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gemie-popup-card::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7bd3ea, #a1e6fa);
    border-radius: 4px;
}

.gemie-popup-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5ec9e6, #8bdbf5);
}

.gemie-popup-overlay.active .gemie-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gemie-popup-overlay.fade-out .gemie-popup-card {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
}

.gemie-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gemie-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gemie-popup-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.gemie-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #7bd3ea 0%, #a1e6fa 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 56px;
    color: #0f3460;
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 15px 35px rgba(123, 211, 234, 0.3),
        inset 0 0 0 5px rgba(255, 255, 255, 0.1);
    position: relative;
}

.gemie-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gemie-popup-content h2 {
    color: #7bd3ea;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(123, 211, 234, 0.3);
    letter-spacing: 0.5px;
}

.gemie-popup-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.gemie-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    text-align: left;
}

.gemie-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.gemie-feature-item:hover {
    background: rgba(123, 211, 234, 0.15);
    transform: translateY(-3px);
    border-color: rgba(123, 211, 234, 0.3);
    box-shadow: 0 5px 15px rgba(123, 211, 234, 0.2);
}

.gemie-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(123, 211, 234, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7bd3ea;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gemie-feature-item:hover .gemie-feature-icon {
    background: rgba(123, 211, 234, 0.3);
    transform: scale(1.1);
}

.gemie-feature-item span {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.gemie-action-button {
    background: linear-gradient(135deg, #7bd3ea 0%, #a1e6fa 100%);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    color: #0f3460;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 25px rgba(123, 211, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.gemie-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.gemie-action-button:hover::before {
    left: 100%;
}

.gemie-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(123, 211, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gemie-action-button:active {
    transform: translateY(-1px);
}

.gemie-dismiss-timer {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
}

.gemie-timer-progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #7bd3ea, #a1e6fa);
    border-radius: 3px;
    transition: width 1s linear;
    position: relative;
    box-shadow: 0 0 10px rgba(123, 211, 234, 0.5);
}

.gemie-timer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
    font-weight: 400;
}

.gemie-footer-note {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN FOR ALL DEVICES ===== */

/* Desktop Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .gemie-popup-card {
        max-width: 600px;
        padding: 50px 45px;
    }
    
    .gemie-avatar {
        width: 160px;
        height: 160px;
        font-size: 64px;
    }
    
    .gemie-popup-content h2 {
        font-size: 40px;
        margin-bottom: 25px;
    }
    
    .gemie-popup-content p {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .gemie-features-list {
        gap: 18px;
        margin-bottom: 45px;
    }
    
    .gemie-feature-item {
        padding: 18px 22px;
    }
    
    .gemie-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .gemie-feature-item span {
        font-size: 16px;
    }
    
    .gemie-action-button {
        padding: 20px 50px;
        font-size: 19px;
        margin-bottom: 30px;
    }
}

/* Desktop Medium Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .gemie-popup-card {
        max-width: 550px;
        padding: 45px 40px;
    }
    
    .gemie-avatar {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }
    
    .gemie-popup-content h2 {
        font-size: 38px;
    }
    
    .gemie-popup-content p {
        font-size: 19px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .gemie-popup-card {
        max-width: 500px;
        padding: 40px 35px;
    }
    
    .gemie-avatar {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }
    
    .gemie-popup-content h2 {
        font-size: 36px;
    }
    
    .gemie-popup-content p {
        font-size: 18px;
    }
    
    .gemie-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (600px to 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .gemie-popup-card {
        max-width: 450px;
        padding: 35px 30px;
    }
    
    .gemie-avatar {
        width: 130px;
        height: 130px;
        font-size: 52px;
        margin-bottom: 25px;
    }
    
    .gemie-popup-content h2 {
        font-size: 32px;
        margin-bottom: 18px;
    }
    
    .gemie-popup-content p {
        font-size: 17px;
        margin-bottom: 30px;
        max-width: 95%;
    }
    
    .gemie-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 35px;
    }
    
    .gemie-feature-item {
        padding: 14px 18px;
    }
    
    .gemie-feature-item span {
        font-size: 14px;
    }
}

/* Mobile Devices (480px to 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .gemie-popup-card {
        max-width: 400px;
        padding: 30px 25px;
    }
    
    .gemie-avatar {
        width: 120px;
        height: 120px;
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .gemie-popup-content h2 {
        font-size: 30px;
        margin-bottom: 16px;
    }
    
    .gemie-popup-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .gemie-features-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .gemie-feature-item {
        padding: 12px 16px;
    }
    
    .gemie-action-button {
        padding: 16px 35px;
        font-size: 17px;
        margin-bottom: 25px;
    }
}

/* Small Mobile Devices (320px to 479px) */
@media (max-width: 479px) {
    .gemie-popup-overlay {
        padding: 15px;
    }
    
    .gemie-popup-card {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .gemie-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .gemie-avatar {
        width: 100px;
        height: 100px;
        font-size: 42px;
        margin-bottom: 20px;
    }
    
    .gemie-popup-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .gemie-popup-content p {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .gemie-features-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .gemie-feature-item {
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .gemie-feature-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .gemie-feature-item span {
        font-size: 14px;
    }
    
    .gemie-action-button {
        padding: 15px 30px;
        font-size: 16px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 280px;
    }
    
    .gemie-dismiss-timer {
        height: 5px;
        margin-top: 20px;
    }
    
    .gemie-timer-text {
        font-size: 13px;
        margin-top: 8px;
    }
    
    .gemie-footer-note {
        font-size: 13px;
        margin-top: 20px;
        padding-top: 12px;
    }
}

/* Very Small Mobile Devices (below 320px) */
@media (max-width: 319px) {
    .gemie-popup-card {
        padding: 20px 15px;
    }
    
    .gemie-avatar {
        width: 90px;
        height: 90px;
        font-size: 38px;
        margin-bottom: 15px;
    }
    
    .gemie-popup-content h2 {
        font-size: 26px;
    }
    
    .gemie-popup-content p {
        font-size: 14px;
    }
    
    .gemie-feature-item {
        padding: 10px 12px;
    }
    
    .gemie-feature-item span {
        font-size: 13px;
    }
    
    .gemie-action-button {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .gemie-popup-overlay {
        align-items: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .gemie-popup-card {
        max-height: 80vh;
        overflow-y: auto;
        margin: 0 auto;
    }
    
    .gemie-avatar {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .gemie-popup-content h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .gemie-popup-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .gemie-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .gemie-feature-item {
        padding: 10px 12px;
    }
    
    .gemie-action-button {
        padding: 12px 25px;
        font-size: 15px;
        margin-bottom: 15px;
    }
}

/* FIX FOR DESKTOP - Simplified and more reliable centering */
@media (min-width: 768px) {
    .gemie-popup-overlay {
        align-items: center;
        justify-content: center;
    }
    
    .gemie-popup-card {
        position: relative;
        top: 0;
        left: 0;
        transform: translateY(30px) scale(0.95);
        margin: auto;
        max-height: 85vh;
    }
    
    .gemie-popup-overlay.active .gemie-popup-card {
        transform: translateY(0) scale(1);
    }
    
    .gemie-popup-overlay.fade-out .gemie-popup-card {
        transform: translateY(-30px) scale(0.95);
    }
}

/* High-DPI (Retina) Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gemie-popup-card {
        border-width: 0.5px;
    }
    
    .gemie-feature-item {
        border-width: 0.5px;
    }
    
    .gemie-action-button {
        box-shadow: 
            0 10px 25px rgba(123, 211, 234, 0.3),
            0 0 0 0.5px rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .gemie-popup-overlay {
        display: none !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gemie-popup-overlay,
    .gemie-popup-card,
    .gemie-close-btn,
    .gemie-avatar,
    .gemie-feature-item,
    .gemie-action-button {
        transition: none;
        animation: none;
    }
    
    .gemie-avatar {
        animation: none;
    }
    
    .gemie-avatar::before {
        animation: none;
        display: none;
    }
    
    .gemie-action-button::before {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gemie-popup-card {
        background: linear-gradient(145deg, #0a2647, #121212);
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .gemie-feature-item {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.03);
    }
    
    .gemie-feature-item:hover {
        background: rgba(123, 211, 234, 0.1);
        border-color: rgba(123, 211, 234, 0.2);
    }
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
    .gemie-popup-card {
        background: linear-gradient(145deg, #ffffff, #f5f7fa);
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    
    .gemie-popup-content h2 {
        color: #0f3460;
    }
    
    .gemie-popup-content p {
        color: rgba(0, 0, 0, 0.8);
    }
    
    .gemie-feature-item {
        color: rgba(0, 0, 0, 0.9);
        background: rgba(123, 211, 234, 0.1);
        border-color: rgba(123, 211, 234, 0.2);
    }
    
    .gemie-feature-icon {
        background: rgba(123, 211, 234, 0.2);
        color: #0f3460;
    }
    
    .gemie-timer-text {
        color: rgba(0, 0, 0, 0.6);
    }
    
    .gemie-footer-note {
        color: rgba(0, 0, 0, 0.5);
        border-top-color: rgba(0, 0, 0, 0.1);
    }
}.gemie-popup-content p {
        color: rgba(0, 0, 0, 0.8);
    }
    
    .gemie-feature-item {
        color: rgba(0, 0, 0, 0.9);
        background: rgba(123, 211, 234, 0.1);
        border-color: rgba(123, 211, 234, 0.2);
    }
    
    .gemie-feature-icon {
        background: rgba(123, 211, 234, 0.2);
        color: #0f3460;
    }
    
    .gemie-timer-text {
        color: rgba(0, 0, 0, 0.6);
    }
    
    .gemie-footer-note {
        color: rgba(0, 0, 0, 0.5);
        border-top-color: rgba(0, 0, 0, 0.1);
    }
}
/* Formatted Article Content Styles */
.article-content-wrapper .article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content-wrapper .article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 2rem 0 1.5rem 0;
    color: var(--primary-dark);
    line-height: 1.2;
}

.article-content-wrapper .article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.8rem 0 1.2rem 0;
    color: var(--primary-dark);
    line-height: 1.3;
}

.article-content-wrapper .article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--primary);
    line-height: 1.4;
}

.article-content-wrapper .article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem 0;
    color: var(--primary);
    line-height: 1.5;
}

.article-content-wrapper .article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content-wrapper .article-content strong,
.article-content-wrapper .article-content b {
    font-weight: 700;
    color: var(--dark);
}

.article-content-wrapper .article-content em,
.article-content-wrapper .article-content i {
    font-style: italic;
}

.article-content-wrapper .article-content u {
    text-decoration: underline;
}

.article-content-wrapper .article-content ul,
.article-content-wrapper .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.article-content-wrapper .article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content-wrapper .article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
    background: rgba(39, 174, 96, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content-wrapper .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
}

.article-content-wrapper .article-content table.bordered {
    border: 2px solid var(--border-color);
}

.article-content-wrapper .article-content table.bordered th,
.article-content-wrapper .article-content table.bordered td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.article-content-wrapper .article-content table.striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.article-content-wrapper .article-content table thead {
    background: var(--primary-light);
    color: white;
}

.article-content-wrapper .article-content table thead th {
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.article-content-wrapper .article-content table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.article-content-wrapper .article-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.article-content-wrapper .article-content a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.article-content-wrapper .article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content-wrapper .article-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Text alignment classes */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text color classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.text-light { color: var(--light); }

/* Background color classes */
.bg-primary { background-color: var(--primary); color: white; padding: 2px 6px; border-radius: 3px; }
.bg-secondary { background-color: var(--secondary); color: white; padding: 2px 6px; border-radius: 3px; }
.bg-accent { background-color: var(--accent); color: white; padding: 2px 6px; border-radius: 3px; }

/* Line spacing */
.line-height-1 { line-height: 1; }
.line-height-1-5 { line-height: 1.5; }
.line-height-2 { line-height: 2; }
.line-height-2-5 { line-height: 2.5; }

/* Responsive table */
@media (max-width: 768px) {
    .article-content-wrapper .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .article-content-wrapper .article-content h1 {
        font-size: 2rem;
    }
    
    .article-content-wrapper .article-content h2 {
        font-size: 1.75rem;
    }
    
    .article-content-wrapper .article-content h3 {
        font-size: 1.5rem;
    }
}

/* ===== SUBSCRIPTION MODAL ===== */
.subscription-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

.subscription-modal.active {
  display: flex;
}

.subscription-modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 450px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.4s ease;
}

.subscription-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #f1f5f9;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.subscription-close-btn:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.subscription-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-header i {
  font-size: 2rem;
  color: var(--primary);
  background: rgba(44, 90, 160, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.subscription-description {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

#subscriptionForm .form-group {
  margin-bottom: 1.5rem;
}

#subscriptionForm label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#subscriptionForm label i {
  color: var(--primary);
  font-size: 0.9rem;
}

#subUsername {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

#subUsername:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.checkbox-group {
  margin: 1.8rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  padding-left: 30px;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: var(--transition);
}

.checkbox-label:hover input ~ .checkmark {
  border-color: var(--primary);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.subscription-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #2ecc71);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.subscription-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(46, 204, 113, 0.4);
}

.subscription-submit-btn i {
  font-size: 1.2rem;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .subscription-modal-content {
    padding: 2rem 1.5rem;
  }
  .subscription-header h3 {
    font-size: 1.4rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .subscription-modal-content {
    background: #1e293b;
    color: #e2e8f0;
  }
  .subscription-header h3 {
    color: #f8fafc;
  }
  .subscription-description {
    color: #94a3b8;
  }
  #subUsername {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
  }
  .checkbox-label {
    color: #e2e8f0;
  }
  .checkmark {
    background-color: #0f172a;
    border-color: #475569;
  }
  .subscription-close-btn {
    background: #334155;
    color: #e2e8f0;
  }
  .subscription-close-btn:hover {
    background: #475569;
  }
}
/* Language Policy Page */
#languagePolicyPage {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf5 100%);
}
.language-policy-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
    color: var(--dark);
    line-height: 1.8;
}
.language-policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    animation: slideInDown 0.5s ease-out;
}
.language-policy-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-dark);
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
}
.language-policy-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}
.language-policy-content .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #languagePolicyPage {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    .language-policy-content {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
    .language-policy-content h2 {
        color: var(--primary-light);
    }
}