/* ═══════════════════════════════════════════════════
   Understand Quran — Design System
   Colors matched to the Android app's Color.kt
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ─── CSS Variables ─── */
:root {
    --deep-teal: #0D7377;
    --teal-accent: #2FBFAE;
    --teal-light: #14B8A6;
    --teal-dark: #095C5F;
    --dark-bg: #0F1F1F;
    --dark-surface: #1A2D2D;
    --card-surface: #1E3A3A;
    --card-surface-light: #243F3F;
    --text-white: #FFFFFF;
    --text-light-gray: #B0C4C4;
    --text-muted: #7A9A9A;
    --gold: #FFD700;
    --red: #E05555;
    --glow-teal: rgba(47, 191, 174, 0.15);
    --glow-gold: rgba(255, 215, 0, 0.1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Utility ─── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal-accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--glow-teal);
    color: var(--teal-accent);
    border: 1px solid rgba(47, 191, 174, 0.2);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 31, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 191, 174, 0.1);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-white);
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-accent);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
    border-radius: 100px;
    color: var(--text-white) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(13, 115, 119, 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(13, 115, 119, 0.5);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 191, 174, 0.08), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light-gray);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal-accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--teal-accent), var(--gold), var(--teal-accent));
    opacity: 0.12;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.hero-logo-wrapper img {
    width: 240px;
    height: 240px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(47, 191, 174, 0.2));
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(47, 191, 174, 0.12), transparent 65%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
    color: var(--text-white);
    box-shadow: 0 4px 24px rgba(13, 115, 119, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(13, 115, 119, 0.5);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--teal-accent);
    border: 2px solid rgba(47, 191, 174, 0.3);
}

.btn-outline:hover {
    background: var(--glow-teal);
    border-color: var(--teal-accent);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════ */
.features {
    background: var(--dark-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid rgba(47, 191, 174, 0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-accent), var(--gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 191, 174, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}



.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════ */
.how-it-works {
    background: var(--dark-surface);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-accent), var(--gold), transparent);
    opacity: 0.2;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(13, 115, 119, 0.3);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════
   ARABIC SHOWCASE
   ═══════════════════════════════════════════════════ */
.showcase {
    background: var(--dark-bg);
    text-align: center;
}

.arabic-display {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    color: var(--gold);
    margin: 40px 0 16px;
    direction: rtl;
    line-height: 1.8;
}

.arabic-meaning {
    font-size: 1.2rem;
    color: var(--text-light-gray);
    margin-bottom: 40px;
}

.word-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.word-card {
    background: var(--card-surface);
    border: 1px solid rgba(47, 191, 174, 0.1);
    border-radius: var(--radius-sm);
    padding: 24px 32px;
    text-align: center;
    transition: all var(--transition);
    min-width: 160px;
}

.word-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal-accent);
    box-shadow: 0 8px 32px rgba(47, 191, 174, 0.1);
}

.word-card .arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.word-card .meaning {
    font-size: 0.9rem;
    color: var(--text-light-gray);
    font-weight: 500;
}

.word-card .frequency {
    font-size: 0.75rem;
    color: var(--teal-accent);
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════
   CTA / DOWNLOAD
   ═══════════════════════════════════════════════════ */
.download {
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06), transparent 70%);
    pointer-events: none;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download p {
    color: var(--text-light-gray);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download .btn-primary {
    background: var(--text-white);
    color: var(--deep-teal);
    font-size: 1.1rem;
    padding: 16px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.download .btn-primary:hover {
    color: var(--deep-teal);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.download .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.download .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    background: var(--dark-surface);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(47, 191, 174, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal-accent);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer ul a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(47, 191, 174, 0.08);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   LEGAL PAGES (Privacy, Developer)
   ═══════════════════════════════════════════════════ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-surface), var(--dark-bg));
    border-bottom: 1px solid rgba(47, 191, 174, 0.08);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--teal-accent);
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text-light-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--teal-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Developer page */
.dev-profile {
    text-align: center;
    padding: 60px 0;
}

.dev-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 3px solid var(--teal-accent);
    box-shadow: 0 8px 32px rgba(13, 115, 119, 0.3);
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.dev-title {
    color: var(--teal-accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.dev-bio {
    color: var(--text-light-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.dev-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dev-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    background: var(--card-surface);
    color: var(--text-light-gray);
    border: 1px solid rgba(47, 191, 174, 0.1);
    font-weight: 500;
    transition: all var(--transition);
}

.dev-links a:hover {
    background: var(--glow-teal);
    border-color: var(--teal-accent);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 31, 31, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(47, 191, 174, 0.1);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-logo-wrapper {
        width: 240px;
        height: 240px;
    }

    .hero-logo-wrapper img {
        width: 160px;
        height: 160px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .arabic-display {
        font-size: 2.2rem;
    }

    .download h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .word-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .app-main-card {
        padding: 20px 16px;
    }

    .app-detail-card {
        padding: 20px 16px;
    }
}

/* ═══════════════════════════════════════════════════
   APP-MATCHING PREVIEW CARDS
   ═══════════════════════════════════════════════════ */
.preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

/* ─── Main Card ─── */
.app-main-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--card-surface);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.app-category-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.app-card-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-star {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: default;
}

.app-star.active {
    color: var(--gold);
}

.app-arabic-large {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    color: var(--text-white);
    line-height: 1.4;
}

.app-root {
    font-size: 0.85rem;
    color: rgba(47, 191, 174, 0.7);
    margin: 4px 0;
}

.app-frequency {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0;
}

.app-divider {
    width: 48px;
    height: 2px;
    background: rgba(47, 191, 174, 0.4);
    margin: 16px auto;
    border-radius: 2px;
}

.app-meaning-block {
    margin-bottom: 12px;
}

.app-lang-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.app-meaning-text {
    display: block;
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 500;
}

.app-meaning-text.urdu {
    font-size: 1.1rem;
    direction: rtl;
}

.app-card-bottom {
    margin-top: 20px;
}

.app-btn-learn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: default;
    font-family: var(--font-primary);
}

/* ─── Compact Cards ─── */
.app-compact-list {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-compact-card {
    display: flex;
    align-items: center;
    background: var(--card-surface);
    border-radius: 16px;
    padding: 14px;
    gap: 12px;
}

.app-compact-left {
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.app-compact-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--text-white);
    font-weight: 700;
}

.app-compact-root {
    font-size: 0.65rem;
    color: rgba(47, 191, 174, 0.6);
}

.app-compact-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-compact-category {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.app-compact-eng {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 600;
}

.app-compact-urdu {
    font-size: 0.8rem;
    color: var(--text-light-gray);
    direction: rtl;
    text-align: left;
}

.app-compact-bengali {
    font-size: 0.8rem;
    color: var(--text-light-gray);
}

.app-compact-freq {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.app-compact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-compact-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ─── Detail Card ─── */
.app-detail-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--dark-surface);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.app-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.app-detail-back {
    font-size: 0.85rem;
    color: var(--text-light-gray);
}

.app-detail-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-white);
}

.app-detail-arabic {
    font-family: var(--font-arabic);
    font-size: 3rem;
    color: var(--text-white);
    line-height: 1.4;
}

.app-detail-cat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.app-detail-freq {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-ayat-section {
    text-align: left;
    margin: 16px 0;
}

.app-ayat-card {
    background: var(--card-surface);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    border-left: 3px solid var(--teal-accent);
}

.app-ayat-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--gold);
    direction: rtl;
    text-align: right;
    line-height: 2;
    margin-bottom: 12px;
}

.app-ayat-translation {
    font-size: 0.9rem;
    color: var(--text-light-gray);
    line-height: 1.6;
    font-style: italic;
}

.app-ayat-translation strong {
    color: var(--teal-accent);
    font-style: normal;
}

.app-ayat-ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.app-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.app-btn-understood {
    padding: 10px 24px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: default;
    font-family: var(--font-primary);
}

.app-btn-not {
    padding: 10px 24px;
    border-radius: 100px;
    background: transparent;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(224, 85, 85, 0.3);
    cursor: default;
    font-family: var(--font-primary);
}

/* ─── Feedback Section ─── */
.feedback-section {
    background: var(--dark-surface);
}