/* frontend/static/css/no_ads/no_ads.css */
/* No-Ads Subscription Page Styles - Compact Design */

/* ─────────────────────────────────────────────────────────────────────────────
   Wrapper & Container
   ───────────────────────────────────────────────────────────────────────────── */

.no-ads-wrapper.sacred-bg {
    background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
    border-radius: 16px;
    max-width: 760px;
    margin: 8px auto 16px;
}

.no-ads-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 12px 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.no-ads-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 6px 0 10px;
    text-align: center;
}

.hero-icon {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff 0%, #f8f4fc 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.12);
    margin: 0 auto;
}

.no-ads-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #7b2cbf;
    margin: 0;
}
.no-ads-title::after {
    content: '';
    display: block;
    height: 2px;
    width: 36px;
    background: linear-gradient(90deg, #ffd54a, #ffd54a 60%, rgba(123,44,191,0));
    border-radius: 2px;
    margin: 4px auto 0;
    opacity: 0.9;
}

.no-ads-subtitle {
    font-size: 0.82rem;
    color: #6b5c7b;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Card - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.no-ads-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(123, 44, 191, 0.08);
    padding: 12px 14px;
    border: 1px solid rgba(123, 44, 191, 0.1);
}

.no-ads-card--success {
    background: linear-gradient(135deg, #f8f4fc 0%, #fff 100%);
    border-color: rgba(123, 44, 191, 0.15);
    padding: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Benefits Section
   ───────────────────────────────────────────────────────────────────────────── */

.benefits-section {
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Price Section - Centered
   ───────────────────────────────────────────────────────────────────────────── */

.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

/* Benefits - Compact */
.benefits-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7b2cbf;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 3px 0;
    font-size: 0.82rem;
    color: #444;
    border-bottom: 1px solid #f5f0fa;
    line-height: 1.35;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* Price Badge - Compact with Spiritual Glow */
.price-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(123, 44, 191, 0.25),
        0 0 0 0 rgba(255, 213, 74, 0);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    animation: spiritual-glow 2.5s ease-in-out infinite;
}

/* Spiritual golden glow animation */
@keyframes spiritual-glow {
    0%, 100% {
        box-shadow: 
            0 2px 8px rgba(123, 44, 191, 0.25),
            0 0 12px rgba(255, 213, 74, 0.15),
            0 0 20px rgba(255, 193, 7, 0.08);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(123, 44, 191, 0.35),
            0 0 18px rgba(255, 213, 74, 0.35),
            0 0 28px rgba(255, 193, 7, 0.18);
    }
}

/* Subtle inner shimmer */
.price-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
}

.price-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 16px rgba(123, 44, 191, 0.4),
        0 0 24px rgba(255, 213, 74, 0.4),
        0 0 32px rgba(255, 193, 7, 0.2);
    animation: none;
}

.price-badge:hover::before {
    animation: none;
    opacity: 0;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 0.7rem;
    opacity: 0.9;
}

.price-note {
    font-size: 0.68rem;
    color: #7b2cbf;
    text-align: center;
    margin: 0;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Email Section
   ───────────────────────────────────────────────────────────────────────────── */

.email-section {
    margin-bottom: 10px;
    position: relative;
}

.email-section .form-control {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    width: 100%;
}

.email-section .form-control:focus {
    border-color: #7b2cbf;
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.1);
}

.email-section .form-control::placeholder {
    color: #aaa;
    font-size: 0.8rem;
}

.email-section .form-control.is-invalid {
    border-color: #9d4edd;
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.15);
}

/* Email Error Toast - Above Input */
.email-error-toast {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
}

.email-error-toast.d-none {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────────────────────────────── */

.cta-section {
    text-align: center;
}

/* Emotional Support Message */
.support-message {
    font-size: 0.7rem;
    color: #7b2cbf;
    text-align: center;
    margin: 4px 0 0;
    opacity: 0.8;
}

/* CTA Button - Compact */
.btn-cta {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.25);
    white-space: nowrap;
    width: 100%;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.35);
}

.btn-cta:disabled {
    background: #ccc;
    box-shadow: none;
    transform: none;
}

/* Home Button - Outline Style */
.btn-home-outline {
    display: inline-block;
    background: transparent;
    border: 1.5px solid #7b2cbf;
    color: #7b2cbf;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-home-outline:hover {
    background: rgba(123, 44, 191, 0.08);
    color: #6a1b9a;
    border-color: #6a1b9a;
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Trust Badges - Inline Row
   ───────────────────────────────────────────────────────────────────────────── */

.trust-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.trust-badge {
    font-size: 0.7rem;
    color: #777;
    background: rgba(123, 44, 191, 0.04);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(123, 44, 191, 0.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Loading Overlay - Centered Modal Style
   ───────────────────────────────────────────────────────────────────────────── */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loading-overlay.d-none {
    display: none !important;
}

.loading-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(123, 44, 191, 0.15);
    border: 1px solid rgba(123, 44, 191, 0.1);
}

.loading-overlay .spiritual-spinner-sm {
    width: 80px;
    height: 80px;
}

.loading-overlay .om-symbol {
    font-size: 20px;
}

.loading-overlay .lotus-petals span {
    width: 5px;
    height: 5px;
}

.loading-overlay .lotus-petals span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateY(-36px); }
.loading-overlay .lotus-petals span:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateY(-36px); }

.loading-overlay .processing-text {
    font-size: 0.95rem;
    color: #7b2cbf;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Loading & Alerts - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.loading-section {
    font-size: 0.8rem;
    color: #666;
}

.alert-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Already Subscribed / Warning States - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.success-icon-sm {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.already-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #7b2cbf;
    margin: 0 0 4px;
}

.already-msg {
    font-size: 0.82rem;
    color: #555;
    margin: 0 0 10px;
}

.warn-icon-sm {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.config-warn {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Success Page - Compact
   ───────────────────────────────────────────────────────────────────────────── */

.success-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.success-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #7b2cbf;
    margin-bottom: 0.5rem;
}

.success-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.validity-info {
    background: rgba(123, 44, 191, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.82rem;
}

.processing-icon {
    padding: 0.5rem 0;
}

.processing-hint {
    color: #888;
    font-size: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive - Mobile
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 576px) {
    .no-ads-container {
        padding: 8px 10px 12px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Breadcrumb micro (consistency with other pages)
   ───────────────────────────────────────────────────────────────────────────── */

.breadcrumb-nav.micro {
    margin: 6px 0;
    font-size: 0.72rem;
    color: #6f6a80;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
}
.breadcrumb-nav.micro a {
    color: #6b21a8;
    text-decoration: none;
}
.breadcrumb-nav.micro .sep {
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Spiritual Mandala Spinner - Small Version
   ───────────────────────────────────────────────────────────────────────────── */

.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spiritual-spinner-sm {
    position: relative;
    width: 60px;
    height: 60px;
}

.mandala-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.mandala-ring.outer {
    width: 100%;
    height: 100%;
    border-color: rgba(123, 44, 191, 0.3);
    border-top-color: #7b2cbf;
    border-right-color: #9d4edd;
    animation: spinOuter 3s linear infinite;
}

.mandala-ring.middle {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-color: rgba(255, 213, 74, 0.3);
    border-top-color: #ffd54a;
    border-left-color: #ffb300;
    animation: spinMiddle 2s linear infinite reverse;
}

.mandala-ring.inner {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-color: rgba(123, 44, 191, 0.2);
    border-bottom-color: #7b2cbf;
    border-right-color: #9d4edd;
    animation: spinInner 1.5s linear infinite;
}

.om-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #7b2cbf;
    font-weight: bold;
    animation: pulseOm 2s ease-in-out infinite;
}

.lotus-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateLotus 8s linear infinite;
}

.lotus-petals span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #ffd54a, #ffb300);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0.7;
}

.lotus-petals span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-26px); }
.lotus-petals span:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateY(-26px); }
.lotus-petals span:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateY(-26px); }
.lotus-petals span:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateY(-26px); }
.lotus-petals span:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateY(-26px); }
.lotus-petals span:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateY(-26px); }
.lotus-petals span:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateY(-26px); }
.lotus-petals span:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateY(-26px); }

@keyframes spinOuter {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinMiddle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinInner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseOm {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes rotateLotus {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.processing-text {
    font-size: 0.78rem;
    color: #7b2cbf;
    font-weight: 500;
    animation: pulseFade 1.5s ease-in-out infinite;
}

@keyframes pulseFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

