<?php
// Detect protocol automatically — works on both HTTP and HTTPS, and behind proxies
$_protocol = 'http';
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
    $_protocol = 'https';
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
    $_protocol = $_SERVER['HTTP_X_FORWARDED_PROTO'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] === 'on') {
    $_protocol = 'https';
}
define('BASE_URL', $_protocol . '://modernsnh.in/accounts');
unset($_protocol);

// Groq API key for AI extraction feature (100% free, no credit card needed)
// Get your free key at: https://console.groq.com
define('GROQ_API_KEY', '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');
