/**
 * LikeCheap - Main Stylesheet
 * Social Media Services Platform — Light Theme
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary: #1877F2;
    --secondary: #6366f1;
    --accent: #a855f7;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.08);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(24, 119, 242, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }

/* ==========================================
   GLASS (white cards)
   ========================================== */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.animate-shake { animation: shake 0.2s ease-in-out 0s 2; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.875rem;
    border-radius: var(--radius-lg); border: none; cursor: pointer;
    transition: var(--transition); text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

/* ==========================================
   FORM INPUTS
   ========================================== */
.form-input {
    width: 100%; padding: 0.75rem 1rem;
    background: #f8fafc; border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); color: var(--text-primary);
    transition: var(--transition);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
    background: #fff;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    border-radius: 9999px;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef9c3; color: #ca8a04; }
.badge-danger { background: #fee2e2; color: #dc2626; }

/* ==========================================
   CUSTOM INLINE STYLES (Moved from index.php)
   ========================================== */
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(24, 119, 242, 0.12);
    border-color: #bfdbfe;
}
/* Custom active state for payment cards */
.payment-card {
    transition: var(--transition);
}
.payment-card:hover {
    transform: translateY(-4px);
}
.payment-card.selected {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(24, 119, 242, 0.15);
}
.gradient-text {
    background: linear-gradient(135deg, #1877F2, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-bg {
    background: linear-gradient(135deg, #1877F2 0%, #6366f1 100%);
}

/* ==========================================
   DASHBOARD SIDEBAR STYLES
   ========================================== */
.nav-link.active {
    background: #eff6ff;
    color: #1877F2;
    border: 1px solid #dbeafe;
}
.nav-link svg { flex-shrink: 0; }
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    padding: 0 1rem;
}
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24, 119, 242, 0.12); border-color: #bfdbfe; }

/* ==========================================
   PAYMENT CARD SELECTION
   ========================================== */
.payment-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.payment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.payment-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.03) 0%, transparent 100%);
}
.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.1);
}
.payment-card.selected {
    box-shadow: 0 0 0 2px #1877F2, 0 8px 24px rgba(24, 119, 242, 0.15);
    transform: translateY(-2px);
}

/* ==========================================
   QUICK AMOUNT BUTTONS
   ========================================== */
.quick-amount {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
}
.quick-amount:hover {
    transform: scale(1.05);
}
.quick-amount.active {
    background: rgba(24, 119, 242, 0.08);
    border-color: #1877F2 !important;
    color: #1877F2 !important;
}

/* ==========================================
   DEPOSIT HISTORY EMPTY STATE
   ========================================== */
.deposit-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    text-align: center;
}
.deposit-history-empty .empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-center;
    color: #cbd5e1;
}

/* ==========================================
   SECTION LABEL
   ========================================== */
.section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

/* ==========================================
   STEP BADGE
   ========================================== */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.step-badge-active {
    background: rgba(24, 119, 242, 0.08);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

/* ==========================================
   MODAL ANIMATIONS
   ========================================== */
@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modal-zoom-in {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-animate {
    animation: modal-fade-in 0.3s ease, modal-zoom-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   ANIMATE IN UP
   ========================================== */
@keyframes animate-in-up {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-in-up {
    animation: animate-in-up 0.35s ease-out forwards;
}

