:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a0f;
    --dark-2: #12121a;
    --dark-3: #1a1a2e;
    --card-bg: #16213e;
    --card-border: #1e2d4a;
    --text: #e0e0e0;
    --text-muted: #8892b0;
    --text-light: #ccd6f6;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00cec9, #81ecec);
    --gradient-3: linear-gradient(135deg, #fd79a8, #e84393);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: var(--secondary); transition: color .3s; text-decoration: none; }
a:hover { color: var(--primary); }

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

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px; font-weight: 600;
    font-size: 14px; cursor: pointer; transition: all .3s;
    border: none; text-decoration: none;
}
.btn-primary { background: var(--gradient-1); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,92,231,.4); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid rgba(255,255,255,.15); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-success { background: var(--gradient-2); color: var(--dark); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,206,201,.4); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.section { padding: 80px 0; position: relative; }
.section-dark { background: var(--dark-2); }
.section-title {
    text-align: center; font-size: 36px; font-weight: 800;
    margin-bottom: 12px; color: #fff;
}
.section-subtitle {
    text-align: center; font-size: 18px; color: var(--text-muted);
    margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== HEADER ===== */
.goodx-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all .3s;
    background: transparent;
}
.goodx-header.scrolled {
    background: rgba(10,10,15,.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.goodx-header .container {
    display: flex; align-items: center; justify-content: space-between;
}
.goodx-header .logo {
    font-size: 24px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 10px;
}
.goodx-header .logo span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.goodx-header nav ul {
    display: flex; list-style: none; gap: 32px; align-items: center;
}
.goodx-header nav a {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    transition: color .3s; position: relative;
}
.goodx-header nav a:hover, .goodx-header nav a.active { color: #fff; }
.goodx-header nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gradient-1);
    transition: width .3s;
}
.goodx-header nav a:hover::after, .goodx-header nav a.active::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: var(--gradient-hero);
    position: relative; overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,92,231,.15), transparent);
    top: -200px; right: -200px;
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,206,201,.1), transparent);
    bottom: -100px; left: -100px;
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 {
    font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff;
}
.hero-content h1 span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; }
.hero-content .hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px; padding: 40px;
    text-align: center;
}
.hero-card .price-big { font-size: 56px; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-card .price-label { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.hero-card ul { list-style: none; text-align: left; margin: 20px 0; }
.hero-card ul li { padding: 8px 0; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.hero-card ul li i { color: var(--success); }
.hero-badge {
    position: absolute; top: -15px; right: -15px;
    background: var(--gradient-3); color: #fff;
    padding: 8px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 700;
}

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 40px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-number { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stats .stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== PLANS / PRODUTOS ===== */
.plans-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; margin-top: 40px;
}
.plan-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 36px 28px;
    transition: all .3s; position: relative;
}
.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(108,92,231,.15);
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(108,92,231,.2);
}
.plan-card.featured::before {
    content: 'MAIS VENDIDO'; position: absolute; top: 12px; right: 12px;
    background: var(--gradient-1); color: #fff;
    padding: 4px 14px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
.plan-card .plan-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.plan-card .plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.plan-card .plan-price { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.plan-card .plan-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.plan-card .plan-period { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.plan-card .plan-features { list-style: none; margin: 20px 0; }
.plan-card .plan-features li {
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text-light);
}
.plan-card .plan-features li i { color: var(--success); font-size: 14px; }
.plan-card .plan-features li i.fa-times { color: var(--danger); }

/* ===== FEATURES ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 32px 24px;
    text-align: center; transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-card .icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 24px;
}
.feature-card .icon.purple { background: rgba(108,92,231,.15); color: var(--primary); }
.feature-card .icon.teal { background: rgba(0,206,201,.15); color: var(--secondary); }
.feature-card .icon.pink { background: rgba(253,121,168,.15); color: var(--accent); }
.feature-card .icon.green { background: rgba(0,184,148,.15); color: var(--success); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    padding: 20px 24px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; font-weight: 600;
    color: #fff; transition: all .3s;
}
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-question i { transition: transform .3s; color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px; max-height: 0; overflow: hidden;
    transition: all .3s; color: var(--text-muted); font-size: 14px;
    line-height: 1.7;
}
.faq-item.active .faq-answer { padding: 0 24px 20px; max-height: 300px; }

/* ===== CTA ===== */
.cta-section {
    text-align: center; padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
}
.cta-section h2 { font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.goodx-footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 60px 0 30px;
}
.goodx-footer .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.goodx-footer .footer-brand .logo { font-size: 24px; font-weight: 800; color: #fff; display: block; margin-bottom: 16px; }
.goodx-footer .footer-brand .logo span { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.goodx-footer .footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.goodx-footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.goodx-footer ul { list-style: none; }
.goodx-footer ul li { margin-bottom: 10px; }
.goodx-footer ul a { color: var(--text-muted); font-size: 14px; transition: color .3s; }
.goodx-footer ul a:hover { color: var(--primary); }
.goodx-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 20px; text-align: center;
    color: var(--text-muted); font-size: 14px;
}

/* ===== NON-HOMEPAGE PAGES ===== */
.goodx-header { position: relative; }
body:not(.homepage) .goodx-header {
    background: rgba(10,10,15,.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
body:not(.homepage) { padding-top: 0; }
#main-body { padding: 40px 0; min-height: 60vh; }
#main-body .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#main-body .primary-content { min-height: 400px; }
.master-breadcrumb {
    background: var(--dark-2);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 12px 0;
}
.master-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0; padding: 0;
    list-style: none; display: flex; gap: 8px;
    font-size: 13px;
}
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/'; color: var(--text-muted); padding-right: 8px;
}
.master-breadcrumb .breadcrumb-item a { color: var(--primary); }
.master-breadcrumb .breadcrumb-item.active { color: var(--text-muted); }

/* ===== SIDEBAR ===== */
.sidebar .panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px; margin-bottom: 20px;
    overflow: hidden;
}
.sidebar .panel-heading {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
}
.sidebar .panel-title {
    font-size: 15px; font-weight: 700; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar .panel-title .badge {
    background: var(--primary);
    color: #fff; padding: 2px 10px; border-radius: 10px;
    font-size: 12px;
}
.sidebar .panel-body { padding: 8px 0; }
.sidebar .nav-pills { list-style: none; padding: 0; margin: 0; }
.sidebar .nav-pills li { border-bottom: 1px solid rgba(255,255,255,.03); }
.sidebar .nav-pills li:last-child { border-bottom: none; }
.sidebar .nav-pills a {
    display: block; padding: 10px 20px;
    color: var(--text-muted); font-size: 14px;
    transition: all .2s;
}
.sidebar .nav-pills a:hover,
.sidebar .nav-pills li.active a {
    color: var(--primary);
    background: rgba(108,92,231,.08);
}
.sidebar .nav-pills a i { width: 20px; margin-right: 8px; }
.sidebar .panel-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--card-border);
    font-size: 13px; color: var(--text-muted);
}

/* ===== DEFAULT WHMCS TABLES & FORMS ===== */
.table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 16px; border-bottom: 1px solid var(--card-border);
    text-align: left; font-size: 14px;
}
.table th { color: #fff; font-weight: 700; background: var(--dark-2); }
.table td { color: var(--text); }
.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,.02); }
.table-hover tbody tr:hover { background: rgba(108,92,231,.05); }
.table .label {
    display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 12px; font-weight: 600;
}
.label-success { background: rgba(0,184,148,.15); color: #00b894; }
.label-warning { background: rgba(253,203,110,.15); color: #fdcb6e; }
.label-danger { background: rgba(225,112,85,.15); color: #e17055; }
.label-info { background: rgba(0,206,201,.15); color: #00cec9; }
.label-default { background: rgba(255,255,255,.08); color: var(--text-muted); }

.form-control {
    display: block; width: 100%; padding: 10px 14px;
    background: var(--dark-3); border: 1px solid var(--card-border);
    border-radius: 8px; color: #fff; font-size: 14px;
    transition: border-color .3s;
}
.form-control:focus { border-color: var(--primary); outline: none; }
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-light); font-weight: 600; font-size: 14px; }
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: 8px 0 0 8px; }
.input-group .btn { border-radius: 0 8px 8px 0; }
.input-group-prepend .input-group-text {
    display: flex; align-items: center; padding: 0 14px;
    background: var(--dark-3); border: 1px solid var(--card-border);
    border-right: none; border-radius: 8px 0 0 8px;
    color: var(--text-muted); font-size: 14px;
}
.alert {
    padding: 16px 20px; border-radius: 12px;
    margin-bottom: 20px; font-size: 14px;
    border: 1px solid transparent;
}
.alert-info { background: rgba(0,206,201,.1); border-color: rgba(0,206,201,.2); color: #81ecec; }
.alert-success { background: rgba(0,184,148,.1); border-color: rgba(0,184,148,.2); color: #00b894; }
.alert-warning { background: rgba(253,203,110,.1); border-color: rgba(253,203,110,.2); color: #fdcb6e; }
.alert-danger { background: rgba(225,112,85,.1); border-color: rgba(225,112,85,.2); color: #e17055; }
.alert-link { color: inherit; text-decoration: underline; font-weight: 600; }

.panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.panel-heading { padding: 16px 20px; border-bottom: 1px solid var(--card-border); }
.panel-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.panel-body { padding: 20px; }
.panel-footer { padding: 12px 20px; border-top: 1px solid var(--card-border); font-size: 13px; color: var(--text-muted); }
.well { background: var(--dark-3); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }

/* ===== MODAL ===== */
.modal-content { background: var(--dark-2); border: 1px solid var(--card-border); border-radius: 16px; }
.modal-header { border-bottom: 1px solid var(--card-border); padding: 20px 24px; }
.modal-header .modal-title { color: #fff; font-size: 18px; font-weight: 700; }
.modal-header .close { color: var(--text-muted); font-size: 24px; }
.modal-body { padding: 24px; color: var(--text); }
.modal-footer { border-top: 1px solid var(--card-border); padding: 16px 24px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; list-style: none; gap: 4px; justify-content: center; padding: 20px 0; }
.pagination li a, .pagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--dark-3); border: 1px solid var(--card-border);
    color: var(--text-muted); font-size: 14px; transition: all .2s;
}
.pagination li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--primary); color: #fff; }

/* ===== OVERLAY ===== */
#fullpage-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,15,.85); display: flex; align-items: center; justify-content: center; z-index: 9999; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 36px; }
    .hero-content .hero-buttons { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .goodx-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .goodx-header nav ul { display: none; }
    .mobile-toggle { display: block; }
    .goodx-header nav.open ul { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-2); padding: 20px; gap: 16px; }
    .plans-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .goodx-footer .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .cta-section h2 { font-size: 28px; }
}
