:root {
    --bg-color: #f5f4fa;
    --card-bg: #ffffff;
    --text-primary: #18142b;
    --text-secondary: #474263;
    --text-muted: #767194;

    /* Cores Oficiais Jaragou */
    --primary-color: #7044FF;
    --primary-hover: #582be8;
    --secondary-color: #49FF00;
    --secondary-dark: #2eb800;

    /* Cores das Plataformas */
    --whatsapp-color: #25d366;
    --whatsapp-hover: #1ebe5d;
    --telegram-color: #0088cc;
    --telegram-hover: #0072ab;
    --facebook-color: #1877f2;
    --facebook-hover: #1462c9;

    --border-color: #e4e1f2;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 10px rgba(112, 68, 255, 0.06);
    --shadow-md: 0 8px 24px rgba(112, 68, 255, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 28px 16px;
    flex: 1;
}

.container-wide {
    max-width: 840px;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-decoration: none;
}

.logo-img {
    width: 240px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-fallback span {
    color: var(--secondary-dark);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
}

.banner-section {
    margin-bottom: 24px;
}

.banner-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 4px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 18 / 5;
    min-height: 105px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    display: block;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfc9eb;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.banner-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--primary-color);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
}

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

.link-card:active {
    transform: scale(0.98);
}

.btn-whatsapp { background-color: var(--whatsapp-color); }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); }

.btn-telegram { background-color: var(--telegram-color); }
.btn-telegram:hover { background-color: var(--telegram-hover); }

.btn-facebook { background-color: var(--facebook-color); }
.btn-facebook:hover { background-color: var(--facebook-hover); }

.link-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    flex-shrink: 0;
}

.link-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.link-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.link-subtitle {
    display: block;
    font-size: 0.83rem;
    opacity: 0.94;
}

.seo-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.seo-box h1 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.page-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

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

.page-card h1 {
    font-size: 1.55rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.25;
}

.page-card h2 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.page-card p, .page-card li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.page-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.rules-section {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
}

.rules-section.allowed {
    border-left-color: var(--secondary-dark);
}

.rules-section.forbidden {
    border-left-color: #e53e3e;
}

.rules-section h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.rules-section ul {
    margin-bottom: 0;
}

.penalty-banner {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

.benefit-item {
    background: var(--bg-color);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.benefit-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.plan-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.plan-tag {
    position: absolute;
    top: -11px;
    right: 16px;
    background: var(--secondary-color);
    color: #18142b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 8px 0 14px;
}

.plan-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 18px !important;
}

.plan-features li {
    font-size: 0.88rem;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--whatsapp-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.btn-cta-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-1px);
}

.footer {
    text-align: center;
    padding: 20px 16px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    margin-top: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-nav a.highlight-link {
    color: var(--primary-color);
    font-weight: 700;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 20, 43, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999;
}

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

.modal-box {
    background: #ffffff;
    max-width: 410px;
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.modal-box h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button, .modal-actions a {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-cancel {
    background: #edf2f7;
    color: var(--text-secondary);
}

.btn-confirm {
    background: var(--primary-color);
    color: #ffffff;
}
