/* =========================================================
   دليل مناسك العمرة - Design System & Stylesheet
   ========================================================= */

/* Local Font: Noto Naskh Arabic (Self-hosted) */
@font-face {
    font-family: 'Noto Naskh Arabic';
    src: url('fonts/NotoNaskhArabic-Variable.ttf') format('truetype-variations'),
        url('fonts/NotoNaskhArabic-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette - Light Mode (Elegance & Clarity) */
    --bg-primary: #f8faf9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f4f3;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfdfd;
    --bg-overlay: rgba(6, 40, 40, 0.4);

    --primary: #0d5c58;
    --primary-dark: #073836;
    --primary-light: #167e78;
    --primary-soft: rgba(13, 92, 88, 0.08);
    --primary-border: rgba(13, 92, 88, 0.15);

    --gold: #bfa15f;
    --gold-dark: #997b3a;
    --gold-light: #dfc588;
    --gold-soft: rgba(191, 161, 95, 0.12);
    --gold-border: rgba(191, 161, 95, 0.35);

    --text-primary: #1a2a29;
    --text-secondary: #4a5d5b;
    --text-muted: #738886;
    --text-dua: #093c39;

    --border-color: #e2e8e7;
    --border-subtle: #edf2f1;

    --success: #198754;
    --success-soft: rgba(25, 135, 84, 0.1);
    --warning: #b45309;
    --warning-soft: rgba(180, 83, 9, 0.1);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 18px rgba(6, 40, 40, 0.06);
    --shadow-lg: 0 14px 30px rgba(6, 40, 40, 0.1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Base Font Sizing variable */
    --font-scale: 1;
    --font-sans: 'Noto Naskh Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Noto Naskh Arabic', serif;

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (Optimized for Night Tawaf & Glare reduction) */
body.dark-theme {
    --bg-primary: #091313;
    --bg-secondary: #101e1e;
    --bg-tertiary: #162727;
    --bg-card: #122222;
    --bg-card-hover: #172b2b;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --primary: #21968f;
    --primary-dark: #12635e;
    --primary-light: #38b2aa;
    --primary-soft: rgba(33, 150, 143, 0.15);
    --primary-border: rgba(33, 150, 143, 0.25);

    --gold: #dfc27d;
    --gold-dark: #b8974a;
    --gold-light: #f5de9f;
    --gold-soft: rgba(223, 194, 125, 0.15);
    --gold-border: rgba(223, 194, 125, 0.3);

    --text-primary: #f0f7f6;
    --text-secondary: #b6cbc8;
    --text-muted: #7e9996;
    --text-dua: #e1f5f2;

    --border-color: #1f3737;
    --border-subtle: #172929;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.5);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: calc(16px * var(--font-scale));
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* Islamic Geometric Subtle Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(var(--gold-soft) 1px, transparent 1px),
        radial-gradient(var(--primary-soft) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* =========================================================
   Header & Toolbar
   ========================================================= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.dark-theme .app-header {
    background: rgba(16, 30, 30, 0.92);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold-light);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

body.dark-theme .brand-title {
    color: var(--gold-light);
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-tool {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-tool:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-tool.active-lock {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-dark);
}

body.dark-theme .btn-tool.active-lock {
    color: var(--gold-light);
}

.font-resizer {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-small {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.45rem 0.6rem;
    font-weight: 700;
}

.btn-small:not(:last-child) {
    border-left: 1px solid var(--border-color);
}

/* Tools & Options Dropdown in Toolbar */
.tools-menu-dropdown {
    position: relative;
    display: inline-block;
}

.btn-tools-trigger {
    padding: 0.45rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-tools-trigger.open {
    background: var(--primary-soft);
    border-color: var(--gold-border);
    color: var(--primary);
}

.tools-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 270px;
    background: var(--bg-card);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: popup 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tools-panel-header {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .tools-panel-header {
    color: var(--gold-light);
}

.tools-panel-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.panel-group-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.btn-panel-action {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-panel-action:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-panel-action.active-lock {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-dark);
}

body.dark-theme .btn-panel-action.active-lock {
    color: var(--gold-light);
}

/* Pages Dropdown Menu in Toolbar */
.nav-menu-dropdown {
    position: relative;
    display: inline-block;
}

.btn-page-dropdown {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--primary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

body.dark-theme .btn-page-dropdown {
    color: var(--gold-light);
}

.btn-page-dropdown:hover,
.btn-page-dropdown.open {
    background: var(--primary-soft);
    border-color: var(--gold-border);
}

.dropdown-active-title {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow-icon {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.btn-page-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: var(--bg-card);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    overflow: hidden;
    animation: popup 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.5rem 0.85rem 0.35rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-dropdown-link:last-child {
    border-bottom: none;
}

.nav-dropdown-link:hover {
    background: var(--primary-soft);
}

.nav-dropdown-link.active {
    background: var(--gold-soft);
    border-right: 3px solid var(--gold);
}

.nav-dropdown-link .link-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-dropdown-link.active .link-icon {
    background: var(--primary);
    color: #ffffff;
}

.nav-dropdown-link .link-content {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-link .link-content strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.nav-dropdown-link .link-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Dua Category Cards & Items */
.dua-category-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.single-dua-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    transition: var(--transition);
}

.single-dua-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-sm);
}

.single-dua-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border-color);
}

.dua-topic-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

body.dark-theme .dua-topic-title {
    color: var(--gold-light);
}

.dua-source-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

.single-dua-card .dua-text {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    line-height: 2.1;
    color: var(--text-dua);
}

.single-dua-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

/* =========================================================
   Main Container & Hero
   ========================================================= */
.main-content {
    max-width: 960px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-soft);
    color: var(--gold-dark);
    border: 1px solid var(--gold-border);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

body.dark-theme .hero-badge {
    color: var(--gold-light);
}

.hero-heading {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

body.dark-theme .hero-heading {
    color: var(--text-primary);
}

.hero-desc {
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    font-size: 0.98rem;
}

/* Quick Bar & Search */
.quick-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.6rem 0.75rem 2.2rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-clear {
    position: absolute;
    left: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem;
}

.accordion-toggles {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Nav Pills Scrollable Bar (Natural flow with content, NOT fixed/sticky) */
.nav-pills-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-pills-container::-webkit-scrollbar {
    display: none;
}

.nav-pills {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    justify-content: flex-start;
}

.nav-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pill-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.nav-pill:hover,
.nav-pill.active-pill {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.nav-pill.active-pill .pill-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* =========================================================
   Accordion Main Structure
   ========================================================= */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.accordion-item.active {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    background: var(--bg-card);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-card-hover);
}

.accordion-item.active>.accordion-header {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-badge {
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: var(--transition);
}

.accordion-item.active .step-badge {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.step-summary {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.item-tag {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.tag-primary {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.tag-success {
    background: var(--success-soft);
    color: var(--success);
}

.toggle-icon {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Accordion Content Smooth Transition */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.accordion-item.active>.accordion-content {
    max-height: 5000px;
    /* accommodates all 7 circuits and content */
    opacity: 1;
}

.content-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =========================================================
   Cards, Duas, and Special Components
   ========================================================= */

/* Cards Base */
.instruction-text {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hadith-card,
.instruction-box,
.tip-box,
.alert-box-warning {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.instruction-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.steps-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.steps-bullet-list>li {
    position: relative;
    padding-right: 1.4rem;
}

.steps-bullet-list>li::before {
    content: '◆';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

.steps-bullet-list ul {
    margin-top: 0.4rem;
    padding-right: 1rem;
    list-style: circle;
}

.tip-box {
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.tip-box i {
    color: var(--gold-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

body.dark-theme .tip-box i {
    color: var(--gold-light);
}

.alert-box-warning {
    background: var(--warning-soft);
    border: 1px solid rgba(180, 83, 9, 0.25);
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Quote and Hadith styling */
.quote-box {
    background: var(--bg-secondary);
    border-right: 4px solid var(--primary);
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.quote-narrator {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.quote-hadith {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-dua);
}

.highlight-text {
    color: var(--primary);
    font-weight: 700;
}

body.dark-theme .highlight-text {
    color: var(--gold-light);
}

.source-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Dua Cards */
.dua-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.dua-text {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    line-height: 2;
    color: var(--text-dua);
    text-align: justify;
}

.dua-text.emphasized {
    font-weight: 700;
    color: var(--primary);
}

body.dark-theme .dua-text.emphasized {
    color: var(--gold-light);
}

.dua-divider {
    height: 1px;
    background: var(--gold-border);
    margin: 1rem 0;
    opacity: 0.6;
}

.badge-accent {
    display: inline-block;
    background: var(--gold-soft);
    color: var(--gold-dark);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: 1px solid var(--gold-border);
}

body.dark-theme .badge-accent {
    color: var(--gold-light);
}

.card-mini-title {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .card-mini-title {
    color: var(--gold-light);
}

/* Quranic Quotes */
.quran-quote {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 2.1;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px dashed var(--primary-border);
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 0.75rem 0;
}

body.dark-theme .quran-quote {
    color: var(--gold-light);
    background: rgba(33, 150, 143, 0.1);
}

.quran-quote-small {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0.35rem 0;
}

body.dark-theme .quran-quote-small {
    color: var(--gold-light);
}

/* Copy Buttons */
.btn-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-tiny {
    margin-top: 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}

/* =========================================================
   Corner Dua (Between Yemeni Corner and Black Stone)
   ========================================================= */
.corner-dua-card {
    background: linear-gradient(135deg, rgba(13, 92, 88, 0.07), rgba(191, 161, 95, 0.12));
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.corner-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

body.dark-theme .corner-header {
    color: var(--gold-light);
}

.corner-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.corner-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* =========================================================
   Tawaf Tracker & Circuit Stepper
   ========================================================= */
.tawaf-tracker-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
}

.tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tracker-title {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .tracker-title {
    color: var(--gold-light);
}

.tracker-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tracker-status {
    background: var(--bg-card);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--primary);
}

body.dark-theme .tracker-status {
    color: var(--gold-light);
}

.circuits-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.5rem;
}

.step-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
    text-align: center;
}

.step-btn .btn-index {
    width: 26px;
    height: 26px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.step-btn .btn-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
}

.step-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.step-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(13, 92, 88, 0.25);
}

.step-btn.active .btn-index {
    background: #ffffff;
    color: var(--primary);
}

.step-btn.active .btn-name {
    color: #ffffff;
}

.step-btn.completed {
    border-color: var(--success);
    background: var(--success-soft);
}

.step-btn.completed .btn-index {
    background: var(--success);
    color: #ffffff;
}

/* =========================================================
   Sub-Accordions (7 Tawaf Circuits)
   ========================================================= */
.sub-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sub-accordion-item {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.sub-accordion-item.open {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-sm);
}

.sub-header {
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: var(--transition);
    user-select: none;
}

.sub-header:hover {
    background: var(--bg-tertiary);
}

.sub-accordion-item.open>.sub-header {
    background: var(--gold-soft);
    border-bottom: 1px solid var(--border-color);
}

.sub-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shawt-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.sub-title h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sub-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.sub-accordion-item.open .sub-icon {
    transform: rotate(180deg);
    color: var(--gold-dark);
}

body.dark-theme .sub-accordion-item.open .sub-icon {
    color: var(--gold-light);
}

.sub-content {
    display: none;
    padding: 1.15rem;
}

.sub-accordion-item.open>.sub-content {
    display: block;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.point-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-tertiary);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
}

.point-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

body.dark-theme .point-item i {
    color: var(--gold-light);
}

.shawt-dua-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.dua-paragraph {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 2.1;
    color: var(--text-dua);
    text-align: justify;
}

.dua-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.btn-complete-shawt {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-complete-shawt:hover {
    background: var(--primary-dark);
    transform: translateX(-3px);
}

/* =========================================================
   Safa & Marwah Components
   ========================================================= */
.special-action-card {
    background: var(--primary-soft);
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
}

.special-badge {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .special-badge {
    color: var(--gold-light);
}

.special-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.special-post {
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-top: 0.6rem;
}

.dhikr-repeat-card {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.repeat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}

body.dark-theme .repeat-header {
    color: var(--gold-light);
}

.repeat-instruction {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.dua-card-box {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    border: 1px solid var(--border-color);
}

.dua-repeat-instruction {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Safa / Marwah Tracker Grid */
.say-tracker-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
}

.say-tracker-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .say-tracker-title {
    color: var(--gold-light);
}

.say-rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 0.5rem;
}

.say-round-item {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.say-round-item .round-num {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
}

.say-round-item .round-dir {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
}

.say-round-item:hover {
    border-color: var(--primary);
}

.say-round-item.completed {
    background: var(--success-soft);
    border-color: var(--success);
}

.say-round-item.completed .round-num {
    color: var(--success);
}

.say-round-item.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(13, 92, 88, 0.2);
}

.say-round-item.active .round-num,
.say-round-item.active .round-dir {
    color: #ffffff;
}

/* =========================================================
   Tahallul Step 7 Grid
   ========================================================= */
.tahallul-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.tahallul-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
}

.gender-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

body.dark-theme .gender-icon {
    color: var(--gold-light);
}

.tahallul-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tahallul-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tahallul-card ul li {
    position: relative;
    padding-right: 1.1rem;
}

.tahallul-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: 800;
}

.congrats-card {
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-soft));
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.congrats-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(191, 161, 95, 0.4);
}

.congrats-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

body.dark-theme .congrats-content h3 {
    color: var(--gold-light);
}

.congrats-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.congrats-content .dua-end {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 700;
}

body.dark-theme .congrats-content .dua-end {
    color: var(--gold-light);
}

/* =========================================================
   Floating Mini Tasbeeh Widget
   ========================================================= */
.floating-tasbeeh {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.tasbeeh-pill {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: 2px solid var(--gold-border);
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.tasbeeh-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 92, 88, 0.4);
}

/* Full Screen Centered Tasbeeh Modal */
.tasbeeh-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tasbeeh-modal-dialog {
    background: var(--bg-card);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tasbeeh-modal-header {
    padding: 0.9rem 1.25rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tasbeeh-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .tasbeeh-modal-title {
    color: var(--gold-light);
}

.btn-close-tasbeeh {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close-tasbeeh:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Dhikr Selector Chips */
.dhikr-chips-container {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.8rem 1rem 0.4rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dhikr-chips-container::-webkit-scrollbar {
    display: none;
}

.dhikr-chip {
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.dhikr-chip:hover,
.dhikr-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.active-dhikr-label {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--primary-dark);
    font-weight: 800;
    text-align: center;
    margin: 0.5rem 1rem 0.2rem;
}

body.dark-theme .active-dhikr-label {
    color: var(--gold-light);
}

/* Big Center Tap Circle (Covering ~90% of phone width) */
.tasbeeh-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    width: 100%;
}

.tasbeeh-big-circle {
    width: min(82vw, 360px);
    height: min(82vw, 360px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #157973, #073a38);
    border: 6px solid var(--gold);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    box-shadow: 0 16px 45px rgba(13, 92, 88, 0.5), inset 0 3px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    outline: none;
}

.tasbeeh-big-circle:active {
    transform: scale(0.96);
    box-shadow: 0 4px 18px rgba(13, 92, 88, 0.7), inset 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tasbeeh-number {
    font-size: clamp(3.8rem, 16vw, 6rem);
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-sans);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tasbeeh-tap-hint {
    font-size: 1.05rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-top: 0.4rem;
    opacity: 0.95;
}

/* Modal Footer Controls */
.tasbeeh-modal-footer {
    padding: 0.9rem 1.25rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.target-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.target-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.target-btn.active {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}

.btn-tasbeeh-reset {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.btn-tasbeeh-reset:hover {
    color: #d9534f;
    border-color: #d9534f;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-dark);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

body.dark-theme .footer-container p {
    color: var(--gold-light);
}

.footer-sub {
    font-size: 0.84rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

/* =========================================================
   Responsive Design & Mobile Optimization
   ========================================================= */
@media (max-width: 768px) {
    .header-container {
        padding: 0.6rem 0.9rem;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        display: none;
    }

    .tool-label {
        display: none;
    }

    .hero-heading {
        font-size: 1.45rem;
    }

    .hero-desc {
        font-size: 0.88rem;
    }

    .quick-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .accordion-toggles {
        justify-content: stretch;
    }

    .accordion-toggles .btn-secondary {
        flex: 1;
        justify-content: center;
    }

    .accordion-header {
        padding: 0.95rem 1rem;
    }

    .step-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-summary {
        font-size: 0.78rem;
    }

    .content-body {
        padding: 1rem;
    }

    .dua-text,
    .dua-paragraph,
    .quran-quote {
        font-size: 1.18rem;
        line-height: 1.95;
    }

    .circuits-stepper {
        grid-template-columns: repeat(4, 1fr);
    }

    .circuits-stepper .step-btn:last-child {
        grid-column: span 4;
    }

    .congrats-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .floating-tasbeeh {
        left: 14px;
        bottom: 14px;
    }

    .tasbeeh-big-circle {
        width: min(88vw, 340px);
        height: min(88vw, 340px);
    }

    .tasbeeh-number {
        font-size: clamp(3.6rem, 16vw, 5.5rem);
    }
}

@media (max-width: 480px) {
    .nav-dropdown-menu {
        right: auto;
        left: 0;
        width: 250px;
    }

    .tools-dropdown-panel {
        left: 0;
        width: 250px;
    }

    .dropdown-active-title {
        max-width: 105px;
    }

    .circuits-stepper {
        grid-template-columns: repeat(2, 1fr);
    }

    .circuits-stepper .step-btn:last-child {
        grid-column: span 2;
    }

    .points-grid {
        grid-template-columns: 1fr;
    }

    .say-rounds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   Print Optimization
   ========================================================= */
@media print {

    .app-header,
    .quick-bar,
    .nav-pills-container,
    .floating-tasbeeh,
    .btn-copy,
    .btn-complete-shawt,
    .toast {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }

    .accordion-content {
        max-height: none !important;
        display: block !important;
    }

    .sub-content {
        display: block !important;
    }

    .accordion-item,
    .sub-accordion-item {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}