<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Welcome to {{PLAN_NAME}} — {{ORGANIZATION_NAME}}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #722ed1;
            padding-bottom: 20px;
        }
        .logo {
            color: #722ed1;
            font-size: 24px;
            font-weight: bold;
        }
        .badge {
            background: linear-gradient(135deg, #722ed1, #531dab);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
        }
        .content {
            background-color: white;
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #722ed1;
        }
        .plan-box {
            text-align: center;
            background-color: #f9f0ff;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid #d3adf7;
        }
        .plan-name {
            font-size: 22px;
            font-weight: bold;
            color: #531dab;
        }
        .plan-price {
            font-size: 28px;
            font-weight: bold;
            color: #722ed1;
            margin-top: 8px;
        }
        .plan-frequency {
            color: #6c757d;
            font-size: 14px;
        }
        .info-section {
            background-color: #f9f0ff;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            border: 1px solid #d3adf7;
        }
        .info-item {
            margin: 8px 0;
        }
        .info-label {
            font-weight: bold;
            display: inline-block;
            width: 140px;
            color: #391085;
        }
        .info-value {
            color: #2c3e50;
        }
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 6px;
            font-size: 15px;
            font-weight: bold;
            text-decoration: none;
            background: linear-gradient(135deg, #722ed1, #531dab);
            color: white;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #6c757d;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        .app-branding {
            color: #722ed1;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">{{ORGANIZATION_NAME}}</div>
            <div class="badge">Subscription Confirmed</div>
        </div>

        <div class="content">
            <p>Hi {{RECIPIENT_NAME}},</p>
            <p>Welcome! Your subscription has been activated. Here are the details:</p>

            <div class="plan-box">
                <div class="plan-name">{{PLAN_NAME}}</div>
                <div class="plan-price">{{AMOUNT}}</div>
                <div class="plan-frequency">{{FREQUENCY}}</div>
            </div>

            <div class="info-section">
                <div class="info-item">
                    <span class="info-label">Subscription ID:</span>
                    <span class="info-value">{{SUBSCRIPTION_ID}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Next Renewal:</span>
                    <span class="info-value">{{RENEWAL_DATE}}</span>
                </div>
            </div>

            <div style="text-align: center; margin-top: 20px;">
                <a href="{{LOGIN_URL}}" class="btn">Go to Dashboard</a>
            </div>

            <p style="margin-top: 20px;">You can manage your subscription from your account dashboard at any time.</p>
        </div>

        <div class="footer">
            <p>This confirmation was sent by <span class="app-branding">{{ORGANIZATION_NAME}}</span></p>
            <p>You can manage or cancel your subscription from your account settings.</p>
        </div>
    </div>
</body>
</html>
