/* ============================================
   IPTV TOP 5 - LIGHT MODE ELEGANT & FUTURISTIC
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais - Paleta Light Elegante */
    --primary: #32a74b;
    --primary-dark: #46e569;
    --primary-light: #33884d;
    --secondary: #299470;
    --accent: #dd7907;
    --accent-light: #67e8f9;

    /* Fundos */
    --bg-primary: #ffffff;
    --bg-secondary: #a9e2b1;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;

    /* Textos */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* Bordas e Sombras */
    --border: #ffffff;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0px 5px 8px 1px rgb(0 0 0 / 0.2);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Cores de Destaque */
    --gold: #e96c06;
    --gold-light: #fb9724;
    --silver: #64748b;
    --bronze: #b45309;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradientes */
    --gradient-primary: linear-gradient(45deg, #1f5717 0%, #308651 100%);
    --gradient-accent: linear-gradient(135deg, #06d433 0%, #226e2d 100%);
    --gradient-gold: linear-gradient(135deg, #fbbe24 100%, #f5690b 100%);
    --gradient-silver: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    --gradient-bronze: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --gradient-hero: linear-gradient(135deg, #05180d 0%, #12471fd0 50%, #1c250ff8 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #3770a8 100%);

    /*Background*/
    --bg-hero: url('../images/header-bg-7.jpg');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid var(--border);
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.mobile-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    margin-top: 7px;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 40%;
}

:target:before {
    content: "";
    display: block;
    height: 90px;
    margin: -90px 0 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 120px;
    background: var(--gradient-hero), var(--bg-hero);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.02em;
}

.highlight {
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(23, 105, 36, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.highlight2 {
    background: var(--secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight3 {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    margin-bottom: 40px;
    line-height: 1.8;

}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover::before {
    left: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

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

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

.tv-icon {
    width: 280px;
    height: 280px;
    background: var(--gradient-card);
    border-radius: 32px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
}

.tv-icon::before {
    content: '\f26c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 100px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   WHAT IS IPTV SECTION
   ============================================ */
.whatis {
    background: var(--bg-primary);
    padding: 100px 0;
    position: relative;
}

.whatis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.whatis h2 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.whatis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.whatis-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.whatis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.whatis-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.whatis-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.whatis-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.whatis-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FACTORS SECTION
   ============================================ */
.factors {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.factors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.factors h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.factors-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.factors-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.factors-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.factors-card:hover::after {
    opacity: 1;
}

.card-number {
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.factors-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   RANKING SECTION
   ============================================ */
.ranking {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.ranking h2 {
    text-align: center;
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.ranking-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.ranking-table-wrapper {
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ranking-table thead {
    background: var(--gradient-primary);
}

.ranking-table th {
    padding: 24px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    border: 1px solid;
}

.ranking-table th:first-child {
    border-radius: 0;
}

.ranking-table th:last-child {
    border-radius: 0;
}

.ranking-table td {
    padding: 28px 20px;
    border-bottom: 1px solid rgba(50, 167, 75, 0.25);
    vertical-align: middle;
    transition: background 0.3s ease;
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: var(--bg-secondary);
}

.ranking-table tr.rank-description td {
    padding: 16px 20px;
    height: auto;
    border-bottom: 2px solid var(--primary);
    border-right: 1px solid rgba(50, 167, 75, 0.2);
    vertical-align: middle;
}

.ranking-table tr.rank-description td:last-child {
    border-right: none;
}

.ranking-table tr.rank-description td .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    line-height: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.ranking-table tr.rank-description td .content-wrapper svg {
    display: block;
    width: 32px;
    height: 20px;
}

.ranking-table tbody:last-child tr:last-child td {
    border-bottom: none;
}

/* Position Column */
.position {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
}

.position .rank-number {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover .rank-number {
    transform: scale(1.1);
}

/* Service Name */
.service-name {
    vertical-align: middle;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-name img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-name a:hover img {
    transform: scale(1.05);
}

.service-name.placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Website Link */
.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.external {
    font-size: 0.8rem;
    opacity: 0.7;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
}

/* Status Badge & Rating */
.status {
    text-align: center;
    vertical-align: middle;
}

.rating {
    vertical-align: middle;
    text-align: center;
}

.rating .stars {
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.rating .note {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.material-icons.full {
    color: var(--gold);
}

.material-icons.empty {
    color: var(--border);
}

/* Rank Highlighting */
.rank-1,
.rank-3,
.rank-5 {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
}

.rank-2,
.rank-4 {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

/* Disclaimer */
.ranking .disclaimer {
    margin: 40px auto 0;
    max-width: 800px;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.ranking .disclaimer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.ranking .disclaimer strong {
    color: var(--text-primary);
}

/* ============================================
   DISCLAIMER SECTION (FOOTER)
   ============================================ */
section.disclaimer {
    margin: 0;
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

section.disclaimer h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 40px;
}

section.disclaimer h2:first-child {
    margin-top: 0;
}

section.disclaimer p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.footer-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.footer a {
    display: inline-flex;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.footer-text {
    color: var(--text-muted);
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-text.small {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ============================================
   ABOUT US / TERMS / PRIVACY PAGES
   ============================================ */
section.about {
    padding: 140px 20% 80px;
    background: var(--bg-primary);
    min-height: calc(100vh - 300px);
}

section.about h1 {
    margin: 0 0 48px 0;
    padding: 0;
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

section.about h2 {
    margin: 48px 0 20px 0;
    padding: 0;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

section.about h2:first-of-type {
    margin-top: 0;
}

section.about p {
    margin: 0 0 24px 0;
    padding: 0;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.btn-mobile {
    display: none;
}

/* Alerts */
.alert {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Payment Mobile */
.payment-mobile {
    display: inline;
    color: var(--text-secondary);
}