:root {
    --brand-primary: #4f46e5;
    --brand-primary-dark: #4338ca;
    --brand-primary-light: #eef2ff;
    --brand-accent: #f59e0b;
    --brand-bg: #f7f8fb;
    --brand-surface: #ffffff;
    --brand-ink: #171923;
    --brand-ink-soft: #3f4356;
    --brand-muted: #656a82;
    --brand-border: #dfe1ee;
    --shadow-sm: 0 1px 2px rgba(24, 24, 60, 0.06), 0 1px 3px rgba(24, 24, 60, 0.04);
    --shadow-md: 0 4px 12px rgba(24, 24, 60, 0.08), 0 2px 4px rgba(24, 24, 60, 0.04);
    --shadow-lg: 0 12px 32px rgba(24, 24, 60, 0.14), 0 4px 8px rgba(24, 24, 60, 0.06);
    --radius: 14px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
    font-family: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem !important;
    font-size: 1.6rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

p { color: var(--brand-ink-soft); }
.text-muted { color: var(--brand-muted) !important; }

a {
    color: var(--brand-primary);
    text-decoration: none;
}
a:hover { color: var(--brand-primary-dark); }

/* ===== Layout ===== */
.container {
    max-width: 1140px;
}

/* ===== Navbar ===== */
.navbar {
    background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-primary)) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.18);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.navbar-brand {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
}

.navbar-brand i {
    font-size: 1.15rem;
    color: var(--brand-accent);
}

/* מפצה על ה-navbar ה-sticky כשגוללים אל תוכן עם scrollIntoView - אחרת הכותרת הקבועה
   מכסה את תחילת האלמנט, ונראה כאילו הגלילה "נחתה" באמצע התוכן ולא בתחילתו. */
#printConfigBox {
    scroll-margin-top: 90px;
}

.navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .nav-link i {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
}

.navbar .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2px 0 var(--brand-accent);
}

.navbar .nav-link.active i {
    opacity: 1;
    color: var(--brand-accent);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    margin-top: 0.5rem;
    min-width: 12rem;
}

.navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--brand-ink-soft);
    background: none;
    border: none;
    width: 100%;
    text-align: right;
}

.navbar .dropdown-item i {
    font-size: 0.95rem;
    color: var(--brand-muted);
    width: 1.1em;
    text-align: center;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--brand-primary-light);
    color: var(--brand-primary-dark);
}

.navbar .dropdown-item-text {
    padding: 0.35rem 0.9rem;
}

.navbar .account-dropdown .dropdown-toggle::after {
    color: rgba(255, 255, 255, 0.5);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.4em 0.85em;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.role-badge-admin {
    background-color: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.role-badge-subscriber {
    background-color: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.nav-unread-badge {
    font-size: 0.65rem;
    padding: 0.28em 0.5em;
    margin-inline-start: 0.15rem;
    vertical-align: 2px;
    animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-lg {
    border-radius: 12px;
    padding: 0.75rem 1.4rem;
}

.btn-sm {
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-secondary {
    color: var(--brand-ink-soft);
    border-color: var(--brand-border);
}

.btn-outline-secondary:hover {
    background-color: var(--brand-ink);
    border-color: var(--brand-ink);
    color: #fff;
}

.btn-success { box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25); }
.btn-warning { box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25); }
.btn-danger { box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25); }

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--brand-border);
    padding: 0.6rem 0.9rem;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.14);
}

.form-control::placeholder { color: #b6bad0; }

.input-group-text {
    background-color: #fbfbfd;
    border-color: var(--brand-border);
    color: var(--brand-muted);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--brand-ink);
    margin-bottom: 0.4rem;
}

.form-check-label {
    font-weight: 400;
    color: var(--brand-ink-soft);
}

textarea.form-control { resize: vertical; }

/* ===== Form sections ===== */
.form-section {
    border-top: 1px solid var(--brand-border);
    padding-top: 1.1rem;
    margin-top: 1.1rem;
}

.advanced-toggle-banner {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid var(--brand-primary);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.advanced-toggle-banner .btn-primary {
    font-size: 1rem;
}

.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-primary);
    margin-bottom: 0.9rem;
}

/* כרטיס-קישור להעדפות מייל בעמודי עריכת פרופיל (מדפיס/מבקש) - בכוונה בולט ולא כפתור
   btn-sm קטן שנבלע בין שאר האלמנטים. */
.profile-settings-banner { transition: border-color .15s, box-shadow .15s; }
.profile-settings-banner:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-md); }

/* ===== Hero (Home) ===== */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #4338ca 100%);
    color: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.18), transparent 40%);
    pointer-events: none;
}

.hero h1, .hero p, .hero .d-flex { position: relative; }

.hero p {
    color: rgba(255, 255, 255, 0.88);
}

.hero .btn-primary {
    background-color: #fff;
    color: var(--brand-primary-dark);
    border-color: #fff;
    font-weight: 700;
}

.hero .btn-primary:hover {
    background-color: #f3f0ff;
}

.hero .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.hero .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background-color: var(--brand-surface);
}

.dashboard-tile-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.subscriber-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.subscriber-card-link:hover { color: inherit; }

.subscriber-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subscriber-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d7d9f5;
}

.match-badge {
    background-color: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4em 0.7em;
    border-radius: 999px;
}

.job-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.job-spec-list i {
    width: 1.1em;
    display: inline-block;
    text-align: center;
    color: var(--brand-muted);
}

.table-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.table-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-bg);
    color: var(--brand-border);
    font-size: 1.1rem;
}

.job-card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--brand-bg);
}

.job-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--brand-border);
    background: var(--brand-bg);
}

.job-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* כותרות דלי-סטטוס במסכי "העבודות שלי" (Jobs/MyJobs.cshtml, RequesterJobs/Index.cshtml) */
.my-jobs-bucket-title {
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d7d9f5;
}

.card .fs-1 { line-height: 1; }

/* ===== Offer cards (הצעות מחיר - ראה RequesterJobs/_OffersTable.cshtml) =====
   ברירת המחדל להשוואת הצעות - כרטיסים, לא טבלה. הטבלה עדיין קיימת מאחורי "השוואה מלאה". */
.offer-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d7d9f5;
}

.offer-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary-dark);
    margin-bottom: 0.4rem;
}

.offer-card-note {
    font-size: 0.85rem;
    color: var(--brand-ink-soft);
    font-style: italic;
    background: var(--brand-bg);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
}

/* ===== Tables ===== */
.table-card {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--brand-surface);
    padding: 0.4rem;
}

.table-responsive { overflow-x: auto; }

.table { margin-bottom: 0; }

.table thead th {
    background-color: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    font-weight: 700;
    border-bottom: 2px solid #dde1fa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0.55rem 0.75rem;
}

.table td {
    vertical-align: middle;
    padding: 0.55rem 0.75rem;
    border-color: var(--brand-border);
    color: var(--brand-ink-soft);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fafafe;
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--brand-primary-light);
}

table.table-sm th {
    color: var(--brand-muted);
    font-weight: 600;
    width: 35%;
}

/* ===== Status badges ===== */
.status-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.76rem;
    padding: 0.42em 0.85em;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-status-new { background-color: #3b82f6; color: #fff; }
.badge-status-claimed { background-color: #8b5cf6; color: #fff; }
.badge-status-approved { background-color: #0ea5e9; color: #fff; }
.badge-status-inprogress { background-color: #f59e0b; color: #1f1500; }
.badge-status-completed { background-color: #14b8a6; color: #fff; }
.badge-status-delivered { background-color: #22c55e; color: #fff; }
.badge-status-cancelled { background-color: #ef4444; color: #fff; }

.badge-status-pending { background-color: #f59e0b; color: #1f1500; }
.badge-status-active { background-color: #22c55e; color: #fff; }
.badge-status-suspended { background-color: #fb923c; color: #1f1500; }
.badge-status-blocked { background-color: #ef4444; color: #fff; }

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ===== Empty states ===== */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--brand-muted);
}

.empty-state .fs-1 {
    color: var(--brand-muted);
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.step-icon {
    color: var(--brand-primary);
}

.hero .display-5 i {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Stat tiles (dashboard) ===== */
.stat-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--brand-surface);
    padding: 1rem 1.1rem;
    text-align: right;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    --stat-color: var(--brand-primary);
}

.stat-tile::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--stat-color);
}

.stat-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-tile .stat-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.15rem;
    background: var(--stat-icon-bg, var(--brand-primary-light));
    color: var(--stat-color);
}

.stat-tile .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-ink);
    line-height: 1.1;
}

.stat-tile .stat-label {
    font-size: 0.78rem;
    color: var(--brand-muted);
    margin-top: 0.1rem;
    font-weight: 600;
}

.stat-tile-new { --stat-color: #3b82f6; --stat-icon-bg: #dbeafe; }
.stat-tile-claimed { --stat-color: #8b5cf6; --stat-icon-bg: #ede9fe; }
.stat-tile-progress { --stat-color: #f59e0b; --stat-icon-bg: #fef3c7; }
.stat-tile-completed { --stat-color: #14b8a6; --stat-icon-bg: #ccfbf1; }
.stat-tile-delivered { --stat-color: #22c55e; --stat-icon-bg: #dcfce7; }

/* ===== Chat / conversation ===== */
.chat-thread {
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--brand-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-border);
}

.chat-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.chat-row-mine { justify-content: flex-start; }
.chat-row-theirs { justify-content: flex-end; }

.chat-bubble {
    max-width: 75%;
    padding: 0.65rem 0.95rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.chat-bubble-mine {
    background-color: var(--brand-primary);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.chat-bubble-mine .chat-bubble-sender,
.chat-bubble-mine .chat-bubble-time {
    color: rgba(255, 255, 255, 0.75);
}

.chat-bubble-theirs {
    background-color: #fff;
    border: 1px solid var(--brand-border);
    border-bottom-right-radius: 4px;
}

.chat-bubble-sender {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--brand-muted);
}

.chat-bubble-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble-time {
    font-size: 0.68rem;
    color: var(--brand-muted);
    margin-top: 0.3rem;
}

/* ===== Next action card ===== */
.next-action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.next-action-icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.6);
}

.next-action-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.next-action-message {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.next-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.next-action-waiting {
    background: #f3f4f8;
    border-color: var(--brand-border);
    color: var(--brand-ink-soft);
}

.next-action-waiting .next-action-icon { color: var(--brand-muted); }

.next-action-info {
    background: #eef4ff;
    border-color: #d6e4ff;
    color: #1e429f;
}

.next-action-info .next-action-icon { color: #3b82f6; }

.next-action-attention {
    background: #fff7ed;
    border-color: #fde3c1;
    color: #9a5b0a;
}

.next-action-attention .next-action-icon { color: #f59e0b; }

.next-action-success {
    background: #ecfdf5;
    border-color: #c9f3e0;
    color: #146c48;
}

.next-action-success .next-action-icon { color: #22c55e; }

/* תג "על מי התור" (ownership) - ראה NextActionInfo.OwnershipLabel/OwnershipDotClass.
   נקודה צבעונית + טקסט קטן, לצד הכותרת "הצעד הבא" - במבט חטוף רואים אם זה בכלל התור שלך. */
.ownership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.ownership-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0; }
.ownership-dot-mine { background: #22c55e; }
.ownership-dot-waiting { background: #94a3b8; }
.ownership-dot-done { background: #3b82f6; }
.ownership-dot-none { background: #cbd5e1; }

/* ===== How it works (mini step guide) ===== */
.how-it-works {
    list-style: none;
    counter-reset: how-it-works-counter;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.how-it-works li {
    counter-increment: how-it-works-counter;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--brand-ink-soft);
}

.how-it-works li::before {
    content: counter(how-it-works-counter);
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--brand-border);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-muted);
}

.how-it-works li.how-it-works-done {
    color: var(--brand-ink);
    font-weight: 600;
}

.how-it-works li.how-it-works-done::before {
    content: "\2713";
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

/* ===== Print timer ===== */
.print-timer {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--brand-primary-light) 0%, #ffffff 70%);
    border: 1px solid var(--brand-border);
    text-align: center;
}

.print-timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    margin-bottom: 1rem;
}

.print-timer-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.print-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.print-timer-track {
    fill: none;
    stroke: var(--brand-border);
    stroke-width: 10;
}

.print-timer-progress {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

.print-timer-clock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.print-timer-clock-time {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-ink);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.print-timer-clock-label {
    font-size: 0.72rem;
    color: var(--brand-muted);
    font-weight: 600;
}

.print-timer-status {
    margin-top: 0.75rem;
    font-weight: 700;
    font-size: 0.88rem;
    min-height: 1.3em;
}

.print-timer-started-at {
    margin-top: 0.5rem;
    font-size: 0.76rem;
    color: var(--brand-muted);
}

.print-timer.print-timer-overtime .print-timer-progress {
    stroke: #ef4444;
}

.print-timer.print-timer-overtime .print-timer-clock-time {
    color: #dc2626;
}

.print-timer.print-timer-overtime .print-timer-track {
    stroke: #fecaca;
}

.print-timer.print-timer-no-estimate .print-timer-progress {
    stroke: var(--brand-border);
}

.print-timer.print-timer-no-estimate .print-timer-clock-time {
    color: var(--brand-muted);
    font-size: 1.1rem;
}

.print-timer.print-timer-no-estimate .print-timer-clock-label {
    max-width: 100px;
    line-height: 1.2;
}

.print-timer.print-timer-overtime .print-timer-status {
    color: #dc2626;
}

.print-timer-status.print-timer-status-ok {
    color: #22c55e;
}

/* ===== Mini timer (dashboard table) ===== */
.mini-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-light);
    padding: 0.3em 0.6em;
    border-radius: 999px;
    direction: ltr;
}

.mini-timer-overtime {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* ===== Timeline ===== */
.timeline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 4.5rem;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: calc(-50% + 1rem);
    left: calc(50% + 1rem);
    height: 2px;
    background: var(--brand-border);
}

.timeline-step.timeline-done:not(:last-child)::after {
    background: var(--brand-primary);
}

.timeline-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--brand-border);
    color: var(--brand-muted);
    font-size: 0.85rem;
    z-index: 1;
}

.timeline-done .timeline-dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.timeline-current .timeline-dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.timeline-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--brand-ink-soft);
    margin-top: 0.4rem;
}

.timeline-pending .timeline-label { color: var(--brand-muted); font-weight: 500; }

.timeline-time {
    font-size: 0.68rem;
    color: var(--brand-muted);
    font-weight: 400;
    margin-top: 0.1rem;
}

@media (max-width: 767.98px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .timeline-step {
        flex-direction: row;
        text-align: right;
        min-width: 0;
    }
    .timeline-step:not(:last-child)::after {
        display: none;
    }
    .timeline-label {
        margin-top: 0;
        margin-inline-start: 0.75rem;
    }
}

/* ===== Phase progress (4 שלבים עסקיים גדולים - ראה _PhaseProgress.cshtml) =====
   בכוונה נפרד ובולט יותר מ-.timeline (8 שלבים טכניים) - זה מה שמוצג ראשון/גדול,
   ה-timeline המפורט נשאר זמין מתחתיו ל"פרטים נוספים". */
.phase-progress {
    display: flex;
    align-items: center;
    padding: 0.25rem 0 0.75rem;
}

.phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
}

.phase-dot {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--brand-border);
    color: var(--brand-muted);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.phase-done .phase-dot {
    background: var(--good, #16a34a);
    border-color: var(--good, #16a34a);
    color: #fff;
}

.phase-current .phase-dot {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 5px var(--brand-primary-light);
}

.phase-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-ink-soft);
    margin-top: 0.45rem;
    white-space: nowrap;
}

.phase-pending .phase-label { color: var(--brand-muted); font-weight: 500; }
.phase-current .phase-label { color: var(--brand-primary-dark); }

.phase-connector {
    flex: 1 1 auto;
    height: 3px;
    background: var(--brand-border);
    margin: 0 0.4rem;
    align-self: center;
    margin-bottom: 1.6rem;
    min-width: 1.25rem;
}

.phase-connector-done { background: var(--good, #16a34a); }

@media (max-width: 575.98px) {
    .phase-label { font-size: 0.68rem; white-space: normal; max-width: 4.5rem; }
    .phase-dot { width: 2.25rem; height: 2.25rem; font-size: 0.9rem; }
    .phase-connector { margin: 0 0.15rem; margin-bottom: 1.3rem; }
}

/* ===== Price tag ===== */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.price-tag-paid {
    background-color: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

/* ===== Star rating (input) ===== */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    direction: ltr;
    gap: 0.15rem;
    border: none;
    padding: 0;
    margin: 0;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.star-rating label {
    font-size: 1.9rem;
    line-height: 1;
    color: #d8dae6;
    cursor: pointer;
    transition: color 0.1s ease, transform 0.1s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
}

.star-rating:hover label { transform: scale(1.05); }

/* ===== Star rating (read-only display) ===== */
.stars-display {
    color: #f59e0b;
    letter-spacing: 0.1em;
    font-size: 1.05rem;
}

/* ===== Dashboard header + KPI tiles ===== */
.dashboard-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-border);
}

.kpi-tile {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    background: var(--brand-surface);
    padding: 0.7rem 0.8rem;
    text-align: center;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.kpi-tile:hover { box-shadow: var(--shadow-sm); }

.kpi-tile-active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary) inset;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-ink);
    line-height: 1.1;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* ===== Attention section (dashboard) ===== */
.attention-section {
    background: #fff7ed;
    border: 1px solid #fde3c1;
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}

.attention-title {
    color: #9a5b0a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.attention-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #fde3c1;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
}

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

/* ===== Responsive table -> stacked cards on mobile ===== */
@media (max-width: 767.98px) {
    .responsive-table thead { display: none; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
        display: block;
        width: 100%;
    }
    .responsive-table tr {
        border: 1px solid var(--brand-border);
        border-radius: var(--radius-sm);
        margin-bottom: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        border: none;
        padding: 0.4rem 0;
        text-align: left;
    }
    .responsive-table td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--brand-muted);
        font-size: 0.78rem;
        flex-shrink: 0;
    }
    .responsive-table tbody tr:nth-of-type(odd) { background: none; }
}

/* ===== Inbox (message list) ===== */
.inbox-row {
    padding: 1rem 1.25rem;
    color: var(--brand-ink);
    border-color: var(--brand-border) !important;
    transition: background-color 0.15s ease;
}

.inbox-row:hover {
    background-color: var(--brand-primary-light);
}

.inbox-row-unread {
    background-color: #fbfbff;
    border-inline-start: 3px solid var(--brand-primary);
}

.inbox-row-unread .fw-bold {
    color: var(--brand-primary-dark);
}

/* ===== Breadcrumbs ===== */
.breadcrumb-nav {
    font-size: 0.82rem;
    color: var(--brand-muted);
}

.breadcrumb-nav a {
    color: var(--brand-muted);
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    color: var(--brand-primary);
}

.breadcrumb-nav span:last-child {
    color: var(--brand-ink-soft);
    font-weight: 600;
}

/* ===== Error page ===== */
.error-page {
    background: linear-gradient(160deg, var(--brand-primary-light) 0%, #ffffff 60%);
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.error-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 2.6rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    animation: error-wobble 2.5s ease-in-out infinite;
}

.error-icon-spark {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

@keyframes error-wobble {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-6deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    80% { transform: rotate(2deg); }
}

/* ===== Footer ===== */
footer {
    color: var(--brand-muted);
    border-top: 1px solid var(--brand-border);
}

/* ===== Date picker (flatpickr) ===== */
.flatpickr-calendar {
    direction: ltr;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
}

.flatpickr-day.selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* ===== Advanced controls (details/summary) ===== */
details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

details summary::-webkit-details-marker { display: none; }

details summary::before {
    content: "▸";
    font-size: 0.8rem;
    color: var(--brand-muted);
    transition: transform 0.15s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* ===== Misc ===== */
.list-group-item {
    border-color: var(--brand-border);
}

/* ===== Page fade-in ===== */
.container > .row,
.container > .card,
.container > .table-card,
.container > .hero {
    animation: page-fade-in 0.25s ease;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Mobile nav ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-primary));
        margin: 0.75rem -0.75rem -0.9rem;
        padding: 0.5rem 1rem 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .navbar .dropdown-menu {
        background: transparent;
        box-shadow: none;
        padding-inline-start: 1rem;
    }

    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.78);
    }

    .navbar .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

/* ===== Chip picker (בחירה מרובה - אזורים/ערים/מדפסות) ===== */
.chip-picker-box {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    background: var(--brand-surface);
    padding: 1rem 1.1rem;
}

.chip-search {
    max-width: 320px;
    margin-bottom: 0.85rem;
}

.chip-group-label {
    flex-basis: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.7rem;
}

.chip-group-label:first-child { margin-top: 0; }

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.chip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--brand-border);
    background: var(--brand-bg);
    color: var(--brand-ink-soft);
    font-size: 0.84rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.chip-toggle:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
}

.chip-toggle input[type="checkbox"] {
    display: none;
}

.chip-toggle .chip-check {
    display: none;
    font-size: 0.7rem;
}

.chip-toggle.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35);
}

.chip-toggle.active .chip-check {
    display: inline-block;
}

.chip-toggle.chip-hidden {
    display: none;
}

/* מספר המדפיסים הפעילים התואמים לאזור/עיר/דגם - ליד כל צ'יפ, כדי לתת ביטחון לפני ההרשמה. */
.chip-count {
    font-size: 0.74rem;
    opacity: 0.65;
}

.chip-toggle.active .chip-count {
    opacity: 0.85;
}

.chip-empty-hint {
    color: var(--brand-muted);
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.chip-swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    flex: none;
}

/* בחירת אופן קבלה (איסוף עצמי/משלוח) - כרטיס רדיו מלא-רוחב, לא chip-toggle (זה מיועד
   לתגי בחירה-מרובה קטנים/עגולים - radio לא כלול בסלקטור ה-hide שלו, ורוחב 100% מתנגש
   עם border-radius:100px שלו). ראה Views/Home/PostJob.cshtml. */
.delivery-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--brand-border);
    background: var(--brand-bg);
    color: var(--brand-ink-soft);
    cursor: pointer;
    user-select: none;
    width: 100%;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.delivery-method-option:hover {
    border-color: var(--brand-primary);
}

.delivery-method-option input[type="radio"] {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--brand-primary);
}

.delivery-method-option.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35);
}

.delivery-method-option.active .fw-semibold,
.delivery-method-option.active .text-muted {
    color: #fff !important;
}

/* ============================================================================
   דף הבית - מותג נפרד מהכלים הפנימיים (לוחות בקרה וכו'), משתמש באותם טוקנים
   (--brand-*) אבל בקנה מידה גדול יותר: הרבה whitespace, cards, hover, אנימציות
   עדינות. כל המחלקות בקידומת home- כדי לא להתנגש עם שום דבר אחר באתר.
   ============================================================================ */

.home-page { overflow-x: hidden; }

@keyframes home-float {
    0%, 100% { transform: translateY(0) rotate(var(--home-shape-rot, 0deg)); }
    50% { transform: translateY(-14px) rotate(var(--home-shape-rot, 0deg)); }
}

@keyframes home-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-reveal {
    opacity: 0;
}

.home-reveal.home-in {
    animation: home-fade-up 0.7s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal { opacity: 1; animation: none !important; }
    .home-shape { animation: none !important; }
}

/* חשיפה מונפשת של אזור שנחשף דינמית ב-JS (למשל "אני רוצה להדפיס את זה") - כדי שיהיה
   ברור שזה תוכן חדש שנפתח באותו עמוד, לא קפיצה פתאומית. הסלקטור לפי #id.class (לא רק
   .class) בכוונה - כדי לנצח את חוק ה-"page fade-in" הגנרי (".container > .card", ראו
   למעלה) שיש לו specificity גבוה יותר משתי מחלקות רגילות ומריץ אנימציה קצרה משלו (0.25s)
   שכבר מסתיימת עד שהגלילה נגמרת - זו הייתה הסיבה שהאנימציה בפועל לא הורגשה בכלל. */
@keyframes reveal-box-glow {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.45); }
    100% { box-shadow: 0 0 0 18px rgba(79, 70, 229, 0); }
}

#printConfigBox.reveal-box-in,
.reveal-box-in {
    animation: home-fade-up 0.6s ease forwards, reveal-box-glow 1s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-box-in { animation: none !important; }
}

/* ---- Hero ---- */
.home-hero {
    position: relative;
    background: radial-gradient(circle at 20% 15%, #eef2ff 0%, var(--brand-bg) 55%);
    border-radius: 28px;
    padding: 4.5rem 2rem 5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.home-hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.home-hero h1 .home-highlight {
    color: var(--brand-primary);
    position: relative;
}

.home-hero .home-subhead {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    color: var(--brand-ink-soft);
    margin-bottom: 0.9rem;
}

.home-hero .home-lede {
    color: var(--brand-muted);
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.home-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
}

.home-btn:hover { transform: translateY(-2px); text-decoration: none; }

.home-btn-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.55);
}

.home-btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }

.home-btn-secondary {
    background: #fff;
    color: var(--brand-ink);
    border-color: var(--brand-border);
    box-shadow: var(--shadow-sm);
}

.home-btn-secondary:hover { border-color: var(--brand-primary); color: var(--brand-primary-dark); }

.home-hero-footnote {
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.home-hero-footnote a {
    color: var(--brand-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.home-hero-footnote a:hover { text-decoration: underline; }

/* Floating decorative shapes - Bootstrap Icons already loaded, no new assets */
.home-shape {
    --home-shape-rot: 0deg;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22%;
    box-shadow: var(--shadow-lg);
    animation: home-float 6s ease-in-out infinite;
    pointer-events: none;
}

.home-shape i { font-size: 1.6rem; color: #fff; }

@media (max-width: 767.98px) {
    .home-shape { display: none; }
}

/* ---- Search ---- */
.home-search-box {
    max-width: 620px;
    margin: 0 auto 1rem;
    position: relative;
}

.home-search-box .form-control {
    height: 3.6rem;
    padding-inline-start: 3.4rem;
    padding-inline-end: 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--brand-border);
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
}

.home-search-box .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-primary-light);
}

.home-search-box i.bi-search {
    position: absolute;
    inset-inline-start: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--brand-muted);
    z-index: 3;
}

.home-search-box-with-btn .form-control {
    padding-inline-end: 7.5rem;
}

.home-search-submit {
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.6rem;
    padding: 0 1.1rem;
    border: none;
    border-radius: 100px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.home-search-submit:hover {
    background: var(--brand-primary-dark, var(--brand-primary));
}

.home-search-hint {
    font-size: 0.88rem;
    color: var(--brand-muted);
    margin-top: 0.75rem;
}

/* ---- Sections ---- */
.home-section {
    padding: 4rem 0;
}

.home-section-tint {
    background: var(--brand-primary-light);
    border-radius: 28px;
    margin: 1rem 0;
}

.home-section-alt {
    background: #fff7ec;
    border-radius: 28px;
    margin: 1rem 0;
}

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}

.home-section-head h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    font-weight: 900;
    padding-bottom: 0;
    margin-bottom: 0.7rem !important;
}

.home-section-head h2::after { display: none; }

.home-section-head p {
    color: var(--brand-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---- Audience cards ---- */
.home-audience-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-audience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.home-audience-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
}

.home-audience-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.home-audience-card p {
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
}

.home-audience-card .home-card-cta {
    font-weight: 700;
    color: var(--brand-primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.15s ease;
}

.home-audience-card .home-card-cta:hover { gap: 0.6rem; text-decoration: none; }

/* ---- "Print anything" showcase grid ---- */
.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

@media (min-width: 576px) {
    .home-showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-showcase-item {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-ink-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-showcase-item:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }

/* Photo variant - used only for the 6 "מה אפשר להדפיס" tiles, not the flow-diagram boxes */
.home-showcase-item.home-showcase-photo {
    position: relative;
    overflow: hidden;
    border: none;
    background-size: cover;
    background-position: center;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.85rem;
}

.home-showcase-item.home-showcase-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,12,26,0.78) 0%, rgba(10,12,26,0.08) 62%, rgba(10,12,26,0) 100%);
}

.home-showcase-item.home-showcase-photo span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-weight: 700;
}

.home-showcase-item.home-showcase-photo i { color: #fff; font-size: 1.1rem; }

.home-showcase-item i { font-size: 1.9rem; color: var(--brand-primary); }

/* ---- Flow steps (יש לך מדפסת) ---- */
.home-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.home-flow-step {
    flex: 1 1 150px;
    text-align: center;
    padding: 0 0.75rem;
    position: relative;
}

.home-flow-num {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.home-flow-step strong {
    display: block;
    font-size: 0.95rem;
}

.home-flow-arrow {
    display: none;
    align-items: center;
    color: var(--brand-primary);
    font-size: 1.4rem;
    padding-top: 0.6rem;
}

@media (min-width: 768px) {
    .home-flow-arrow { display: flex; }
}

/* ---- Stats ---- */
.home-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.home-stat-value {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
}

.home-stat-label {
    color: var(--brand-muted);
    font-weight: 600;
    margin-top: 0.4rem;
    font-size: 0.92rem;
}

/* ---- Final CTA ---- */
.home-final-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #6366f1 55%, var(--brand-primary-dark) 100%);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    color: #fff;
}

.home-final-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    font-weight: 900;
    padding-bottom: 0;
    margin-bottom: 0.6rem !important;
}

.home-final-cta h2::after { display: none; }

.home-final-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

.home-final-cta .home-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.home-final-cta .home-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    color: #fff;
}

.home-final-cta .home-btn-primary {
    background: #fff;
    color: var(--brand-primary-dark);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.25);
}

.home-final-cta .home-btn-primary:hover { background: #f3f0ff; color: var(--brand-primary-dark); }

@media (max-width: 767.98px) {
    .home-hero { padding: 3rem 1.25rem 3.5rem; border-radius: 20px; }
    .home-section { padding: 2.75rem 0; }
    .home-section-tint, .home-section-alt { border-radius: 20px; }
    .home-final-cta { border-radius: 20px; padding: 2.5rem 1.25rem; }
    .home-showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .home-flow-step { flex: 1 1 45%; margin-bottom: 1.5rem; }
}

/* ===== מאגר מודלים (Models catalog) ===== */
.models-search-hero {
    background: radial-gradient(circle at 20% 15%, #eef2ff 0%, var(--brand-bg) 55%);
    border-radius: 24px;
    padding: 2.25rem 1.75rem;
    text-align: center;
}

.models-search-form { max-width: 620px; margin: 0 auto; }

.models-filters-box {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 1.1rem;
}

.models-filter-link {
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    color: var(--brand-ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
}

.models-filter-link:hover { background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.models-filter-link.active { background: var(--brand-primary); color: #fff; font-weight: 700; }

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

@media (max-width: 991.98px) {
    .models-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .models-grid { grid-template-columns: 1fr; }
}

.model-card {
    display: block;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

.model-card-image {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-primary-light);
    position: relative;
}

.model-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--brand-primary-light), #f5f3ff);
}

/* כפתור אישור-לקיחת-עבודה לפני שסימנו את שני התנאים - עמעום בולט (לא רק ה-disabled
   העדין של Bootstrap) כדי שיהיה ברור מבלי לנסות ללחוץ שעוד לא אפשר. */
.claim-btn-pending {
    opacity: 0.45;
    filter: grayscale(40%);
}

.claim-row-missing {
    border-radius: 0.375rem;
    outline: 2px solid var(--bs-danger, #dc3545);
    outline-offset: 2px;
    animation: claim-row-shake 0.3s ease-in-out;
}

@keyframes claim-row-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.model-card-body { padding: 0.85rem 1rem 1rem; }
.model-card-title { font-weight: 800; margin-bottom: 0.3rem; }
.model-card-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--brand-muted); margin-bottom: 0.4rem; }
.model-card-license { font-size: 0.82rem; font-weight: 600; }

.model-gallery-main {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-primary-light);
    border-radius: var(--radius);
}

.model-gallery-thumbs { display: flex; gap: 0.5rem; }
.model-gallery-thumb {
    width: 64px; height: 64px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--brand-border);
}

.model-license-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
}

.model-license-printandsell { background: #ecfdf5; border-color: #a7f3d0; }
.model-license-personalprintonly { background: #fffbeb; border-color: #fde68a; }
.model-license-printwithattribution { background: #fff7ed; border-color: #fed7aa; }
.model-license-notallowed { background: #fef2f2; border-color: #fecaca; }
.model-license-unknown { background: #f3f4f6; border-color: #e5e7eb; }
