/* Dark Mode Variables */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(30, 30, 30, 0.8);
    --bg-card-hover: rgba(40, 40, 40, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #6366f1;
    --accent-hover: #818cf8;
    --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
}

/* Apply dark mode to body */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Netflix-Style Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-secondary);
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
}

/* Mobile: Compact tabs with wrapping support */
@media (max-width: 768px) {
    .tab-navigation {
        gap: 0.5rem;
        padding: 1rem 0;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        /* Allow tabs to wrap to next line */
        overflow-x: visible;
        /* No horizontal scroll when wrapping */
    }
}

.tab-navigation::-webkit-scrollbar {
    height: 4px;
}

.tab-navigation::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tab-navigation::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.tab-button {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

/* Mobile: Compact tabs that can wrap */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
        font-weight: 600;
        flex-shrink: 0;
        min-width: fit-content;
    }

    /* Smaller video count badge on mobile */
    .tab-button .video-count {
        font-size: 0.68rem;
        padding: 0.12rem 0.35rem;
        margin-left: 0.28rem;
    }

    /* Smaller premium icon on mobile */
    .tab-button .premium-icon {
        font-size: 0.68rem;
        margin-left: 0.18rem;
    }
}

.tab-button:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tab-button.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
    background: linear-gradient(to top, rgba(99, 102, 241, 0.1), transparent);
}

.tab-button .video-count {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-left: 0.4rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Netflix-Style Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 360px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover);
    z-index: 10;
}

.video-thumbnail {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-thumbnail-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.play-btn:hover {
    background: #fff;
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.play-btn i {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-left: 3px;
}

.video-info {
    padding: 0.9rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-id-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.video-id-label {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
}

.video-id-code {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(99, 102, 241, 0.2);
    border: none;
    color: var(--accent-color);
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: var(--accent-hover);
    transform: scale(1.1);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.video-meta-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-points {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}

.video-duration-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg);
}

.video-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 1rem;
    gap: 1rem;
}

#modal-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Video modal CTA text with improved animation */
.video-modal-cta {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg,
            #6366f1 0%,
            #8b5cf6 25%,
            #ec4899 50%,
            #8b5cf6 75%,
            #6366f1 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    animation: shimmer 3s ease-in-out infinite;
    /* Emoji support */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    /* Better text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Shimmer animation for CTA text */
@keyframes shimmer {
    0% {
        background-position: 0% center;
        transform: scale(1);
    }

    50% {
        background-position: 100% center;
        transform: scale(1.02);
    }

    100% {
        background-position: 0% center;
        transform: scale(1);
    }
}

/* Mobile optimization for portrait videos */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-width: 100%;
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
        /* Safari safe area support */
        padding-bottom: env(safe-area-inset-bottom);
    }

    .close-modal {
        top: 0.5rem;
        top: max(0.5rem, env(safe-area-inset-top));
        right: 0.5rem;
        right: max(0.5rem, env(safe-area-inset-right));
        width: 40px;
        height: 40px;
        font-size: 2rem;
        z-index: 1000;
    }

    .video-container {
        padding: 1rem;
        padding-top: 3.5rem;
        padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 3rem));
        padding-bottom: 0.5rem;
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    /* Portrait video optimization */
    #modal-video {
        border-radius: 8px;
        /* Reduce height more to make room for buttons */
        max-height: calc(100vh - 20rem - env(safe-area-inset-bottom));
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    /* CTA text on mobile - better size and spacing */
    .video-modal-cta {
        font-size: 1rem;
        padding: 0.65rem 0.85rem;
        line-height: 1.5;
        max-width: 95%;
        letter-spacing: 0.01em;
    }

    /* Show info panel on mobile but hide metadata, keep only button */
    .video-info-panel {
        display: block;
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        background: transparent;
        margin-bottom: 0;
    }

    /* Hide metadata on mobile */
    .video-info-panel h3,
    .video-info-panel .video-meta,
    .video-info-panel .video-details {
        display: none;
    }

    /* Style the button for mobile */
    .video-info-panel .video-actions {
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .video-info-panel .btn {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
        /* Ensure button is above Safari UI */
        margin-bottom: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #modal-video {
        max-width: 100%;
        max-height: 90vh;
    }
}

.video-info-panel {
    padding: 2rem;
}

.video-info-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-meta span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.video-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-actions {
    display: flex;
    gap: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-accent);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    z-index: 999;
    border: none;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Header Styles for Videos Page */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Premium Badge in Header */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }
}

.premium-badge i {
    color: #ffd700;
    font-size: 1rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Premium Icon in Tabs */
.premium-icon {
    color: #ffd700;
    font-size: 0.9rem;
    margin-left: 0.3rem;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

/* Premium-Only Tab Styles */
.tab-button.premium-only {
    position: relative;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
    border-left: 3px solid rgba(255, 215, 0, 0.3);
}

.tab-button.premium-only:not(.disabled):hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.15), transparent);
    border-left-color: rgba(255, 215, 0, 0.6);
}

/* Disabled Tab Styles */
.tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.1) !important;
    border-left-color: rgba(128, 128, 128, 0.3) !important;
    position: relative;
}

.tab-button.disabled::after {
    content: '🔒';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.tab-button.disabled:hover {
    transform: none;
    color: var(--text-secondary);
}

.tab-button.disabled .premium-icon {
    opacity: 0.5;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
    }

    .video-card {
        height: 320px;
    }

    .video-thumbnail {
        height: 240px;
    }

    .tab-button {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .video-info-panel {
        padding: 1.5rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .page-title h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .video-card {
        height: 280px;
    }

    .video-thumbnail {
        height: 200px;
    }

    .video-info {
        padding: 0.7rem;
    }

    /* Keep video ID section visible on mobile */
    .video-id-section {
        flex-wrap: wrap;
        display: flex;
        gap: 0.3rem;
    }

    .video-id-label {
        font-size: 0.7rem;
    }

    .video-id-code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }

    .copy-btn {
        padding: 0.2rem;
        font-size: 0.75rem;
    }

    .tab-navigation {
        gap: 0.4rem;
        padding: 1rem 0;
        flex-wrap: wrap;
    }

    .tab-button {
        font-size: 0.75rem;
        padding: 0.45rem 0.5rem;
    }

    .tab-button .video-count {
        font-size: 0.63rem;
        padding: 0.1rem 0.28rem;
        margin-left: 0.22rem;
    }

    .tab-button .premium-icon {
        font-size: 0.63rem;
        margin-left: 0.12rem;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }

    .page-title p {
        font-size: 1rem;
    }
}

/* Premium Access Overlay */
.premium-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    animation: fadeIn 0.5s ease-in-out;
}

.premium-overlay-content {
    max-width: 500px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 1rem;
}

.premium-message-box {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    /* Emoji support */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.premium-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    /* Emoji support */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.premium-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.countdown-display {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.premium-benefits {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
}

.premium-benefits h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
    /* Emoji support */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
}

.premium-benefits li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.premium-benefits li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.upgrade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--gradient-accent);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    animation: buttonPulse 2s infinite;
    width: 100%;
    max-width: 100%;
    /* Emoji support */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 12px 40px rgba(99, 102, 241, 0.8);
    }
}

.upgrade-button:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.8);
}

.upgrade-button i {
    font-size: 1.3rem;
}

.premium-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Disable interactions when overlay is shown */
.premium-overlay~.main-content,
.premium-overlay~.header {
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .premium-overlay-content {
        width: 95%;
        padding: 0.5rem;
        max-height: 98vh;
    }

    .premium-message-box {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .premium-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .premium-title {
        font-size: 1.25rem;
    }

    .premium-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .countdown-display {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .countdown-timer {
        font-size: 2rem;
    }

    .premium-benefits {
        margin: 1rem 0;
        padding: 1rem;
    }

    .premium-benefits h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .premium-benefits li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .premium-benefits li i {
        font-size: 1rem;
    }

    .upgrade-button {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .upgrade-button i {
        font-size: 1.1rem;
    }

    .premium-footer {
        font-size: 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .premium-overlay-content {
        width: 98%;
    }

    .premium-message-box {
        padding: 1.25rem 0.75rem;
    }

    .premium-icon {
        font-size: 2rem;
    }

    .premium-title {
        font-size: 1.1rem;
    }

    .premium-benefits li {
        font-size: 0.8rem;
    }

    .countdown-timer {
        font-size: 1.75rem;
    }
}