/* Base styles */
:root {
    --primary: #2f2fa2;
    --secondary: #1f4068;
    --accent: #00b4d8;
    --background: #f5f7fb;
    --text: #1c1c1c;
    --border: #dfe3eb;
    --spacing: 1rem;
    --max-width: 1100px;
    --access-font-scale: 1;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    transition: background-color 0.3s, color 0.3s;
    font-size: calc(1rem * var(--access-font-scale));
}

body.lang-he {
    direction: rtl;
    font-family: "Rubik", "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
    color: var(--accent);
}

.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.coin-rain,
.bird-flock {
    position: absolute;
    inset: 0;
}

.coin {
    position: absolute;
    top: -80px;
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 30% 30%, #ffe066 0%, #f1c40f 55%, #c68a13 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: coinFall linear infinite, coinFlip ease-in-out infinite;
    opacity: 0.9;
}

.coin::after {
    content: "₪";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.45);
}

.bird {
    position: absolute;
    top: 30%;
    width: 90px;
    height: 54px;
    animation: birdFlight linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.bird svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.85);
}

.bird.small {
    opacity: 0.85;
}

.bird.tiny {
    opacity: 0.7;
}

.hero {
    background: radial-gradient(circle at top left, rgba(47, 47, 162, 0.95), rgba(31, 64, 104, 0.95));
    color: #fff;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 1200;
}

.language-button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-button:hover,
.language-button:focus {
    background: rgba(255, 255, 255, 0.2);
}

.language-button.active {
    background: #fff;
    color: #0f172a;
}

body.lang-he .language-toggle {
    right: auto;
    left: 20px;
    direction: rtl;
}

.wizard-section,
.gallery-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(15, 35, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.wizard-section {
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.96));
}

.wizard-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(165, 180, 252, 0.25), transparent 60%);
    pointer-events: none;
}

.wizard-section h2,
.gallery-section h2 {
    margin-top: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.wizard-progress {
    position: relative;
    margin: 1.5rem auto 2.5rem;
    max-width: 520px;
    text-align: center;
    z-index: 1;
}

.wizard-progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.wizard-progress-bar span {
    display: block;
    height: 100%;
    width: 33%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: width 0.35s ease;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
}

.wizard-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    min-width: 80px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-steps li::before {
    content: attr(data-step-index);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.3);
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
}

.wizard-steps li.active {
    opacity: 1;
}

.wizard-steps li.active::before {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.wizard-steps li.completed {
    opacity: 0.85;
}

.wizard-steps li.completed::before {
    background: rgba(37, 99, 235, 0.12);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
    position: relative;
    z-index: 1;
}

.wizard-step.active {
    display: block;
}

.wizard-step label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step textarea,
.wizard-step input[type="password"],
.wizard-step select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    font-size: 1rem;
}

.sketch-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #f7f9fc;
}

.sketch-helper {
    margin: 0.25rem 0 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.sketch-section h4 {
    margin: 0 0 0.5rem;
}

.sketch-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sketch-toolbar label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin: 0;
}

.sketch-pad {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 35, 71, 0.08), 0 12px 28px rgba(15, 23, 42, 0.12);
    background: #fff;
    aspect-ratio: 16 / 9;
}

.sketch-pad canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.attachment-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.attachment-field input[type="file"] {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
    background: #fff;
}

.attachment-field small {
    font-weight: 400;
    color: #6b7280;
}

.attachment-field {
    text-align: left;
    align-items: flex-start;
}

body.lang-he .attachment-field {
    text-align: right;
    align-items: flex-end;
}

.request-summary {
    margin-top: 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(15, 35, 71, 0.08);
    padding: 1.75rem;
}

.summary-card {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: #f8fafc;
}

.summary-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.75rem 1rem;
}

.summary-card dt {
    font-weight: 700;
    color: var(--secondary);
}

.summary-card dd {
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.summary-card a {
    color: var(--primary);
    font-weight: 600;
}

.summary-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

body.lang-he .summary-card dl {
    grid-template-columns: 1fr minmax(140px, 220px);
}

body.lang-he .summary-card dt,
body.lang-he .summary-card dd {
    text-align: right;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1500;
    pointer-events: none;
}

.notification {
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    min-width: 260px;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.3);
    font-weight: 600;
    position: relative;
    pointer-events: auto;
}

.notification.info {
    background: rgba(37, 99, 235, 0.95);
}

.notification.success {
    background: rgba(16, 185, 129, 0.95);
}

.notification.warning {
    background: rgba(245, 158, 11, 0.95);
}

.notification.error {
    background: rgba(239, 68, 68, 0.95);
}

.notification-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.notification button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.sketch-toolbar .button {
    padding: 0.55rem 1.25rem;
}

.sketch-toolbar input[type="range"] {
    accent-color: var(--primary);
}

.sketch-toolbar input[type="color"] {
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    padding: 0;
    background: transparent;
}

body.lang-he .sketch-toolbar {
    flex-direction: row-reverse;
}

body.lang-he .sketch-toolbar label {
    flex-direction: row-reverse;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

body.lang-he .wizard-navigation {
    flex-direction: row-reverse;
}

.button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.button.secondary {
    background-color: var(--secondary);
}

.button.submit {
    background-color: var(--accent);
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.wizard-feedback {
    margin-top: 1.5rem;
    font-weight: 600;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-button {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.filter-button.active {
    background-color: var(--primary);
    color: #fff;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.media-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(15, 35, 71, 0.07);
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.media-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-meta {
    font-size: 0.9rem;
    color: #606060;
}

.media-actions {
    display: flex;
    gap: 1rem;
}

.reaction-button {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f7f9fc;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.reaction-button:hover,
.reaction-button:focus {
    background: #edf2fb;
}

.comments h4 {
    margin: 0;
}

.comment {
    background: #f7f9fc;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 700;
    margin-right: 0.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.comment-form input,
.comment-form textarea {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
}

.comment-form .button {
    align-self: flex-start;
}

.error-message {
    color: #b00020;
    font-weight: 600;
}

.status-message {
    font-weight: 600;
    color: var(--secondary);
}

.empty-state,
.empty-comment {
    color: #6b7280;
    text-align: center;
}

.accessibility-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    z-index: 1000;
}

body.lang-he .accessibility-button {
    right: auto;
    left: 20px;
}

.accessibility-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 260px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1001;
}

body.lang-he .accessibility-panel {
    right: auto;
    left: 20px;
    direction: rtl;
    text-align: right;
}

.accessibility-panel[aria-hidden="false"] {
    display: flex;
}

.accessibility-panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.access-option {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
}

.access-option:hover,
.access-option:focus {
    background: #e2e8f0;
}

.access-option.close {
    background: #1f2937;
    color: #fff;
}

.access-option.close:hover,
.access-option.close:focus {
    background: #111827;
}

.accessibility-high-contrast {
    background: #000;
    color: #fff;
}

.accessibility-high-contrast a {
    color: #8ecae6;
}

.accessibility-high-contrast .wizard-section,
.accessibility-high-contrast .gallery-section,
.accessibility-high-contrast .admin-container {
    background: #111827;
    color: #f9fafb;
    border: 1px solid #f9fafb;
}

.accessibility-high-contrast .hero {
    background: #000;
}

.accessibility-high-contrast .cta-button,
.accessibility-high-contrast .button,
.accessibility-high-contrast .access-option {
    background: #2563eb;
    color: #fff;
    border-color: #60a5fa;
}

.accessibility-high-contrast .access-option.close {
    background: #ef4444;
    border-color: #fca5a5;
}

.accessibility-high-contrast .media-card,
.accessibility-high-contrast .comment {
    background: #1f2937;
    color: #fff;
}

.accessibility-high-contrast .reaction-button {
    background: #111827;
    border-color: #f9fafb;
    color: #f9fafb;
}

.accessibility-high-contrast .accessibility-panel {
    background: #111827;
    color: #f9fafb;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #111;
    color: #fff;
}

.site-footer a {
    color: #8ecae6;
}

/* Admin styles */
.admin-body {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 2.5rem 1.25rem;
    min-height: 100vh;
}

.admin-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 35, 71, 0.14);
    position: relative;
    overflow: hidden;
}

.admin-container::before,
.admin-container::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.admin-container::before {
    top: -220px;
    right: -160px;
}

.admin-container::after {
    bottom: -200px;
    left: -140px;
}

.admin-container > * {
    position: relative;
    z-index: 1;
}

.admin-welcome {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.admin-heading h1 {
    margin: 0;
    font-size: 2.35rem;
    color: var(--secondary);
}

.admin-heading p {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    color: #475569;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.32);
}

.toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.85rem;
}

.admin-toolbar .button.secondary {
    margin-left: auto;
}

.logout-form {
    margin-left: auto;
}

.logout-form .button {
    white-space: nowrap;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.admin-progress {
    margin-bottom: 2.2rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.admin-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.admin-progress-label {
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.02em;
}

.admin-progress-value {
    font-weight: 700;
    color: #1d4ed8;
}

.admin-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.admin-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: inherit;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.branding-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding-bottom: 1.5rem;
}

.branding-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.branding-preview {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.branding-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    background: rgba(241, 245, 249, 0.8);
}

.branding-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.branding-form {
    flex: 1 1 240px;
    display: grid;
    gap: 0.9rem;
}

.branding-form input[type="file"] {
    border: 1px dashed rgba(59, 130, 246, 0.35);
    border-radius: 10px;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
}

.branding-form label {
    font-weight: 600;
    color: #1f2937;
    display: grid;
    gap: 0.35rem;
}

.admin-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.insight-card {
    background: rgba(248, 250, 252, 0.96);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 184px;
}

.insight-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1e293b;
}

.insight-caption {
    font-size: 0.9rem;
    color: #64748b;
}

.insight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.insight-list.numbered {
    counter-reset: insight-counter;
}

.insight-list.numbered li {
    counter-increment: insight-counter;
    padding-left: 2.2rem;
    position: relative;
}

.insight-list.numbered li::before {
    content: counter(insight-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.insight-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.insight-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    white-space: nowrap;
}

.insight-value small {
    color: #64748b;
    font-weight: 500;
    margin-left: 0.35rem;
}

.fab {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 22px 45px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1200;
}

.fab:hover,
.fab:focus {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px rgba(59, 130, 246, 0.45);
}

.button.ghost {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.button.ghost:hover,
.button.ghost:focus {
    background: rgba(59, 130, 246, 0.22);
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.summary-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.summary-card strong {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--secondary);
}

.summary-card small {
    color: #6b7280;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-card-caption {
    color: #6b7280;
    font-size: 0.92rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-card {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin: 1.5rem 0 0.75rem;
}

.admin-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #1f2937;
}

.admin-filter input,
.admin-filter select {
    min-width: 170px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.admin-filter .card-actions {
    margin-top: 0.5rem;
}

.admin-filter-result {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.admin-table tr:hover {
    background: #f6f7fb;
}

.table-wrapper {
    overflow-x: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-in-progress {
    background: #fef3c7;
    color: #b45309;
}

.badge-completed {
    background: #dcfce7;
    color: #15803d;
}

.badge-archived {
    background: #e5e7eb;
    color: #374151;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.35rem;
    margin-top: 0.35rem;
}

.chip:hover,
.chip:focus {
    background: #e0e7ff;
}

.chip.sketch {
    background: #fef9c3;
    color: #854d0e;
}

.chip.json {
    background: #f1f5f9;
    color: #0f172a;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.status-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.status-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    min-width: 140px;
}

.button.tertiary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.button.tertiary:hover,
.button.tertiary:focus {
    background: rgba(59, 130, 246, 0.1);
}

.button.danger {
    background: #dc2626;
    color: #fff;
    border: none;
}

.button.danger:hover,
.button.danger:focus {
    background: #b91c1c;
}

.button.small {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.media-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.9rem;
}

.media-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.admin-note {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0.3rem 0 0;
}

.request-details-row[hidden] {
    display: none;
}

.request-details {
    background: rgba(248, 250, 252, 0.96);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
    display: grid;
    gap: 1rem;
}

.request-details-meta {
    display: grid;
    gap: 1.2rem;
}

.request-details p {
    margin: 0;
    color: #1f2937;
    line-height: 1.55;
}

.request-details-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: #475569;
}

.details-label {
    display: block;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coin {
    animation-duration: var(--coin-duration, 8s), var(--coin-spin-duration, 1.6s);
    animation-delay: var(--coin-delay, 0s), var(--coin-spin-delay, 0s);
}

@keyframes coinFall {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--coin-shift, 0px));
        opacity: 0;
    }
}

@keyframes coinFlip {
    0%,
    100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(0.1);
    }
}

@keyframes birdFlight {
    0% {
        transform: translateX(-120px) translateY(var(--bird-tilt, 0px)) scaleX(1);
    }
    45% {
        transform: translateX(50vw) translateY(calc(var(--bird-tilt, 0px) * -1)) scaleX(1);
    }
    50% {
        transform: translateX(55vw) translateY(-6px) scaleX(-1);
    }
    95% {
        transform: translateX(105vw) translateY(var(--bird-tilt, 0px)) scaleX(-1);
    }
    100% {
        transform: translateX(110vw) translateY(var(--bird-tilt, 0px)) scaleX(-1);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 2rem 1.5rem;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .logout-form {
        width: 100%;
        margin-left: 0;
    }

    .logout-form .button {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-avatar {
        width: 160px;
        height: 160px;
    }

    .language-toggle {
        top: 12px;
        right: 12px;
    }

    body.lang-he .language-toggle {
        left: 12px;
    }

    .wizard-section,
    .gallery-section {
        padding: 1.5rem;
    }

    .wizard-progress {
        margin-bottom: 2rem;
    }

    .wizard-steps {
        font-size: 0.85rem;
    }

    .wizard-steps li::before {
        width: 24px;
        height: 24px;
    }

    .sketch-helper {
        font-size: 0.9rem;
    }

    .request-summary {
        padding: 1.5rem;
    }

    .summary-card dl {
        grid-template-columns: 1fr;
    }

    body.lang-he .summary-card dl {
        grid-template-columns: 1fr;
    }

    .sketch-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    body.lang-he .sketch-toolbar {
        align-items: flex-end;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-summary {
        grid-template-columns: 1fr;
    }

    .admin-insights {
        grid-template-columns: 1fr;
    }

    .status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .status-select {
        width: 100%;
    }

    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .fab {
        right: 1.5rem;
        bottom: 1.5rem;
        width: 52px;
        height: 52px;
    }
}

