<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Organization Invitation</title>
  </head>
  <body style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background:#f8fafc; padding:24px;">
    <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="max-width:640px; margin:0 auto; background:#ffffff; border:1px solid #e5e7eb; border-radius:8px;">
      <tr>
        <td style="padding:24px;">
          <h1 style="margin:0 0 8px; font-size:20px; color:#111827;">You're invited to join {{ org.name }} on Gobii</h1>
          <p style="margin:0 0 16px; color:#374151;">{{ invited_by.get_full_name|default:invited_by.email }} has invited you to join the organization <strong>{{ org.name }}</strong> with the role <strong>{{ invite.get_role_display }}</strong>.</p>

          <p style="margin:0 0 16px; color:#374151;">This invitation expires on {{ invite.expires_at|date:"M j, Y" }}.</p>

          <p style="margin:0 0 16px;">
            <a href="{{ accept_url }}" style="display:inline-block; background:#16a34a; color:#fff; text-decoration:none; padding:10px 16px; border-radius:6px;">Accept Invitation</a>
            <a href="{{ reject_url }}" style="display:inline-block; margin-left:12px; background:#e5e7eb; color:#111827; text-decoration:none; padding:10px 16px; border-radius:6px;">Decline</a>
          </p>

          <p style="margin:24px 0 0; color:#6b7280; font-size:12px;">If you did not expect this invitation, you can safely ignore this email.</p>
        </td>
      </tr>
    </table>
  </body>
  </html>

