/* 
 * SD Thanks V2 - Premium Scoped Styles
 * Designed to avoid WordPress theme conflicts.
 */

.thanks-page.sd-thanks-v2 {
    --sd-bg: #030305;
    --sd-card: rgba(20, 20, 31, 0.7);
    --sd-border: rgba(255, 255, 255, 0.08);
    --sd-gold: #f59e0b;
    --sd-green: #10b981;
    --sd-text: #ffffff;
    --sd-muted: #94a3b8;
    --sd-accent: #8b5cf6;
    --sd-accent-glow: rgba(139, 92, 246, 0.3);
    
    background: var(--sd-bg);
    color: var(--sd-text);
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Atmospheric Background Glow */
.thanks-page.sd-thanks-v2::before {
    content: '';
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(circle at center, var(--sd-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.thanks-page.sd-thanks-v2 .sd-container {
    width: 100%;
    max-width: 540px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Premium Badge */
.thanks-page.sd-thanks-v2 .sd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--sd-green);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(4px);
    animation: sdFadeDown 0.6s ease both;
}

.thanks-page.sd-thanks-v2 .sd-status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sd-green);
    box-shadow: 0 0 10px var(--sd-green);
    animation: sdPulse 2s infinite;
}

/* Glassmorphism Success Card */
.thanks-page.sd-thanks-v2 .sd-success-card {
    width: 100%;
    background: var(--sd-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sd-border);
    border-radius: 32px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: sdFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.thanks-page.sd-thanks-v2 .sd-icon-wrapper {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--sd-accent) 0%, #6d28d9 100%);
    border-radius: 24px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
    transform: rotate(-5deg);
    animation: sdPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.thanks-page.sd-thanks-v2 h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thanks-page.sd-thanks-v2 .sd-subtitle {
    font-size: 16px;
    color: var(--sd-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Info Box */
.thanks-page.sd-thanks-v2 .sd-info-box {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sd-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.thanks-page.sd-thanks-v2 .sd-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.thanks-page.sd-thanks-v2 .sd-info-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.thanks-page.sd-thanks-v2 .sd-info-desc {
    font-size: 13px;
    color: var(--sd-muted);
    line-height: 1.5;
}

.thanks-page.sd-thanks-v2 .sd-high {
    color: var(--sd-gold);
    font-weight: 600;
}

/* Action Button */
.thanks-page.sd-thanks-v2 .sd-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: var(--sd-accent);
    color: white;
    padding: 20px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
    margin-bottom: 40px;
}

.thanks-page.sd-thanks-v2 .sd-cta-button:hover {
    transform: translateY(-2px);
    background: #7c3aed;
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.5);
}

/* Next Steps */
.thanks-page.sd-thanks-v2 .sd-steps-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--sd-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.thanks-page.sd-thanks-v2 .sd-steps-title::before,
.thanks-page.sd-thanks-v2 .sd-steps-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sd-border);
}

.thanks-page.sd-thanks-v2 .sd-step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    text-align: left;
}

.thanks-page.sd-thanks-v2 .sd-step-num {
    width: 28px;
    height: 28px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--sd-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.thanks-page.sd-thanks-v2 .sd-step-text {
    font-size: 14px;
    color: var(--sd-muted);
}

.thanks-page.sd-thanks-v2 .sd-step-text strong {
    color: #fff;
    font-weight: 600;
}

/* Entry Content Wrapper (WordPress) */
.thanks-page.sd-thanks-v2 .sd-wp-content {
    margin-top: 40px;
    color: var(--sd-muted);
    font-size: 14px;
}

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

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

@keyframes sdPopIn {
    from { opacity: 0; transform: scale(0.8) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(-5deg); }
}

@keyframes sdPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive */
@media (max-width: 640px) {
    .thanks-page.sd-thanks-v2 .sd-success-card {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .thanks-page.sd-thanks-v2 h1 { font-size: 26px; }
    .thanks-page.sd-thanks-v2 .sd-info-box { padding: 16px; }
}
