/* ========================================
   LearntoSucceed.com - Spiritual Thoughts
   Palette: Soft Bloom / Earth Tones
   Fonts: Lora (serif), Inter (sans-serif)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #faf5f0;
    --tan-light: #f0e6dc;
    --tan: #e6d5c3;
    --brown-text: #5c4a3a;
    --brown-accent: #8b6b4a;
    --brown-light: #a8896e;
    --brown-dark: #4a3828;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(92, 74, 58, 0.08);
    --shadow-md: 0 4px 12px rgba(92, 74, 58, 0.10);
    --shadow-lg: 0 8px 24px rgba(92, 74, 58, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brown-text);
    background-color: var(--cream);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: var(--brown-dark);
}

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

/* --- Disclaimer Banner --- */
.disclaimer-banner {
    background: var(--tan-light);
    border-bottom: 1px solid var(--tan);
    padding: 6px 16px;
    text-align: center;
    font-size: 0.72em;
    color: var(--brown-light);
    line-height: 1.5;
}
.disclaimer-banner-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--tan);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-inner .tagline {
    flex: 1;
    text-align: center;
}

.header-search {
    flex-shrink: 0;
}

.header-search-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid var(--tan);
    border-radius: 20px;
    background: var(--cream);
    color: var(--brown-text);
    width: 160px;
    outline: none;
    transition: var(--transition);
}

.header-search-input::placeholder {
    color: var(--brown-light);
    opacity: 0.6;
}

.header-search-input:focus {
    border-color: var(--brown-accent);
    width: 220px;
    box-shadow: 0 0 0 2px rgba(139, 107, 74, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brown-text);
    white-space: nowrap;
    text-decoration: none;
}

.logo:hover {
    color: var(--brown-text);
}

.logo-leaf {
    font-size: 1.1rem;
    margin-right: 6px;
    line-height: 1;
}

.logo-succeed {
    color: var(--brown-accent);
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--brown-light);
    font-style: italic;
    white-space: nowrap;
}

/* --- Header Nav Dropdown --- */
.header-nav {
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brown-accent);
    background: none;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    padding: 6px 14px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-dropdown-btn:hover {
    background: var(--tan-light);
    color: var(--brown-dark);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 150;
    list-style: none;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--brown-text);
    transition: background var(--transition);
}

.nav-dropdown-menu li a:hover {
    background: var(--tan-light);
    color: var(--brown-dark);
}

.nav-soon a {
    color: var(--brown-light) !important;
    cursor: default;
}

.nav-soon a:hover {
    background: transparent !important;
}

.nav-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brown-light);
    background: var(--tan-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-divider {
    height: 1px;
    background: var(--tan);
    margin: 4px 0;
}

/* --- Archive Page --- */
.archive-page {
    padding-top: 32px;
}

.archive-page-header {
    margin-bottom: 28px;
}

.back-link {
    font-size: 0.82rem;
    color: var(--brown-light);
    display: inline-block;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--brown-accent);
}

/* --- Dashboard --- */
.dashboard {
    background: var(--white);
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--tan);
}

.dashboard-date-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-date {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brown-dark);
}

.dashboard-time {
    font-size: 0.82rem;
    color: var(--brown-light);
    font-variant-numeric: tabular-nums;
}

/* Play All button */
.play-all-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}
.play-all-btn:hover { transform: scale(1.03); }
.play-all-btn.playing {
    background: var(--brown-dark);
    animation: play-all-pulse 2s ease-in-out infinite;
}
@keyframes play-all-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Now-playing highlight on tiles */
.dash-tile.now-playing {
    box-shadow: 0 0 0 2px var(--accent, #8B6914), 0 4px 16px rgba(139, 105, 20, 0.18);
    transition: box-shadow 0.3s;
}

/* Play All progress bar */
.play-all-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 12px;
    background: var(--cream);
    border: 1px solid var(--tan);
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    color: var(--brown-dark);
}
.play-all-progress .progress-label {
    font-weight: 600;
    white-space: nowrap;
}
.play-all-progress .progress-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.play-all-progress .progress-skip {
    background: none;
    border: 1px solid var(--tan);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--brown-dark);
}
.play-all-progress .progress-skip:hover { background: var(--tan); }
.play-all-progress .progress-stop {
    background: none;
    border: 1px solid var(--tan);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    color: #c0392b;
}
.play-all-progress .progress-stop:hover { background: #fde8e8; }
body.dark-mode .play-all-progress { background: rgba(30,25,20,0.6); border-color: var(--tan); }

/* Archive Playback Bar */
.archive-playback-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    margin-bottom: 12px;
    background: var(--cream);
    border: 1px solid var(--tan);
    border-radius: var(--radius-lg);
}
.playback-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}
.toggle-label {
    font-size: 0.82rem;
    color: var(--brown-dark);
    white-space: nowrap;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--tan);
    border-radius: 22px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--accent, #8B6914);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}
.archive-playback-bar .play-all-btn {
    margin-left: auto;
}

/* Archive Now Playing bar */
#archive-now-playing:empty { display: none; }
#archive-now-playing .play-all-progress { margin-bottom: 12px; }

/* Now-playing card highlight in archive */
.thought-card.now-playing {
    box-shadow: 0 0 0 2px var(--accent, #8B6914), 0 4px 16px rgba(139, 105, 20, 0.18);
    transition: box-shadow 0.3s;
}

body.dark-mode .archive-playback-bar { background: rgba(30,25,20,0.6); border-color: var(--tan); }

/* Sleep Timer */
.sleep-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.sleep-timer-label {
    font-size: 0.82rem;
    color: var(--brown-dark);
    white-space: nowrap;
}
.sleep-timer-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 4px 8px;
    border: 1px solid var(--tan);
    border-radius: 6px;
    background: var(--white);
    color: var(--brown-text);
    cursor: pointer;
}
.sleep-timer-countdown {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--brown-accent);
    font-weight: 600;
    min-width: 50px;
}
body.dark-mode .sleep-timer-label { color: var(--cream); }
body.dark-mode .sleep-timer-select { background: rgba(30,25,20,0.5); border-color: var(--tan); color: var(--cream); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.dash-tile {
    background: var(--cream);
    border: 1px solid var(--tan);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.dash-tile:hover {
    box-shadow: var(--shadow-md);
}

.dash-tile-active {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--white) 0%, var(--tan-light) 100%);
    border-color: var(--brown-accent);
    border-width: 1.5px;
}

@media (min-width: 769px) {
    .dash-tile-active {
        grid-column: span 2;
    }
}

.dash-tile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tan);
    background: rgba(255,255,255,0.6);
}

.dash-tile-icon {
    font-size: 1.1rem;
}

.dash-tile-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brown-accent);
    text-decoration: none;
}

a.dash-tile-label:hover {
    text-decoration: underline;
    color: var(--brown-dark);
}

.dash-tile-body {
    padding: 16px;
}

/* Active tile body layout */
.dash-thought-title {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
}

.dash-thought-meta {
    font-size: 0.82rem;
    color: var(--brown-light);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.dash-thought-audio {
    margin-bottom: 12px;
}

.dash-thought-audio audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius);
}

.dash-thought-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-archive-link {
    font-size: 0.75rem;
    color: var(--brown-light);
    margin-left: auto;
    align-self: center;
    transition: color var(--transition);
}

.dash-archive-link:hover {
    color: var(--brown-accent);
}

/* Coming soon tile */
.dash-tile-soon {
    opacity: 0.6;
}

.coming-soon-text {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brown-light);
    padding: 16px 0;
    font-style: italic;
}

/* --- Quote Tile --- */
.dash-tile-quote {
    opacity: 1;
}

.quote-block {
    padding: 8px 0;
    border: none;
    margin: 0;
}

.quote-text {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--brown-dark);
    margin-bottom: 6px;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-style: normal;
    color: var(--brown-light);
    font-weight: 500;
}

.leadership-pillar {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-style: normal;
    color: var(--cream-bg);
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.scripture-ref {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.scripture-text {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--brown-dark);
}

/* --- Reading Time --- */
.read-time {
    background: var(--tan-light);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* --- Welcome Back --- */
.welcome-back {
    padding: 8px 16px;
    background: var(--tan-light);
    border-top: 1px solid var(--tan);
    font-size: 0.78rem;
    color: var(--brown-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.wb-link {
    color: var(--brown-accent);
}

.wb-link:hover {
    color: var(--brown-dark);
}

/* --- Favorites --- */
.fav-btn.fav-active,
.fav-btn:hover {
    color: var(--brown-dark);
}

/* --- Dark Mode Toggle --- */
.dark-mode-toggle {
    background: none;
    border: 1px solid var(--tan);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--brown-light);
    transition: all var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dark-mode-toggle:hover {
    background: var(--tan-light);
    color: var(--brown-dark);
}

/* --- Dark Mode Theme --- */
body.dark-mode {
    --cream: #1a1612;
    --tan-light: #2a2318;
    --tan: #3d3228;
    --brown-text: #d4c8b8;
    --brown-accent: #c4a67a;
    --brown-light: #b0a090;
    --brown-dark: #e8ddd0;
    --white: #221d17;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .site-header {
    background: #1e1914;
    border-color: var(--tan);
}

body.dark-mode .dark-mode-toggle {
    border-color: var(--tan);
    color: #e8ddd0;
}

body.dark-mode .disclaimer-banner {
    background: #1e1914;
    border-color: var(--tan);
    color: var(--brown-text);
}

body.dark-mode .donate-bar,
body.dark-mode .feedback-form-wide {
    background: #2a2318;
}

body.dark-mode .donate-bar,
body.dark-mode .donate-title,
body.dark-mode .donate-desc,
body.dark-mode .donate-note {
    color: var(--brown-text);
}

body.dark-mode .feedback-title,
body.dark-mode .feedback-subtitle {
    color: var(--brown-text);
}

body.dark-mode .site-footer {
    background: #0e0c0a;
    color: var(--brown-text);
}

body.dark-mode .footer-mission,
body.dark-mode .footer-disclaimer,
body.dark-mode .footer-copy {
    color: var(--brown-light);
}

body.dark-mode .footer-col-title {
    color: var(--brown-dark);
}

body.dark-mode .footer-nav a {
    color: var(--brown-light);
}

body.dark-mode .footer-nav a:hover {
    color: var(--brown-dark);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: #1a1612;
    color: var(--brown-text);
    border-color: var(--tan);
}

body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
    color: var(--brown-light);
    opacity: 0.7;
}

body.dark-mode .btn-primary {
    background: var(--brown-accent);
    color: #1a1612;
}

body.dark-mode .btn-primary:hover {
    background: #d4b88a;
}

body.dark-mode .btn-outline {
    border-color: var(--brown-accent);
    color: var(--brown-accent);
}

body.dark-mode .btn-outline:hover {
    background: var(--brown-accent);
    color: #1a1612;
}

body.dark-mode .nav-dropdown-menu {
    background: #2a2318;
    border-color: var(--tan);
}

body.dark-mode .nav-dropdown-menu li a {
    color: var(--brown-text);
}

body.dark-mode .nav-dropdown-menu li a:hover {
    background: var(--tan);
    color: var(--brown-dark);
}

body.dark-mode .nav-badge {
    background: var(--tan);
    color: var(--brown-light);
}

body.dark-mode .dash-tile {
    background: #221d17;
    border-color: var(--tan);
}

body.dark-mode .dash-tile-header {
    background: rgba(30, 25, 20, 0.8);
    border-color: var(--tan);
    color: var(--brown-dark);
}

body.dark-mode .dash-tile-label {
    color: var(--brown-dark);
}

body.dark-mode .dash-tile-icon {
    filter: brightness(1.2);
}

body.dark-mode .dashboard-date {
    color: var(--brown-dark);
}

body.dark-mode .dashboard-time {
    color: var(--brown-light);
}

body.dark-mode .logo,
body.dark-mode .logo:hover {
    color: var(--brown-dark);
}

body.dark-mode .logo-succeed {
    color: var(--brown-accent);
}

body.dark-mode .tagline {
    color: var(--brown-light);
}

body.dark-mode .nav-dropdown-btn {
    color: var(--brown-accent);
    border-color: var(--tan);
}

body.dark-mode .nav-dropdown-btn:hover {
    background: var(--tan);
    color: var(--brown-dark);
}

body.dark-mode .header-search-input {
    background: #1a1612;
    color: var(--brown-text);
    border-color: var(--tan);
}

body.dark-mode .dash-thought-title {
    color: var(--brown-dark);
}

body.dark-mode .dash-thought-meta {
    color: var(--brown-light);
}

body.dark-mode .coming-soon-text {
    color: var(--brown-light);
}

body.dark-mode .dash-archive-link {
    color: var(--brown-accent);
}

body.dark-mode .resource-links a {
    color: var(--brown-accent);
}

body.dark-mode .resource-desc {
    color: var(--brown-light);
}

body.dark-mode .subscribe-tile-text {
    color: var(--brown-light);
}

body.dark-mode .section-title {
    color: var(--brown-dark);
}

body.dark-mode .back-link {
    color: var(--brown-accent);
}

body.dark-mode .share-btn {
    background: var(--tan);
    color: var(--brown-text);
}

body.dark-mode .share-btn:hover {
    background: var(--brown-accent);
    color: #1a1612;
}

body.dark-mode .speed-btn {
    background: var(--tan);
    color: var(--brown-text);
}

body.dark-mode .speed-btn.active {
    background: var(--brown-accent);
    color: #1a1612;
}

body.dark-mode .thought-card {
    background: #221d17;
    border-color: var(--tan);
}

body.dark-mode .card-title {
    color: var(--brown-dark);
}

body.dark-mode .card-date {
    color: var(--brown-accent);
}

body.dark-mode .card-speaker,
body.dark-mode .card-source {
    color: var(--brown-light);
}

body.dark-mode .card-excerpt {
    color: var(--brown-text);
}

body.dark-mode .card-theme-bar {
    background: var(--tan);
}

body.dark-mode .script-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .script-modal {
    background: #221d17;
    color: var(--brown-text);
}

body.dark-mode .script-modal-header {
    border-color: var(--tan);
}

body.dark-mode .featured-comment {
    background: var(--tan-light);
}

body.dark-mode .featured-comment-text,
body.dark-mode .featured-comment-author {
    color: var(--brown-text);
}

body.dark-mode .social-proof-bar {
    background: #1e1914;
    border-color: var(--tan);
}

body.dark-mode .social-proof-text {
    color: var(--brown-light);
}

body.dark-mode .social-proof-text strong {
    color: var(--brown-dark);
}

body.dark-mode .welcome-back {
    color: var(--brown-text);
}

body.dark-mode .fav-btn.fav-active {
    color: #e8a87c;
}

body.dark-mode .form-check-label {
    color: var(--brown-light);
}

body.dark-mode .about-block h3 {
    color: var(--brown-dark);
}

body.dark-mode .about-block p {
    color: var(--brown-text);
}

body.dark-mode .disclaimer {
    background: var(--tan-light);
    color: var(--brown-text);
}

body.dark-mode audio::-webkit-media-controls-panel {
    background: #2a2318;
}

/* --- Resources Tile --- */
.dash-tile-resources {
    opacity: 1;
}

/* --- Subscribe Tile --- */
.subscribe-tile-text {
    font-size: 0.82rem;
    color: var(--brown-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.subscribe-tile-form {
    display: flex;
    gap: 6px;
}

.subscribe-tile-input {
    flex: 1;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.subscribe-tile-form .btn-sm {
    white-space: nowrap;
}

.resource-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-links li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.resource-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--brown-accent);
    white-space: nowrap;
}

.resource-links a:hover {
    color: var(--brown-dark);
    text-decoration: underline;
}

.resource-desc {
    font-size: 0.75rem;
    color: var(--brown-light);
    font-style: italic;
}

/* --- Script Modal --- */
.script-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(74, 56, 40, 0.5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.script-modal-overlay.open {
    display: flex;
}

.script-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.script-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tan);
    gap: 12px;
}

.script-modal-title {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown-dark);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Download dropdown in script modal */
.script-download-dropdown {
    position: relative;
}
.script-download-btn {
    cursor: pointer;
}
.script-download-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--cream-bg, #faf8f5);
    border: 1px solid var(--tan, #c9b99a);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    padding: 4px 0;
    min-width: 170px;
    z-index: 1010;
}
.script-download-menu.open {
    display: block;
}
.script-download-menu li button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--brown-dark, #3e3223);
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.script-download-menu li button:hover {
    background: var(--tan-light, #e8dcc8);
}
body.dark-mode .script-download-menu {
    background: #2a2420;
    border-color: #4a3f33;
}
body.dark-mode .script-download-menu li button {
    color: #e8dcc8;
}
body.dark-mode .script-download-menu li button:hover {
    background: #3a3025;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 5px 12px;
}

.script-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brown-light);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color var(--transition);
}

.script-modal-close:hover {
    color: var(--brown-dark);
}

.script-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--brown-text);
    white-space: pre-line;
}

/* Print styles for modal */
@media print {
    body > *:not(.script-modal-overlay) {
        display: none !important;
    }
    .script-modal-overlay {
        display: block !important;
        position: static;
        background: none;
        padding: 0;
    }
    .script-modal {
        max-height: none;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    .script-modal-actions {
        display: none !important;
    }
    .script-modal-body {
        overflow: visible;
    }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.5rem;
    color: var(--brown-text);
    margin-bottom: 24px;
    text-align: center;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--brown-light);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 32px;
}

/* --- Hero / Today's Thought --- */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--tan-light) 100%);
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--tan);
}

.hero-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-label {
    background: var(--brown-accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    text-align: center;
}

.hero-body {
    padding: 32px 32px 28px;
}

.hero-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--brown-dark);
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--brown-light);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--brown-text);
    margin-bottom: 20px;
}

.hero-audio {
    margin-bottom: 16px;
}

.hero-audio audio {
    width: 100%;
    height: 44px;
    border-radius: var(--radius);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--brown-accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brown-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--brown-accent);
    border: 1px solid var(--tan);
}

.btn-outline:hover {
    background: var(--tan-light);
    color: var(--brown-dark);
}

/* --- Search & Filter Bar --- */
.archive-controls {
    max-width: 900px;
    margin: 0 auto 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--brown-text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder {
    color: var(--brown-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--brown-accent);
    box-shadow: 0 0 0 3px rgba(139, 107, 74, 0.12);
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--brown-text);
    background: var(--white);
    cursor: pointer;
    min-width: 140px;
    transition: border-color var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--brown-accent);
}

/* --- Archive Grid --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.thought-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

.thought-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-theme-bar {
    height: 3px;
    background: var(--brown-accent);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brown-accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.card-category-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--tan-light);
    color: var(--brown-accent);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--tan);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--brown-dark);
}

.card-speaker {
    font-size: 0.82rem;
    color: var(--brown-light);
    margin-bottom: 4px;
}

.card-source {
    font-size: 0.78rem;
    color: var(--brown-light);
    margin-bottom: 10px;
    font-style: italic;
}

.card-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--brown-text);
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-audio {
    margin-bottom: 12px;
}

.card-audio audio {
    width: 100%;
    height: 38px;
    border-radius: var(--radius);
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-actions .btn {
    font-size: 0.78rem;
    padding: 6px 12px;
}

/* --- View Toggle --- */
.view-toggle {
    display: flex;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.view-toggle-btn {
    background: var(--white);
    border: none;
    padding: 8px 12px;
    font-size: 1rem;
    color: var(--brown-light);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.view-toggle-btn + .view-toggle-btn {
    border-left: 1px solid var(--tan);
}

.view-toggle-btn:hover {
    background: var(--tan-light);
    color: var(--brown-text);
}

.view-toggle-btn.active {
    background: var(--brown-accent);
    color: var(--white);
}

/* --- Archive List View --- */
.archive-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-grid.list-view .thought-card {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--tan);
    flex-direction: row;
    align-items: center;
}

.archive-grid.list-view .thought-card:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.archive-grid.list-view .thought-card:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-bottom: none;
}

.archive-grid.list-view .thought-card:hover {
    transform: none;
    background: var(--tan-light);
}

.archive-grid.list-view .card-theme-bar {
    display: none;
}

.archive-grid.list-view .card-body {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.archive-grid.list-view .card-date {
    min-width: 90px;
    margin-bottom: 0;
    font-size: 0.72rem;
}

.archive-grid.list-view .card-title {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.archive-grid.list-view .card-speaker {
    min-width: 120px;
    margin-bottom: 0;
    font-size: 0.78rem;
}

.archive-grid.list-view .card-source,
.archive-grid.list-view .card-excerpt,
.archive-grid.list-view .card-full-content {
    display: none;
}

.archive-grid.list-view .card-audio {
    margin-bottom: 0;
    flex-shrink: 0;
}

.archive-grid.list-view .card-audio audio {
    width: 200px;
    height: 32px;
}

.archive-grid.list-view .card-actions {
    flex-shrink: 0;
}

.archive-grid.list-view .card-actions .btn {
    font-size: 0.72rem;
    padding: 4px 10px;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--brown-light);
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--brown-text);
}

/* --- About Page --- */
.about-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.about-page-content .section-title {
    text-align: left;
    margin-bottom: 28px;
}

.about-block {
    margin-bottom: 28px;
}

.about-block h3 {
    font-size: 1.1rem;
    color: var(--brown-dark);
    margin-bottom: 8px;
}

.about-block p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--brown-text);
    margin-bottom: 10px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--brown-light);
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--tan);
    text-align: left;
}

.disclaimer-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brown-accent);
    margin-bottom: 8px;
}

/* --- Comments Tile --- */
.dash-tile-comments {
    display: flex;
    flex-direction: column;
}

.dash-tile-comments .dash-tile-body {
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
}

.dash-tile-footer {
    padding: 8px 16px 12px;
    text-align: right;
}

.comments-empty {
    font-size: 0.85rem;
    color: var(--brown-light);
    font-style: italic;
    text-align: center;
    padding: 12px 0;
}

.featured-comment {
    padding: 10px 0;
    border-bottom: 1px solid var(--tan);
}

.featured-comment:last-child {
    border-bottom: none;
}

.featured-comment-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--brown-text);
    font-style: italic;
    margin-bottom: 4px;
}

.featured-comment-author {
    font-size: 0.75rem;
    color: var(--brown-light);
    font-weight: 500;
}

/* --- Feedback Form --- */
.feedback-section {
    background: var(--tan-light);
    padding: 20px 0;
    border-top: 1px solid var(--tan);
    border-bottom: 1px solid var(--tan);
}

.feedback-card {
    max-width: 900px;
    margin: 0 auto;
}

.feedback-header-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.feedback-title {
    font-size: 1rem;
    color: var(--brown-dark);
    white-space: nowrap;
}

.feedback-subtitle {
    font-size: 0.75rem;
    color: var(--brown-light);
    line-height: 1.4;
}

.feedback-form-wide {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

.feedback-fields {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.feedback-fields .form-input {
    flex: 1;
}

.feedback-message-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.feedback-message-row .form-textarea {
    flex: 1;
    min-height: 36px;
    resize: none;
}

.feedback-message-row .btn {
    align-self: flex-end;
    white-space: nowrap;
}

.feedback-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-bottom-row .form-status {
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    color: var(--brown-text);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brown-accent);
    box-shadow: 0 0 0 3px rgba(139, 107, 74, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 36px;
}

.form-check {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--brown-text);
    margin-bottom: 3px;
}

.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--brown-light);
    cursor: pointer;
}

.form-checkbox {
    margin-top: 2px;
    accent-color: var(--brown-accent);
}

.form-status {
    font-size: 0.78rem;
    margin-top: 8px;
    text-align: center;
}

.form-status.success {
    color: #5a8a5a;
}

.form-status.error {
    color: #a85a5a;
}

/* --- Donate Section --- */
.donate-section {
    background: var(--cream);
    padding: 16px 0;
    border-bottom: 1px solid var(--tan);
}

.donate-bar {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}

.donate-info {
    flex: 1;
    min-width: 0;
}

.donate-title {
    font-size: 1rem;
    color: var(--brown-dark);
    margin-bottom: 2px;
}

.donate-desc {
    font-size: 0.78rem;
    color: var(--brown-text);
    line-height: 1.6;
    margin-bottom: 4px;
}

.donate-desc strong {
    color: var(--brown-dark);
}

.donate-note {
    font-size: 0.72rem;
    color: var(--brown-light);
    font-style: italic;
    line-height: 1.5;
}

.btn-donate {
    font-size: 0.82rem;
    padding: 8px 20px;
    border-radius: var(--radius);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--brown-dark);
    color: var(--tan-light);
    padding: 40px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
    text-align: center;
}

.footer-brand .logo-succeed {
    color: var(--tan);
}

.footer-mission {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--brown-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 28px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(168, 137, 110, 0.25);
    border-bottom: 1px solid rgba(168, 137, 110, 0.25);
    margin-bottom: 20px;
}

.footer-col-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tan);
    margin-bottom: 12px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--brown-light);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-disclaimer {
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--brown-light);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--brown-light);
    opacity: 0.7;
}

/* --- Loading State --- */
.loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--brown-light);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tan);
    border-top-color: var(--brown-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* --- Expand/Collapse Full Content --- */
.card-full-content {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--tan);
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--brown-text);
    white-space: pre-line;
    max-height: 400px;
    overflow-y: auto;
}

.card-full-content.open {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner {
        padding: 8px 16px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .tagline {
        display: none;
    }

    .nav-dropdown-menu {
        right: 0;
        left: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Collapse Coming Soon tiles on mobile */
    .dash-tile-soon {
        display: none;
    }

    .dashboard {
        padding: 16px 0 20px;
    }

    .subscribe-tile-form {
        flex-direction: column;
    }

    .feedback-header-row {
        flex-direction: column;
        gap: 2px;
    }

    .feedback-fields {
        flex-direction: column;
    }

    .feedback-message-row {
        flex-direction: column;
    }

    .feedback-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .donate-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-search-input {
        width: 120px;
    }

    .header-search-input:focus {
        width: 160px;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .hero-body {
        padding: 24px 20px 20px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    section {
        padding: 36px 0;
    }

    .archive-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        align-self: flex-end;
    }

    .archive-grid.list-view .card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .feedback-form {
        padding: 20px;
    }

    .archive-grid.list-view .card-audio audio {
        width: 100%;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .hero-body {
        padding: 20px 16px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .disclaimer {
        padding: 16px;
    }
}

/* --- Audio Player Styling (WebKit) --- */
audio::-webkit-media-controls-panel {
    background: var(--tan-light);
}

/* --- Share Buttons --- */
.share-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--brown-light);
    background: var(--tan-light);
    border: 1px solid var(--tan);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.share-btn:hover {
    background: var(--tan);
    color: var(--brown-dark);
}

.share-btn.copied {
    background: #5a8a5a;
    color: var(--white);
    border-color: #5a8a5a;
}

/* --- Audio Speed Control --- */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.speed-btn {
    padding: 2px 8px;
    font-size: 0.68rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--brown-light);
    background: var(--cream);
    border: 1px solid var(--tan);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.speed-btn:hover,
.speed-btn.active {
    background: var(--brown-accent);
    color: var(--white);
    border-color: var(--brown-accent);
}

.speed-label {
    font-size: 0.68rem;
    color: var(--brown-light);
}

/* --- Subscribe Section --- */
.subscribe-section {
    background: var(--brown-dark);
    padding: 40px 0;
    border-top: 1px solid var(--tan);
}

.subscribe-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-card .section-title {
    color: var(--white);
    margin-bottom: 8px;
}

.subscribe-text {
    font-size: 0.88rem;
    color: var(--brown-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.subscribe-input {
    flex: 1;
    max-width: 300px;
    background: rgba(255,255,255,0.1);
    border-color: rgba(168, 137, 110, 0.4);
    color: var(--white);
}

.subscribe-input::placeholder {
    color: var(--brown-light);
    opacity: 0.7;
}

.subscribe-input:focus {
    border-color: var(--tan);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(230, 213, 195, 0.15);
}

.subscribe-section .form-status {
    color: var(--tan);
}

.subscribe-section .form-status.error {
    color: #d4a0a0;
}

/* --- Load More Button --- */
.load-more-wrap {
    text-align: center;
    padding: 28px 0 8px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--brown-accent);
    background: var(--white);
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover {
    background: var(--tan-light);
    color: var(--brown-dark);
    border-color: var(--brown-accent);
}

.load-more-count {
    font-size: 0.75rem;
    color: var(--brown-light);
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brown-accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 50;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}

/* --- Social Proof Bar --- */
.social-proof-bar {
    background: var(--tan-light);
    border-top: 1px solid var(--tan);
    border-bottom: 1px solid var(--tan);
    padding: 12px 0;
    text-align: center;
}

.social-proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--brown-accent);
}

.social-proof-icon {
    font-size: 1.1rem;
}

.social-proof-text strong {
    color: var(--brown-dark);
}

/* --- Series Progress Badge --- */
.series-progress {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brown-accent);
    background: var(--tan-light);
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
body.dark-mode .series-progress {
    background: rgba(139,107,74,0.25);
    color: #d4c4a8;
}

/* --- Sleep Timer --- */
.sleep-timer-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--tan-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--brown-text);
}
.sleep-timer-bar select {
    padding: 4px 8px;
    border: 1px solid var(--tan);
    border-radius: var(--radius);
    font-size: 0.82rem;
    background: var(--white);
    color: var(--brown-text);
    font-family: 'Inter', sans-serif;
}
.sleep-timer-countdown {
    font-weight: 600;
    color: var(--brown-accent);
    margin-left: auto;
}
body.dark-mode .sleep-timer-bar {
    background: rgba(30,25,20,0.6);
}
body.dark-mode .sleep-timer-bar select {
    background: #2a2420;
    border-color: #4a3f33;
    color: #e8dcc8;
}

/* --- Shuffle Button --- */
.shuffle-btn {
    font-size: 0.78rem;
    padding: 5px 14px;
    cursor: pointer;
    margin-left: 4px;
}

/* --- Resume Playback Banner --- */
.resume-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--tan-light), var(--cream));
    border: 1px solid var(--tan);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}
.resume-banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.resume-banner-text {
    flex: 1;
    color: var(--brown-text);
}
.resume-banner-text strong {
    color: var(--brown-dark);
}
.resume-banner .btn {
    flex-shrink: 0;
}
.resume-dismiss {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--brown-light);
    cursor: pointer;
    padding: 0 4px;
}
body.dark-mode .resume-banner {
    background: linear-gradient(135deg, rgba(30,25,20,0.6), rgba(40,35,28,0.4));
    border-color: #4a3f33;
}

/* --- Listener Stats Tile --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}
.stat-item {
    padding: 12px 8px;
    background: var(--tan-light);
    border-radius: var(--radius);
}
.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--brown-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stat-streak {
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--brown-accent);
    text-align: center;
}
body.dark-mode .stat-item {
    background: rgba(30,25,20,0.5);
}
body.dark-mode .stat-number {
    color: #e8dcc8;
}

/* --- Health & Wellness Tile --- */
.health-fact {
    text-align: center;
    padding: 8px 0;
}
.health-fact-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}
.health-fact-text {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--brown-dark);
    margin-bottom: 10px;
}
.health-fact-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brown-accent);
    background: var(--tan-light);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid var(--tan);
}
body.dark-mode .health-fact-text {
    color: #e8dcc8;
}
body.dark-mode .health-fact-tag {
    background: rgba(139,107,74,0.25);
    border-color: #4a3f33;
    color: #d4c4a8;
}

/* --- Collections Section --- */
#dash-tile-collections {
    grid-column: 1 / -1;
}
.collections-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    gap: 16px;
    margin-top: 24px;
}
.collection-card {
    flex: 1 1 200px;
    max-width: 280px;
    background: var(--cream);
    border: 1px solid var(--tan);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.collection-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.collection-title {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brown-dark);
    margin-bottom: 4px;
}
.collection-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--brown-light);
}
body.dark-mode .collection-card {
    background: rgba(30,25,20,0.5);
    border-color: #4a3f33;
}
