/* ── CTA ─────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.cta-desc {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    background-color: black;
    gap: 1rem;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ── Pricing section ─────────────────────────────────────────── */
.service-pricing__plans {
    background: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    border: none;
}

.service-pricing__plan {
    background-color: var(--pricing-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    width: 42%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: hidden;
    transition: 0.3s all;
}

/* Header image with text overlay */
.service-pricing__header {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.service-pricing__header-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

.service-pricing__header-brand {
    font-size: 2rem;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.service-pricing__header-plan {
    font-family: 'Bangers', cursive;
    font-size: 2.8rem;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Content below header gets padding */
.service-pricing__price-section,
.service-pricing__plan-subtitle,
.service-pricing__features-list,
.service-pricing__action {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* Price section wrapper */
.service-pricing__price-section {
    display: flex;
    gap: 0.75rem;
}

.service-pricing__price-section--dual {
    align-items: stretch;
}

/* Price box (shared) */
.service-pricing__price-box {
    background: #f7f7f8;
    border: 1.5px solid #8f8f918e;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gratuitPrice{
    width: 50%;
}

/* Free: single box */
.service-pricing__plan--free .service-pricing__price-box {
    flex: 1;
}

.service-pricing__price-label {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.service-pricing__price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
}

.service-pricing__price-note {
    font-size: 0.82rem;
    color: #777;
}

/* Pro: dual boxes */
.service-pricing__price-box--annual,
.service-pricing__price-box--monthly {
    flex: 1;
}

.price-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.price-box__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.price-box__badge {
    background: #004AAD;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.price-box__row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.price-old {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}

.price-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
}

.price-equiv {
    font-size: 0.95rem;
    font-weight: 700;
    color: #004AAD;
}

.price-note {
    font-size: 0.82rem;
    color: #666;
}

.price-trial {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.1rem;
}

/* Subtitle */
.service-pricing__plan-subtitle {
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Feature list */
.service-pricing__features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.service-pricing__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.feature-content strong {
    font-size: 0.95rem;
    color: #222;
}

.feature-content span {
    font-size: 0.82rem;
    color: #777;
}

/* CTA */
.service-pricing__action {
    display: flex;
    justify-content: center;
    padding-bottom: var(--spacing-lg);
    margin-top: auto;
}

.service-pricing__cta {
    background-color: var(--pricing-btn);
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: var(--text-size-md);
    width: 100%;
}

.service-pricing__cta:hover {
    background-color: var(--pricing-btn-hover);
}

/* ── Contact section ─────────────────────────────────────────── */
.contact-section {
    padding: 5rem 2rem;
    background: var(--pricing-bg, #f8f9ff);
}

.section-title {
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--pricing-border-alt, #764ba2);
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--zinc-500, #666);
    margin-bottom: 3rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-md, 16px);
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.08));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold, 700);
    color: var(--pricing-border, #667eea);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--segly-blue-2);
    border-radius: 15px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--pricing-bg, #f8f9ff);
    color: var(--zinc-900, #18181b);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--pricing-border-alt, #764ba2);
    outline: none;
    box-shadow: 0 0 0 2px #764ba233;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    background: var(--teal-50, #e6fffa);
    color: var(--teal-500, #38b2ac);
    display: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--pricing-btn, #764ba2) 0%, var(--pricing-btn-hover, #667eea) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.12);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--pricing-btn-hover, #667eea) 0%, var(--pricing-btn, #764ba2) 100%);
    transform: translateY(-2px) scale(1.03);
}

#contact-success {
    background: linear-gradient(90deg, #e0ffe0 0%, #b2f7b2 100%);
    color: #217a2b;
    border: 1.5px solid #4caf50;
    border-radius: 8px;
    padding: 1em 1.5em;
    margin: 1em 0 0.5em 0;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 8px #4caf5022;
    text-align: center;
}

#contact-error {
    background: linear-gradient(90deg, #ffe0e0 0%, #f7b2b2 100%);
    color: #a92121;
    border: 1.5px solid #f44336;
    border-radius: 8px;
    padding: 1em 1.5em;
    margin: 1em 0 0.5em 0;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 8px #f4433622;
    text-align: center;
}

/* ── Responsive sections ─────────────────────────────────────── */
@media (max-width: 900px) {
    .service-pricing__plans {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .service-pricing__plan {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-form {
        padding: 1.5rem 1.2rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-title {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 2.5rem;
    }

    .cta-desc {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .store-button {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.2rem 0.8rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .cta-title {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        font-size: 2rem;
    }

    .cta-desc {
        font-size: 1rem;
    }

    .active-sub-features {
        grid-template-columns: 1fr;
    }
}

/* ── Toast notifications ─────────────────────────────────────── */
.segly-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(2rem);
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.segly-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.segly-toast--info {
    background: #2b6cb0;
    color: white;
}

.segly-toast--success {
    background: #2f855a;
    color: white;
}

.segly-toast--warning {
    background: #c05621;
    color: white;
}

.segly-toast--error {
    background: #c53030;
    color: white;
}

/* ── Active subscription section ─────────────────────────────── */
.active-subscription-section {
    padding: 2.5rem 2rem;
    margin: 3rem 0;
}

.active-sub-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.active-sub-card {
    background: linear-gradient(135deg, #1a0533 0%, #2d1060 50%, #1a0533 100%);
    border-radius: 24px;
    padding: 2.2rem 2.5rem;
    color: white;
    box-shadow: 0 20px 60px rgba(118, 75, 162, 0.4);
    position: relative;
    overflow: hidden;
}

.active-sub-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(118,75,162,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.active-sub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.active-sub-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.active-sub-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.active-sub-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.active-sub-badge {
    display: inline-block;
    background: linear-gradient(90deg, #f6d365, #fda085);
    color: #1a0533;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2em 0.75em;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.active-sub-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.2rem;
}

.active-sub-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48bb78;
    box-shadow: 0 0 6px #48bb78;
    flex-shrink: 0;
}

.active-sub-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem 1.5rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.active-sub-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.active-sub-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.active-sub-btn-manage {
    background: white;
    color: #2d1060;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.active-sub-btn-manage:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.active-sub-btn-features {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
}

.active-sub-btn-features:hover {
    color: white;
}

@media (max-width: 600px) {
    .active-sub-card {
        padding: 1.5rem 1.2rem;
    }

    .active-sub-header {
        flex-direction: column;
    }

    .active-sub-features {
        grid-template-columns: 1fr 1fr;
    }
}