:root {
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --sidebar-width: 250px;
    --header-height: 56px;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

* { box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

a { text-decoration: none; }

/* شماره نامه (وارده با «و»): جلوگیری از جابجایی اعداد و حرف و در متن RTL */
.letter-system-num-bidi {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ترتیب ثابت: سال | / | و | / | شماره (چپ به راست دیداری) */
.letter-system-num-parts {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}

.letter-system-num-parts .letter-sys-slash {
    flex: 0 0 auto;
    padding: 0 1px;
}

.letter-system-num-parts .letter-sys-y,
.letter-system-num-parts .letter-sys-seq {
    flex: 0 0 auto;
}

.letter-system-num-parts .letter-sys-v {
    flex: 0 0 auto;
}

/* فیلدهای جستجو/ورودی شماره سیستمی (ترکیب عدد و حرف فارسی) */
input.letter-system-num-input,
textarea.letter-system-num-input {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
}

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.sidebar-brand i { font-size: 1.2rem; opacity: 0.8; }

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 0.75rem;
    margin: 0;
    flex: 1;
}

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav a.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 500;
}

.sidebar-nav a i { font-size: 1rem; width: 20px; text-align: center; opacity: 0.7; }
.sidebar-nav a:hover i, .sidebar-nav a.active i { opacity: 1; }

.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0.75rem 0;
}

/* ─── Sidebar Submenu ─── */
.sidebar-submenu-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.82rem;
    transition: all 0.15s ease;
    cursor: pointer;
    width: 100%;
}
.sidebar-submenu-toggle:hover {
    background: var(--sidebar-hover);
    color: #fff;
}
.sidebar-submenu-toggle.active {
    color: #fff;
    background: rgba(59,130,246,0.15);
}
.sidebar-submenu-toggle span { flex: 1; }
.sidebar-submenu-toggle > i:first-child { font-size: 1rem; width: 20px; text-align: center; opacity: 0.7; }
.sidebar-submenu-toggle:hover > i:first-child,
.sidebar-submenu-toggle.active > i:first-child { opacity: 1; }

.submenu-arrow {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.sidebar-submenu.open .submenu-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.submenu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}
.sidebar-submenu.open .submenu-items {
    max-height: 300px;
    opacity: 1;
}

.submenu-items li { margin: 0; }
.submenu-items a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem 0.42rem 0.85rem;
    margin-right: 1.6rem;
    color: #94a3b8;
    border-radius: 5px;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    border-right: 2px solid transparent;
}
.submenu-items a:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
    border-right-color: rgba(255,255,255,0.15);
}
.submenu-items a.active {
    color: #60a5fa;
    background: rgba(59,130,246,0.1);
    border-right-color: #3b82f6;
    font-weight: 500;
}
.submenu-items a i {
    font-size: 0.82rem;
    width: 16px;
    text-align: center;
    opacity: 0.6;
}
.submenu-items a:hover i,
.submenu-items a.active i { opacity: 1; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Header ─── */
.top-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.header-user-info { line-height: 1.3; }
.header-user-name { font-weight: 600; font-size: 0.82rem; color: var(--text-primary); }
.header-user-role { font-size: 0.72rem; color: var(--text-muted); }

.header-avatar[role="button"] { cursor: pointer; transition: box-shadow 0.15s ease; }
.header-avatar[role="button"]:hover { box-shadow: 0 0 0 3px rgba(59,130,246,0.3); }

.user-dropdown {
    min-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.4rem 0;
    margin-top: 0.5rem !important;
    font-size: 0.82rem;
}
.user-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.user-dropdown .dropdown-item:hover { background: var(--bg-page); }
.user-dropdown .dropdown-item.text-danger:hover { background: #fef2f2; }
.user-dropdown .dropdown-divider { margin: 0.25rem 0; border-color: var(--border-color); }

/* ─── Content Area ─── */
.app-wrapper {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    padding: 1.5rem;
}

/* ─── Footer ─── */
.app-footer {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
}

/* ─── Page Header ─── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title i { color: var(--text-secondary); font-size: 1rem; }

/* ─── Cards ─── */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.15rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.card-body { padding: 1.15rem; }

/* ─── Dashboard Cards ─── */
.stat-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.green { background: #f0fdf4; color: #22c55e; }
.stat-icon.amber { background: #fffbeb; color: #f59e0b; }
.stat-icon.slate { background: #f1f5f9; color: #64748b; }

.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); line-height: 1; }

/* ─── Tables ─── */
.table { font-size: 0.82rem; margin-bottom: 0; }
.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: none;
    white-space: nowrap;
    padding: 0.7rem 0.85rem;
}
.table tbody td { padding: 0.65rem 0.85rem; vertical-align: middle; border-color: var(--border-color); }
.table-hover tbody tr:hover { background: #f8fafc; }

/* ─── Buttons ─── */
.btn { font-size: 0.82rem; border-radius: 6px; font-weight: 500; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { font-size: 0.76rem; padding: 0.3rem 0.6rem; }

/* ─── Badges ─── */
.badge { font-weight: 500; font-size: 0.72rem; padding: 0.3em 0.6em; border-radius: 4px; }
.badge-num { font-family: monospace; letter-spacing: 0.02em; }

/* ─── Forms ─── */
.form-label { font-weight: 500; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
.form-control, .form-select {
    font-size: 0.85rem;
    border-color: var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ─── Alerts ─── */
.alert { font-size: 0.82rem; border-radius: 6px; border: none; }

/* ─── Wizard Steps ─── */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: var(--bg-card);
}

.wizard-step.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.wizard-step.done { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

/* ─── Forward Cards ─── */
.forward-card {
    border-right: 3px solid var(--border-color);
    border-radius: 6px;
    transition: background 0.15s;
}
.forward-card:hover { background: #f8fafc; }
.forward-card.urgent { border-right-color: #ef4444; }
.forward-card.important { border-right-color: #f59e0b; }

.priority-urgent { color: #ef4444; font-weight: 600; }
.priority-important { color: #f59e0b; font-weight: 500; }
.priority-normal { color: var(--text-muted); }

/* ─── Timeline ─── */
.timeline { position: relative; padding-right: 24px; }
.timeline::before { content: ''; position: absolute; right: 8px; top: 0; bottom: 0; width: 1px; background: var(--border-color); }
.timeline-item { position: relative; margin-bottom: 1.25rem; padding-right: 20px; }
.timeline-item::before { content: ''; position: absolute; right: -20px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ─── Landing Page ─── */
.landing-page {
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
}

.landing-nav {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.landing-hero-layout .landing-content {
    flex: 1 1 280px;
    max-width: 800px;
}

.landing-hero-image {
    flex: 0 1 360px;
    max-width: 100%;
}

.landing-hero-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* تصاویر صفحه اصلی: کلیک برای بزرگ‌نمایی */
.landing-clickable-img {
    cursor: zoom-in;
    transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.3s ease;
}
.landing-clickable-img:hover {
    opacity: 0.96;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
}

/* ═══════════════════════════════════════════════════════════ */
/* صفحه اصلی (Landing) — تک‌صفحه‌ای، بدون اسکرول                  */
/* ═══════════════════════════════════════════════════════════ */
html.lp-html {
    overflow-x: hidden;
    max-width: 100%;
}
.lp-body {
    margin: 0;
    background: #07101f;
    color: #e2e8f0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.lp-body.lp-one {
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100vw;
}
.lp {
    position: relative;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100%;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 20%, rgba(168, 85, 247, 0.12), transparent 65%),
        linear-gradient(180deg, #07101f 0%, #0b1628 100%);
}
.lp-bg-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 0;
}
.lp-bg-glow--a {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: -160px; left: -120px;
}
.lp-bg-glow--b {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    bottom: -180px; right: -140px;
    opacity: 0.32;
}
.lp-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* nav */
.lp-nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}
.lp-nav-meta {
    display: flex;
    gap: 0.5rem;
}
.lp-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.74rem;
}
.lp-nav-pill i { color: #60a5fa; }
.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.lp-brand-icon {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.lp-nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}
.lp-nav-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}
.lp-nav-links a:hover { color: #fff; }
.lp-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.lp-nav-cta:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

/* main 2-column layout */
.lp-main {
    position: relative;
    z-index: 4;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 0.75rem;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.6fr);
    gap: 1.5rem;
    min-height: 0;
    min-width: 0;
    align-items: stretch;
}

.lp-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.25rem 0;
}
.lp-stage-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
}
.lp-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.lp-eyebrow--accent {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(192, 132, 252, 0.3);
    color: #d8b4fe;
    margin-bottom: 0;
}
.lp-title {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 0.5rem;
}
.lp-intro {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.3rem;
}
.lp-intro-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}
.lp-intro-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}
.lp-intro-desc {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.7;
}
.lp-tags {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.1rem 0 0.3rem;
}
.lp-tag-group { min-width: 0; }
.lp-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.lp-tag-label i { color: #60a5fa; }
.lp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.lp-tag {
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
    font-size: 0.74rem;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-tag--alt {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fcd34d;
}
.lp-tag--more {
    background: transparent;
    border-style: dashed;
    color: #94a3b8;
}
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}
.lp-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.5);
    color: #fff;
}
.lp-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.12);
}
.lp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.lp-btn-lg { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
.lp-btn-block {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.lp-projects-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.5rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}
.lp-projects-counter #lpProjCur {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}
.lp-projects-counter-sep { color: #475569; }
.lp-projects-counter {
    padding: 0.35rem 0.7rem;
}

/* showcase / stage */
.lp-showcase {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 0;
}
.lp-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1525;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.lp-stage--empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #64748b;
    gap: 0.5rem;
}
.lp-stage--empty i { font-size: 2.5rem; opacity: 0.5; }
.lp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}
.lp-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.lp-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 6s ease;
}
.lp-slide.is-active img { transform: scale(1.08); }
.lp-slide-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #475569;
    font-size: 3.5rem;
}
.lp-slide-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1.5rem 1.4rem 1.1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 31, 0.85) 60%, rgba(7, 16, 31, 0.95) 100%);
    color: #fff;
}
.lp-slide-caption h3 {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    color: #fff;
}
.lp-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #bfdbfe;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}
.lp-stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(7, 16, 31, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.lp-stage-nav:hover {
    background: rgba(59, 130, 246, 0.55);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-50%) scale(1.05);
}
.lp-stage-nav--prev { right: 12px; }
.lp-stage-nav--next { left: 12px; }

/* thumbnails */
.lp-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 0.25rem 0.05rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
    flex-shrink: 0;
}
.lp-thumbs::-webkit-scrollbar { height: 5px; }
.lp-thumbs::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 4px; }
.lp-thumb {
    position: relative;
    flex: 0 0 88px;
    height: 56px;
    border-radius: 9px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #0b1525;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lp-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
}
.lp-thumb.is-active {
    border-color: #3b82f6;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}
.lp-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}
.lp-thumb.is-active img,
.lp-thumb:hover img { opacity: 1; }
.lp-thumb-empty {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}
/* footer */
.lp-foot {
    position: relative;
    z-index: 3;
    padding: 0.65rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.74rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.lp-foot-sep { margin: 0 0.4rem; color: #334155; }

/* zoom modal tweak */
.lp-zoom-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

/* responsive — اگر صفحه کوچک بود قابل اسکرول می‌شود */
@@media (max-width: 992px) {
    .lp-body.lp-one { height: auto; overflow: auto; }
    .lp { height: auto; }
    .lp-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 1rem 1.25rem;
    }
    .lp-side { padding: 0; }
    .lp-stage-wrap { min-height: 360px; }
    .lp-stage { aspect-ratio: 16 / 9; }
}
@@media (max-width: 640px) {
    .lp-nav { padding: 0.75rem 1rem; flex-wrap: wrap; }
    .lp-nav-meta { display: none; }
    .lp-stage-nav { width: 34px; height: 34px; font-size: 0.85rem; }
    .lp-stage-nav--prev { right: 8px; }
    .lp-stage-nav--next { left: 8px; }
    .lp-thumb { flex: 0 0 76px; height: 50px; }
    .lp-slide-caption { padding: 1.2rem 1rem 0.9rem; }
}

#landingImageZoomModal .modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}
#landingImageZoomModal .modal-header {
    flex-wrap: wrap;
    gap: 0.5rem;
}
#landingZoomScroll {
    overflow: auto;
    max-height: calc(100vh - 130px);
    min-height: 220px;
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
#landingZoomScroll:active {
    cursor: grabbing;
}
#landingZoomImg {
    display: inline-block;
    vertical-align: top;
    height: auto;
    max-width: none;
    user-select: none;
    pointer-events: none;
}
#landingImageZoomModal .landing-zoom-hint {
    font-size: 0.72rem;
    color: #94a3b8;
}

.landing-desc-list {
    margin: 0;
    padding-right: 1.15rem;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: right;
    line-height: 1.65;
}

.landing-desc-list li {
    margin-bottom: 0.35rem;
}

.landing-desc-list li:last-child {
    margin-bottom: 0;
}

.landing-desc-list--cards {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-desc-list--cards li {
    margin-bottom: 0.38rem;
    padding: 0.38rem 0.5rem 0.42rem 0.48rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-right: 2px solid rgba(96, 165, 250, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 0.8rem;
    line-height: 1.55;
}

.landing-desc-list--cards li:hover {
    background: rgba(30, 41, 59, 0.65);
    border-right-color: rgba(147, 197, 253, 0.85);
}

.landing-desc-list--cards li:last-child {
    margin-bottom: 0;
}

.landing-feature-body {
    flex: 1;
    min-width: 0;
}

.landing-feature--intro .landing-intro-lead {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.65;
    margin: 0;
    padding: 0.5rem 0.6rem 0.52rem 0.55rem;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 8px;
    border-right: 2px solid rgba(59, 130, 246, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* کارت اسلایدر پروژه‌ها — هدر بسیار فشرده، بدون آیکن */
.landing-feature--projects {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    min-height: 240px;
}

.landing-feature-projects-head {
    flex-shrink: 0;
    padding: 0.35rem 0.55rem 0.32rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.45);
}

.landing-projects-heading {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: right;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

.landing-feature-projects-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    color: #64748b;
    font-size: 0.78rem;
}

.landing-feature--projects .landing-box2-carousel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    border: none;
    border-top: none;
    box-shadow: none;
    background: rgba(2, 6, 23, 0.28);
    display: flex;
    flex-direction: column;
}

.landing-feature--projects .landing-box2-carousel .carousel-inner {
    flex: 1 1 auto;
    min-height: 160px;
}

.landing-feature--projects .landing-box2-carousel .carousel-item {
    min-height: 160px;
}

.landing-feature--projects .landing-box2-carousel .carousel-item.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 160px;
}

.landing-box2-carousel {
    direction: ltr;
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.65) 100%);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.landing-box2-carousel .carousel-inner {
    border-radius: 0;
}

.landing-box2-slide {
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    height: 100%;
}

.landing-feature--projects .landing-box2-slide {
    flex: 1;
    min-height: 168px;
}

.landing-box2-slide-media {
    position: relative;
    flex: 1 1 0;
    min-height: 96px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.landing-box2-slide-media:has(img)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(15, 23, 42, 0.55) 85%, rgba(15, 23, 42, 0.92) 100%);
    pointer-events: none;
}

.landing-box2-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-box2-slide-media--empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.6rem;
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(51, 65, 85, 0.35) 0%, transparent 55%),
        linear-gradient(180deg, #1e293b, #0f172a);
}

.landing-box2-slide-text {
    margin: 0;
    padding: 0.4rem 0.5rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.6);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    flex-shrink: 0;
}

/* نقاط اسلایدر — زیر تصویر، بالای متن در Bootstrap درون کارousel قرار می‌گیرند */
.landing-box2-indicators.carousel-indicators {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
    padding: 0.18rem 0.35rem 0.15rem;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(2, 6, 23, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.landing-box2-indicators.carousel-indicators [type="button"] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(148, 163, 184, 0.35);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.landing-box2-indicators.carousel-indicators [type="button"].active {
    background: #60a5fa;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.landing-box2-carousel--single .landing-box2-indicators {
    display: none;
}

.landing-box2-carousel--single .landing-box2-carousel-btn {
    display: none;
}

.landing-box2-carousel-btn {
    width: 1.95rem;
    height: 1.95rem;
    top: 38%;
    transform: translateY(-50%);
    margin-top: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.landing-box2-carousel-btn:hover {
    background: rgba(30, 41, 59, 0.92) !important;
}

.landing-box2-carousel-btn .carousel-control-prev-icon,
.landing-box2-carousel-btn .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
    filter: brightness(1.15);
}

.landing-content {
    max-width: 800px;
    text-align: center;
    color: #fff;
}

.landing-content h1 {
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.landing-content p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.65;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 2.5rem;
    text-align: right;
    align-items: stretch;
}

@media (max-width: 640px) {
    .landing-features {
        grid-template-columns: 1fr;
    }
}

.landing-feature {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 0.85rem 0.9rem 0.88rem;
    display: flex;
    gap: 0.72rem;
    align-items: flex-start;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-feature:hover {
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.landing-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.32) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
    box-shadow:
        0 2px 8px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-feature--list .landing-feature-body h6 {
    margin-bottom: 0.42rem;
}

.landing-feature h6 {
    color: #f1f5f9;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.landing-feature p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.65;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--sidebar-bg);
    padding: 0.8rem 2.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    color: var(--sidebar-bg);
}

.landing-footer {
    padding: 1rem 2rem;
    text-align: center;
    color: #475569;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── Login Page ─── */
.login-page {
    min-height: 100vh;
    display: flex;
}

.login-side {
    flex: 1.15;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2rem 2.25rem;
    overflow: hidden;
}

.login-side-inner {
    width: 100%;
    max-width: 520px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #fff;
}

.login-brand-block { text-align: center; }
.login-brand-icon {
    font-size: 2rem;
    opacity: 0.55;
    margin-bottom: 0.75rem;
}
.login-brand-block h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.login-lead {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 34rem;
}
.login-side-blurb {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.login-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.65rem;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,0.4) transparent;
}
.login-gallery-grid::-webkit-scrollbar { width: 6px; }
.login-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.35);
    border-radius: 6px;
}

.login-gallery-item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 28px -8px rgba(0,0,0,0.45),
        0 0 0 1px rgba(96,165,250,0.25);
}
.login-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.login-gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,41,59,0.85);
    color: #64748b;
    font-size: 1.75rem;
}
.login-gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.45rem 0.55rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f8fafc;
    background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.45) 55%, transparent 100%);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}

.login-side-stats {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.login-stat-val {
    font-size: 1.45rem;
    font-weight: 700;
    color: #60a5fa;
}
.login-stat-lbl {
    font-size: 0.72rem;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .login-page { flex-direction: column; }
    .login-side {
        flex: 0 0 auto;
        min-height: auto;
        padding: 1.5rem 1rem 1rem;
    }
    .login-gallery-grid { max-height: 38vh; }
    .login-form-side {
        padding: 2rem 1.25rem 2.5rem;
    }
}

.login-side-content { max-width: 360px; color: #fff; }
.login-side-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-side-content p { color: #94a3b8; font-size: 0.85rem; line-height: 1.7; }

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-page);
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.login-card .text-muted { font-size: 0.82rem; }

/* ─── Pagination ─── */
.pagination { gap: 3px; }
.page-link {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); }

/* ─── Print ─── */
.print-view {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    max-width: 210mm;
    margin: 0 auto;
    padding: 20mm;
}

@media print {
    .no-print { display: none !important; }
    .sidebar, .top-header, .app-footer { display: none !important; }
    .app-wrapper { margin: 0; }
}

/* ─── Archive Folders ─── */
.archive-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    color: var(--text-primary);
}

.archive-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.archive-card i { font-size: 2rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.archive-card h6 { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.15rem; }
.archive-card small { color: var(--text-muted); font-size: 0.75rem; }

/* ─── Settings Nav ─── */
.settings-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
    color: var(--text-primary);
}

.settings-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: var(--text-primary);
}

.settings-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.empty-state p { font-size: 0.85rem; }

/* ─── Mobile Blocker ─── */
.mobile-blocker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    overflow-y: auto;
}

.mobile-blocker-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.15));
    border: 1px solid rgba(59,130,246,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #60a5fa;
    margin-bottom: 2rem;
    animation: mbIconFloat 3s ease-in-out infinite;
}

@keyframes mbIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mobile-blocker-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.mobile-blocker-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.9;
    max-width: 340px;
    margin: 0 auto 2rem;
}

.mobile-blocker-devices {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mobile-blocker-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.mobile-blocker-device i {
    font-size: 1.8rem;
    color: #60a5fa;
}

.mobile-blocker-device span {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 500;
}

.mobile-blocker-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
    max-width: 340px;
}

.mobile-blocker-note i {
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-blocker-note span {
    font-size: 0.78rem;
    color: #fbbf24;
    line-height: 1.7;
    text-align: right;
}

.mobile-blocker-brand {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
}

.mobile-blocker-brand i {
    font-size: 1rem;
    color: #64748b;
}

/* ─── Mobile ─── */
@media (max-width: 767.98px) {
    .mobile-blocker { display: flex !important; }
    .sidebar, .app-wrapper, .landing-page, .login-page { display: none !important; }
}

@media (min-width: 768px) {
    .mobile-blocker { display: none !important; }
}


/* ─── Detail Button ─── */
.detail-btn {
    font-size: 0.74rem;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 500;
    background: #eff6ff;
    color: var(--accent);
    border: 1px solid #bfdbfe;
    transition: all 0.15s ease;
}
.detail-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ─── Quill Editor RTL ─── */
.quill-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card);
}
.quill-wrapper .ql-toolbar {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    direction: ltr;
}
.quill-wrapper .ql-container {
    border: none;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.88rem;
    direction: rtl;
    min-height: 160px;
}
.quill-wrapper .ql-editor {
    min-height: 160px;
    line-height: 1.9;
    text-align: right;
}
.quill-wrapper .ql-editor.ql-blank::before {
    right: 15px;
    left: auto;
    font-style: normal;
    color: var(--text-muted);
}

/* ─── Sortable Table ─── */
th.sortable { user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--accent); }
.sort-icon { font-size: 0.65rem; margin-right: 2px; opacity: 0.5; vertical-align: middle; }
th.sortable:hover .sort-icon { opacity: 1; }

/* ─── Scrollbar ─── */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ═══════════════════════════════════════ */
/* تاریخ و ساعت در هدر                 */
/* ═══════════════════════════════════════ */
.header-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.header-datetime i {
    font-size: 0.8rem;
    opacity: 0.7;
}
.header-datetime-sep {
    color: var(--border-color);
    font-weight: 300;
}

/* دکمه یادآورها در هدر (جایگزین آیتم سایدبار) */
.header-reminders-nav {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.76rem;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    line-height: 1.2;
}
.header-reminders-nav:hover {
    background: var(--bg-page);
    color: var(--text-primary);
    border-color: #cbd5e1;
}
.header-reminders-nav--active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--accent);
}

/* ═══════════════════════════════════════ */
/* Wizard number badge                   */
/* ═══════════════════════════════════════ */
.wiz-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    color: var(--text-muted);
}
.wizard-step.active .wiz-num {
    background: #fff;
    color: var(--accent);
}
.wizard-step.done .wiz-num {
    background: #f0fdf4;
    color: #16a34a;
}

/* ═══════════════════════════════════════ */
/* فیلد تاریخ شمسی                      */
/* ═══════════════════════════════════════ */
.jalali-date-input {
    position: relative;
    cursor: pointer;
}
.jalali-date-input .form-control {
    cursor: pointer;
    padding-left: 2.2rem;
    background: var(--bg-card) !important;
}
.jalali-date-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.95rem;
    pointer-events: none;
}

/* ═══════════════════════════════════════ */
/* تقویم شمسی                           */
/* ═══════════════════════════════════════ */
.jalali-calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0,0,0,0.15);
}
.jalali-calendar {
    position: absolute;
    z-index: 1051;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 0.75rem;
    animation: calSlide 0.2s ease;
}
@keyframes calSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.jalali-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding: 0 0.15rem;
}
.jalali-cal-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.jalali-cal-nav {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-page);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
    font-size: 0.8rem;
}
.jalali-cal-nav:hover {
    background: var(--accent);
    color: #fff;
}
.jalali-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.3rem;
}
.jalali-cal-weekdays span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
}
.jalali-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.jalali-cal-day,
.jalali-cal-empty {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s;
    color: var(--text-primary);
}
.jalali-cal-day:hover {
    background: #eff6ff;
    color: var(--accent);
}
.jalali-cal-day.today {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}
.jalali-cal-day.today:hover {
    background: var(--accent-hover);
    color: #fff;
}
.jalali-cal-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}
.jalali-cal-today {
    border: none;
    background: none;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s;
}
.jalali-cal-today:hover {
    background: #eff6ff;
}

/* ═══════════════════════════════════════ */
/* دکمه + کنار سلکت                    */
/* ═══════════════════════════════════════ */
.input-with-add {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.input-with-add .form-select,
.input-with-add .select2-container {
    flex: 1;
    min-width: 0;
}
.btn-quick-add {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 1.5px dashed var(--accent);
    background: #eff6ff;
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-quick-add:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════ */
/* مودال سریع                           */
/* ═══════════════════════════════════════ */
.quick-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 1060;
}
.quick-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1061;
    width: 420px;
    max-width: 92vw;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 0.2s ease;
}
.quick-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.quick-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.quick-modal-header h6 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}
.quick-modal-close {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}
.quick-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}
.quick-modal-body {
    padding: 1.25rem;
}
.quick-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════ */
/* درگ اند دراپ فایل                    */
/* ═══════════════════════════════════════ */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--bg-page);
}
.dropzone:hover {
    border-color: var(--accent);
    background: #eff6ff;
}
.dropzone.dragover {
    border-color: var(--accent);
    background: #dbeafe;
    transform: scale(1.01);
}
.dropzone-content i {
    font-size: 2.2rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.dropzone-content p {
    margin: 0 0 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.dropzone-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.file-list {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    animation: fileSlide 0.2s ease;
}
@keyframes fileSlide {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.file-item-info i { font-size: 1rem; flex-shrink: 0; }
.file-item-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.file-item-size {
    color: var(--text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
}
.file-item-remove {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 0.85rem;
}
.file-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ═══════════════════════════════════════ */
/* Dashboard Calendar                     */
/* ═══════════════════════════════════════ */
.dash-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.dash-cal .jalali-cal-weekdays .cal-friday {
    color: #ef4444;
}
.dash-cal .jalali-cal-day {
    width: auto;
    height: auto;
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
    position: relative;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.dash-cal .jalali-cal-day.friday {
    color: #ef4444;
}
.dash-cal .jalali-cal-day.friday:hover {
    background: #fef2f2;
    color: #ef4444;
}
.dash-cal .jalali-cal-day.selected {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px var(--accent);
}
.dash-cal .jalali-cal-day.today.selected {
    box-shadow: inset 0 0 0 2px #fff;
}
.cal-day-num {
    font-size: 0.78rem;
    line-height: 1;
}
.cal-badges {
    display: flex;
    gap: 2px;
    justify-content: center;
}
.cal-badge-in, .cal-badge-out, .cal-badge-total {
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cal-badge-in {
    background: #dbeafe;
    color: #2563eb;
}
.cal-badge-out {
    background: #dcfce7;
    color: #16a34a;
}
.cal-badge-total {
    background: #f1f5f9;
    color: var(--text-primary);
    font-size: 0.68rem;
    border-radius: 4px;
    width: auto;
    height: auto;
    padding: 1px 5px;
}
.dash-cal .jalali-cal-day.today .cal-badge-in {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
.dash-cal .jalali-cal-day.today .cal-badge-out {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.cal-summary {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cal-summary-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.cal-day-detail {
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-page);
    animation: calDetailSlide 0.2s ease;
}
@keyframes calDetailSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.cal-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
}
.cal-detail-body {
    padding: 0.75rem 0.85rem;
}
.cal-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: var(--text-secondary);
}
.cal-detail-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}
.cal-detail-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0;
}
.cal-detail-empty i {
    margin-left: 0.3rem;
}
@keyframes calSpinAnim {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cal-spin {
    animation: calSpinAnim 1s linear infinite;
}

/* ═══════════════════════════════════════ */
/* Floating Calculator                    */
/* ═══════════════════════════════════════ */
.calc-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sidebar-bg);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 1050;
    transition: all 0.2s ease;
}
.calc-fab:hover {
    background: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}

.calc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 2010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.calc-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.calc-modal {
    position: fixed;
    bottom: 90px;
    left: 28px;
    z-index: 2011;
    width: 320px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.calc-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.calc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
}
.calc-header h6 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}
.calc-close {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}
.calc-close:hover {
    background: #fee2e2;
    color: #ef4444;
}
.calc-display {
    padding: 1rem 1.15rem 0.5rem;
}
.calc-expression {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 1.2em;
    text-align: left;
    direction: ltr;
    font-family: monospace;
}
.calc-result {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    direction: ltr;
    font-family: monospace;
    min-height: 2rem;
    word-break: break-all;
}
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 0.5rem 1.15rem 1rem;
}
.calc-btn {
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-btn:hover {
    background: #e2e8f0;
    transform: scale(1.04);
}
.calc-btn:active {
    transform: scale(0.96);
}
.calc-btn.op {
    background: #eff6ff;
    color: var(--accent);
    border-color: #bfdbfe;
    font-size: 1.15rem;
}
.calc-btn.op:hover {
    background: #dbeafe;
}
.calc-btn.eq {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-size: 1.15rem;
}
.calc-btn.eq:hover {
    background: var(--accent-hover);
}
.calc-btn.clear {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}
.calc-btn.clear:hover {
    background: #fee2e2;
}

/* ═══════════════════════════════════════ */
/* مودال تایید                           */
/* ═══════════════════════════════════════ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}
.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2001;
    width: 380px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.confirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.confirm-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.confirm-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.confirm-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.confirm-btn-cancel {
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.confirm-btn-cancel:hover {
    background: #e2e8f0;
}
.confirm-btn-ok {
    background: var(--accent);
    color: #fff;
}
.confirm-btn-ok:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.confirm-btn-danger {
    background: #ef4444;
    color: #fff;
}
.confirm-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* داشبورد: تاریخ یادآور — کنتراست قابل خواندن روی پس‌زمینه کارت */
.dashboard-reminder-date {
    background: var(--bg-page);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-variant-numeric: tabular-nums;
}
.dashboard-reminder-date--overdue {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-variant-numeric: tabular-nums;
}

/* مودال یادآور پس از ورود */
.reminder-alert-modal {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.reminder-alert-modal__header--danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
}
.reminder-alert-modal__header--warn {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
    color: #92400e;
}
.reminder-alert-modal__summary {
    font-size: 0.78rem;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.reminder-alert-modal__item--overdue {
    border-right: 4px solid #ef4444;
    background: #fffafa;
}
.reminder-alert-modal__item--soon {
    border-right: 4px solid #f59e0b;
    background: #fffdf7;
}
.reminder-alert-modal__date--soon {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-variant-numeric: tabular-nums;
}
.reminder-alert-modal__status {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}
.reminder-alert-modal__status--overdue {
    color: #991b1b;
}
.reminder-alert-modal__status--soon {
    color: #92400e;
}

/* خلاصه اعتبارسنجی: بدون خطا نمایش داده نشود */
.validation-summary-valid[data-valmsg-summary="true"] {
    display: none !important;
}
.validation-summary-errors[data-valmsg-summary="true"] {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    font-size: 0.875rem;
}
