import os
from dotenv import load_dotenv

load_dotenv()

BOT_TOKEN = os.getenv("BOT_TOKEN", "YOUR_BOT_TOKEN_HERE")
DB_PATH = "database.sqlite"

# WebApp URL (must be HTTPS)
# For local dev, you'll need ngrok: e.g., https://your-ngrok.ngrok-free.app
WEBAPP_URL = os.getenv("WEBAPP_URL", "https://your-domain.com")
WEBAPP_PORT = int(os.getenv("WEBAPP_PORT", "8080"))

# Admin configuration
STATIC_ADMIN_IDS = [int(id.strip()) for id in os.getenv("ADMIN_IDS", "").split(",") if id.strip()]
ADMIN_IDS = list(STATIC_ADMIN_IDS)

# Economics
COMMISSION_FREE = 0.10  # 10%
COMMISSION_VIP = 0.05   # 5%
VIP_MONTHLY_PRICE = 100000  # e.g., 100,000 Tomans
FEATURED_PROJECT_PRICE = 50000 # 50,000 Tomans
MAX_FREE_BIDS = 5
