/* ==========================================================================
   MultSender Sales - WordPress Plugin Styles
   Matches frontend/styles.css design exactly, with WP theme isolation
   ========================================================================== */

/* --- CSS Reset & WordPress Isolation --- */
:root {
    --primary: #833ab4;
    --primary-light: #c13584;
    --secondary: #405de6;
    --accent: #fd1d1d;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --white: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Full Isolation from WP theme */
.ms-page,
.ms-page *,
.ms-page *::before,
.ms-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ms-page {
    background-color: var(--dark) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide WP Admin Bar on the landing page */
.ms-page #wpadminbar,
#wpadminbar {
    display: none !important;
}

html.ms-page-html {
    margin-top: 0 !important;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Layout --- */
.ms-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.ms-page header {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.ms-page header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-page .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main) !important;
    text-decoration: none !important;
}

.ms-page .logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ms-page nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.ms-page nav ul li a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s;
}

.ms-page nav ul li a:hover {
    color: var(--primary-light) !important;
}

/* --- Buttons --- */
.ms-page .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
}

.ms-page .btn-primary {
    background: var(--gradient);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
}

.ms-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.6);
}

.ms-page .btn-nav {
    padding: 10px 24px;
}

.ms-page .btn-secondary {
    background: var(--glass);
    color: var(--white) !important;
    border: 1px solid var(--glass-border);
}

.ms-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ms-page .btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.ms-page .btn-full {
    width: 100%;
}

/* --- Hero Section --- */
.ms-page .hero {
    padding: 160px 0 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.ms-page .hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.ms-page .hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ms-page .hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.ms-page .hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.ms-page .blob-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 1;
}

/* --- Cards & Sections --- */
.ms-page .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.ms-page .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.ms-page .section-title h2 span {
    color: var(--primary-light);
}

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

.ms-page .card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.ms-page .card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

/* --- Beneficios --- */
.ms-page .beneficios {
    padding: 80px 0;
}

.ms-page .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ms-page .beneficio-card {
    text-align: center;
}

.ms-page .icon-box {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.ms-page .beneficio-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ms-page .beneficio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Planos --- */
.ms-page .planos {
    padding: 80px 0;
}

.ms-page .planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ms-page .plano-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ms-page .plano-tag {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-light);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

.ms-page .plano-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ms-page .plano-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.ms-page .plano-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.ms-page .plano-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.ms-page .plano-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-page .plano-features li svg {
    flex-shrink: 0;
}

.ms-page .selector-group {
    margin-bottom: 20px;
}

.ms-page .selector-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ms-page .qty-selector {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--dark-lighter);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ms-page .qty-selector option {
    background: var(--dark-lighter);
    color: white;
}

.ms-page .total-display {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.ms-page .plano-card.featured {
    border: 2px solid var(--primary-light);
    transform: scale(1.05);
}

.ms-page .plano-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* --- Como Funciona --- */
.ms-page .como-funciona {
    padding: 80px 0;
}

.ms-page .passos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
}

.ms-page .passo {
    text-align: center;
    position: relative;
}

.ms-page .passo-num {
    width: 50px;
    height: 50px;
    background: var(--dark-lighter);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.2rem;
}

.ms-page .passo h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ms-page .passo p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FAQ --- */
.ms-page .faq {
    padding: 80px 0;
    max-width: 800px;
}

.ms-page .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ms-page .faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: border-color 0.3s;
}

.ms-page .faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.ms-page .faq-item summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.ms-page .faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.3s;
}

.ms-page .faq-item[open] summary::after {
    content: '−';
}

.ms-page .faq-item p {
    margin-top: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Footer --- */
.ms-page footer {
    background: #070b14 !important;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.ms-page .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.ms-page .footer-logo-section p {
    margin-top: 15px;
    color: var(--text-muted);
}

.ms-page .footer-links h4,
.ms-page .footer-contact h4 {
    margin-bottom: 25px;
    font-weight: 700;
}

.ms-page .footer-links ul {
    list-style: none;
}

.ms-page .footer-links ul li {
    margin-bottom: 12px;
}

.ms-page .footer-links ul li a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.ms-page .footer-links ul li a:hover {
    color: var(--white) !important;
}

.ms-page .footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ms-page .footer-contact svg {
    color: var(--primary-light);
}

.ms-page .footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ms-page .footer-bottom a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
}

.ms-page .footer-bottom a:hover {
    color: var(--white) !important;
}

/* --- Modal --- */
.ms-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.ms-page .modal-content {
    max-width: 450px;
    width: 90%;
    position: relative;
}

.ms-page .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: color 0.3s;
}

.ms-page .close-modal:hover {
    color: var(--white);
}

.ms-page .modal-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ms-page .modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.ms-page .form-group {
    margin-top: 20px;
}

.ms-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ms-page .form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--dark-lighter);
    border: 1px solid var(--glass-border);
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ms-page .form-group input:focus {
    border-color: var(--primary-light);
}

.ms-page .form-group input::placeholder {
    color: #64748b;
}

.ms-page .modal-total {
    margin: 25px 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

/* ============ WaSender Green Theme ============ */
.ms-page .green-accent {
    color: #10b981 !important;
}

.ms-page .planos-wasender .section-title h2 span {
    color: #10b981;
}

.ms-page .plano-card.wasender:hover {
    border-color: #10b981;
}

.ms-page .wasender-tag {
    background: #10b981 !important;
}

.ms-page .wasender-total {
    color: #10b981 !important;
}

.ms-page .btn-wasender {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.ms-page .btn-wasender:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.ms-page .plano-card.featured-wasender {
    border: 2px solid #10b981;
    transform: scale(1.05);
}

.ms-page .plano-card.featured-wasender:hover {
    transform: scale(1.05) translateY(-10px);
}

.ms-page .planos-wasender {
    padding-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .ms-page .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .ms-page .hero-btns {
        justify-content: center;
    }
    .ms-page .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .ms-page .plano-card.featured {
        transform: none;
    }
    .ms-page .plano-card.featured-wasender {
        transform: none;
    }
}

@media (max-width: 768px) {
    .ms-page nav ul {
        display: none;
    }
    .ms-page .hero-content h1 {
        font-size: 2.5rem;
    }
    .ms-page .passos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .ms-page .hero-content h1 {
        font-size: 2rem;
    }
    .ms-page .footer-content {
        grid-template-columns: 1fr;
    }
    .ms-page .planos-grid {
        grid-template-columns: 1fr;
    }
    .ms-page .section-title h2 {
        font-size: 1.8rem;
    }
}

/* --- Scrollbar --- */
.ms-page::-webkit-scrollbar {
    width: 8px;
}

.ms-page::-webkit-scrollbar-track {
    background: var(--dark);
}

.ms-page::-webkit-scrollbar-thumb {
    background: rgba(131, 58, 180, 0.3);
    border-radius: 4px;
}

.ms-page::-webkit-scrollbar-thumb:hover {
    background: rgba(131, 58, 180, 0.5);
}

/* --- Selection --- */
.ms-page ::selection {
    background: rgba(131, 58, 180, 0.3);
    color: white;
}
