/* ── אלופי נתיבותי — Front CSS ──────────────── */

.alufim-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: 'Heebo', 'Rubik', Arial, sans-serif;
    color: #1a1a2e;
    direction: rtl;
    text-align: center;
    line-height: 1.7;
}

/* Header */
.alufim-title {
    font-size: 2em;
    margin: 0 0 8px;
    color: #1a1a2e;
}

/* Prize */
.alufim-prize-section {
    background: linear-gradient(135deg, #fff8e7 0%, #fff3d0 100%);
    border: 2px solid #f0c040;
    border-radius: 16px;
    padding: 24px 20px;
    margin: 20px 0;
}
.alufim-prize-label {
    font-size: 1.2em;
    margin: 0 0 12px;
    font-weight: 700;
}
.alufim-prize-img {
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.alufim-prize-name {
    font-size: 1.3em;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #b8860b;
}
.alufim-prize-text {
    font-size: .95em;
    color: #555;
    margin: 4px 0 0;
}

/* Countdown */
.alufim-timer-section {
    margin: 24px 0;
}
.alufim-timer-label {
    font-size: 1em;
    margin: 0 0 10px;
    color: #555;
}
.alufim-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    direction: ltr;
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 56px;
}
.cd-num {
    font-size: 1.6em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.cd-unit {
    font-size: .65em;
    color: #bbb;
    margin-top: 2px;
}
.cd-sep {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a1a2e;
}
.alufim-timer-note {
    font-size: .85em;
    color: #888;
    margin: 14px 0 0;
    line-height: 1.6;
}

/* Vote Section */
.alufim-vote-section {
    background: #f0f4ff;
    border: 2px solid #4a6cf7;
    border-radius: 16px;
    padding: 28px 20px;
    margin: 24px 0;
}
.alufim-vote-cta {
    font-size: 1.15em;
    margin: 0 0 8px;
}
.alufim-vote-count {
    font-size: 1.05em;
    color: #555;
    margin: 0 0 16px;
}
.alufim-vote-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e74c6f 0%, #e53e3e 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 48px;
    font-size: 1.25em;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(229,62,62,.3);
    font-family: inherit;
}
.alufim-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,62,62,.4);
}
.alufim-vote-btn:active {
    transform: translateY(0);
}
.alufim-vote-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Vote success + cooldown */
.alufim-vote-success {
    font-size: 1.2em;
    font-weight: 700;
    color: #16a34a;
    margin: 0 0 12px;
}
.alufim-cooldown-msg {
    font-size: 1.1em;
    font-weight: 600;
    color: #4a6cf7;
    margin: 0 0 8px;
}
.alufim-vote-timer {
    font-size: 2em;
    font-weight: 800;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    margin: 8px 0 16px;
}

/* WhatsApp Share */
.alufim-share-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(74,108,247,.2);
}
.alufim-whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.1em;
    font-weight: 700;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(37,211,102,.3);
    margin-top: 10px;
}
.alufim-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    color: #fff !important;
}

/* Leaderboard */
.alufim-leaderboard-section {
    margin: 32px 0;
}
.alufim-section-title {
    font-size: 1.3em;
    margin: 0 0 16px;
    color: #1a1a2e;
}
.alufim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
}
.alufim-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 12px;
    font-weight: 600;
}
.alufim-table th:first-child {
    border-radius: 0 10px 0 0;
}
.alufim-table th:last-child {
    border-radius: 10px 0 0 0;
}
.alufim-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.alufim-table tr:last-child td {
    border-bottom: none;
}
.alufim-table tr.alufim-top3 {
    background: #fffbeb;
}
.alufim-table tr:hover {
    background: #f5f5f5;
}
.alufim-table tr.alufim-top3:hover {
    background: #fff7d6;
}
.alufim-no-votes {
    color: #888;
    font-size: .95em;
}

/* Registration */
.alufim-register-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 20px;
    margin: 24px 0;
}
.alufim-register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}
.alufim-register-form input[type="text"],
.alufim-register-form input[type="tel"] {
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1em;
    font-family: inherit;
    text-align: right;
    transition: border-color .2s;
}
.alufim-register-form input[type="tel"] {
    text-align: left;
}
.alufim-register-form input:focus {
    border-color: #4a6cf7;
    outline: none;
}
.alufim-consent {
    font-size: .82em;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: right;
    line-height: 1.4;
    cursor: pointer;
}
.alufim-consent input {
    margin-top: 3px;
    flex-shrink: 0;
}
.alufim-register-btn {
    background: linear-gradient(135deg, #4a6cf7 0%, #3b5de7 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(74,108,247,.3);
    font-family: inherit;
}
.alufim-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74,108,247,.4);
}
.alufim-register-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.alufim-error {
    color: #e53e3e;
    font-size: .9em;
    font-weight: 600;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 8px;
}

/* Ref Link Box */
.alufim-ref-link-box {
    background: #f0f4ff;
    border: 2px dashed #4a6cf7;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px auto;
    max-width: 400px;
    direction: ltr;
    word-break: break-all;
}
.alufim-ref-link-box code {
    font-size: .9em;
    color: #1a1a2e;
}

/* Paused */
.alufim-paused {
    text-align: center;
    font-size: 1.1em;
    color: #888;
    padding: 40px 20px;
}

/* PWA Install Gate */
.alufim-pwa-explain {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin: 8px 0 20px;
}
.alufim-pwa-install-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a6cf7 0%, #3b5de7 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(74,108,247,.3);
    font-family: inherit;
}
.alufim-pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,108,247,.4);
}
.alufim-pwa-manual-text {
    font-size: .95em;
    color: #666;
    line-height: 1.7;
    margin: 16px 0 12px;
    background: #fff8e7;
    border: 1px solid #f0c040;
    border-radius: 10px;
    padding: 14px 16px;
}
.alufim-pwa-recheck-btn {
    display: inline-block;
    background: #e5e7eb;
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.alufim-pwa-recheck-btn:hover {
    background: #d1d5db;
}
.alufim-pwa-already-text {
    font-size: 1em;
    color: #444;
    line-height: 1.8;
    margin: 0 0 18px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 16px;
}
.alufim-pwa-alt-link {
    margin-top: 14px;
    font-size: .88em;
}
.alufim-pwa-alt-link a {
    color: #4a6cf7;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .alufim-wrap { padding: 12px 10px 30px; }
    .alufim-title { font-size: 1.6em; }
    .cd-block { padding: 8px 10px; min-width: 48px; }
    .cd-num { font-size: 1.3em; }
    .alufim-vote-btn { padding: 14px 32px; font-size: 1.1em; }
    .alufim-prize-img { max-width: 180px; }
}


/* WhatsApp group CTA */
.alufim-whatsapp-group {
    background: linear-gradient(135deg, #ecfff4, #f7fffa);
    border: 2px solid #25d366;
    border-radius: 16px;
    padding: 22px 18px;
    margin: 18px 0 28px;
    text-align: center;
}
.alufim-whatsapp-group p {
    margin: 0 0 10px;
    font-size: 1.08em;
    font-weight: 700;
    color: #1a1a2e;
}
.alufim-whatsapp-group .alufim-whatsapp-btn {
    margin-top: 4px;
}

/* Fair-play warning under weekly leaderboard title */
.alufim-fair-play-notice{
    margin:10px auto 16px;
    padding:10px 12px;
    max-width:560px;
    color:#b42318;
    background:#fff3f2;
    border:1px solid #f3b7b3;
    border-radius:10px;
    font-size:14px;
    line-height:1.65;
    font-weight:600;
}
.alufim-fair-play-notice strong{color:#8f1712;}
