/* =========================================================
   OrthoConsult Main Stylesheet
   ---------------------------------------------------------
   Structure:
   01. Theme variables
   02. Global / base
   03. Navbar
   04. Buttons and badges
   05. Home / hero
   06. Footer
   07. Auth pages
   08. Forms
   09. Admin / shared page sections
   10. Profile / consultant cards
   11. Case pages
   12. Dashboard / activities
   13. Images / modal
   14. Terms page
   15. Print styles
   16. Responsive
========================================================= */

/* =========================================================
   01. Theme variables
   Controls main colors, surfaces, borders, text colors.
========================================================= */
:root {
    --dark: #07111f;
    --dark-2: #0c1b30;
    --page-bg: #244a81;
    --section-bg: #0f1e33;

    --blue: #2563eb;
    --cyan: #38bdf8;
    --green: #22c55e;
    --yellow: #facc15;
    --red: #ef4444;

    --white: #ffffff;
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    --surface-1: rgba(255, 255, 255, 0.08);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-3: rgba(255, 255, 255, 0.10);
    --border-soft: rgba(255, 255, 255, 0.12);
    --border-faint: rgba(255, 255, 255, 0.08);

    --light-bg: #f8fafc;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.24);
    --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   02. Global / base
   Controls body, direction, global box sizing and main area.
========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
}

main {
    min-height: 70vh;
}

hr {
    border-color: var(--border-soft);
    opacity: 1;
}

.text-muted-custom {
    color: var(--text-soft) !important;
}

.min-vh-90 {
    min-height: 82vh;
}

/* =========================================================
   03. Navbar
   Controls top navigation and authenticated second row.
========================================================= */
.site-navbar {
    padding: 14px 0 10px 0;
    background: rgba(7, 17, 31, 0.96);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(14px);
}

.navbar-brand {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.navbar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.navbar-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.navbar-user {
    color: #dbeafe;
    font-size: 0.92rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-second-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-faint);
}

.navbar-second-link {
    padding: 7px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-faint);
    font-size: 0.92rem;
}

.navbar-second-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.11);
}

.navbar-second-primary {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: white;
}

.navbar-mini-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 20px;
    height: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
}

/* =========================================================
   04. Buttons and alerts
   Controls general Bootstrap button adjustments.
========================================================= */
.btn {
    border-radius: 999px;
    padding-right: 22px;
    padding-left: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.46);
}

.alert {
    border-radius: var(--radius-md);
}

/* =========================================================
   05. Home / hero
   Controls landing page hero, workflow card, feature cards.
========================================================= */
.hero-section {
    padding: 80px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), transparent 35%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.30), transparent 35%),
        linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-size: 0.92rem;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 720px;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 2;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.glass-card,
.home-action-card {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--surface-1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
}

.glass-card h5 {
    margin-bottom: 24px;
    font-weight: 800;
}

.workflow-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.workflow-item span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.workflow-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.features-section {
    padding: 70px 0;
    background: var(--light-bg);
    color: var(--text-dark);
}

.feature-card {
    height: 100%;
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.feature-card h5 {
    font-weight: 800;
    margin-bottom: 14px;
}

.feature-card p {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 0;
}

/* Home case preview cards */
.home-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0;
}

.home-case-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.home-case-image-wrap,
.home-case-image,
.home-case-image-placeholder {
    width: 150px;
    min-width: 150px;
}

.home-case-image,
.home-case-image-placeholder {
    height: 120px;
    border-radius: 16px;
}

.home-case-image {
    object-fit: cover;
    border: 1px solid var(--border-soft);
}

.home-case-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.home-case-body {
    flex: 1;
    min-width: 0;
}

.home-case-body h5 {
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
}

.home-case-body p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* Hero circular stats */
.hero-stats-row {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    margin-top: 42px;
}

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

.hero-stat-item h4 {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.stat-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        rgba(56, 189, 248, 0.95) 0deg,
        rgba(255, 255, 255, 0.10) 0deg
    );
    position: relative;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.10);
}

.stat-circle::before {
    content: "";
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid var(--border-faint);
}

.stat-circle span {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

/* =========================================================
   06. Footer
   Controls footer links, copyright and eNAMAD box.
========================================================= */
.site-footer {
    padding: 34px 0;
    background: var(--dark);
    color: var(--text-muted);
    border-top: 1px solid rgba(56, 189, 248, 0.18);
}

.site-footer strong {
    color: white;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #d0d0d0;
}

.enamad-box {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* =========================================================
   07. Auth pages
   Controls login, register, forgot password, OTP pages.
========================================================= */
.auth-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.16), transparent 35%),
        linear-gradient(135deg, var(--page-bg) 0%, var(--section-bg) 100%);
}

.auth-card {
    max-width: 760px;
    margin: auto;
    padding: 42px;
    border-radius: 34px;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.auth-card-sm {
    max-width: 520px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-subtitle {
    color: var(--text-soft);
    margin-bottom: 34px;
    line-height: 1.9;
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--text-soft);
}

.auth-footer a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: white;
}

/* =========================================================
   08. Forms
   Controls inputs, selects, checkboxes and form helper text.
========================================================= */
.form-label {
    margin-bottom: 8px;
    color: #dbeafe;
    font-weight: 500;
}

.form-control,
.admin-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    min-height: 54px;
}

.form-control {
    padding: 14px 16px;
}

.form-control:focus,
.admin-select:focus {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.admin-select option {
    background-color: white;
    color: black;
}

.form-check-label {
    color: #dbeafe;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Specialty checkbox group in forms */
.specialty-checkbox-grid,
.admin-checkbox-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.admin-checkbox-box {
    margin-top: 12px;
    padding: 20px;
    border-radius: 22px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.specialty-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #dbeafe;
    cursor: pointer;
}

.specialty-check-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.specialty-check-item input {
    width: 16px;
    height: 16px;
}

/* =========================================================
   09. Admin / shared page sections
   Controls admin pages, profile pages and general section shell.
========================================================= */
.admin-section {
    min-height: 85vh;
    padding: 60px 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 30%),
        linear-gradient(135deg, var(--page-bg) 0%, var(--section-bg) 100%);
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h1 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.admin-header p {
    color: var(--text-soft);
    margin: 0;
}

.profile-card,
.admin-stat-card,
.admin-table-card,
.admin-filter-card,
.consultant-card,
.home-action-card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.profile-card {
    padding: 36px;
    border-radius: var(--radius-xl);
}

.admin-stat-card,
.admin-filter-card,
.consultant-card {
    padding: 26px;
    border-radius: 26px;
}

.admin-table-card {
    border-radius: 26px;
    overflow: hidden;
}

.admin-stat-card span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.admin-stat-card strong {
    font-size: 2.4rem;
    font-weight: 800;
}

.table {
    margin-bottom: 0;
}

.table th,
.table td {
    white-space: nowrap;
}

.info-item,
.profile-stat,
.dashboard-stat-card,
.activity-item,
.activity-case-group,
.activity-compact-item,
.case-discussion-card,
.case-answer-box,
.case-opinion-card,
.case-timeline-card,
.specialty-admin-box {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.info-item,
.profile-stat,
.case-opinion-card,
.case-timeline-card,
.specialty-admin-box {
    padding: 22px;
    border-radius: 22px;
}

.info-item span,
.profile-stat span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.profile-stat strong,
.profile-stat-link {
    font-size: 2rem;
    font-weight: 800;
}

.profile-stat-link {
    color: white;
    text-decoration: none;
}

.profile-stat-link:hover {
    color: #7dd3fc;
}

/* =========================================================
   10. Profile / consultant cards
   Controls user profile header, avatars, consultant cards.
========================================================= */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-header p {
    color: var(--text-soft);
    margin-bottom: 12px;
}

.profile-img,
.profile-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
}

.profile-img {
    object-fit: cover;
    border: 4px solid rgba(56, 189, 248, 0.45);
}

.profile-avatar,
.consultant-avatar,
.admin-profile-avatar,
.table-profile-avatar {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
}

.profile-avatar {
    font-size: 2rem;
}

.profile-badges,
.profile-specialty-badges,
.consultant-fields {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-info h5,
.specialty-admin-box h5,
.consultant-card h5 {
    font-weight: 800;
    margin-bottom: 18px;
}

.consultant-card {
    height: 100%;
    text-align: center;
}

.consultant-img,
.consultant-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
}

.consultant-img {
    object-fit: cover;
    border: 3px solid rgba(56, 189, 248, 0.45);
}

.consultant-avatar {
    font-size: 1.7rem;
}

.consultant-en,
.consultant-meta,
.specialty-admin-box p {
    color: var(--text-soft);
}

.consultant-meta {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.consultant-fellowship {
    color: #67e8f9 !important;
    font-weight: 700;
}

.admin-profile-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-profile-img,
.admin-profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

.admin-profile-img {
    object-fit: cover;
    border: 3px solid rgba(56, 189, 248, 0.45);
}

.admin-profile-avatar {
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.18);
}

.table-profile-img,
.table-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

.table-profile-img {
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.35);
}

.table-profile-avatar {
    font-size: 0.85rem;
    font-weight: 800;
}

/* =========================================================
   11. Case pages
   Controls case detail, case images, Q/A, opinions.
========================================================= */
.case-text-block p {
    margin-bottom: 12px;
    line-height: 1.9;
}

.case-main-section {
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-top: 28px;
    border: 1px solid var(--border-faint);
}

.case-main-section.case-summary-section {
    background: rgba(95, 100, 80, 0.842);
    border-right: 5px solid rgba(59, 130, 246, 0.65);
}

.case-main-section.case-qa-section {
    background: rgba(234, 179, 8, 0.07);
    border-right: 5px solid rgba(234, 179, 8, 0.65);
}

.case-main-section.case-opinion-section {
    background: rgba(34, 197, 94, 0.07);
    border-right: 5px solid rgba(34, 197, 94, 0.65);
}

.case-section-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #f8fafc;
}

.case-discussion-card {
    padding: 20px;
    border-radius: 20px;
}

.case-discussion-card.question,
.case-timeline-card.question {
    border-right: 5px solid var(--yellow);
}

.case-discussion-card.addendum,
.case-timeline-card.addendum {
    border-right: 5px solid var(--green);
}

.case-discussion-card.opinion,
.case-timeline-card.opinion {
    border-right: 5px solid var(--cyan);
}

.case-answer-box {
    padding: 14px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.case-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.case-image-grid a {
    display: block;
}

.case-view-img {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-soft);
}

.case-image-grid .case-view-img {
    width: 180px;
    height: 150px;
}

.case-opinion-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 2px solid var(--border-soft);
    object-fit: cover;
}

/* =========================================================
   12. Dashboard / activities
   Controls dashboard stats and activity notification cards.
========================================================= */
.dashboard-stat-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.dashboard-stat-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.dashboard-stat-card p {
    margin-bottom: 0;
    color: var(--text-soft);
}

.dashboard-stat-card.preferred {
    border: 2px solid var(--yellow);
}

.activity-item,
.activity-compact-item,
.activity-case-group-header {
    color: white;
    text-decoration: none;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
}

.activity-item:hover,
.activity-compact-item:hover,
.activity-case-group-header:hover {
    background: rgba(255, 255, 255, 0.10);
    color: white;
}

.activity-item.unread,
.activity-case-group.unread {
    border-right: 5px solid var(--red);
}

.activity-item p {
    margin: 6px 0;
    color: var(--text-soft);
}

.activity-item small,
.activity-mini-date,
.activity-compact-meta {
    color: var(--text-muted);
}

.activity-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 16px;
}

.activity-compact-item.unread {
    border-right: 4px solid var(--red);
}

.activity-compact-main {
    min-width: 0;
    flex: 1;
}

.activity-compact-title {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.activity-case-code {
    font-weight: 800;
    color: #f8fafc;
}

.activity-chief,
.activity-compact-body,
.activity-mini-title {
    color: #e2e8f0;
}

.activity-chief,
.activity-compact-body {
    font-size: 0.92rem;
}

.activity-compact-body {
    margin-bottom: 3px;
}

.activity-compact-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.activity-case-group {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.activity-case-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
}

.activity-case-group-body {
    padding: 8px 14px 12px 14px;
}

.activity-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border-faint);
}

.activity-mini-row:first-child {
    border-top: none;
}

.activity-mini-row.unread .activity-mini-title {
    font-weight: 800;
}

.activity-mini-title {
    font-size: 0.92rem;
}

.activity-mini-date {
    font-size: 0.78rem;
    margin-right: 8px;
}

/* =========================================================
   13. Images / modal
   Controls clickable image behavior and modal image size.
========================================================= */
.case-image-link {
    display: inline-block;
    cursor: zoom-in;
}

.case-modal-img {
    max-height: 80vh;
    object-fit: contain;
}

/* =========================================================
   14. Terms page
   Controls accept-terms white box readability.
========================================================= */
.terms-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    line-height: 2;
    font-size: 0.95rem;
    color: #212529;
}

.terms-box ol {
    padding-right: 20px;
}

.terms-box li {
    margin-bottom: 10px;
}

/* =========================================================
   15. Print styles
   Controls print version, especially admin reports.
========================================================= */
.print-card {
    background: white;
    color: #111827;
    border-radius: 18px;
    padding: 24px;
}

.print-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: #111827;
}

@media print {
    @page {
        size: landscape;
        margin: 6mm;
    }

    .site-navbar,
    .site-footer,
    .no-print {
        display: none !important;
    }

    html,
    body {
        width: 100% !important;
        background: white !important;
        color: black !important;
        overflow: visible !important;
        direction: rtl;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-section {
        background: white !important;
        padding: 0 !important;
    }

    .print-card {
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .print-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 9px !important;
    }

    th,
    td {
        padding: 3px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        vertical-align: middle !important;
        border: 1px solid #999 !important;
    }

    th:first-child,
    td:first-child {
        width: 28px !important;
        max-width: 28px !important;
        text-align: center !important;
    }

    .badge {
        border: 1px solid #555 !important;
        color: black !important;
        background: #eee !important;
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
}

/* =========================================================
   16. Responsive
   Controls mobile/tablet adjustments.
========================================================= */
@media (max-width: 768px) {
    .site-navbar .container {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .hero-section {
        padding: 45px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .glass-card,
    .auth-card,
    .profile-card {
        padding: 24px;
    }

    .footer-links {
        margin-top: 12px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-case-card {
        flex-direction: column;
    }

    .home-case-image-wrap,
    .home-case-image,
    .home-case-image-placeholder {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .hero-stats-row {
        justify-content: center;
        gap: 20px;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }

    .stat-circle::before {
        width: 90px;
        height: 90px;
    }

    .stat-circle span {
        font-size: 1.6rem;
    }
}


/* Footer advertisement banner */
.footer-ad-box {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 18px auto;
    padding: 0;
    text-align: center;

    border-radius: 18px;
    overflow: hidden;

    background: transparent;
    border: none;
}

.footer-ad-box img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
}