/**
 * LivePalakkad — Complete Stylesheet
 * 
 * Converts Tailwind CSS v4 utility classes to semantic vanilla CSS.
 * Preserves exact same design tokens, colors, typography, and layout.
 */

/* ═══════════════════════════════════════════════════════════
   SELF-HOSTED ZERO-FOUT FONTS (Instant Local Delivery)
   ═══════════════════════════════════════════════════════════ */

/* Anek Malayalam — Main Malayalam Glyphs */
@font-face {
    font-family: 'Anek Malayalam';
    font-style: normal;
    font-weight: 100 800;
    font-stretch: 100%;
    font-display: block;
    src: url('../fonts/anek-malayalam.woff2') format('woff2');
    unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0D00-0D7F, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC, U+A830-A832;
}

/* Anek Malayalam — Latin-ext */
@font-face {
    font-family: 'Anek Malayalam';
    font-style: normal;
    font-weight: 100 800;
    font-stretch: 100%;
    font-display: block;
    src: url('../fonts/anek-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Anek Malayalam / Anek Latin — Standard Latin & Numbers */
@font-face {
    font-family: 'Anek Malayalam';
    font-style: normal;
    font-weight: 100 800;
    font-stretch: 100%;
    font-display: block;
    src: url('../fonts/anek-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Anek Latin alias */
@font-face {
    font-family: 'Anek Latin';
    font-style: normal;
    font-weight: 100 800;
    font-stretch: 100%;
    font-display: block;
    src: url('../fonts/anek-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS (CSS Custom Properties)
   ═══════════════════════════════════════════════════════════ */

:root {
    --radius: 0.25rem;

    /* Paper / ink palette */
    --paper: oklch(0.982 0.006 85);       /* #faf8f2 warm off-white */
    --ink: oklch(0.185 0.005 285);        /* #1a1a1a near black */

    /* Brand blue — LivePalakkad masthead */
    --brand: oklch(0.48 0.18 255);        /* #1a5fbb */
    --brand-foreground: oklch(0.99 0 0);

    /* Breaking-news accent (Red) */
    --breaking: #dc2626;
    --breaking-foreground: #ffffff;

    /* Semantic tokens */
    --background: var(--paper);
    --foreground: var(--ink);
    --card: oklch(1 0 0);
    --card-foreground: var(--ink);
    --popover: oklch(1 0 0);
    --popover-foreground: var(--ink);
    --primary: var(--brand);
    --primary-foreground: var(--brand-foreground);
    --secondary: oklch(0.94 0.005 85);
    --secondary-foreground: var(--ink);
    --muted: oklch(0.95 0.004 85);
    --muted-foreground: oklch(0.42 0.008 285);
    --accent: oklch(0.94 0.005 85);
    --accent-foreground: var(--ink);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(0.99 0 0);
    --border: oklch(0.88 0.006 85);
    --input: oklch(0.88 0.006 85);
    --ring: var(--brand);
    --rule: oklch(0.82 0.006 85);

    /* Fonts — Anek Malayalam is primary for all text */
    --font-sans: "Anek Malayalam", "Anek Latin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Anek Malayalam", "Anek Latin", serif;
    --font-mal: "Anek Malayalam", "Anek Latin", system-ui, -apple-system, sans-serif;
    --font-mal-serif: "Anek Malayalam", "Anek Latin", serif;
}

/* Dark mode (Grey & Black) */
.dark {
    /* Pure black & deep charcoal background */
    --paper: #09090b;
    --ink: #f4f4f5;
    /* Clean brand blue accent */
    --brand: #3b82f6;
    --brand-foreground: #ffffff;
    --breaking: #ef4444;
    --breaking-foreground: #ffffff;
    --background: var(--paper);
    --foreground: var(--ink);
    /* Neutral dark grey / charcoal for cards & surfaces */
    --card: #141417;
    --card-foreground: var(--ink);
    --popover: #141417;
    --popover-foreground: var(--ink);
    /* Subtle dark grey for hovers/secondary elements */
    --secondary: #27272a;
    --secondary-foreground: var(--ink);
    --muted: #1f1f23;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: var(--ink);
    --destructive: #3b82f6;
    --destructive-foreground: #ffffff;
    /* Crisp neutral dark borders */
    --border: #27272a;
    --input: #27272a;
    --ring: var(--brand);
    --rule: #3f3f46;
}


/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

html, body {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* Eliminate native mobile browser blue tap highlight overlay on all interactive elements */
a, button, input, select, textarea, label, summary, [role="button"], [tabindex], svg,
.icon-btn, .btn, .nav-link, .reader-auth-btn, .mobile-reader-card,
.btn-reader-action, .btn-inline-send, .btn-google-auth, .btn-email-pwd-choice,
.btn-profile-action, .btn-profile-admin, .btn-profile-logout, .btn-link-action,
.btn-link-subtle, .btn-auth-back, .article-card, .category-card, .mobile-menu-link {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* Remove default blue outline on mobile touch tap */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus {
    outline: none;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none !important;
}

/* Prevent accidental blue text selection on tap / hold of buttons */
button,
[role="button"],
.icon-btn,
.nav-link,
.reader-auth-btn,
.mobile-reader-card,
.btn-reader-action,
.btn-inline-send,
.btn-google-auth,
.btn-email-pwd-choice,
.btn-profile-action,
.btn-profile-admin,
.btn-profile-logout,
.btn-auth-back,
.nav-more-btn,
.header-menu-btn,
.mobile-menu-close,
.reader-auth-close {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

select {
    font: inherit;
}

.font-mal { font-family: var(--font-mal); }
.font-mal-serif { font-family: var(--font-mal-serif); }

html[lang="ml"] body,
html[lang="ml"] h1,
html[lang="ml"] h2,
html[lang="ml"] h3,
html[lang="ml"] h4,
html[lang="ml"] h5,
html[lang="ml"] h6 {
    font-family: var(--font-mal);
}

/* ═══════════════════════════════════════════════════════════
   DUAL-LANGUAGE ARTICLE SWITCHING (Instant 0ms In-DOM Toggle)
   ═══════════════════════════════════════════════════════════ */

.article-text-ml {
    display: inline;
    font-family: var(--font-mal);
}

.article-text-en,
div.article-text-en,
p.article-text-en,
h1.article-text-en,
h2.article-text-en,
h3.article-text-en,
h4.article-text-en,
section.article-text-en,
.article-body-en {
    display: none !important;
}

div.article-text-ml,
p.article-text-ml,
h1.article-text-ml,
h2.article-text-ml,
h3.article-text-ml,
h4.article-text-ml,
section.article-text-ml,
.article-body-ml {
    display: block;
    font-family: var(--font-mal);
}

.font-mal-serif .article-text-ml {
    font-family: var(--font-mal-serif);
}



/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}


.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-brand { color: var(--brand); }
.font-semibold { font-weight: 600; }


/* ═══════════════════════════════════════════════════════════
   GRID UTILITIES
   ═══════════════════════════════════════════════════════════ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background-color: color-mix(in oklch, var(--background) 95%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
}

/* Topmost Domain Bar */
.header-domain-bar {
    background-color: var(--brand);
    color: var(--brand-foreground, #ffffff);
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid color-mix(in oklch, var(--brand) 85%, #000);
    overflow: hidden;
    box-sizing: border-box;
}

.header-domain-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header-domain-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.header-domain-link:hover {
    opacity: 0.9;
}

/* Top strip */
.header-strip {
    border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
    background-color: color-mix(in oklch, var(--secondary) 40%, transparent);
    height: 2rem;
    overflow: hidden;
    box-sizing: border-box;
}

.header-strip-inner {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6875rem; /* 11px */
    color: var(--muted-foreground);
    gap: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 1024px) {
    .header-strip-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.header-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    line-height: 2rem;
}

.header-strip-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.15rem;
    line-height: 1;
}

.header-social-link:hover {
    color: var(--foreground);
    transform: translateY(-1px);
}

.header-social-link svg {
    width: 14px;
    height: 14px;
}


/* Masthead */
.header-masthead {
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
    box-sizing: border-box;
    width: 100%;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: none;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--brand);
}

.logo-name-ml {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

@media (min-width: 640px) {
    .logo-text {
        display: flex;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-only {
    display: flex;
}

@media (min-width: 1024px) {
    .header-masthead {
        position: relative;
        display: flex;
        justify-content: center;
        padding: 1.25rem 1.25rem;
        min-height: 80px;
        width: 100%;
        box-sizing: border-box;
    }

    .header-left {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        gap: 0.85rem;
        margin: 0 auto;
    }

    .logo-img {
        height: 52px;
        width: 52px;
    }

    .logo-name {
        font-size: 1.85rem;
        letter-spacing: 0.01em;
        line-height: 1.05;
    }

    .logo-name-ml {
        font-size: 0.82rem;
    }

    .header-actions {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .mobile-only {
        display: none;
    }
}

/* Desktop Nav */
.desktop-nav {
    display: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    position: relative;
    z-index: 100;
    overflow: visible;
}

.dark .desktop-nav {
    background: var(--card);
    border-color: var(--border);
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.desktop-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0.25rem 0;
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: var(--foreground);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--brand);
    background: var(--secondary);
}

.nav-link-active {
    background: var(--brand) !important;
    color: #ffffff !important;
}

.nav-home-link {
    padding: 0.45rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-home-icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* More Dropdown */
.nav-more-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 0.25rem;
    z-index: 150;
}

.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-more-btn:hover,
.nav-more-dropdown:hover .nav-more-btn {
    color: var(--brand);
    background: var(--secondary);
}

.nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 14rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    z-index: 999;
}

.nav-more-dropdown:hover .nav-more-menu,
.nav-more-dropdown:focus-within .nav-more-menu {
    display: block;
}

.nav-more-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--foreground);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-more-item:hover {
    background: var(--secondary);
    color: var(--brand);
}

.nav-more-item-active {
    color: var(--brand);
    font-weight: 700;
    background: var(--secondary);
}

.nav-location-picker {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-right: 0.25rem;
}

.nav-location-select {
    background: var(--secondary);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-location-select:hover {
    border-color: var(--brand);
}

.nav-location-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.nav-location-select option {
    background: var(--card);
    color: var(--foreground);
}

/* Sections Menu Drawer (Full Viewport Overlay attached to Sticky Header) */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    min-height: calc(100vh - 100%);
    min-height: calc(100dvh - 100%);
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
}

.mobile-menu-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem 1rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

@media (min-width: 768px) {
    .mobile-menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }
}

.mobile-menu-section {
    margin-bottom: 1.25rem;
}

.mobile-menu-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    margin-bottom: 0.65rem;
}

.mobile-menu-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
    background: var(--secondary);
}

/* Sections Drawer Footer */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.drawer-brand {
    display: flex;
    flex-direction: column;
}

.drawer-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--brand);
    text-transform: uppercase;
}

.drawer-brand-sub {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.15rem;
}

.drawer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.drawer-social-btn:hover {
    background: var(--brand);
    color: #ffffff;
    transform: translateY(-2px);
}

.drawer-social-btn svg {
    width: 1rem;
    height: 1rem;
}

.drawer-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.drawer-contact-items {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.drawer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.drawer-contact-link:hover {
    color: var(--brand);
}

.drawer-copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}


/* ═══════════════════════════════════════════════════════════
   BREAKING TICKER
   ═══════════════════════════════════════════════════════════ */

.ticker-bar {
    background: #dc2626;
    color: #ffffff;
    overflow: hidden;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 30;
}

.dark .ticker-bar {
    background: #991b1b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ticker-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: stretch;
}

.ticker-label {
    display: none;
}

.dark .ticker-label {
    background: #7f1d1d;
}

.ticker-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #ffffff;
    animation: tickerPulse 1.5s infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-track {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    animation: tickerSeamless var(--ticker-duration, 40s) linear infinite;
    will-change: transform;
}

.ticker-track:hover .ticker-content,
.ticker-track:focus-within .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.ticker-item:hover {
    color: #fef08a;
    text-decoration: underline;
}

.ticker-separator {
    display: inline-block;
    margin: 0 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

@keyframes tickerSeamless {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}


/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */

.badge {
    display: inline-block;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-breaking {
    background: var(--breaking);
    color: var(--breaking-foreground);
}

.badge-brand {
    background: var(--brand);
    color: var(--brand-foreground);
}


/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS
   ═══════════════════════════════════════════════════════════ */

/* ── Hero card (Title First, Meta, then Big Image) ── */
.card-hero {
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-hero-header {
    margin-bottom: 0.85rem;
    width: 100%;
    min-width: 0;
}

.card-hero-title {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.38;
    color: var(--foreground);
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .card-hero-title { font-size: 1.6rem; }
}

@media (min-width: 1024px) {
    .card-hero-title { font-size: 1.75rem; }
}

.card-hero:hover .card-hero-title {
    color: var(--brand);
}

.card-hero-meta {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    column-gap: 0.45rem;
    font-size: 0.785rem;
    font-weight: 700;
    color: var(--muted-foreground);
    max-width: 100%;
}

.card-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--secondary);
    border-radius: 8px;
}

.card-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}

.card-hero:hover .card-hero-image img {
    transform: scale(1.02);
}


/* ── Small card editorial list layout ── */
.card-sm {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-sm:last-child {
    border-bottom: none;
}

.card-sm-image {
    width: 130px;
    height: 85px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--secondary);
    border-radius: 6px;
}

@media (max-width: 640px) {
    .card-sm {
        gap: 0.75rem;
        padding: 0.85rem 0;
    }
    .card-sm-image {
        width: 105px;
        height: 72px;
    }
}

@media (max-width: 380px) {
    .card-sm-image {
        width: 90px;
        height: 64px;
    }
}

.card-sm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-sm:hover .card-sm-image img {
    transform: scale(1.04);
}

.card-sm-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-sm-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.42;
    font-weight: 700;
    color: var(--foreground);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .card-sm-title {
        font-size: 0.95rem;
        line-height: 1.38;
    }
}

.card-sm:hover .card-sm-title {
    color: var(--brand);
}

.card-sm-meta {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    column-gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    max-width: 100%;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    white-space: nowrap;
}

.card-meta-dot {
    color: var(--muted-foreground);
    opacity: 0.6;
}

.card-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
}


/* ── Medium card ── */
.card-md {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-md-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--secondary);
    border-radius: calc(var(--radius) + 2px);
    margin-bottom: 0.5rem;
    width: 100%;
}

.card-md-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-md:hover .card-md-image img {
    transform: scale(1.05);
}

.card-md-title {
    margin-top: 0.125rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.card-md:hover .card-md-title {
    color: var(--brand);
}

.card-meta {
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    column-gap: 0.4rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    max-width: 100%;
}

.icon-inline {
    display: inline-block;
    width: 0.875em;
    height: 0.875em;
    vertical-align: -0.1em;
    flex-shrink: 0;
}


/* ── Large card ── */
.card-lg {
    display: block;
}

.card-lg-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--secondary);
    border-radius: calc(var(--radius) + 2px);
    margin-bottom: 0.75rem;
}

.card-lg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-lg:hover .card-lg-image img {
    transform: scale(1.05);
}

/* ── Video Badge on Featured Image (Top Right) ── */
.card-hero-image,
.card-sm-image,
.card-md-image,
.card-lg-image,
.article-figure {
    position: relative !important;
}

.card-video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 1;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-video-icon {
    width: 14px;
    height: 14px;
    display: block;
    color: #ffffff;
    stroke: currentColor;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Card-sm specific compact video badge */
.card-video-badge.card-video-badge-sm {
    top: 5px;
    right: 5px;
    padding: 2.5px 4px;
    border-radius: 4px;
}

.card-video-badge.card-video-badge-sm .card-video-icon {
    width: 11px;
    height: 11px;
}

/* Hero / Large / Article page video badge */
.card-video-badge.card-video-badge-lg,
.article-hero-video-badge {
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 7px;
}

.card-video-badge.card-video-badge-lg .card-video-icon,
.article-hero-video-badge .card-video-icon {
    width: 16px;
    height: 16px;
}

/* Card hover animation */
.card-hero:hover .card-video-badge,
.card-sm:hover .card-video-badge,
.card-md:hover .card-video-badge,
.card-lg:hover .card-video-badge {
    transform: scale(1.08);
    background: var(--brand);
    border-color: rgba(255, 255, 255, 0.6);
}

.card-category-lg {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
}

.card-lg-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .card-lg-title {
        font-size: 1.5rem;
    }
}

.card-lg:hover .card-lg-title {
    color: var(--brand);
}

.card-lg-excerpt {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.section-heading-sm {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.heading-xl {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════ */

.page-home {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .page-home {
        padding-top: 2rem;
    }
}

/* Hero + Trending */
.home-hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .home-hero-section {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

.trending-box {
    border-top: 2px solid var(--ink);
    padding-top: 0.75rem;
}

.trending-list {
    counter-reset: trending;
}

.trending-item {
    padding: 0.75rem 0;
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: color-mix(in oklch, var(--brand) 40%, transparent);
    line-height: 1;
    width: 2rem;
    flex-shrink: 0;
}

.trending-card {
    min-width: 0;
}

.trending-card .card-sm {
    padding: 0;
    border: none;
}

/* Top Stories */
.home-top-stories {
    margin-top: 2.5rem;
}

/* Latest Section */
.home-latest-section {
    margin-top: 3rem;
}


/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════════════ */

.article-page {
    width: 100%;
    max-width: 56rem; /* 896px */
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    overflow-x: clip;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .article-page {
        padding-top: 2.5rem;
    }
}

.article-dateline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.dateline-sep {
    margin: 0 0.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.article-category:hover {
    text-decoration: underline;
}

.article-headline {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .article-headline {
        font-size: 3rem;
    }
}

.article-excerpt {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .article-excerpt {
        font-size: 1.25rem;
    }
}

.article-meta-bar {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-share {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background-color: var(--brand);
    color: var(--brand-foreground, #ffffff);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-main-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.share-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Share Modal System */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.share-modal-card {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    z-index: 1;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.share-modal-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}

.share-modal-close {
    padding: 0.35rem;
    border-radius: 9999px;
    color: var(--muted-foreground);
    transition: all 0.15s ease;
}

.share-modal-close:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.share-option-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background-color: color-mix(in oklch, var(--secondary) 30%, transparent);
    color: var(--foreground);
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.share-option-btn:hover {
    transform: translateX(4px);
    border-color: color-mix(in oklch, var(--border) 50%, var(--foreground));
    background-color: var(--secondary);
}

.share-whatsapp:hover {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.share-facebook:hover {
    background-color: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

.share-twitter:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.dark .share-twitter:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.share-copy:hover {
    background-color: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.share-qrcode:hover {
    background-color: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.share-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 0.25rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    animation: fadeIn 0.2s ease;
}

.share-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 0.5rem;
}

.share-qr-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
}

.share-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-figure {
    margin-top: 1.5rem;
}

.article-hero-img {
    width: 100%;
    border-radius: calc(var(--radius) + 2px);
}

.article-figcaption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Article body prose */
.prose-editorial {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--foreground);
    margin-top: 2rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.prose-editorial p {
    margin-top: 1em;
    margin-bottom: 1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.prose-editorial h2 {
    font-size: 1.6rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.prose-editorial h3 {
    font-size: 1.25rem;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.prose-editorial blockquote {
    border-left: 3px solid var(--brand);
    padding-left: 1.25rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35em;
    line-height: 1.4;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.prose-editorial a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

/* Inline Images & Figures within Article Content (Full Featured Image Sizing without Cropping) */
.prose-editorial figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    text-align: center;
    box-sizing: border-box;
}

.prose-editorial figure img,
.prose-editorial img,
.prose-editorial p img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: block !important;
    margin: 1.5rem auto !important;
    cursor: zoom-in;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.prose-editorial figure img:hover,
.prose-editorial img:hover,
.article-hero-img:hover {
    filter: brightness(0.97);
}

.prose-editorial figcaption {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--muted-foreground);
    text-align: center;
    line-height: 1.45;
}

/* Responsive Videos & Media Embeds within Article Content (Full Width & Proper Aspect Ratio) */
.prose-editorial .video-embed-wrapper,
.prose-editorial .video-container,
.prose-editorial figure.media,
.prose-editorial .mce-preview-object,
.prose-editorial .tox-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    display: block !important;
    clear: both;
    text-align: center;
    box-sizing: border-box;
}

.prose-editorial iframe,
.prose-editorial video,
.prose-editorial embed,
.prose-editorial object,
.prose-editorial .video-embed-wrapper iframe,
.prose-editorial .video-container iframe,
.prose-editorial p iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none !important;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: block !important;
    margin: 1.75rem auto !important;
    background: #000;
    box-sizing: border-box;
}

/* Vertical Videos: YouTube Shorts & Facebook Reels (9:16 Portrait Ratio) */
.prose-editorial .video-embed-wrapper.video-ratio-shorts,
.prose-editorial .video-ratio-shorts,
.prose-editorial .video-vertical,
.prose-editorial .video-shorts,
.prose-editorial iframe.video-shorts,
.prose-editorial iframe[src*="/shorts/"],
.prose-editorial iframe[data-ratio="9:16"],
.prose-editorial iframe[data-ratio="shorts"],
.prose-editorial .fb-reel,
.prose-editorial .fb-reel iframe,
.prose-editorial .video-ratio-shorts iframe {
    max-width: 380px !important;
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
    margin: 2rem auto !important;
    border-radius: calc(var(--radius) + 4px);
}

/* Mobile Responsiveness for Videos & Iframes */
@media (max-width: 767px) {
    .prose-editorial .video-embed-wrapper,
    .prose-editorial .video-container,
    .prose-editorial figure.media {
        margin: 1.5rem auto !important;
    }

    .prose-editorial iframe,
    .prose-editorial video,
    .prose-editorial p iframe {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1.25rem auto !important;
    }

    .prose-editorial .video-embed-wrapper.video-ratio-shorts,
    .prose-editorial .video-ratio-shorts,
    .prose-editorial .video-shorts,
    .prose-editorial iframe.video-shorts,
    .prose-editorial iframe[src*="/shorts/"],
    .prose-editorial .fb-reel,
    .prose-editorial .fb-reel iframe {
        max-width: 100% !important;
        width: 100% !important;
        aspect-ratio: 9 / 16 !important;
    }
}

@media (min-width: 768px) {
    .prose-editorial figure.align-left,
    .prose-editorial img.align-left {
        float: left;
        max-width: 48% !important;
        width: 48% !important;
        height: auto !important;
        margin: 0.5rem 1.75rem 1.25rem 0 !important;
    }

    .prose-editorial figure.align-right,
    .prose-editorial img.align-right {
        float: right;
        max-width: 48% !important;
        width: 48% !important;
        height: auto !important;
        margin: 0.5rem 0 1.25rem 1.75rem !important;
    }
}



/* ─── Global Image Lightbox Modal ─── */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: imageLightboxFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imageLightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.image-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 88vh;
}

.image-lightbox-content img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.image-lightbox-caption {
    margin-top: 0.85rem;
    color: #f8fafc;
    font-size: 0.925rem;
    text-align: center;
    max-width: 850px;
    line-height: 1.5;
    padding: 0.4rem 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.article-tags {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--secondary);
    border-radius: 9999px;
    color: var(--muted-foreground);
}

.article-related {
    margin-top: 3.5rem;
    border-top: 2px solid var(--ink);
    padding-top: 1.5rem;
}

.article-related .section-heading {
    margin-bottom: 1.5rem;
}

/* Return to Homepage Button (Article View) */
.article-back-home-wrap {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    background: var(--secondary);
    color: var(--foreground) !important;
    border: 1px solid var(--border);
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-return-home:hover {
    background: var(--brand);
    color: #ffffff !important;
    border-color: var(--brand);
    box-shadow: none;
}

.btn-return-home:active {
    transform: translateY(0);
}

.btn-return-home svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-return-home:hover svg {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .btn-return-home {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════════════════════ */

.page-category {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .page-category { padding-top: 2.5rem; }
}

.category-header {
    border-bottom: 4px solid var(--brand);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand);
}

@media (min-width: 768px) {
    .category-title { font-size: 3rem; }
}

.category-count {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.category-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .category-featured {
        grid-template-columns: 1fr 1fr;
    }
}

.category-featured-list {
    display: flex;
    flex-direction: column;
}

.category-featured-list .card-sm:first-child {
    padding-top: 0;
}

.category-rest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border-top: 2px solid var(--ink);
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .category-rest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .category-rest-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ═══════════════════════════════════════════════════════════
   LOCATION PAGE
   ═══════════════════════════════════════════════════════════ */

.page-location {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .page-location { padding-top: 2.5rem; }
}

.location-header {
    border-bottom: 4px solid var(--brand);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.location-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

.location-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .location-title { font-size: 3rem; }
}

.location-count {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}


/* ═══════════════════════════════════════════════════════════
   ERROR / 404 PAGE
   ═══════════════════════════════════════════════════════════ */

.error-page {
    display: flex;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.error-content {
    max-width: 28rem;
    text-align: center;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--brand);
}

.error-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.error-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.error-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--brand);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-foreground);
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP CHANNEL CTA — FOLLOW BUTTON
   ═══════════════════════════════════════════════════════════ */



.wa-cta-section {
    padding: 2rem 0;
    background: transparent;
}

.wa-cta-container {
    display: flex;
    justify-content: center;
}

.wa-follow-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1.35rem 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;

}

.wa-follow-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.12);
    animation: none;
}

.wa-follow-btn:active {
    transform: translateY(0) scale(1);
}

.dark .wa-follow-btn {
    background: linear-gradient(135deg, #1fa855 0%, #0f7a6e 100%);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.dark .wa-follow-btn:hover {
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wa-follow-icon {
    width: 36px;
    height: 36px;
    color: #ffffff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.wa-follow-text {
    flex: 1;
    font-size: inherit;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wa-follow-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.wa-follow-btn:hover .wa-follow-pill {
    background: rgba(255, 255, 255, 0.38);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .wa-follow-btn {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
        gap: 0.85rem;
        border-radius: 1rem;
    }
    .wa-follow-icon {
        width: 28px;
        height: 28px;
    }
    .wa-follow-pill {
        font-size: 0.72rem;
        padding: 0.35rem 0.85rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    margin-top: 5rem;
    border-top: 4px solid var(--brand);
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
    color: rgba(255, 255, 255, 0.9);
}

.dark .site-footer {
    background: linear-gradient(180deg, #09090b 0%, #030712 100%);
    border-top-color: var(--brand);
}

/* Top WhatsApp & Community CTA Strip */
.footer-cta-strip {
    background: linear-gradient(90deg, #15803d 0%, #166534 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 0;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-cta-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-cta-badge {
    background: #22c55e;
    color: #052e16;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-cta-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    background: #f0fdf4;
}

.footer-cta-btn svg {
    width: 18px;
    height: 18px;
    color: #25d366;
}

/* Footer Grid */
.footer-grid {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.15fr 2.6fr 0.95fr;
        gap: 3rem;
    }
}

/* Sections Unified Center Grid */
.footer-col-sections {
    display: flex;
    flex-direction: column;
}

.footer-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .footer-sections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

.footer-sections-subcol {
    display: flex;
    flex-direction: column;
}

.footer-subcol-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.25rem;
}

/* Responsive Desktop vs Mobile footer sections */
.footer-mobile-sections {
    display: none;
}

.footer-desktop-sections {
    display: grid;
}

@media (max-width: 767px) {
    .footer-desktop-sections {
        display: none !important;
    }
    .footer-mobile-sections {
        display: block !important;
    }
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    display: block;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #ffffff;
    transition: color 0.2s ease;
}

.footer-logo-link:hover .footer-brand-title {
    color: var(--brand);
}

.footer-brand-subtitle {
    font-size: 0.785rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.25rem;
}

.footer-description {
    margin-top: 1.1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 28rem;
    line-height: 1.65;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn svg {
    width: 17px;
    height: 17px;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-fb:hover { background: #1877f2; border-color: #1877f2; }
.social-ig:hover { background: #e1306c; border-color: #e1306c; }
.social-yt:hover { background: #ff0000; border-color: #ff0000; }
.social-x:hover { background: #000000; border-color: #ffffff; }
.social-wa:hover { background: #25d366; border-color: #25d366; }

.footer-heading {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heading-bar {
    width: 4px;
    height: 1rem;
    background: var(--brand);
    border-radius: 2px;
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-link-bullet {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.footer-links a:hover .footer-link-bullet {
    transform: translateX(3px);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-loc-icon {
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 14px;
    height: 14px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Footer Bottom Strip */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    padding: 1.25rem 0;
    font-size: 0.785rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom-copy {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom-copy strong {
    color: #ffffff;
}

/* Static Content Pages (About, Terms, Privacy) */
.static-content-page {
    max-width: 52rem;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.static-page-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .static-page-card {
        padding: 3rem;
    }
}

.static-page-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.static-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.2;
}

.static-page-subtitle {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.static-page-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--foreground);
}

.static-page-body p {
    margin-bottom: 1.25rem;
}

.static-page-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    color: var(--brand);
}

.static-page-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.static-page-body li {
    margin-bottom: 0.5rem;
}

.static-page-body a {
    color: var(--brand);
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════ */

.mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0;
    width: 100%;
    font-size: 0.625rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.mobile-nav-btn:hover {
    color: var(--brand);
}

.mobile-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* ═══════════════════════════════════════════════════════════
   SVG ICONS
   ═══════════════════════════════════════════════════════════ */

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   LOADING SKELETON (for JS-enhanced loading)
   ═══════════════════════════════════════════════════════════ */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--secondary) 25%, var(--muted) 50%, var(--secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}


/* ═══════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════ */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.25rem;
}

@media (max-width: 640px) {
    .search-overlay {
        padding-top: 0.75rem;
    }
}

.search-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
}

.search-overlay-content {
    position: relative;
    width: 100%;
    max-width: 44rem;
    margin: 0 1rem;
    z-index: 99999;
    animation: searchSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-1.25rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-overlay-form {
    width: 100%;
}

.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    border: 2px solid var(--brand);
    border-radius: var(--radius-lg, 0.75rem);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.search-overlay-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--brand);
    flex-shrink: 0;
}

.search-overlay-icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--brand);
    flex-shrink: 0;
}

.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--foreground);
    font-family: inherit;
    padding: 0.25rem 0;
}

.search-overlay-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.8;
}

.search-overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--muted-foreground);
    background: var(--secondary);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.search-overlay-close:hover {
    color: var(--foreground);
    background: var(--muted);
    transform: scale(1.05);
}

.search-overlay-close svg {
    width: 1.1rem;
    height: 1.1rem;
}


/* ═══════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════ */

.search-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: 60vh;
}

.search-page-header {
    margin-bottom: 2rem;
}

.search-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .search-page-title {
        font-size: 2.25rem;
    }
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 40rem;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1rem;
    transition: border-color 0.2s ease;
}

.search-input-wrap:focus-within {
    border-color: var(--brand);
}

.search-input-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--foreground);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

/* Remove native browser search cancel/clear button across all browsers */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.search-clear {
    display: flex;
    align-items: center;
    color: var(--muted-foreground);
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: color 0.15s ease;
}

.search-clear:hover {
    color: var(--foreground);
}

.search-submit {
    padding: 0.625rem 1.5rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.search-submit:hover {
    opacity: 0.9;
}

/* Results info */
.search-results-info {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.search-results-count strong {
    color: var(--foreground);
}

/* Results grid */
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* No results */
.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.search-no-results-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-no-results-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--muted-foreground);
    opacity: 0.4;
}

.search-no-results h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.search-no-results p {
    color: var(--muted-foreground);
    max-width: 28rem;
    margin: 0 auto;
}

/* Empty state (no query yet) */
.search-empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.search-empty-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-empty-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--muted-foreground);
    opacity: 0.3;
}

.search-empty-state p {
    color: var(--muted-foreground);
    font-size: 1.0625rem;
}


/* ═══════════════════════════════════════════════════════════
   3-COLUMN HOMEPAGE PORTAL
   ═══════════════════════════════════════════════════════════ */

.home-portal-section {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-portal-3col {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .home-portal-3col {
        grid-template-columns: 280px minmax(0, 1fr) 280px;
        gap: 1.75rem;
    }
}

@media (min-width: 1280px) {
    .home-portal-3col {
        grid-template-columns: 310px minmax(0, 1fr) 310px;
        gap: 2rem;
    }
}

/* Portal Columns Ordering: Mobile = Latest (1) -> Trending (2) -> Recommended (3) | Desktop = Trending (1) -> Latest (2) -> Recommended (3) */
.portal-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-center-main,
.portal-hero-wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .portal-col-center {
        order: 1 !important;
    }
    .portal-col-trending {
        order: 2 !important;
    }
    .portal-col-recommended {
        order: 3 !important;
    }
}

@media (min-width: 1024px) {
    .portal-col-trending {
        order: 1;
    }
    .portal-col-center {
        order: 2;
    }
    .portal-col-recommended {
        order: 3;
    }

    /* Portal side columns display openly like Latest news column */
    .portal-col-trending,
    .portal-col-recommended {
        position: static;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    .portal-scroll-container {
        overflow-y: visible;
        max-height: none;
        scrollbar-width: none;
        padding-right: 0;
        flex: none;
    }
}

@media (max-width: 1023px) {
    .portal-scroll-container {
        overflow-y: visible !important;
        max-height: none !important;
    }
}

/* Card Interactive Hover */
.portal-col .card-sm {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.portal-col-trending .card-sm:hover,
.portal-col-recommended .card-sm:hover {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .portal-col-trending .card-sm:hover,
    .portal-col-recommended .card-sm:hover {
        transform: none !important;
    }
}

/* Column Headers */
.portal-col-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.portal-header-trending {
    border-bottom-color: #3b82f6;
}

.portal-header-center {
    border-bottom-color: var(--brand);
}

.portal-header-recommended {
    border-bottom-color: #8b5cf6;
}

.portal-col-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Side Columns: Trending & Recommended */
.portal-col-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-col-trending .card-sm,
.portal-col-recommended .card-sm {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-col-trending .card-sm:last-child,
.portal-col-recommended .card-sm:last-child {
    border-bottom: none;
}

.portal-col-trending .card-sm-image,
.portal-col-recommended .card-sm-image {
    width: 88px;
    height: 76px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--secondary);
}

@media (max-width: 640px) {
    .portal-col-trending .card-sm-image,
    .portal-col-recommended .card-sm-image {
        width: 95px;
        height: 70px;
    }
}

@media (max-width: 380px) {
    .portal-col-trending .card-sm-image,
    .portal-col-recommended .card-sm-image {
        width: 80px;
        height: 64px;
    }
}

.portal-col-trending .card-sm-image img,
.portal-col-recommended .card-sm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portal-col-trending .card-sm:hover .card-sm-image img,
.portal-col-recommended .card-sm:hover .card-sm-image img {
    transform: scale(1.04);
}

.portal-col-trending .card-sm-body,
.portal-col-recommended .card-sm-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-col-trending .card-sm-title,
.portal-col-recommended .card-sm-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.42;
    color: var(--foreground);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.portal-col-trending .card-sm:hover .card-sm-title,
.portal-col-recommended .card-sm:hover .card-sm-title {
    color: var(--brand);
}

.portal-col-trending .card-sm-meta,
.portal-col-recommended .card-sm-meta {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    column-gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--brand);
    max-width: 100%;
}

/* Center Column: Latest News List Below Hero */
.portal-center-latest-list {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-center-latest-list .card-sm {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-center-latest-list .card-sm:last-child {
    border-bottom: none;
}

.portal-center-latest-list .card-sm-image {
    width: 135px;
    height: 90px;
    border-radius: 6px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .portal-center-latest-list .card-sm-image {
        width: 105px;
        height: 72px;
    }
}

@media (max-width: 380px) {
    .portal-center-latest-list .card-sm-image {
        width: 90px;
        height: 64px;
    }
}

.portal-center-latest-list .card-sm-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.42;
}

@media (max-width: 640px) {
    .portal-center-latest-list .card-sm-title {
        font-size: 0.95rem;
        line-height: 1.38;
    }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY STREAMS (Scrolling Down)
   ═══════════════════════════════════════════════════════════ */

.home-categories-stream {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.category-block-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .category-block-row {
        padding: 1rem;
    }
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--brand);
    width: 100%;
    box-sizing: border-box;
}

.category-block-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .category-block-title {
        font-size: 1.1rem;
    }
}

.category-block-accent {
    display: inline-block;
    width: 4px;
    height: 1.15rem;
    background: var(--brand);
    border-radius: 2px;
}

.category-block-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.category-block-more:hover {
    transform: translateX(3px);
    opacity: 0.85;
}

.category-block-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem 1.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .category-block-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.category-block-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.category-block-item:last-child {
    border-bottom: none;
}

.category-block-item .card-sm {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.category-block-item .card-sm-image {
    width: 90px;
    height: 75px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--secondary);
}

@media (max-width: 380px) {
    .category-block-item .card-sm-image {
        width: 78px;
        height: 64px;
    }
}

.category-block-item .card-sm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.category-block-item .card-sm:hover .card-sm-image img {
    transform: scale(1.05);
}

.category-block-item .card-sm-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-block-item .card-sm-title {
    font-family: var(--font-sans);
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.category-block-item .card-sm:hover .card-sm-title {
    color: var(--brand);
}

.category-block-item .card-sm-meta {
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    column-gap: 0.35rem;
    font-size: 0.725rem;
    color: var(--muted-foreground);
    max-width: 100%;
}

.category-block-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.category-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-view-more-btn:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    box-shadow: none;
}

/* More News Feed */
.home-more-section {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.more-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .more-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL BLUE PAGE LOADER (TOP BAR + CIRCLE SPINNER)
   ═══════════════════════════════════════════════════════════ */
.lp-page-loader {
    pointer-events: none;
    z-index: 99999999;
}

.lp-loader-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    z-index: 99999999;
    pointer-events: none;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 30%, #3b82f6 70%, #60a5fa 100%);
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.85), 0 0 6px rgba(96, 165, 250, 0.7);
    border-radius: 0 3px 3px 0;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.lp-page-loader.is-loading .lp-loader-progress,
body.is-page-loading .lp-loader-progress {
    opacity: 1;
}

.lp-loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
    animation: lpProgressShimmer 1.2s infinite;
}

@keyframes lpProgressShimmer {
    0% { opacity: 0.2; transform: translateX(-45px); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0.2; transform: translateX(45px); }
}

/* Spinner disabled for instant, clean page loads */
.lp-loader-spinner {
    display: none !important;
}

@keyframes lpSpinnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── Non-loading state safeguards (kill animation & hide bar completely) ─── */
.lp-page-loader:not(.is-loading) .lp-loader-progress {
    opacity: 0 !important;
    width: 0% !important;
    pointer-events: none !important;
}

.lp-page-loader:not(.is-loading) .lp-loader-progress::after {
    display: none !important;
    animation: none !important;
}

.lp-page-loader:not(.is-loading) .lp-loader-spinner {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
}

/* ─── Mobile Preview on Public Site (Home / Articles): Hide circle spinner, keep top progress bar ─── */
@media (max-width: 767px) {
    .lp-loader-spinner {
        display: none !important;
    }
}






/* ==========================================================================
   Article Breadcrumbs (SEO & Navigation)
   ========================================================================== */
.article-breadcrumb {
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
}
.breadcrumb-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted-foreground, #6b7280);
}
.breadcrumb-trail a {
    color: var(--muted-foreground, #6b7280);
    text-decoration: none;
    transition: color 0.15s ease;
}
.breadcrumb-trail a:hover {
    color: var(--brand, #1a5fbb);
    text-decoration: underline;
}
.breadcrumb-separator {
    color: var(--border, #d1d5db);
    font-size: 0.75rem;
    user-select: none;
}
.breadcrumb-current {
    color: var(--foreground, #111827);
    font-weight: 600;
}
html.dark .breadcrumb-current {
    color: var(--foreground, #f3f4f6);
}
html.dark .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   READER SIGN-IN & EMAIL NEWSLETTER SUBSCRIPTION UI
   ========================================================================== */

/* Header Action Button */
.reader-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 9999px;
    background: var(--bg-secondary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--foreground, #0f172a);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.reader-auth-btn:hover {
    background: var(--secondary, #e2e8f0);
    border-color: var(--border-color, #cbd5e1);
    color: var(--brand, #1a5fbb);
    box-shadow: none;
    transform: none;
}

.dark .reader-auth-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: none;
}

.dark .reader-auth-btn:hover {
    background: #334155;
    border-color: #475569;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.reader-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-active-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #ffffff;
}

.dark .reader-active-indicator {
    border-color: #0f172a;
}

/* Mobile Header Adjustment */
@media (max-width: 640px) {
    .reader-auth-btn {
        padding: 0.45rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .reader-nav-text {
        display: none;
    }
}

/* Mobile Drawer Card */
.mobile-reader-card {
    margin: 0.75rem 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 95, 187, 0.05) 0%, rgba(26, 95, 187, 0.12) 100%);
    border: 1px solid rgba(26, 95, 187, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .mobile-reader-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.18) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.mobile-reader-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-reader-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark .mobile-reader-icon {
    background: #1a5fbb;
}

.mobile-reader-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-reader-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--foreground, #0f172a);
    line-height: 1.3;
}

.mobile-reader-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground, #64748b);
    line-height: 1.3;
    margin-top: 2px;
}

.mobile-reader-btn {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dark .mobile-reader-btn {
    background: #1a5fbb;
}

/* Modal Overlay & Card */
.reader-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.reader-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.reader-auth-container {
    position: relative;
    z-index: 2;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: readerModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.dark .reader-auth-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

@keyframes readerModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reader-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary, #f1f5f9);
    color: var(--muted-foreground, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dark .reader-auth-close {
    background: #334155;
    color: #cbd5e1;
}

.reader-auth-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.dark .reader-auth-close:hover {
    background: #475569;
    color: #ffffff;
}

.reader-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reader-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(26, 95, 187, 0.08);
    color: var(--brand, #1a5fbb);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.dark .reader-auth-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #f87171;
}

.reader-auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foreground, #0f172a);
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
}

.reader-auth-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground, #64748b);
    line-height: 1.5;
    margin: 0;
}

/* Google Sign In Button */
.reader-google-section {
    margin-bottom: 1.25rem;
}

#g_id_signin_container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

#g_id_signin_container > div {
    margin: 0 auto !important;
}

.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    transition: all 0.2s ease;
}

.dark .btn-google-auth {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

.btn-google-auth:hover {
    background: #f8fafc;
    border-color: #c0c4cc;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.15);
    transform: translateY(-1px);
}

.dark .btn-google-auth:hover {
    background: #1e293b;
    border-color: #64748b;
}

/* Divider */
.reader-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
}

.reader-divider::before,
.reader-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.reader-divider span {
    padding: 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted-foreground, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Input Styles */
.reader-input-group {
    margin-bottom: 1rem;
}

.reader-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--foreground, #0f172a);
    margin-bottom: 0.45rem;
}

.reader-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.reader-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted-foreground, #94a3b8);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.reader-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f8fafc);
    color: var(--foreground, #0f172a);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dark .reader-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.reader-input:focus {
    outline: none;
    border-color: var(--brand, #1a5fbb);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 95, 187, 0.15);
}

.dark .reader-input:focus {
    border-color: #3b82f6;
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.reader-input.reader-input-highlight {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.dark .reader-input.reader-input-highlight {
    border-color: #3b82f6 !important;
    background: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.reader-otp-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 2px dashed var(--brand, #1a5fbb);
    background: var(--bg-secondary, #f8fafc);
    color: var(--brand, #1a5fbb);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.5em;
    text-align: center;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dark .reader-otp-input {
    border-color: #3b82f6;
    color: #60a5fa;
    background: #0f172a;
}

.btn-reader-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: none;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: none;
}

.dark .btn-reader-submit {
    background: #1a5fbb;
    box-shadow: none;
}

.btn-reader-submit:hover:not(:disabled) {
    background: #154c96;
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-reader-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Email & Password Choice Pill Button (Reference Image 2) */
.reader-email-choice-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-email-pwd-choice {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1.25rem;
    background: var(--bg-card, #ffffff);
    border: 1.5px solid #d1d5db;
    border-radius: 9999px;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dark .btn-email-pwd-choice {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

.btn-email-pwd-choice:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.dark .btn-email-pwd-choice:hover {
    background: #1e293b;
    border-color: #64748b;
}

.btn-email-pwd-choice svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

.dark .btn-email-pwd-choice svg {
    color: #cbd5e1;
}

/* Email & Password Views (Reference Image 1) */
.reader-view-top-nav {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.btn-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.btn-auth-back:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.dark .btn-auth-back {
    color: #94a3b8;
}

.dark .btn-auth-back:hover {
    color: #f8fafc;
    background: #334155;
}

.reader-auth-header-card {
    text-align: center;
    margin-bottom: 1.25rem;
}

.reader-header-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fef2f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}

.dark .reader-header-icon-box {
    background: rgba(59, 130, 246, 0.15);
}

.auth-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.01em;
}

.dark .auth-card-title {
    color: #f8fafc;
}

.highlight-coral {
    color: #1a5fbb;
}

.auth-card-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.dark .auth-card-subtitle {
    color: #94a3b8;
}

.reader-field-group {
    margin-bottom: 0.85rem;
    text-align: left;
}

.reader-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.dark .reader-field-label {
    color: #94a3b8;
}

.reader-field-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dark .reader-field-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.reader-field-input:focus {
    outline: none;
    border-color: #1a5fbb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 95, 187, 0.12);
}

.dark .reader-field-input:focus {
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.reader-input-inline-btn-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-inline-send {
    padding: 0.75rem 1.15rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dark .btn-inline-send {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.btn-inline-send:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.dark .btn-inline-send:hover:not(:disabled) {
    background: #334155;
    color: #ffffff;
}

.btn-inline-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reader-field-hint {
    font-size: 0.75rem;
    color: #16a34a;
    margin-top: 0.35rem;
    font-weight: 600;
}

.reader-checkbox-wrap {
    margin: 0.5rem 0 0.9rem 0;
    display: flex;
    align-items: center;
}

.reader-custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.dark .reader-custom-checkbox {
    color: #94a3b8;
}

.reader-custom-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a5fbb;
    cursor: pointer;
}

.btn-reader-action {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: none;
    background: #1a5fbb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-reader-action:hover:not(:disabled) {
    background: #155099;
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-reader-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-legal-text {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin: 0.85rem 0 0.25rem 0;
    line-height: 1.45;
}

.auth-legal-text a {
    color: #1a5fbb;
    text-decoration: none;
    font-weight: 600;
}

.auth-legal-text a:hover {
    text-decoration: underline;
}

.auth-footer-toggle {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
}

.dark .auth-footer-toggle {
    color: #94a3b8;
}

.btn-link-action {
    background: none;
    border: none;
    color: #1a5fbb;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.btn-link-action:hover {
    text-decoration: underline;
}

.reader-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.reader-label-row .reader-field-label {
    margin-bottom: 0;
}

.btn-link-subtle {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-link-subtle:hover {
    color: #1a5fbb;
    text-decoration: underline;
}


.reader-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.reader-alert-error {
    background: #fef2f2;
    color: #0d3468;
    border: 1px solid #fecaca;
}

.dark .reader-alert-error {
    background: rgba(26, 95, 187, 0.2);
    color: #fca5a5;
    border-color: rgba(26, 95, 187, 0.4);
}

.reader-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary, #f1f5f9);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--foreground, #0f172a);
    margin-bottom: 1rem;
}

.dark .reader-email-chip {
    background: #0f172a;
    color: #f8fafc;
}

.btn-chip-edit {
    background: none;
    border: none;
    color: var(--brand, #1a5fbb);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.dark .btn-chip-edit {
    color: #60a5fa;
}

.reader-resend-wrap {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--muted-foreground, #64748b);
}

.btn-resend {
    background: none;
    border: none;
    color: var(--brand, #1a5fbb);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.82rem;
}

/* Logged-In Profile View */
.reader-profile-card {
    text-align: center;
}

.reader-profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 3px solid rgba(26, 95, 187, 0.15);
}

.dark .reader-profile-avatar {
    background: #1a5fbb;
}

.reader-profile-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground, #0f172a);
    margin: 0 0 0.25rem 0;
}

.reader-profile-email {
    font-size: 0.85rem;
    color: var(--muted-foreground, #64748b);
    margin: 0 0 1.25rem 0;
    font-family: monospace;
}

.reader-sub-status-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.dark .reader-sub-status-box {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.status-text-wrap strong {
    display: block;
    color: #065f46;
    font-size: 0.85rem;
}

.dark .status-text-wrap strong {
    color: #6ee7b7;
}

.status-text-wrap small {
    display: block;
    color: #047857;
    font-size: 0.75rem;
    margin-top: 2px;
}

.dark .status-text-wrap small {
    color: #a7f3d0;
}

/* ═══ Admin Control Box in Reader Profile ═══ */
.reader-admin-box {
    margin: 1.15rem 0 1.25rem 0;
    padding: 1.1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(26, 95, 187, 0.25);
    box-shadow: none;
    text-align: left;
}

.dark .reader-admin-box {
    background: #0f172a;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: none;
}

.reader-admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reader-admin-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #1a5fbb, #0d3468);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    box-shadow: none !important;
}

.reader-admin-access-note {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a5fbb;
    letter-spacing: 0.02em;
}

.dark .reader-admin-access-note {
    color: #60a5fa;
}

.btn-profile-admin {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.dark .btn-profile-admin {
    background: #1e293b;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: none !important;
}

.btn-profile-admin:hover {
    background: #1a5fbb;
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none !important;
    color: #ffffff !important;
}

.dark .btn-profile-admin:hover {
    background: #1a5fbb;
    box-shadow: none !important;
}

.btn-admin-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.btn-profile-admin:hover .btn-admin-icon-wrap {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: scale(1.05);
}

.btn-admin-label-wrap {
    flex-grow: 1;
    text-align: left;
    margin: 0 0.85rem;
    display: flex;
    flex-direction: column;
}

.btn-admin-main-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.btn-admin-sub-title {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.25;
}

.btn-profile-admin:hover .btn-admin-sub-title {
    color: rgba(255, 255, 255, 0.88);
}

.btn-admin-arrow {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.btn-profile-admin:hover .btn-admin-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.reader-auth-btn-admin {
    border-color: rgba(59, 130, 246, 0.45) !important;
}

.reader-auth-btn-admin .reader-nav-avatar {
    box-shadow: none !important;
    border: 2px solid #3b82f6;
}

.reader-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.btn-profile-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}


.btn-profile-logout {
    background: var(--bg-secondary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--muted-foreground, #64748b);
}

.dark .btn-profile-logout {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.btn-profile-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #1a5fbb;
}

.reader-action-toast {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    animation: toastFade 0.2s ease;
}

@keyframes toastFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════
   READER BOOKMARKS / "SAVED NEWS" (വായനാ പട്ടിക)
   ═══════════════════════════════════════════════════════════════════ */

.btn-card-bookmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--muted-foreground, #64748b);
    cursor: pointer;
    line-height: 1;
    transition: all 0.18s ease;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent !important;
}

.btn-card-bookmark:hover {
    color: var(--brand, #1a5fbb);
    background: rgba(26, 95, 187, 0.08);
}

.btn-card-bookmark.is-bookmarked {
    color: var(--brand, #1a5fbb);
}

.article-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    background: var(--bg-secondary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    color: var(--foreground, #1e293b);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent !important;
}

.dark .article-bookmark-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.article-bookmark-btn:hover {
    border-color: var(--brand, #1a5fbb);
    color: var(--brand, #1a5fbb);
}

.article-bookmark-btn.is-bookmarked {
    background: rgba(26, 95, 187, 0.1);
    border-color: var(--brand, #1a5fbb);
    color: var(--brand, #1a5fbb);
}

/* Reader Profile Bookmarks Section */
.reader-bookmarks-section {
    margin-top: 1rem;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    padding: 0.9rem;
    text-align: left;
}

.dark .reader-bookmarks-section {
    background: #0f172a;
    border-color: #334155;
}

.reader-bookmarks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reader-bookmarks-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--foreground, #1e293b);
}

.dark .reader-bookmarks-title-row {
    color: #f1f5f9;
}

.bookmarks-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--brand, #1a5fbb);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
}

.btn-refresh-bookmarks {
    background: transparent;
    border: none;
    color: var(--muted-foreground, #64748b);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-refresh-bookmarks:hover {
    color: var(--foreground, #1e293b);
    background: rgba(0, 0, 0, 0.05);
}

.reader-bookmarks-list-container {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.reader-bookmarks-placeholder {
    padding: 1.25rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.reader-bookmarks-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-article-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.dark .saved-article-row {
    background: #1e293b;
    border-color: #334155;
}

.saved-article-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.saved-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saved-article-info {
    flex: 1;
    min-width: 0;
}

.saved-article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.825rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--foreground, #0f172a);
    text-decoration: none;
}

.dark .saved-article-title {
    color: #f1f5f9;
}

.saved-article-title:hover {
    color: var(--brand, #1a5fbb);
}

.saved-article-meta {
    font-size: 0.725rem;
    color: var(--muted-foreground, #64748b);
    margin-top: 3px;
}

.btn-remove-saved {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0;
}

.btn-remove-saved:hover {
    text-decoration: underline;
}

.bookmark-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 95, 187, 0.2);
    border-top-color: var(--brand, #1a5fbb);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: 6px;
}

/* Reader Profile Push Settings Box */
.reader-push-setting-box {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.75rem 0.9rem;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    text-align: left;
}

.dark .reader-push-setting-box {
    background: #0f172a;
    border-color: #334155;
}

.push-setting-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.push-setting-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 95, 187, 0.1);
    color: var(--brand, #1a5fbb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-sm-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: #ffffff;
    color: var(--foreground, #334155);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent !important;
}

.dark .btn-sm-pill {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.btn-sm-pill.btn-push-active {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════
   WEB PUSH NOTIFICATIONS FLOATING PROMPT
   ═══════════════════════════════════════════════════════════════════ */

.lp-push-prompt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: calc(100% - 32px);
    max-width: 400px;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.lp-push-prompt.lp-push-prompt-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.push-prompt-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 1.25rem;
    overflow: hidden;
}

.dark .push-prompt-card {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.push-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted-foreground, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent !important;
}

.push-prompt-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--foreground, #0f172a);
}

.dark .push-prompt-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.push-prompt-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.push-bell-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(26, 95, 187, 0.1);
    color: #1a5fbb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
}

.dark .push-bell-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: none !important;
}

.push-prompt-text {
    flex: 1;
    min-width: 0;
}

.push-prompt-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a5fbb;
    background: rgba(26, 95, 187, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.push-prompt-title {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--foreground, #0f172a);
    line-height: 1.3;
}

.dark .push-prompt-title {
    color: #f8fafc;
}

.push-prompt-desc {
    margin: 0;
    font-size: 0.825rem;
    line-height: 1.45;
    color: var(--muted-foreground, #64748b);
}

.dark .push-prompt-desc {
    color: #94a3b8;
}

.push-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-push-enable {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: none;
    background: #1a5fbb;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent !important;
}

.btn-push-enable:hover {
    background: #134a8a;
    transform: none;
    box-shadow: none !important;
}

.btn-push-dismiss {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: transparent;
    color: var(--muted-foreground, #64748b);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent !important;
}

.dark .btn-push-dismiss {
    border-color: #334155;
    color: #94a3b8;
}

.btn-push-dismiss:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--foreground, #0f172a);
}

.dark .btn-push-dismiss:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

@media (max-width: 640px) {
    .lp-push-prompt {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
