﻿/* SaaS Enterprise Landing Page - Modern Navy and Cyan Gradient */
:root {
    --bg-dark: #0b0f19;
    --bg-card: #111827;
    --text-main: #f9fafb;
    --text-meta: #9ca3af;
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --border-zinc: #1f2937;
    --bg-glow: rgba(0, 242, 254, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--primary-cyan);
}

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

/* Header & Nav */
header {
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-zinc);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.saas-logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 40%, var(--primary-cyan) 80%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    flex: 1;
    max-width: 380px;
    min-width: 250px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-zinc);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 8px 14px;
    color: #fff;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px var(--bg-glow);
}

.search-btn {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}

.nav-row {
    border-top: 1px solid var(--border-zinc);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-row::-webkit-scrollbar {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-meta);
    font-weight: 600;
    font-size: 13.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-links a.active, .nav-links a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* SaaS Hero Area */
.saas-hero {
    text-align: center;
    padding: 50px 0 40px;
    background: radial-gradient(circle at top, rgba(0, 242, 254, 0.08), transparent 60%);
}

.saas-hero h2 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 50%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.saas-hero p {
    font-size: 15px;
    color: var(--text-meta);
    max-width: 650px;
    margin: 0 auto 25px;
}

.pricing-btn {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    color: #0b0f19;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--bg-glow);
    display: inline-block;
}

.pricing-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.25);
    color: #0b0f19;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.1);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}

.feature-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-meta);
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-link {
    font-size: 12.5px;
    font-weight: bold;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Pricing Grid */
.pricing-section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 40px 0 20px;
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px var(--bg-glow);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    color: #0b0f19;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.pricing-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.pricing-price {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}

.pricing-price span {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-meta);
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-meta);
}

.pricing-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-cyan);
    font-weight: bold;
}

.pricing-card-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-zinc);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    margin-top: auto;
}

.pricing-card.premium .pricing-card-btn {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    color: #0b0f19;
    border: none;
}

/* Play Page & DPlayer */
.main-wrapper {
    display: flex;
    gap: 24px;
    margin: 30px auto;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.play-saas-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.play-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.play-meta-row {
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 20px;
    border: 1px solid var(--border-zinc);
}

.btn-saas {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    color: #0b0f19;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 12px var(--bg-glow);
}

.btn-saas:hover {
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.25);
}

.play-content-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-zinc);
    padding-top: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-cyan);
}

.vod-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-meta);
}

.vod-desc-text {
    line-height: 1.7;
    color: #d1d5db;
    font-size: 13.5px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    border-radius: 12px;
    padding: 20px;
}

.widget-title {
    font-size: 14px;
    font-weight: bold;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 10px;
    margin-bottom: 15px;
    color: #fff;
}

.sidebar-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-feature-rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #0b0f19;
    background-color: var(--primary-cyan);
}

.sidebar-feature-title {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.saas-tag {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.saas-tag:hover {
    color: #fff;
    border-color: var(--primary-cyan);
}

/* Footer styling */
footer {
    background-color: #080b12;
    border-top: 1px solid var(--border-zinc);
    padding: 40px 0;
    color: var(--text-meta);
    text-align: center;
    font-size: 12px;
    margin-top: 50px;
}

.footer-hot-links {
    margin-bottom: 30px;
    text-align: left;
}

.footer-hot-links h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 13.5px;
    font-weight: bold;
}

.footer-hot-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-hot-item {
    font-size: 11px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    padding: 3px 8px;
    border-radius: 4px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-meta);
    margin: 0 8px;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

/* Pager */
.saas-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.saas-pager a, .saas-pager span {
    background-color: var(--bg-card);
    border: 1px solid var(--border-zinc);
    color: var(--text-meta);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.saas-pager a:hover {
    border-color: var(--primary-cyan);
    color: #fff;
}

.saas-pager span.current {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    color: #0b0f19;
    border: none;
}

/* Floating Ads */
.floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }

.floating-ad-left {
    left: 15px;
}

.floating-ad-right {
    right: 15px;
}

.bottom-floating-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    background: #000;
    border: 2px solid var(--primary-cyan);
    border-bottom: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 20px var(--bg-glow);
    border-radius: 8px 8px 0 0;
}

.bottom-floating-ad img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    display: block;
    margin: 0 auto;
}

.bottom-floating-ad-close {
    position: absolute;
    top: -12px;
    right: 10px;
    background: var(--primary-cyan);
    color: #0b0f19;
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Ad pre-roll count down */
.ad-preroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ad-preroll-overlay a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-preroll-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-preroll-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--primary-cyan);
    pointer-events: none;
    box-shadow: 0 0 6px var(--bg-glow);
}

.ad-preroll-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-cyan);
    color: #0b0f19;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }
}

@media screen and (max-width: 768px) {
    .floating-ad {
        display: block !important;
        width: 80px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
    }
}






/* GLOBAL FLOATING ADS FIX */
.floating-ad-container {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.floating-ad-container-left {
    left: 10px !important;
    right: auto !important;
}
.floating-ad-container-right {
    right: 10px !important;
    left: auto !important;
}

/* Hide standalone ads to prevent FOUC (Flash of Unstyled Content) layout shift */
.floating-ad, .floating-ad-esi {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reveal and format them correctly once JS wraps them in the container */
.floating-ad-container .floating-ad, 
.floating-ad-container .floating-ad-esi {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 140px !important;
    display: block !important;
    margin: 0 !important;
}

.floating-ad img, .floating-ad-esi img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 !important;
}
@media screen and (max-width: 768px) {
    .floating-ad-container .floating-ad, 
    .floating-ad-container .floating-ad-esi {
        width: 110px !important;
    }
}

