/* ── ASMAUL HUSNA ──────────────────────── */
:root {
    --ah-bg: #faf8ff;
    --ah-card: rgba(255, 255, 255, .92);
    --ah-border: rgba(0, 0, 0, .06)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--ah-bg);
    color: var(--ink-600);
    min-height: 100vh;
    padding-bottom: 100px
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ah-border)
}

.tb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    max-width: 680px;
    margin: auto
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ink-50);
    text-decoration: none
}

.back-btn .ico {
    stroke: var(--ink-500);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.tb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-600)
}

/* Hero */
.hero {
    padding: 28px 20px 24px;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    margin-bottom: 20px
}

.hero h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px
}

.hero p {
    font-size: 12px;
    opacity: .85
}

.hero .stat {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px
}

.hero .stat-item {
    text-align: center
}

.hero .stat-num {
    font-size: 22px;
    font-weight: 800
}

.hero .stat-lbl {
    font-size: 10px;
    opacity: .7;
    margin-top: 2px
}

/* Search */
.search-wrap {
    max-width: 680px;
    margin: 0 auto 16px;
    padding: 0 16px
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid var(--ink-100);
    border-radius: 12px;
    padding: 10px 14px
}

.search-box svg {
    flex-shrink: 0;
    color: var(--ink-300)
}

.search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    background: transparent
}

/* Grid */
.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px
}

.ah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px
}

/* Card */
.ah-card {
    background: var(--ah-card);
    border: 1px solid var(--ah-border);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
    position: relative;
    overflow: hidden
}

.ah-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, .1)
}

.ah-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--violet-lt, #c4b5fd));
    opacity: 0;
    transition: opacity .2s
}

.ah-card:hover::before {
    opacity: 1
}

.ah-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--violet-lt, #ede9fe);
    color: var(--violet);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px
}

.ah-arabic {
    font-family: 'Amiri', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-600);
    line-height: 1.4;
    margin-bottom: 6px;
    direction: rtl
}

.ah-latin {
    font-size: 12px;
    font-weight: 600;
    color: var(--violet);
    margin-bottom: 4px
}

.ah-indo {
    font-size: 11px;
    color: var(--ink-400);
    line-height: 1.5
}

/* Skeleton */
.sk {
    background: linear-gradient(90deg, var(--ink-50) 25%, #f5f5f5 50%, var(--ink-50) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* Fade-in */
.ap {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s, transform .4s
}

.ap.in {
    opacity: 1;
    transform: none
}

/* Load more */
.load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 28px;
    border: 1.5px solid var(--violet);
    border-radius: 10px;
    background: transparent;
    color: var(--violet);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s
}

.load-more:hover {
    background: var(--violet);
    color: white
}

/* Empty */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-300)
}

.empty-ico {
    font-size: 40px;
    margin-bottom: 8px
}

.empty-txt {
    font-size: 13px
}

/* Dark mode */
[data-theme="dark"] body {
    background: var(--bg-dark, #0f0f14)
}

[data-theme="dark"] .topbar {
    background: rgba(18, 18, 24, .88);
    border-color: rgba(255, 255, 255, .06)
}

[data-theme="dark"] .ah-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .06)
}

[data-theme="dark"] .search-box {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08)
}

[data-theme="dark"] .search-box input {
    color: white
}