/* Inter Font Family */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Inter Tight Font Family */
@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/InterTight-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/InterTight-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/InterTight-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/InterTight-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('fonts/InterTight-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: var(--theme-primary, #d4af37);
    --bg-dark: var(--theme-bg-dark, #121212);
    --bg-card: var(--theme-bg-card, #1e1e1e);
    --text-primary: var(--theme-text-primary, #ffffff);
    --text-secondary: var(--theme-text-secondary, #9e9e9e);
    --border: var(--theme-border, #2a2a2a);
    --hover: var(--theme-primary-hover, #e8c547);
    --glow-gold: rgba(212, 175, 55, 0.5);
    --text-gray: var(--text-secondary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--theme-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure content is above stars */
.container, .footer {
    position: relative;
    z-index: 10;
}

.modal {
    position: fixed;
    z-index: 1000;
}

/* Site Header */
.site-header {
    position: relative;
    border-bottom: 2px solid var(--border);
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.header-link:hover .header-title {
    text-shadow: 0 0 25px var(--glow-gold), 0 0 50px rgba(212, 175, 55, 0.4);
}

.header-title {
    font-family: var(--theme-font-heading, 'Inter Tight', sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02rem;
    text-shadow: 0 0 20px var(--glow-gold), 0 0 40px rgba(212, 175, 55, 0.3);
}

.header-logo-img {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--glow-gold)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
    transition: filter 0.3s ease;
}

.header-link:hover .header-logo-img {
    filter: drop-shadow(0 0 25px var(--glow-gold)) drop-shadow(0 0 50px rgba(212, 175, 55, 0.4));
}

.header-tagline {
	font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05rem;
}

/* Navigation Menu */
.header-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Settings Button */
.settings-toggle {
    background: transparent;
    /*border: 2px solid var(--primary);*/
    color: var(--primary);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    line-height: 1;
    font-weight: 600;
}

.settings-toggle:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Settings Menu */
.settings-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    min-width: 220px;
    max-width: calc(100vw - 2rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-gold);
    z-index: 2002;
}

.settings-menu.active {
    display: block;
}

.settings-menu h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Settings menu header row: title + close button */
.settings-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.settings-menu-header h3 {
    margin-bottom: 0;
}

.settings-menu-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.settings-menu-close:hover {
    color: var(--text-primary);
}

.settings-option {
    margin-bottom: 0.75rem;
}

.settings-option:last-child {
    margin-bottom: 0;
}

.settings-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.settings-toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #444;
    border-radius: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.settings-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.settings-option input[type="checkbox"] {
    display: none;
}

.settings-option input[type="checkbox"]:checked + .settings-toggle-switch {
    background: var(--primary);
}

.settings-option input[type="checkbox"]:checked + .settings-toggle-switch::after {
    transform: translateX(24px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    position: relative;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.02rem;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Page Content Styles */
.page-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    line-height: 1.8;
    color: #e0e0e0;
}

.page-title {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 20px var(--glow-gold);
}

.page-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* FAQ Styles */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.faq-question {
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
}

.faq-answer strong {
    color: #fff;
}

.faq-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
    text-align: center;
}

.faq-footer p {
    margin: 0;
    font-size: 1.1rem;
}

.faq-footer a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

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

/* Privacy Policy Styles */
.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: var(--primary);
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.privacy-section h3 {
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li {
    margin-bottom: 0.75rem;
}

.privacy-section a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-section a:hover {
    color: var(--hover);
}

/* Footer Links */
.footer-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.online-count {
	font-family: 'Inter Tight', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 8px;
    /*border: 1px solid var(--primary);*/
    box-shadow: 0 0 20px var(--glow-gold);
    /* Control bar replaces this element; keep in DOM for JS writes but never show it */
    display: none !important;
}

.online-count p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
}

.online-count .count-number {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin: 0 0.2rem;
    text-shadow: 0 0 10px var(--glow-gold);
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    /*padding-bottom: 10px;*/
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative; /* needed for ::after placeholder overlay */
}

/* Entry animation only on first appearance — suppressed during DOM reorder */
.model-card.card-initial-load {
    opacity: 0;
    animation: fadeInCard 0.3s ease forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--glow-gold);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 40px var(--glow-gold);
    }
}

.model-card.card-initial-load:nth-child(1) { animation-delay: 0.05s; }
.model-card.card-initial-load:nth-child(2) { animation-delay: 0.1s; }
.model-card.card-initial-load:nth-child(3) { animation-delay: 0.15s; }
.model-card.card-initial-load:nth-child(4) { animation-delay: 0.2s; }
.model-card.card-initial-load:nth-child(5) { animation-delay: 0.25s; }
.model-card.card-initial-load:nth-child(6) { animation-delay: 0.3s; }
.model-card.card-initial-load:nth-child(7) { animation-delay: 0.35s; }
.model-card.card-initial-load:nth-child(8) { animation-delay: 0.4s; }
.model-card.card-initial-load:nth-child(9) { animation-delay: 0.45s; }
.model-card.card-initial-load:nth-child(10) { animation-delay: 0.5s; }
.model-card.card-initial-load:nth-child(11) { animation-delay: 0.55s; }
.model-card.card-initial-load:nth-child(12) { animation-delay: 0.6s; }
.model-card.card-initial-load:nth-child(n+13) { animation-delay: 0.65s; }

.model-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--glow-gold);
    transform: translateY(-5px);
}

/* Offline model card styling */
.model-card.offline {
    opacity: 0.75;
}

.model-card.offline:hover {
    opacity: 1;
}

/* Keep highlight on last viewed card until hover */
.model-card.last-viewed {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--glow-gold);
    transform: translateY(-5px);
}

/* --- THUMBNAIL AREA --- */
.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

/* blurred fill background */
.thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.32s ease, transform 0.42s ease;
}

.thumb-bg-visible {
    opacity: 1;
}

/* main thumbnail image */
.thumb-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    inset: 0;
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
    filter: none;
    transition: opacity 0.32s ease, transform 0.42s ease, filter 0.42s ease;
}

.thumb-wrapper.thumb-refreshing .thumb-bg {
    opacity: 0.82;
    transform: scale(1.03);
}

.thumb-wrapper.thumb-refreshing .thumb-img {
    opacity: 0.86;
    transform: scale(1.015);
    filter: saturate(0.94) brightness(1.03);
}

/* wide images: fill height, crop left/right minimally */
.thumb-img.thumb-wide {
    height: 100%;
    width: auto;
}

/* for vertical/square — center horizontally */
.thumb-img.thumb-vertical {
    width: auto;
    height: 100%;
}

/* --- HD BADGE --- */
.hd-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(212, 175, 55, 0.9);
    color: #1e1e1e;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    padding: 2px 5px;
    font-size: 11px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--glow-gold);
}

/* Offline overlay */
.offline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.offline-text {
    padding: 1rem;
}

.offline-status {
    font-family: var(--theme-font-heading, 'Inter Tight', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.offline-time {
    font-family: var(--theme-font-body);
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

/* mobile tighten */
@media (max-width: 480px) {
    .hd-badge {
        padding: 1px 4px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }
    
    .offline-status {
        font-size: 1.2rem;
    }
    
    .offline-time {
        font-size: 0.85rem;
    }
}

/* --- INFO AREA --- */
.model-info {
display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    color: #fff;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0.7;
    background: linear-gradient(transparent, black);
}

.model-name {
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.platform-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
    margin: 3px 0 0 0;
}

.eye-icon {
    margin-right: 0px;
}

/* SVG icon styling */
.eye-icon svg,
.cta-dot svg,
.toast-icon svg,
.warning-icon svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.settings-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transform: rotate(-90deg);
}

#online-count svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    fill: currentColor;
    margin-right: 0.2em;
}

/* --- CTA BUTTON --- */
.cta-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 14px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--glow-gold);
}

.cta-btn:hover .cta-dot {
    color: var(--bg-dark);
}

.cta-dot {
    font-size: 14px;
    margin-right: 4px;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Offline CTA with slightly reduced vertical padding */
.cta-btn.offline-cta {
    padding: 7px 14px;
}


.cta-mini {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    /*border: 2px solid var(--primary);*/
    box-shadow: 0 0 26px var(--glow-gold);
}

/* Allow JS to override width on mobile */
@media (max-width: 768px) {
    .modal-content {
        width: auto;
        max-width: none;
    }
}

.close {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
}

.close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 1rem 1.5rem;
    /*border-bottom: 2px solid var(--primary);*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(212, 175, 55, 0.05);
}

.modal-header h2 {
    color: var(--primary);
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    margin: 0;
    text-shadow: 0 0 10px var(--glow-gold);
}

.modal-body {
    padding: 1.5rem;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
	display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .iframe-container {
        padding-top: 0;
        height: 60vh;
    }
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Offline modal placeholder */
.offline-modal-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.offline-modal-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Transparent overlay for Chaturbate iframe click-through */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .iframe-container {
        margin-bottom: 0.75rem;
        border-radius: 4px;
    }
}

.modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.urgency-text {
    color: var(--primary-gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    box-shadow: 0 10px 35px var(--glow-gold);
    position: relative;
    overflow: hidden;
    font-family: 'Inter Tight', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.8), 0 0 60px var(--glow-gold);
}

.cta-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--glow-gold);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--border);
    margin-top: 3rem;
    background: rgba(30, 30, 30, 0.5);
}

.footer p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Adblock Warning */
.adblock-warning {
    background: rgba(255, 193, 7, 0.1);
    /*border: 1px solid rgba(255, 193, 7, 0.3);*/
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffc107;
    font-size: 0.9rem;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-close {
    background: none;
    border: none;
    color: #ffc107;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.warning-close:hover {
    opacity: 0.7;
}

.adblock-warning a {
    color: #ffc107;
    text-decoration: underline;
}

.adblock-warning a:hover {
    color: #ffd54f;
}

/* Minimal Warning (shown after 3 displays) */
.minimal-warning {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.4rem;
    background: transparent;
    border: none;
    padding: 0.4rem 0.75rem;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.minimal-warning a {
    color: var(--text-secondary);
    text-decoration: underline;
    font-weight: 400;
}

.minimal-warning a:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .adblock-warning {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
    
    .warning-icon {
        font-size: 1rem;
    }
    
    .warning-close {
        font-size: 1.3rem;
        width: 25px;
        height: 25px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.4rem;
    }
    
    .header-tagline {
        font-size: 0.8rem;
    }

    /* Settings button on mobile - left of hamburger */
    .settings-toggle {
        order: 1;
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
    }
    
    /* Vertical thumbnail aspect ratio on mobile */
    .thumb-wrapper {
        aspect-ratio: 3 / 4;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        flex-direction: column;
        background: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        border-left: 2px solid var(--primary);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        display: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .iframe-container {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
    
    .online-count {
        padding: 0.5rem 0.75rem;
    }
    
    .online-count p {
        font-size: 0.8rem;
    }
    
    .online-count .count-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0;
    }

    .header-container {
        padding: 0.75rem;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }

    .nav-menu {
        width: 80%;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
	
	/*.model-card {
		padding-bottom: 8px;
	}*/
	
	.model-info {
		padding: 5px;
	}
	
	.cta-btn {
		margin: 4px auto 0;
	}
    
    .container {
        padding: 1rem 0.5rem;
    }

    .page-content {
        padding: 1rem;
        margin: 1rem auto;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .privacy-section h2 {
        font-size: 1.3rem;
    }

    .privacy-section h3 {
        font-size: 1.1rem;
    }
    
    .modal-header {
        padding: 0.6rem 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 0.4rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .cta-platform-icon {
        width: 20px;
        height: 20px;
    }
    
    .close {
        font-size: 1.4rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background: var(--bg-dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: normal;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(270deg);
}

.back-to-top:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

/* ============================================================================
   TIMELINE NAVIGATION - Stream Loader & Toast Notifications
   ============================================================================ */

/* Stream Loader - Directional progress-like loader for smooth transitions */
.stream-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.stream-loader.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.stream-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    width: 90%;
}

.stream-loader-bar {
    width: 100%;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stream-loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 30%, 
        var(--hover) 50%, 
        var(--primary) 70%, 
        transparent 100%
    );
    animation: streamProgress 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--glow-gold);
}

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

.stream-loader-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
    margin: 0;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Toast Notifications - Minimal, non-disruptive feedback */
.stream-toast {
    position: fixed;
    bottom: 400px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    /*border: 1px solid var(--border);*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
}

.stream-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.stream-toast-info {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--glow-gold);
}

.stream-toast-warning {
    border-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stream-loader-text {
        font-size: 0.85rem;
    }
    
    .stream-toast {
        bottom: 300px;
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Grid Loading - Match stream loader style */
.loading-bar {
    width: 100px;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 1rem;
}

.loading-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 30%, 
        var(--hover) 50%, 
        var(--primary) 70%, 
        transparent 100%
    );
    animation: streamProgress 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--glow-gold);
}

/* Gesture Capture Overlay - Enables swipe/scroll on iframe without blocking clicks */
.gesture-capture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

/* iframe-overlay should be above gesture overlay for clicks */
.iframe-overlay {
    z-index: 15;
}


/* Chaturbate iframe styling with blurred background */
.chaturbate-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 0;
    opacity: 0.6;
}

.chaturbate-iframe-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    z-index: 1;
}

.chaturbate-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Ensure proper centering on mobile */
@media (max-width: 768px) {
    .chaturbate-iframe-wrapper {
        max-width: 100vw;
    }
}

/* Stream loader positioning - covers iframe container only, not modal-actions */
.modal-body {
    position: relative;
}

.modal-body #iframe-container {
    position: relative;
}

.modal-body .stream-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.modal-body .stream-loader.active {
    pointer-events: auto;
}

/* Ensure modal-actions stays visible and clickable above loader */
.modal-actions {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

/* ============================================================================
   AUTO-REFRESH CONTROLS
   ============================================================================ */

/* Newly online glow effect */
.model-card.newly-online {
    animation: glowPulse 3s ease-in-out 2;
    box-shadow: 0 0 12px rgba(255, 0, 89, 0.35), 0 0 20px rgba(255, 0, 89, 0.15);
}

.model-card.card-initial-load.live-update-entry {
    animation-delay: 0s !important;
}

/* Leaving cards show a subtle skeleton shimmer so the grid slot stays visually filled */
.model-card.is-leaving {
    opacity: 0.07;
    transform: scale(0.985);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.model-card.is-leaving::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        transparent 100%
    );
    background-size: 300% 100%;
    background-position: 200% center;
    animation: gridSlotShimmer 1.3s ease-in-out forwards;
    border-radius: inherit;
}

@keyframes gridSlotShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -100% center; }
}

.model-card.bucket-promoted {
    animation: bucketPromotionPulse 1.8s ease-out 1;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 89, 0.4), 0 0 25px rgba(255, 0, 89, 0.2);
    }
}

@keyframes bucketPromotionPulse {
    0% {
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
    35% {
        box-shadow: 0 0 18px rgba(212, 175, 55, 0.32);
    }
    100% {
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Smooth fade transitions for refreshed cards */
.model-card {
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================================================
   OFFLINE MODEL CARDS
   ============================================================================ */

.model-card.offline {
    opacity: 0.6;
    filter: grayscale(50%);
    transition: opacity 0.5s ease, filter 0.5s ease;
    cursor: default;
}

.model-card.offline:hover {
    opacity: 0.7;
}

/* Offline CTA uses base .cta-btn styles for consistency */

/* ============================================================================
   TOAST NOTIFICATION
   ============================================================================ */

.toast-notification {
    position: fixed;
    bottom: 6px;
    right: 66px;
    background: var(--bg-card);
    /*border: 2px solid var(--primary);*/
    border-radius: 8px;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-gold);
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 280px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    /*animation: toastIconPulse 2s ease-in-out infinite;*/
}

@keyframes toastIconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.toast-message {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.toast-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toast-refresh-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.toast-refresh-btn:hover {
    background: var(--hover);
    transform: translateY(-1px);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 6px;
        right: 66px;
        max-width: calc(100vw - 100px);
        padding: 0.6rem 0.85rem;
    }
    
    .toast-content {
        gap: 0.4rem;
    }
    
    .toast-message {
        font-size: 0.8rem;
    }
    
    .toast-actions {
        gap: 0.5rem;
    }
    
    .toast-refresh-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================================================
   GRID HEIGHT PRESERVATION
   ============================================================================ */

#models-grid {
    min-height: 500px;
    transition: min-height 0.3s ease;
}

#models-grid .loading {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* ============================================================================
   LIGHT THEME ENHANCEMENTS
   ============================================================================ */

/* Light theme specific adjustments */
:root:not([data-theme="dark"]) {
    /* Softer glow for light theme */
    --glow-gold: rgba(193, 157, 45, 0.25);
}

:root:not([data-theme="dark"]) .site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .model-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .model-card:hover,
:root:not([data-theme="dark"]) .model-card.last-viewed {
    box-shadow: 0 4px 16px rgba(193, 157, 45, 0.2);
}

:root:not([data-theme="dark"]) .online-count {
    background: linear-gradient(135deg, rgba(193, 157, 45, 0.08), rgba(193, 157, 45, 0.04));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:root:not([data-theme="dark"]) .modal {
    background: rgba(245, 245, 245, 0.95);
}

:root:not([data-theme="dark"]) .modal-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

:root:not([data-theme="dark"]) .modal-header {
    background: rgba(193, 157, 45, 0.06);
}

:root:not([data-theme="dark"]) .footer {
    background: rgba(255, 255, 255, 0.7);
}

:root:not([data-theme="dark"]) .settings-menu {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .toast-notification {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .stream-toast {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

:root:not([data-theme="dark"]) .page-content,
:root:not([data-theme="dark"]) .mainpage-content {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

:root:not([data-theme="dark"]) .page-content h2,
:root:not([data-theme="dark"]) .page-content h3,
:root:not([data-theme="dark"]) .mainpage-content h2,
:root:not([data-theme="dark"]) .mainpage-content h3 {
    color: var(--primary) !important;
}

:root:not([data-theme="dark"]) .page-content p,
:root:not([data-theme="dark"]) .mainpage-content p {
    color: #333 !important;
}

/* ============================================================================
   GRID CONTROL BAR
   ============================================================================ */

.grid-control-bar {
    font-family: 'Inter Tight', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 0;
    z-index: 2001;
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    box-shadow: 0 0 20px var(--glow-gold);
}

/* Status area fills the left side */
.ctrl-status-area {
    flex: 1;
    min-width: 0;
}

/* Desktop: full-text status */
.ctrl-status-full {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.ctrl-status-full .count-number {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--glow-gold);
    margin: 0 0.15rem;
    display: inline-block;
}

.ctrl-status-full svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    fill: currentColor;
    margin-right: 0.15em;
}

/* Mobile stats group wrapper — hidden on desktop, shown as left half on mobile */
.ctrl-stats-group {
    display: none;
}

/* Mobile: individual mobile items (models count, viewers count) - hidden on desktop */
.ctrl-mobile-item {
    display: none;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    /* tooltip anchor */
    position: relative;
    cursor: default;
}

/* Touch-friendly tooltip: shows on tap/active since native title= doesn't fire on mobile */
.ctrl-mobile-item::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 300;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Tooltip replaced by JS toasters; kept hidden to avoid double feedback */
.ctrl-mobile-item:hover::after,
.ctrl-mobile-item:active::after {
    opacity: 0;
}

.ctrl-mobile-item svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}

.ctrl-mobile-item .count-number {
    font-weight: 600;
    text-shadow: 0 0 8px var(--glow-gold);
}

/* Model count trend indicator */
.model-count-trend {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    opacity: 0.9;
}

.model-count-trend svg {
    width: 0.75em;
    height: 0.75em;
    fill: currentColor;
}

.model-count-trend.trend-up {
    color: #4ade80;
}

.model-count-trend.trend-up svg {
    transform: rotate(-90deg);
}

.model-count-trend.trend-down {
    color: #f87171;
}

.model-count-trend.trend-down svg {
    transform: rotate(90deg);
}

/* Actions group: refresh button + settings wrap */
.ctrl-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Refresh button — matches .settings-toggle styling */
.ctrl-refresh-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.ctrl-refresh-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ctrl-refresh-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--glow-gold);
}

.ctrl-refresh-btn:hover svg {
    fill: var(--bg-dark);
}

.ctrl-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ctrl-refresh-btn.spinning svg {
    animation: spinRefresh 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Settings wrap: provides relative anchor for the dropdown */
.ctrl-settings-wrap {
    position: relative;
}

.ctrl-settings-wrap .settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    height: 36px;
    /* Override the fixed width from base .settings-toggle so the label fits */
    width: auto;
    white-space: nowrap;
    border: none;
}

.ctrl-settings-wrap .settings-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Button labels: visible on desktop, hidden on mobile */
.btn-label {
    font-size: 0.875rem;
    font-weight: 500;
    display: inline;
}

/* Back to top button: integrated into control bar, fixed on desktop, in-bar on mobile */
.back-to-top {
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Override legacy rotate(270deg) from earlier rule — SVG already rotated -90deg */
    transform: none;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform: rotate(-90deg);
}

.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ── Mobile (≤ 768px): bar moves to fixed bottom row ── */
@media (max-width: 768px) {
    .grid-control-bar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.4rem 0.75rem;
        border-radius: 0;
        margin-bottom: 0;
        border-top: 1px solid var(--border);
        /* Two equal halves: stats left, controls right */
        justify-content: space-between;
        gap: 0;
        z-index: 2001;
    }

    /* Status area: left half, hosts the stats group */
    .ctrl-status-area {
        flex: 1 1 50%;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    /* Hide desktop full-text status on mobile */
    .ctrl-status-full {
        display: none;
    }

    /* Stats group: visible on mobile, fills left half, distributes items evenly */
    .ctrl-stats-group {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
    }

    /* Show individual mobile items (models, viewers) */
    .ctrl-mobile-item {
        display: flex;
        font-size: 1.1rem;
    }

    /* Actions group: right half, distributes buttons evenly */
    .ctrl-actions {
        flex: 1 1 50%;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 0;
    }

    /* Hide button labels on mobile */
    .btn-label {
        display: none;
    }

    /* Buttons: 34px icon-only */
    .ctrl-refresh-btn,
    .ctrl-settings-wrap .settings-toggle {
        width: 34px;
        height: 34px;
        padding: 0;
        gap: 0;
    }

    .ctrl-refresh-btn svg,
    .ctrl-settings-wrap .settings-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* Settings menu opens upward from the bottom bar */
    .ctrl-settings-wrap .settings-menu {
        top: auto;
        bottom: calc(100% + 0.5rem);
        right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Back-to-top: 34px, in-bar, always visible */
    .back-to-top {
        position: static;
        width: 34px;
        height: 34px;
        border-radius: 6px;
        box-shadow: none;
        background: transparent;
        border: none;
        opacity: 1;
        visibility: visible;
        z-index: auto;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .back-to-top:hover {
        background: var(--primary);
        box-shadow: 0 0 15px var(--glow-gold);
    }

    .back-to-top:hover svg {
        fill: var(--bg-dark);
    }

    /* Prevent last cards from being hidden under the bar */
    .container {
        padding-bottom: 4.5rem;
    }

    .footer {
        margin-bottom: 60px;
    }
}

/* ── Stats toasters — mobile control bar tap feedback ── */
.stats-toaster {
    position: fixed;
    bottom: 60px; /* sits above the fixed mobile control bar (~52px) */
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px var(--glow-gold);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.stats-toaster.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Toaster backdrop: intercepts outside clicks so they only close the toaster */
.toaster-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: transparent;
    display: none;
}

.toaster-backdrop.active {
    display: block;
}

/* ── Light theme overrides ── */
:root:not([data-theme="dark"]) .grid-control-bar {
    background-color: #f8f8f8;
    background-image: linear-gradient(135deg, rgba(193, 157, 45, 0.08), rgba(193, 157, 45, 0.04));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .ctrl-mobile-item::after {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION SYSTEM
   ─────────────────────────────────────────────────────────────── */

/* ── Settings menu divider + notifications link ────────────────── */
.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 0.6rem 0;
}

.settings-notif-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.settings-notif-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.settings-notif-link:hover {
    color: var(--primary);
}

/* ── Notify (heart) button in modal-actions ────────────────────── */
.modal-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.notify-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notify-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
    color: var(--primary);
}

.notify-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.2s ease;
    fill: var(--primary);
}

.notify-btn:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.08);
    transform: scale(1.08);
}

.notify-btn:hover svg {
    transform: scale(1.12);
}

/* ── Notify dropdown ───────────────────────────────────────────── */
.notify-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.4rem 0;
    min-width: 210px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    z-index: 3000;
    white-space: nowrap;
}

.notify-wrap.dropdown-open .notify-dropdown {
    display: block;
}

.notify-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--theme-font-body);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}

.notify-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--primary);
}

.notify-dropdown-item:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
}

.notify-dropdown-item--soon {
    opacity: 0.45;
    cursor: default;
}

.soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--border);
    color: var(--text-secondary);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notify-item-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Notify dropdown SFW/Explicit content mode section ─────────── */
.notify-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.notify-dropdown-mode {
    padding: 0.5rem 1rem 0.65rem;
}

.notify-dropdown-mode-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
    font-family: var(--theme-font-body);
}

.notify-dropdown-header {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.65rem 1rem 0.35rem;
    font-family: var(--theme-font-body);
    line-height: 1.35;
    white-space: normal;
}

.notify-explicit-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.7rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--theme-font-body);
    cursor: pointer;
    user-select: none;
    line-height: 1.35;
}

.notify-explicit-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.notify-dropdown-mode-warning {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    line-height: 1.35;
    font-family: var(--theme-font-body);
    opacity: 0.8;
    white-space: normal;
}

.notify-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0rem;
    background: var(--border);
    border-radius: 6px;
    padding: 2px;
    width: fit-content;
}

.notify-mode-btn {
    padding: 0.28rem 0.65rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--theme-font-body);
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.notify-mode-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ── Custom 18+ permission popup ──────────────────────────────── */
.notif-permission-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.notif-permission-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.notif-permission-dialog {
    position: relative;
    background: var(--bg-card);
    border: 2px solid rgba(251, 52, 90, 0.5);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    animation: popupIn 0.25s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.notif-permission-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.notif-permission-icon svg {
    width: 44px;
    height: 44px;
    fill: var(--primary);
}

.notif-permission-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-family: var(--theme-font-heading);
}

.notif-permission-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.notif-mode-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 0.9rem;
    flex-wrap: wrap;
}

.notif-mode-picker--dashboard {
    justify-content: flex-start;
    margin: 0;
}

.notif-mode-option {
    position: relative;
    cursor: pointer;
}

.notif-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.notif-mode-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.notif-mode-option input:checked + span {
    border-color: rgb(251, 52, 90);
    background: rgba(251, 52, 90, 0.08);
    color: rgb(251, 52, 90);
}

.notif-permission-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    opacity: 0.75;
}

.notif-permission-note--mode {
    margin-bottom: 0.8rem;
}

.notif-permission-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.notif-permission-yes,
.notif-permission-no {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--theme-font-body);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.notif-permission-yes {
    background: rgb(251, 52, 90);
    color: #fff;
}

.notif-permission-yes:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.notif-permission-no {
    background: var(--border);
    color: var(--text-secondary);
}

.notif-permission-no:hover {
    opacity: 0.8;
}

/* ── Notification settings page ───────────────────────────────── */
.notif-page-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.notif-page-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--theme-primary);
}

.notif-page-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--theme-primary);
}

.notif-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-family: var(--theme-font-heading);
}

.notif-page-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Permission banner */
.notif-permission-banner {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.notif-permission-banner--denied {
    background: rgba(251, 52, 90, 0.12);
    border: 1px solid rgba(251, 52, 90, 0.35);
    color: var(--text-primary);
}

.notif-permission-banner--info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-secondary);
}

.notif-restore-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(251, 52, 90, 0.22);
    background: linear-gradient(135deg, rgba(251, 52, 90, 0.08), rgba(212, 175, 55, 0.08));
}

.notif-restore-copy {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.notif-management-card {
    padding: 1rem 1rem 1.1rem;
    margin-bottom: 1.35rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
}

.notif-management-header {
    margin-bottom: 0.9rem;
}

.notif-management-title {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--theme-font-heading);
}

.notif-management-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.notif-tool-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-tool-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.notif-tool-copy {
    min-width: 0;
}

.notif-tool-title {
    margin-bottom: 0.22rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.notif-tool-text {
    color: var(--text-secondary);
    font-size: 0.79rem;
    line-height: 1.5;
    word-break: break-word;
}

.notif-tool-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Global actions */
.notif-global-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--theme-font-body);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.notif-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.notif-action-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.notif-action-btn--primary {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--theme-primary);
}

.notif-action-btn--primary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--theme-primary);
}

.notif-action-btn--danger {
    border-color: rgba(251, 52, 90, 0.3);
    color: var(--text-secondary);
}

.notif-action-btn--danger:hover {
    border-color: rgb(251, 52, 90);
    color: rgb(251, 52, 90);
    background: rgba(251, 52, 90, 0.06);
}

/* Subscriptions grid */
.notif-subs-list {
    margin-bottom: 1.5rem;
}

.notif-subs-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    gap: 0.75rem;
    transition: border-color 0.2s ease;
}

.notif-sub-item:hover {
    border-color: var(--primary);
}

.notif-sub-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.notif-sub-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-sub-platform {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-sub-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.notif-sub-toggle,
.notif-sub-remove,
.notif-sub-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.notif-sub-toggle svg,
.notif-sub-view svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.notif-sub-toggle:hover,
.notif-sub-view:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: rgba(212, 175, 55, 0.08);
}

.notif-sub-toggle.paused {
    color: var(--text-secondary);
}

.notif-sub-toggle.active {
    color: var(--theme-primary);
    border-color: rgba(212, 175, 55, 0.4);
}

.notif-sub-remove:hover {
    border-color: rgb(251, 52, 90);
    color: rgb(251, 52, 90);
    background: rgba(251, 52, 90, 0.06);
}

.notif-loading,
.notif-empty {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 1.5rem;
    text-align: center;
}

.notif-empty a {
    color: var(--primary);
}

.notif-footer-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 700px) {
    .notif-restore-banner,
    .notif-tool-block {
        flex-direction: column;
        align-items: stretch;
    }

    .notif-tool-actions {
        justify-content: stretch;
    }

    .notif-tool-actions .notif-action-btn,
    .notif-restore-banner .notif-action-btn,
    .notif-tool-block > .notif-action-btn {
        width: 100%;
        justify-content: center;
    }

    .notif-mode-picker--dashboard {
        width: 100%;
    }
}

/* Dark / light on notifications page */
:root:not([data-theme="dark"]) .notif-page-title {
    color: #1a1a1a;
}
