* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fefbf6;
    color: #1e293b;
}
.container.mt-4 { flex: 1; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0,0,0,0.08) 0%, transparent 50%);
    animation: drift 18s ease-in-out infinite;
}
@keyframes drift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,-15px)} }
.hero h1 { font-size: 3.5rem; font-weight: 800; position: relative; letter-spacing: -1px; line-height: 1.1; }
.hero .lead { font-size: 1.25rem; opacity: 0.95; position: relative; max-width: 600px; margin: 0 auto; }

/* ---- Navbar ---- */
.navbar { padding: 14px 0; backdrop-filter: blur(10px); }
.navbar-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; }
.nav-link { font-weight: 500; font-size: 0.9rem; padding: 8px 16px !important; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover { background: rgba(255,255,255,0.15); }
.dropdown-menu { border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.12); border-radius: 12px; padding: 8px; }
.dropdown-item { border-radius: 8px; padding: 8px 16px; font-size: 0.9rem; }
.dropdown-item:hover { background: #fff7ed; }

/* ---- Cards ---- */
.card { border: none; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ---- Stat Cards ---- */
.stat-card {
    border: none; border-radius: 16px; padding: 28px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.stat-card .stat-number { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }
.stat-card .stat-label { color: #64748b; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-top: 4px; }

/* ---- Books ---- */
.book-card { border-radius: 16px; overflow: hidden; background: white; }
.book-card .card-img-top { height: 260px; object-fit: cover; transition: transform 0.4s; }
.book-card:hover .card-img-top { transform: scale(1.05); }
.book-cover-placeholder {
    height: 260px;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3.5rem;
}

/* ---- Earn/Slot Badges ---- */
.earn-badge {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white; padding: 6px 14px; border-radius: 20px;
    font-weight: 700; font-size: 0.85rem; display: inline-block;
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.slots-badge { font-size: 0.8rem; color: #78716c; font-weight: 500; }
.genre-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
    background: #fff7ed; color: #c2410c;
}

/* ---- Status Badges ---- */
.badge { font-weight: 600; font-size: 0.75rem; padding: 5px 10px; border-radius: 6px; }
.badge-reading { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.badge-completed { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.badge-dropped { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.badge-expired { background: #64748b; color: white; }

/* ---- Buttons ---- */
.btn { font-weight: 600; border-radius: 10px; padding: 8px 20px; font-size: 0.9rem; transition: all 0.2s; }
.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn-primary { background: #ea580c; border-color: #ea580c; }
.btn-primary:hover { background: #c2410c; border-color: #c2410c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(234,88,12,0.3); }

/* ---- Earning Cards ---- */
.earning-card {
    background: white;
    border: 2px solid #fed7aa;
    border-radius: 20px; padding: 32px; text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.earning-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #f97316; }

/* ---- Steps ---- */
.step-number {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem; margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

/* ---- PDF ---- */
.pdf-viewer { width: 100%; height: 85vh; border: none; border-radius: 12px; }

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: 10px; border: 1.5px solid #e2e8f0;
    padding: 10px 16px; font-size: 0.9rem;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-label { font-weight: 600; font-size: 0.875rem; color: #374151; }

/* ---- Tables ---- */
.table { font-size: 0.9rem; }
.table th { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; }
.table td { vertical-align: middle; padding: 12px; }
.table-hover tbody tr:hover { background: #fffbf5; }

/* ---- Alerts ---- */
.alert { border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 500; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info { background: #eff6ff; color: #1e40af; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .stat-card, .earning-card { animation: fadeInUp 0.4s ease-out; }
