/* ========================================
   Creator Support Platform - Global Styles
   Modern SaaS / Light Theme
   ======================================== */

:root {
    --primary: #2563EB;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --success: #22C55E;
    --warning: #F59E0B;
    --dark: #0F172A;
    --dark-card: rgba(15, 23, 42, 0.6);
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

* { font-family: 'Inter', sans-serif; }
body { background: #f8fafc; color: #1e293b; }

/* Card */
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.glass-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Nav */
.glass-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1050;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Gradient Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 32px;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-gradient-sm {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.875rem;
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card .stat-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Hero Section - Light Modern */
.hero-section {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #f5f0ff 70%, #f0fdff 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}
.hero-section h1 { color: #0f172a; }
.hero-section .lead { color: #475569; }

/* Floating Gift Animations */
.floating-gifts { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.floating-gift {
    position:absolute;
    width:var(--size, 50px);
    height:var(--size, 50px);
    object-fit:contain;
    left:var(--x, 50%);
    bottom:-80px;
    opacity:0.35;
    animation: floatUp 18s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes floatUp {
    0% { transform:translateY(0) rotate(0deg); opacity:0; }
    10% { opacity:0.35; }
    90% { opacity:0.25; }
    100% { transform:translateY(-110vh) rotate(360deg); opacity:0; }
}

/* Gift Showcase */
.gift-showcase {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}
.gift-showcase-item {
    text-align:center;
    padding:16px;
    background:#fff;
    border-radius:16px;
    border:1px solid #e2e8f0;
    width:120px;
    transition:all 0.3s ease;
}
.gift-showcase-item:hover {
    transform:translateY(-6px) scale(1.05);
    box-shadow:0 8px 24px rgba(37,99,235,0.15);
    border-color:#2563EB;
}
.gift-showcase-item img {
    width:60px;
    height:60px;
    object-fit:contain;
    margin-bottom:8px;
}
.gift-showcase-name {
    font-size:0.8rem;
    font-weight:600;
    color:#1e293b;
}
.gift-showcase-price {
    font-size:0.75rem;
    color:#2563EB;
    font-weight:700;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}
.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.12);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.15));
    color: var(--primary);
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }

/* Pricing Cards */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}
.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}
.pricing-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

/* Tables */
.table-glass {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
}
.table-glass th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.table-glass td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Forms */
.form-control, .form-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-xs);
    color: #1e293b;
}
.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    color: #1e293b;
}
.form-select option {
    background: #ffffff;
    color: #1e293b;
}

/* Badges */
.badge-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.badge-approved { background: rgba(34,197,94,0.2); color: var(--success); }
.badge-rejected { background: rgba(239,68,68,0.2); color: #EF4444; }
.badge-active { background: rgba(34,197,94,0.2); color: var(--success); }
.badge-trialing { background: rgba(6,182,212,0.2); color: var(--accent); }
.badge-expired { background: rgba(239,68,68,0.2); color: #EF4444; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.8s cubic-bezier(0.25,0.8,0.25,1) forwards; }

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Auth page modern styling */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #f5f0ff 70%, #f0fdff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.1), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}
.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}
.auth-wrapper .glass-card {
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Landing section stagger animation */
main > section { opacity: 0; animation: slideUp 0.7s ease forwards; }
main > section:nth-child(1) { animation-delay: 0s; }
main > section:nth-child(2) { animation-delay: 0.15s; }
main > section:nth-child(3) { animation-delay: 0.3s; }
main > section:nth-child(4) { animation-delay: 0.45s; }
main > section:nth-child(5) { animation-delay: 0.6s; }

/* Landing footer */
.landing-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}
.faq-item .accordion-button {
    background: transparent;
    color: #1e293b;
    font-weight: 500;
    box-shadow: none;
}
.faq-item .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(37,99,235,0.05);
}
.faq-item .accordion-body { color: #64748b; }

/* Mobile Responsive Global */
@media (max-width: 768px) {
    .hero-section { padding: 60px 0 40px; }
    .hero-section h1 { font-size: 1.75rem; }
    .hero-section .lead { font-size: 0.9rem; }
    .btn-gradient { padding: 10px 24px; font-size: 0.9rem; }
    .glass-card { padding: 1rem; border-radius: 12px; }
    .feature-card { padding: 1.25rem; }
    .feature-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .pricing-card { padding: 1.25rem; }
    .pricing-card .price { font-size: 2rem; }
    .stat-card { padding: 0.75rem; }
    .stat-card .stat-value { font-size: 1.25rem; }
    .stat-card .stat-label { font-size: 0.7rem; }
    .glass-nav { padding: 0.5rem 0 !important; }
    .form-control, .form-select { font-size: 0.9rem; }
}

@media (max-width: 575px) {
    body { font-size: 0.9rem; }
    .hero-section h1 { font-size: 1.5rem; }
    .container { padding-left: 12px; padding-right: 12px; }
    .table-responsive { font-size: 0.8rem; }
    .badge-status { font-size: 0.65rem; padding: 3px 8px; }
}
