@charset "UTF-8";

/* ==========================================================================
   AN-LIBRARY.COM 2.0 - PROFESSIONAL MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #10b981;
    --primary-soft: #ecfdf5;
    
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    
    --font-tajawal: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.dark {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #34d399;
    --primary-soft: rgba(16, 185, 129, 0.15);
    
    --bg-page: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-light: #64748b;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: var(--border-color);
}

html {
    font-family: var(--font-tajawal);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Flex & Grid Utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:text-right { text-align: right !important; }
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:block { display: block !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; }
    .sm\:text-4xl { font-size: 2.25rem !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:inline-flex { display: inline-flex !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

/* Sizing */
.w-full { width: 100% !important; }
.w-4 { width: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.w-8 { width: 2rem !important; }
.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.w-16 { width: 4rem !important; }

.h-full { height: 100% !important; }
.h-4 { height: 1rem !important; }
.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-8 { height: 2rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-14 { height: 3.5rem !important; }
.h-16 { height: 4rem !important; }

.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.max-w-6xl { max-width: 72rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Spacing */
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }

/* Colors & Backgrounds */
.bg-white { background-color: var(--bg-surface) !important; }
.bg-gray-50 { background-color: var(--bg-page) !important; }
.bg-gray-100 { background-color: var(--border-light) !important; }
.bg-gray-900 { background-color: #0f172a !important; }
.bg-emerald-50 { background-color: var(--primary-soft) !important; }
.bg-emerald-600 { background-color: var(--primary) !important; }
.bg-emerald-700 { background-color: var(--primary-hover) !important; }

.text-white { color: #ffffff !important; }
.text-gray-400 { color: var(--text-light) !important; }
.text-gray-500 { color: var(--text-muted) !important; }
.text-gray-600 { color: var(--text-muted) !important; }
.text-gray-700 { color: var(--text-main) !important; }
.text-gray-900 { color: var(--text-main) !important; }
.text-emerald-600 { color: var(--primary) !important; }
.text-emerald-700 { color: var(--primary-hover) !important; }
.text-rose-600 { color: #e11d48 !important; }

/* Borders & Radius */
.rounded-md { border-radius: 6px !important; }
.rounded-lg { border-radius: 8px !important; }
.rounded-xl { border-radius: 12px !important; }
.rounded-2xl { border-radius: 16px !important; }
.rounded-3xl { border-radius: 24px !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-gray-100 { border-color: var(--border-light) !important; }
.border-gray-200 { border-color: var(--border-color) !important; }

/* Typography */
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }
.text-center { text-align: center !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }

.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.line-clamp-1 { display: -webkit-box !important; -webkit-line-clamp: 1 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.line-clamp-2 { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4 !important; }
.object-cover { object-fit: cover !important; }
.cursor-pointer { cursor: pointer !important; }
.sticky { position: sticky !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.overflow-hidden { overflow: hidden !important; }

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.site-navbar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}
.site-navbar .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.site-navbar .nav-link:hover, .site-navbar .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-soft);
}

/* ==========================================================================
   CLEAN HERO SECTION
   ========================================================================== */

.clean-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 1rem;
    text-align: center;
}
body.dark .clean-hero {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.2);
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 0.35rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.hero-heading {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
@media (min-width: 640px) {
    .hero-heading { font-size: 2.75rem; }
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Clean Google-style Hero Search Bar */
.clean-search-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 9999px;
    padding: 4px;
    display: flex;
    align-items: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}
.clean-search-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 15px 30px -5px rgba(5, 150, 105, 0.2);
}

.clean-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
}
.clean-search-input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.clean-search-btn {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.clean-search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.topic-tag {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    transition: all 0.15s ease;
}
.topic-tag:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}
.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}
.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.section-link {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover {
    color: var(--primary-hover);
}

/* Category Card */
.category-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.category-box:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}
.category-box:hover .cat-icon-wrap {
    background-color: var(--primary);
    color: #ffffff;
}

/* Clean Book Card */
.book-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.book-card .cover-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background-color: #f1f5f9;
    overflow: hidden;
}
.book-card .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.book-card:hover .cover-img {
    transform: scale(1.04);
}

.book-card .content-box {
    padding: 0.85rem;
    flex: 1;
}

.book-card .cat-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
}

.book-card .book-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.book-card .author-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.book-card .action-bar {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Feature Item */
.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
}
.feature-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* App Download Banner */
.app-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0f766e 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .app-banner {
        flex-direction: row;
        text-align: right;
        justify-content: space-between;
        padding: 3rem;
    }
}

/* Dark mode helpers */
body.dark .dark-hidden { display: none !important; }
body.dark .dark-block { display: block !important; }
/* ==========================================================================
   DEDICATED BOOK DETAILS STYLES
   ========================================================================== */

.book-details-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .book-details-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

.book-sidebar {
    width: 100%;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.book-cover-box {
    width: 220px;
    height: 310px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.25rem;
}
.book-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-main-info {
    flex: 1;
    min-width: 0;
}

.meta-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
    .meta-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.meta-stat-item span:first-child {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.meta-stat-item span:last-child {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-main);
}

.book-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.book-action-btn:hover {
    transform: translateY(-2px);
}

.btn-read-ebook {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-read-ebook:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.btn-download-pdf {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.btn-download-pdf:hover {
    background-color: #1e293b;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-external-source {
    background-color: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}
.btn-external-source:hover {
    background-color: #b45309;
}

.btn-apk-download {
    background-color: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.btn-apk-download:hover {
    background-color: #0f766e;
}
/* ==========================================================================
   FORM & BUTTON UTILITY EXTENSIONS
   ========================================================================== */

.bg-rose-600 { background-color: #e11d48 !important; }
.bg-rose-700 { background-color: #be123c !important; }
.bg-rose-50 { background-color: #fff1f2 !important; }

.bg-amber-500 { background-color: #f59e0b !important; }
.bg-amber-600 { background-color: #d97706 !important; }
.bg-amber-700 { background-color: #b45309 !important; }
.bg-amber-50 { background-color: #fffbeb !important; }

.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }
.bg-blue-50 { background-color: #eff6ff !important; }

.bg-teal-600 { background-color: #0d9488 !important; }
.bg-teal-700 { background-color: #0f766e !important; }
.bg-teal-50 { background-color: #f0fdfa !important; }

.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }

.form-input-modern {
    width: 100%;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}
.form-input-modern:focus {
    background-color: var(--bg-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-submit-danger {
    width: 100%;
    background-color: #e11d48 !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
}
.btn-submit-danger:hover {
    background-color: #be123c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
}

.btn-submit-primary {
    width: 100%;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}
.btn-submit-primary:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

/* CATEGORY PAGE STYLES */
.subcats-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.subcats-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.subcats-scroll a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}



/* APPS SHOWCASE PAGE STYLES */
.apps-header-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.apps-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.app-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.app-item-card:hover {
    border-color: #059669;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.app-badge-chip {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
}

.app-installs-chip {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 8px;
}

.app-card-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    flex: 1;
}

.app-cover-box {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    flex-shrink: 0 !important;
}
.app-cover-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.app-info-box {
    flex: 1;
    min-width: 0;
}

.app-category-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 4px;
}

.app-title-text {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-pkg-code {
    display: inline-block;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    direction: ltr;
    margin-bottom: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-desc-text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.btn-play-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-play-store:hover {
    background: #000000 !important;
    color: #34d399 !important;
}
.btn-play-store svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-web-read {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-web-read:hover {
    background: #ecfdf5;
    color: #059669 !important;
    border-color: #a7f3d0;
}

.apps-features-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
}
