/* === משתני בסיס === */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #f8fafc;
    --background-dark: #0f172a;
    --background-light: #1e293b;
    --accent-color: #fbbf24;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --border-radius: 12px;
    --transition: all 0.3s ease;

    /* עיצוב עמוד הרכישה (design-ref) */
    --g-bg: #0C111C;
    --g-surface: #141B2A;
    --g-surface-2: #1B2335;
    --g-surface-muted: #10151F;
    --g-line: #283249;
    --g-line-strong: #36415C;
    --g-text: #F2F4F8;
    --g-text-body: #C9D0DE;
    --g-text-2: #A9B2C6;
    --g-text-3: #8791A8;
    --g-accent: #FFC53D;
    --g-accent-hover: #FFD873;
    --g-on-accent: #1A1405;
    --g-teal: #3DD9C5;
    --g-teal-soft: rgba(61, 217, 197, .12);
    --g-danger: #FF8A8A;
    --g-font: 'IBM Plex Sans Hebrew', 'IBM Plex Sans', system-ui, sans-serif;
    --g-display: 'Karantina', 'IBM Plex Sans Hebrew', sans-serif;
}

/* === איפוס ובסיס === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
   overflow-y: auto; 
   overflow-x: hidden; 
   margin: 0;
   padding: 0;
   font-family: var(--g-font);
   font-weight: 400;
   direction: rtl;
   height: 100%; 
}

body {
    background: var(--g-bg);
    color: var(--g-text);
    line-height: 1.6;
    min-height: 100vh;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--g-accent); }
a:hover { color: var(--g-accent-hover); }
:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }

/* === מיכל האירוע === */
.event-container {
    max-width: 1280px;
    margin: 56px auto 0;
    padding: 0 24px 64px;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    z-index: 1;
}

.event-content {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* === סגנונות תמונה === */
.event-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.event-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* === פרטי האירוע === */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.event-details h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.event-info i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.custom-email {
    color: #ffcc00; 
    font-weight: bold;
    text-decoration: none; 
}

.custom-email:hover {
    text-decoration: underline; 
}

/* === אזור תיאור === */
.description {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 55vh;
    max-height: 400px;
    overflow-y: auto;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

.description::-webkit-scrollbar {
    width: 8px;
}

.description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.description::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
}

.description img, .event-content img {
    max-width: 400px !important;
    max-height: 700px !important;
    object-fit: contain !important;
    display: block;
    margin: 10px auto;
}

.event-image img {
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
}

/* === מיכל כרטיסים === */
.tickets-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.ticket-item {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.ticket-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* שורות הדחיפות יורדות מתחת לשם ולמחיר */
    row-gap: 8px;
}

/* שורות דחיפות (נותרו X / המחיר עולה בעוד...) - שורה מלאה מתחת לשם ולמחיר */
.urgency-box { flex-basis: 100%; order: 10; display: flex; flex-direction: column; gap: 6px; }
.round-notice { flex-basis: 100%; order: 11; font-size: 0.85rem; font-weight: 700; padding: 8px 12px; border-radius: 8px; line-height: 1.5; }
.round-notice.closed { background: rgba(248, 113, 113, 0.15); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.4); }
.round-notice.opened { background: rgba(74, 222, 128, 0.15); color: #bbf7d0; border: 1px solid rgba(74, 222, 128, 0.4); }
.urgency-line {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1.5;
}
.urgency-line.urgency-countdown-line { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.urgency-line.urgency-low { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.urgency-countdown { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }

.ticket-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-left: auto;
}

.ticket-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-right: 1rem;
    white-space: nowrap;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}

/* === בקרת כמות === */
.ticket-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    min-width: 120px;
    justify-content: center;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.quantity-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

.sold-message {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* === כפתורים === */
.buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 32px;
    background: var(--g-accent);
    color: var(--g-on-accent);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 0rem;
}

.buy-now:hover:not(:disabled) {
    background: var(--g-accent-hover);
    transform: translateY(-1px);
}

.buy-now:disabled {
    cursor: not-allowed;
    background: #222A3D;
    color: var(--g-text-3);
    pointer-events: none;
}

.buy-now-gray {
    background: #64748b;
    cursor: not-allowed;
}

/* === טפסים === */
.form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    min-height: 65vh;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    column-gap: 36px;
    margin-top: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    direction: rtl;
}

.form-group input::placeholder {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder {
    color: var(--accent-color);
    transform: translateY(10px);
    font-size: 0.9rem;
}

.form-group select:not([multiple]) {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-left: 2.5rem;
}

.form-group select option {
    background-color: var(--background-dark);
    color: var(--text-color);
    padding: 0.5rem;
}

.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group.error input, .form-group.error select, .form-group.error .custom-file-upload {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: right;
    transition: all 0.3s ease;
}

.form-group.error .error-message {
    display: block;
    animation: fadeIn 0.3s ease;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 120px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.custom-file-upload:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: var(--accent-color);
}

.upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-text .main-text { font-size: 16px; font-weight: 600; color: var(--text-color); }
.upload-text .sub-text { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.custom-file-upload i { font-size: 24px; color: var(--accent-color); }

.image-preview {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}
.image-preview img { width: 130px; height: 130px; display: block; object-fit: cover; }

/* === קופונים === */
.coupon-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    display: grid;
}

.btn_open_form_info {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
    text-align: center;
}

.btn_open_form_info:hover {
    background: var(--secondary-color);
}

/* === סיכום הזמנה === */
.order-details-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-items {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.discount-row { color: #22c55e; font-size: 0.95rem; }
.commission-row { color: #94a3b8; font-size: 0.95rem; }

/* === תפריט עליון === */
.menu-container {
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    height: 54px;
    max-width: 1800px;
    margin: 33px auto 13px auto;
    position: relative;
    z-index: 2;
}

.logo_card { cursor: pointer; width: 235px; top: -18px; position: absolute; }
.menu-container button {
    width: 21px; position: absolute; right: 10px; font-size: 2.5rem;
    background: transparent; border: 0; top: 6px; color: #3857b3;
}

/* === פופאפ הודעות === */
.popup-alert {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background-color: rgba(180, 126, 250, 0.9); color: white;
    padding: 15px 25px; border-radius: 8px; z-index: 1000;
    text-align: center; transition: top 0.5s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); min-width: 200px;
}
.popup-alert.show { top: 20px; }

/* === אנימציות === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px;
}
.loading-spinner i { font-size: 24px; color: var(--primary-color); animation: spin 1s linear infinite; }

/* כפתור "למעבר לתשלום" כשחסר משהו: נראה אפור, אבל לחיצה מציגה ליד כל שדה מה חסר */
.buy-now.is-incomplete { opacity: 0.5; background: #64748b; }
.buy-now.is-incomplete:hover { transform: none; }
.terms-container .error-message { display: none; }

/* ===================================================================
   עמוד האירוע - עיצוב חדש (design-ref, מסך 1)
   =================================================================== */
.ev-aside { display: flex; flex-direction: column; gap: 20px; }
.ev-main { gap: 32px; padding-top: 6px; }
.ev-card { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 20px; }
.ev-cap { font-size: 13px; color: var(--g-text-3); }

.ev-head { display: flex; flex-direction: column; gap: 12px; }
.ev-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--g-teal); }
.ev-status .ev-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-status.is-off { color: var(--g-text-3); }
.event-details h1.ev-title {
    margin: 0;
    font-family: var(--g-display);
    font-weight: 700;
    font-size: clamp(72px, 10vw, 148px);
    line-height: .82;
    letter-spacing: .01em;
    color: var(--g-text);
    overflow-wrap: anywhere;
}
.ev-by { font-size: 17px; color: var(--g-text-2); }

.ev-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ev-tile { display: flex; align-items: center; gap: 14px; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.ev-tile-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--g-surface-2); color: var(--g-accent); display: flex; align-items: center; justify-content: center; }
.ev-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-tile-val { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ev-nav-link { font-size: 13px; font-weight: 600; text-decoration: none; }

.ev-buybox { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 22px; }
.ev-buybox-info { display: flex; flex-direction: column; gap: 10px; }
.ev-label { font-size: 14px; color: var(--g-text-2); }
.ev-price { display: flex; align-items: baseline; gap: 8px; }
.ev-price-num { font-family: var(--g-display); font-weight: 700; font-size: 64px; line-height: .75; }
.ev-price-cur { font-size: 22px; font-weight: 600; }
.ev-price-was { font-size: 16px; color: var(--g-text-3); text-decoration: line-through; margin-inline-start: 6px; }
.ev-hot { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--g-accent); }
.ev-buybox .buy-now { width: auto; flex-shrink: 0; }
.ev-pill-muted { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--g-text-2); border: 1.5px solid var(--g-line-strong); border-radius: 999px; padding: 8px 16px; }

.ev-about { display: flex; flex-direction: column; gap: 12px; }
.ev-about h2 { margin: 0; font-size: 22px; font-weight: 700; }
.description.ev-desc {
    height: auto;
    max-height: none;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--g-text-body);
    overflow: hidden;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.description.ev-desc.is-open { display: block; -webkit-line-clamp: unset; }
.ev-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--g-accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.ev-more svg { transition: transform .2s ease; }
.ev-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* שאלות נפוצות (EventPage::buildFaq) */
.ev-faq { display: flex; flex-direction: column; gap: 10px; }
.ev-faq h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.ev-faq-item { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 14px; padding: 0 18px; }
.ev-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; font-size: 16px; font-weight: 600; color: var(--g-text); }
.ev-faq-item summary::-webkit-details-marker { display: none; }
.ev-faq-item summary svg { flex-shrink: 0; color: var(--g-accent); transition: transform .2s ease; }
.ev-faq-item[open] summary svg { transform: rotate(180deg); }
.ev-faq-item p { margin: 0 0 15px; font-size: 15px; line-height: 1.75; color: var(--g-text-body); overflow-wrap: anywhere; }
.ev-faq-item p.ev-faq-good { margin-top: -6px; color: #4ade80; font-weight: 600; }
.ev-faq-item p.ev-faq-warn { margin-top: -8px; color: var(--g-danger); font-size: 13px; }

.ev-producer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.ev-producer-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ev-avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--g-surface-2); border: 1px solid var(--g-line-strong); color: var(--g-accent); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.ev-producer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-producer-name { font-size: 17px; font-weight: 600; }
.ev-producer-mail { font-size: 14px; color: var(--g-text-2); text-align: right; overflow-wrap: anywhere; }

.ev-btn-outline { flex-shrink: 0; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--g-line-strong); border-radius: 12px; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--g-text); text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.ev-btn-outline:hover { border-color: var(--g-accent); color: var(--g-text); }
.ev-btn-block { width: 100%; }
/* פרופיל מפיק בעמוד האירוע: לוגו, קישור לעמוד המפיק, מעקב */
.ev-by a { color: var(--g-text); text-decoration: underline; text-decoration-color: var(--g-line-strong); text-underline-offset: 4px; }
.ev-by a:hover { color: var(--g-accent); }
.ev-avatar { overflow: hidden; }
.ev-avatar img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; max-width: none !important; }
a.ev-producer-name { color: var(--g-text); text-decoration: none; }
a.ev-producer-name:hover { color: var(--g-accent); }
.ev-producer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-follow.is-on { border-color: #FB7185; color: #FB7185; }
.ev-follow.is-on i { color: #FB7185; }
.ev-follow:disabled { opacity: .6; cursor: default; }

/* "רוצה להרוויח מהאירוע הזה?" (התוכן נבנה ב-loadReferralBox) */
.ev-ref { padding: 22px 24px; flex-direction: column; gap: 12px; text-align: right; }
.ev-ref[style*="block"] { display: flex !important; }
.ev-ref-head { display: flex; align-items: center; gap: 12px; }
.ev-ref-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.ev-ref-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--g-teal-soft); color: var(--g-teal); display: flex; align-items: center; justify-content: center; }
.ev-ref-text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--g-text-2); }
.ev-ref-link { display: flex; gap: 8px; }
.ev-ref-link input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; background: var(--g-surface-2); border: 1.5px solid var(--g-line-strong); border-radius: 12px; color: var(--g-text); font-size: 14px; }

/* ===================================================================
   שלבי הרכישה - מסך 2 (בחירת כרטיסים) + סיכום משותף לשלבים 2-3 (design-ref)
   #evFlow[data-step] נקבע ב-setCheckoutStep (card_event.js)
   =================================================================== */
.ck-steps, .ck-progress, .ck-summary { display: none; }
#evFlow:not([data-step="1"]) .ck-steps { display: flex; }
#evFlow:not([data-step="1"]) .ck-summary { display: flex; }
#evFlow:not([data-step="1"]) .ev-aside { display: none; }
#evFlow:not([data-step="1"]) .event-content { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
#evFlow:not([data-step="1"]) { margin-top: 36px; }

/* מד שלבים */
.ck-steps { align-items: center; gap: 16px; margin: 0 0 44px; }
.ck-step { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--g-text-3); background: none; border: 0; padding: 0; font: inherit; }
button.ck-step { cursor: default; }
.ck-step-dot { width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--g-line-strong); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.ck-step-check { display: none; }
.ck-step-label { font-size: 16px; font-weight: 500; }
.ck-step-line { flex-grow: 1; height: 2px; border-radius: 2px; background: var(--g-line); }
.ck-step-line.is-done { background: var(--g-teal); opacity: .5; }
.ck-step.is-current { color: var(--g-text); }
.ck-step.is-current .ck-step-dot { border: 0; background: var(--g-accent); color: var(--g-on-accent); font-weight: 700; }
.ck-step.is-current .ck-step-label { font-weight: 600; }
.ck-step.is-done { color: var(--g-text-2); }
button.ck-step.is-done { cursor: pointer; }
.ck-step.is-done .ck-step-dot { border: 0; background: rgba(61, 217, 197, .14); color: var(--g-teal); }
.ck-step.is-done .ck-step-num { display: none; }
.ck-step.is-done .ck-step-check { display: block; }

/* עמודת התוכן */
/* ה-JS מציג את השלב עם style.display = 'block', לכן רווחים ב-margin ולא ב-gap */
.tickets-container.ck-main { background: none; padding: 0; border-radius: 0; }
.ck-main > * + * { margin-top: 24px; }
.ck-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ck-title { margin: 0; font-family: var(--g-display); font-weight: 700; font-size: 76px; line-height: .8; color: var(--g-text); }
.ck-hot { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 197, 61, .10); color: var(--g-accent); font-size: 14px; font-weight: 500; }
.ck-subtitle { margin: 8px 0 0; font-size: 22px; font-weight: 700; }
.ck-tickets, .ck-addons { display: flex; flex-direction: column; gap: 14px; }

/* כרטיס סבב: מידע | קו מקווקו | סטאב עם בורר כמות */
.ticket-item.ck-ticket {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--g-surface);
    border: 1.5px solid var(--g-line);
    border-radius: 20px;
    transition: border-color .2s ease;
}
.ticket-item.ck-ticket:hover { background: var(--g-surface); transform: none; border-color: var(--g-line-strong); }
.ticket-item.ck-ticket.is-selected { border-color: var(--g-accent); }
.ck-ticket .ticket-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 26px; }
.ck-ticket-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ck-ticket .ticket-name { margin: 0; font-size: 20px; font-weight: 600; color: var(--g-text); }
.ck-save { font-size: 13px; font-weight: 600; color: var(--g-teal); background: var(--g-teal-soft); padding: 3px 10px; border-radius: 999px; }
.ck-price { display: flex; align-items: baseline; gap: 6px; }
.ck-price-num { font-family: var(--g-display); font-weight: 700; font-size: 58px; line-height: .75; color: var(--g-text); }
.ck-price-cur { font-size: 18px; font-weight: 600; }
.ck-price-was { font-size: 15px; color: var(--g-text-3); text-decoration: line-through; margin-inline-start: 6px; }
.ck-price-sm .ck-price-num { font-size: 40px; }
/* מחיר כולל: המספר הגדול = כרטיס + עלות שירות, ושורת פירוט מתחת */
.ck-fee-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g-text-3); line-height: 1.5; }
.ev-fee-note { font-size: 13px; color: var(--g-text-3); }
.ck-addon-desc { font-size: 14px; color: var(--g-text-2); line-height: 1.6; }
.ck-stub { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-right: 2px dashed var(--g-line); margin: 16px 0; }
.ck-stub .quantity-control { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 4px; background: var(--g-surface-2); border-radius: 14px; }
.ck-stub .quantity-btn { width: 44px; height: 44px; border-radius: 10px; background: transparent; color: var(--g-text); font-size: 18px; }
.ck-stub .quantity-btn.plus { background: var(--g-accent); color: var(--g-on-accent); }
.ck-stub .quantity-btn:hover:not(:disabled) { transform: none; background: var(--g-line); }
.ck-stub .quantity-btn.plus:hover:not(:disabled) { background: var(--g-accent-hover); }
.ck-stub .quantity-btn:disabled { background: transparent; opacity: .35; }
.ck-stub .quantity-btn.plus:disabled { background: var(--g-line); color: var(--g-text-3); opacity: .6; }
.ck-stub .quantity-value { min-width: 34px; font-size: 22px; font-weight: 700; color: var(--g-text); }
.ck-line-total { font-size: 13px; color: var(--g-text-2); min-height: 1em; }
.ck-stub .sold-message { font-size: 14px; font-weight: 600; color: var(--g-text-2); border: 1.5px solid var(--g-line-strong); border-radius: 999px; padding: 6px 14px; text-align: center; }
.ticket-item.ck-ticket.sold { background: var(--g-surface-muted); border-color: #222A3D; }
.ticket-item.ck-ticket.sold .ticket-info { opacity: .55; }
.ck-ticket .urgency-box { order: 0; }
.ck-ticket .round-notice { order: 0; align-self: stretch; }

/* כרטיס גמיש */
.ck-flex { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 18px; cursor: pointer; background: rgba(61, 217, 197, .06); border: 1px solid rgba(61, 217, 197, .3); }
.ck-flex input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--g-accent); }
.ck-flex-title { font-weight: 700; }
.ck-flex-title #flex-price { color: var(--g-teal); }
.ck-flex-text { font-size: 14px; color: var(--g-text-2); margin-top: 4px; line-height: 1.6; }

/* סיכום ההזמנה (aside) */
.ck-summary { flex-direction: column; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 22px; overflow: hidden; position: sticky; top: 20px; }
.ck-sum-event { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--g-line); }
.ck-sum-event img { width: 76px !important; height: 76px; max-width: none !important; margin: 0 !important; flex-shrink: 0; border-radius: 14px; object-fit: cover !important; }
.ck-sum-event-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-sum-name { font-family: var(--g-display); font-weight: 700; font-size: 38px; line-height: .8; }
.ck-sum-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--g-text-2); }
.ck-sum-meta svg { flex-shrink: 0; }
.ck-sum-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.ck-sum-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
.ck-edit { display: none; background: none; border: 0; padding: 0; color: var(--g-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
#evFlow[data-step="3"] .ck-edit { display: inline; }
.ck-summary .order-items { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ck-line span:first-child { color: var(--g-text-body); }
.ck-line span:last-child { font-weight: 600; white-space: nowrap; }
.ck-line.is-save, .ck-line.is-discount { font-size: 14px; }
.ck-line.is-save span, .ck-line.is-discount span { color: var(--g-teal) !important; }
.ck-line.is-fee span { color: var(--g-text-2) !important; font-size: 14px; }
.ck-empty { font-size: 14px; color: var(--g-text-3); }
.ck-cashback { font-size: 13px; line-height: 1.5; color: var(--g-teal); background: var(--g-teal-soft); padding: 8px 12px; border-radius: 10px; }

.ck-summary .coupon-container { margin: 4px 0 0; padding: 0; background: none; border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
#evFlow[data-step="3"] .ck-summary .coupon-container { display: none !important; }
.ck-coupon-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; background: none; border: 0; padding: 0; color: var(--g-accent); font-size: 15px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.ck-coupon-row { display: flex; gap: 8px; }
.ck-coupon-row input { flex-grow: 1; min-width: 0; height: 48px; background: var(--g-surface-2); border: 1.5px solid var(--g-line-strong); border-radius: 12px; padding: 0 14px; color: var(--g-text); font-size: 16px; }
.ck-coupon-row input::placeholder { color: #7F89A1; }
.ck-coupon-apply { height: 48px; padding: 0 18px; border-radius: 12px; background: transparent; border: 1.5px solid var(--g-accent); color: var(--g-accent); font-size: 15px; font-weight: 600; cursor: pointer; }
#couponMessage { font-size: 14px; }

.total-summary.ck-sum-foot { padding: 20px 22px 22px; border-top: 1px solid var(--g-line); display: flex; flex-direction: column; gap: 16px; }
.ck-sum-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ck-sum-total-label { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; font-size: 15px; color: var(--g-text-2); }
.ck-count { display: none; font-size: 13px; }
.ck-sum-total-num { display: flex; align-items: baseline; gap: 6px; }
.ck-summary .total-amount { font-family: var(--g-display); font-weight: 700; font-size: 58px; line-height: .75; color: var(--g-text); }
.ck-sum-cur { font-size: 20px; font-weight: 600; }
.ck-sum-foot .buy-now { min-height: 58px; border-radius: 14px; font-size: 17px; }
/* פירוט המחיר (נפתח בלחיצה): מחיר הכרטיסים, הנחה, תוספות, עלות שירות, כרטיס גמיש */
.ck-breakdown-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin-top: -6px; color: var(--g-text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.ck-breakdown-btn svg { transition: transform .2s ease; }
.ck-breakdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ck-breakdown { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--g-surface-2); }
.ck-breakdown[hidden] { display: none; }
.ck-breakdown .ck-line { font-size: 14px; }
.ck-breakdown-note { font-size: 12px; color: var(--g-text-3); line-height: 1.5; }
.ck-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--g-text-3); }
#evFlow[data-step="3"] .ck-secure { display: none; }

/* === רספונסיביות === */
@media (max-width: 1024px) {
    /* בלי backdrop-filter: הוא הופך את המיכל לבסיס של position:fixed, והכפתור הצף נתקע בתחתית המיכל במקום המסך */
    .event-container { margin: 0; padding: 1.5rem; padding-bottom: 100px; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .event-content { grid-template-columns: 1fr; }
    .menu-container { width: 90%; }
    /* תמונה בעמודה אחת: לא על כל רוחב המסך */
    .event-image { max-width: 520px; margin: 0 auto; }
    .event-image img { max-height: 70vh !important; object-fit: contain; }
    /* כפתור הפעולה של השלב הנוכחי צמוד לתחתית המסך */
    .buy-now.sticky-action {
        position: fixed; bottom: 12px; left: 12px; right: 12px;
        width: auto; margin: 0 !important; z-index: 1000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 768px) {
    .description img, .event-content img { max-width: 250px !important; max-height: 550px !important; }
    .form-container { grid-template-columns: 1fr; }
    .description { max-height: none; margin-bottom: 5vh; }
    .event-details h1 { font-size: 2rem; }
    .ticket-item { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .ticket-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .ticket-price { margin-right: 0; }
    .quantity-control { width: 100%; justify-content: space-between; }
    .form-wrapper { padding: 0; }
    .mobile-buttons {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--background-dark); padding: 10px; z-index: 1000;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    }
    .mobile-buttons .buy-now { margin: 0; border-radius: 8px; }
}
.original-price {
    text-decoration: line-through;
    color: #ff6b6b;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.original-price::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #ff6b6b;
}

/* עמוד האירוע (design-ref) - טאבלט וטלפון */
@media (max-width: 1024px) {
    .event-container { margin-top: 24px; padding: 0 16px 110px; }
    .event-content { grid-template-columns: 1fr; gap: 24px; }
    /* פוסטר → פרטים → "רוצה להרוויח" */
    .ev-aside { display: contents; }
    .ev-aside .event-image { order: 0; max-width: 460px; width: 100%; margin: 0 auto; }
    #part_one_buy_tickets { order: 1; }
    #referral-box { order: 2; }
    .event-image img { max-height: none !important; }
    .ev-buybox .buy-now.sticky-action { width: auto; }
}
@media (max-width: 768px) {
    .ev-main { gap: 24px; }
    .ev-tiles { grid-template-columns: 1fr; }
    .ev-buybox { padding: 20px; }
    .ev-price-num { font-size: 52px; }
    .ev-producer { flex-wrap: wrap; }
    .ev-producer-actions { width: 100%; }
    .ev-producer-actions .ev-btn-outline { flex: 1; }
}

/* שלבים 2-3 (design-ref) - טאבלט וטלפון */
@media (max-width: 1024px) {
    #evFlow:not([data-step="1"]) { margin-top: 20px; }
    #evFlow:not([data-step="1"]) .event-content { grid-template-columns: 1fr; gap: 20px; }
    #evFlow:not([data-step="1"]) .ck-steps { display: none; }
    #evFlow:not([data-step="1"]) .ck-progress { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
    .ck-progress-text { font-size: 13px; color: var(--g-text-3); }
    .ck-progress-bar { display: flex; gap: 6px; }
    .ck-progress-bar i { flex-grow: 1; height: 4px; border-radius: 2px; background: var(--g-line); }
    .ck-progress-bar i.is-on { background: var(--g-accent); }
    .ck-summary { position: static; }
    .ck-title { font-size: 50px; }
    /* בשלב 2: סה"כ + כפתור בפס תחתון קבוע */
    #evFlow[data-step="2"] .ck-sum-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--g-surface); border-top: 1px solid var(--g-line); }
    #evFlow[data-step="2"] .ck-sum-foot .ck-secure { display: none; }
    #evFlow[data-step="2"] .ck-sum-foot .ck-breakdown-btn, #evFlow[data-step="2"] .ck-sum-foot .ck-breakdown { display: none; }
    #evFlow[data-step="2"] .ck-count { display: block; }
    #evFlow[data-step="2"] .ck-pay-label { display: none; }
    #evFlow[data-step="2"] .ck-sum-total { flex-direction: column; align-items: flex-start; gap: 6px; flex-shrink: 0; }
    #evFlow[data-step="2"] .ck-summary .total-amount { font-size: 40px; }
    .ck-sum-foot .buy-now.sticky-action { position: static; width: auto; flex-grow: 1; box-shadow: none; min-height: 54px; }
}
@media (max-width: 768px) {
    .ticket-item.ck-ticket { flex-direction: row; }
    .ck-ticket .ticket-info { padding: 16px; gap: 10px; }
    .ck-ticket .ticket-name { font-size: 17px; }
    .ck-price-num { font-size: 42px; }
    .ck-stub { width: auto; border-right: 0; margin: 0; padding: 16px 12px 16px 16px; }
    .ck-stub .quantity-control { width: auto; justify-content: center; }
    .ck-line-total { display: none; }
}

/* ===== אפשרויות לסוג כרטיס: הערה, כרטיס זוגי, מחיר חופשי ===== */
.ck-ticket-note { font-size: 13px; color: #64748b; margin: 2px 0 6px; line-height: 1.5; }
.ck-entries { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #0d70a3; background: #e6f3fa; border-radius: 999px; padding: 2px 10px; }
.ck-price-from { font-size: 13px; color: #64748b; margin-inline-end: 4px; }
.ck-free-price { margin-top: 8px; }
.ck-free-price label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.ck-free-input { display: flex; align-items: center; gap: 6px; max-width: 180px; }
.ck-free-input input { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; font-weight: 700; }
.ck-free-input input.is-invalid { border-color: #dc2626; }
.ck-free-error { display: none; color: #dc2626; font-size: 13px; font-weight: 600; margin-top: 4px; }

/* ===== תגיות וגלריה בעמוד האירוע ===== */
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ev-tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; text-decoration: none; background: #e6f3fa; color: #0d70a3; }
.ev-tag-music { background: #f1f5f9; color: #334155; }
.ev-tag:hover { filter: brightness(.95); }
.ev-gallery { margin-top: 24px; }
.ev-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ev-gallery-item { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: #f1f5f9; }
.ev-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ev-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.ev-lb-close, .ev-lb-prev, .ev-lb-next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.ev-lb-close { top: 16px; left: 16px; }
.ev-lb-prev { right: 16px; top: 50%; transform: translateY(-50%); }
.ev-lb-next { left: 16px; top: 50%; transform: translateY(-50%); }

/* ===== קופה: שאלות מההפקה וכללי השתתפות ===== */
.ck-questions, .ck-rules { margin: 20px 0; text-align: right; }
.ck-q-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.ck-q label small { color: #94a3b8; font-weight: 400; }
.ck-q select, .ck-q input { width: 100%; }
.ck-rules-text { max-height: 180px; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: rgba(148,163,184,.12); font-size: 14px; line-height: 1.7; }

/* קובץ מהרוכש */
.ck-buyer-file { margin: 20px 0; }

/* סרטונים בגלריה (עמוד האירוע) */
.ev-gallery-item { position: relative; }
.ev-gallery-item.is-video { background: #0f172a; }
.ev-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ev-play i { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding-inline-start: 3px; }
.ev-lb-media { max-width: 100%; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.ev-lb-media img, .ev-lb-media video { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* ===================================================================
   שלבי הרכישה - מסך 3: פרטי המזמין / המשתתפים (design-ref: Tickets.dc, MobileDetails.dc)
   =================================================================== */
#part_three_buy_tickets .form-wrapper { background: none; padding: 0; min-height: 0; max-width: none; margin: 0; text-align: right; border-radius: 0; display: flex; flex-direction: column; gap: 24px; }
.ck-head { display: flex; flex-direction: column; gap: 12px; }
#part_three_buy_tickets .ck-title { color: var(--g-text); margin: 0; }
.ck-lead { margin: 0; font-size: 16px; color: var(--g-text-2); line-height: 1.6; }
.ck-card { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.ck-mini { display: none; }

/* שדות */
#part_three_buy_tickets .form-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin: 0; }
#part_three_buy_tickets .form-group { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#part_three_buy_tickets .ck-full { grid-column: 1 / -1; }
.ck-label { font-size: 14px; font-weight: 600; color: var(--g-text-body); }
.ck-label small, .ck-muted { color: var(--g-text-3); font-weight: 400; }
#part_three_buy_tickets .form-group input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
#part_three_buy_tickets .form-group select,
.ck-wallet-row input {
    height: 52px; width: 100%; box-sizing: border-box; margin: 0;
    background: var(--g-surface-2); border: 1.5px solid var(--g-line-strong); border-radius: 12px;
    padding: 0 16px; color: var(--g-text); font-family: inherit; font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}
#part_three_buy_tickets input[dir="ltr"] { text-align: right; }
#part_three_buy_tickets input::placeholder { color: #7F89A1; transition: none; }
#part_three_buy_tickets .form-group input:focus::placeholder { color: #7F89A1; transform: none; font-size: inherit; }
#part_three_buy_tickets .form-group input:focus, #part_three_buy_tickets .form-group select:focus, .ck-wallet-row input:focus {
    outline: none; border-color: var(--g-accent); background-color: var(--g-surface-2); box-shadow: 0 0 0 3px rgba(255, 197, 61, .14);
}
#part_three_buy_tickets .form-group select option { background: var(--g-surface); color: var(--g-text); }
#part_three_buy_tickets .form-group.error input, #part_three_buy_tickets .form-group.error select { border-color: var(--g-danger); background-color: rgba(255, 138, 138, .06); }
#part_three_buy_tickets .error-message { margin: 0; color: var(--g-danger); font-size: 13.5px; font-weight: 500; }

/* מין: שני כפתורים */
.ck-seg { display: flex; gap: 10px; }
.ck-seg-btn {
    flex: 1 1 0; height: 52px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--g-surface-2); border: 1.5px solid var(--g-line-strong); border-radius: 12px;
    color: var(--g-text-body); font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.ck-seg-btn::before { content: ''; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--g-line-strong); transition: border .2s; }
.ck-seg-btn:hover { border-color: #4A5677; }
.ck-seg-btn.is-on { border-color: var(--g-accent); background: rgba(255, 197, 61, .10); color: var(--g-accent); }
.ck-seg-btn.is-on::before { border: 5px solid var(--g-accent); }
#part_three_buy_tickets .form-group.error .ck-seg-btn { border-color: var(--g-danger); }

/* העלאת קבצים */
#part_three_buy_tickets .custom-file-upload { min-height: 110px; padding: 18px; background: var(--g-surface-2); border: 1.5px dashed var(--g-line-strong); border-radius: 14px; }
#part_three_buy_tickets .custom-file-upload:hover { border-color: var(--g-accent); background: var(--g-surface-2); }
#part_three_buy_tickets .form-group.error .custom-file-upload { border-color: var(--g-danger); }
#part_three_buy_tickets .upload-text .main-text { color: var(--g-text); font-size: 15px; }
#part_three_buy_tickets .upload-text .sub-text { color: var(--g-text-3); font-size: 13px; }
#part_three_buy_tickets .custom-file-upload i { color: var(--g-accent); font-size: 22px; }

/* תמונה שנבחרה: התצוגה המקדימה במקום האייקון והטקסט */
#part_three_buy_tickets .image-preview:not(:empty) { display: block; margin: 0; }
#part_three_buy_tickets .image-preview img { width: auto !important; height: auto !important; max-width: 160px !important; max-height: 120px !important; border-radius: 10px !important; margin: 0 !important; object-fit: cover; }
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > i,
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > .main-text { display: none !important; }
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > .sub-text { display: block !important; }
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > .sub-text::before { content: 'לחיצה להחלפת התמונה'; }
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > .sub-text { font-size: 0; }
#part_three_buy_tickets .upload-text:has(.image-preview:not(:empty)) > .sub-text::before { font-size: 13px; }

/* כמה משתתפים: כרטיס לכל אחד */
.ck-people { display: flex; flex-direction: column; gap: 12px; }
.ck-person { border: 1.5px solid var(--g-line); border-radius: 18px; background: var(--g-surface-muted); transition: border-color .2s; }
.ck-person.is-open { border-color: var(--g-line-strong); }
.ck-people .ck-person:only-child { border: 0; background: none; }
.ck-person form { padding: 4px 20px 22px; }
.ck-people .ck-person:only-child form { padding: 0; }
.ck-person-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: none; border: 0; color: var(--g-text); font-family: inherit; text-align: right; cursor: pointer; }
.ck-person-num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--g-surface-2); border: 1.5px solid var(--g-line-strong); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ck-person.is-open .ck-person-num { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-on-accent); }
.ck-person-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-person-title b { font-size: 16px; }
.ck-person-name { font-size: 13px; color: var(--g-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-person-state { display: none; width: 26px; height: 26px; border-radius: 50%; background: var(--g-teal-soft); color: var(--g-teal); align-items: center; justify-content: center; font-size: 12px; }
.ck-person.is-complete .ck-person-state { display: flex; }
.ck-person-chev { color: var(--g-text-3); transition: transform .2s; flex-shrink: 0; }
.ck-person.is-open .ck-person-chev { transform: rotate(180deg); }

/* ארנק / קאשבק */
.ck-wallet { align-items: flex-start; gap: 16px; background: rgba(61, 217, 197, .06); border: 1px solid rgba(61, 217, 197, .3); border-radius: 18px; padding: 18px 20px; }
.ck-wallet-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: rgba(61, 217, 197, .14); color: var(--g-teal); display: flex; align-items: center; justify-content: center; }
.ck-wallet-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ck-wallet-title { font-size: 16px; font-weight: 600; color: var(--g-text); }
.ck-wallet-text { font-size: 14px; line-height: 1.55; color: var(--g-text-2); }
.ck-wallet-note { font-size: 13px; color: var(--g-text-3); }
.ck-teal { color: var(--g-teal); }
.ck-wallet-row { display: flex; gap: 10px; margin-top: 6px; }
.ck-wallet-row input { height: 46px; flex: 1; min-width: 0; }
.ck-btn-teal { flex-shrink: 0; height: 46px; padding: 0 20px; border-radius: 12px; background: transparent; border: 1.5px solid var(--g-teal); color: var(--g-teal); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ck-btn-teal:hover { background: rgba(61, 217, 197, .1); }
.ck-wallet-msg { font-size: 14px; }
.ck-wallet-msg:empty { display: none; }
.ck-wallet-use { margin-top: 6px; }
.ck-wallet-sum { font-size: 14px; color: var(--g-text-body); }
.ck-wallet-sum:empty { display: none; }

/* שאלות מההפקה, קובץ, כללי השתתפות */
#part_three_buy_tickets .ck-questions, #part_three_buy_tickets .ck-rules, #part_three_buy_tickets .ck-buyer-file { margin: 0; display: flex; flex-direction: column; gap: 14px; }
#part_three_buy_tickets .ck-q-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--g-text); }
#part_three_buy_tickets .ck-rules-text { background: var(--g-surface-2); border: 1px solid var(--g-line); color: var(--g-text-body); }

/* תיבות סימון */
#part_three_buy_tickets .terms-container { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ck-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #E3E7EF; cursor: pointer; margin: 0; }
.ck-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--g-accent); cursor: pointer; }
.ck-check a { color: var(--g-accent); text-decoration: none; }
.ck-check a:hover { color: var(--g-accent-hover); text-decoration: underline; }
#part_three_buy_tickets .ck-check-error { padding-inline-start: 34px; margin-top: -6px; }

/* כפתור התשלום */
#part_three_buy_tickets .ck-pay-btn { display: flex !important; width: 100%; min-height: 60px; border-radius: 14px; gap: 10px; font-size: 18px; margin: 0; }
#part_three_buy_tickets .ck-pay-btn.is-incomplete { opacity: 1; background: var(--g-line-strong); color: var(--g-text-2); }
#part_three_buy_tickets .ck-pay-btn.is-incomplete:hover { background: #404C6A; }

/* בשלב 3 הסיכום בצד: הכפתור "המשך" לא רלוונטי */
#evFlow[data-step="3"] #continue-button { display: none !important; }

/* ===== טלפון וטאבלט ===== */
@media (max-width: 1024px) {
    /* הסיכום הגדול יורד; מעליו סיכום מקוצר עם "עריכה" */
    #evFlow[data-step="3"] .ck-summary { display: none; }
    .ck-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 16px; padding: 12px 16px; }
    .ck-mini-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .ck-mini-event { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ck-mini-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--g-text-body); }
    .ck-mini-save { color: var(--g-teal); }
    .ck-mini-save:empty { display: none; }
    .ck-mini-end { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .ck-mini-total { font-size: 15px; font-weight: 600; white-space: nowrap; }
    .ck-mini-total b { font-family: var(--g-display); font-size: 34px; line-height: .75; }
    .ck-mini .ck-edit { display: inline-flex; align-items: center; min-height: 44px; }

    /* כפתור התשלום בפס תחתון קבוע */
    .ck-paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--g-surface); border-top: 1px solid var(--g-line); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
    #part_three_buy_tickets .ck-pay-btn { min-height: 56px; font-size: 17px; }
}
@media (max-width: 768px) {
    #part_three_buy_tickets .form-wrapper { gap: 18px; }
    #part_three_buy_tickets .ck-title { font-size: 50px; }
    .ck-lead { font-size: 15px; }
    /* בטלפון השדות על הרקע, בלי מסגרת */
    .ck-card { background: none; border: 0; padding: 0; border-radius: 0; gap: 22px; }
    #part_three_buy_tickets .form-container { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    #part_three_buy_tickets .form-container > .form-group { grid-column: 1 / -1; }
    #part_three_buy_tickets .form-container > .form-group.ck-half { grid-column: auto; }
    #part_three_buy_tickets .form-group input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) { padding: 0 14px; }
    .ck-wallet { flex-direction: column; gap: 12px; padding: 16px; }
    .ck-wallet-icon { width: 38px; height: 38px; border-radius: 11px; }
    .ck-person form { padding: 4px 14px 18px; }
    .ck-person-head { padding: 14px; }
}
