<?php
require_once __DIR__ . '/../includes/functions.php';
requireLogin();

$design = [
    'bg_type'        => getSetting('card_bg_type',         'gradient'),
    'gradient_dir'   => getSetting('card_gradient_dir',    '135deg'),
    'color1'         => getSetting('card_gradient_color1', '#1e3a8a'),
    'color2'         => getSetting('card_gradient_color2', '#1d4ed8'),
    'color3'         => getSetting('card_gradient_color3', '#0ea5e9'),
    'text_color'     => getSetting('card_text_color',      '#ffffff'),
    'accent_color'   => getSetting('card_accent_color',    '#facc15'),
    'bg_image'       => getSetting('card_bg_image',        ''),
    'logo_icon'      => getSetting('card_logo_icon',       'star-fill'),
    'show_shimmer'   => getSetting('card_show_shimmer',    '1'),
    'label_text'     => getSetting('card_label_text',      'MEMBER CARD'),
    'subtitle_text'  => getSetting('card_subtitle_text',   'REWARDS MEMBER'),
    'store_name'     => getSetting('store_name',           'Rewards'),
    'card_qr_text'   => getSetting('card_qr_text',         ''),
];

jsonResponse(['success'=>true, 'design'=>$design]);
