/* =========================================
   Naturopath Portal – Stylesheet v2
   RTL / Hebrew / Flatsome-compatible
   ========================================= */

/* ================================================
   כפתור האדר – סגנון Flatsome outline עגול
   מחקה את: button plain is-outline + border-radius:99px
   ================================================ */
.np-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 37px;
    line-height: 37px;
    border: 2px solid currentColor;
    border-radius: 99px !important;
    background: transparent;
    color: var(--np-btn-color, #333);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
    cursor: pointer;
    font-family: inherit;
}

.np-header-btn:hover {
    background: var(--np-btn-color, #333);
    color: #fff !important;
    text-decoration: none !important;
}

/* נטורופת מחובר – ירוק */
.np-header-btn--active {
    --np-btn-color: #3a7c52;
    color: #3a7c52;
}

/* ================================================
   עטיפת הפורטל הכללית
   ================================================ */
.np-portal-wrap {
    direction: rtl;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
    color: #2d3748;
}

/* ================================================
   כרטיס הפורטל
   ================================================ */
.np-portal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

/* ================================================
   טאב-בר
   ================================================ */
.np-tab-bar {
    display: flex;
    border-bottom: 2px solid #edf2f7;
    background: #f7fafc;
}

.np-tab-btn {
    flex: 1;
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    font-family: inherit;
}

.np-tab-btn:hover {
    color: #3a7c52;
}

.np-tab-active {
    color: #3a7c52 !important;
    border-bottom-color: #3a7c52 !important;
    background: #fff;
}

/* ================================================
   פאנלים (טופס כניסה / הרשמה)
   ================================================ */
.np-panel {
    display: none;
    padding: 32px 36px 28px;
}

.np-panel-active {
    display: block;
}

.np-panel-title {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

/* ================================================
   שדות טופס
   ================================================ */
.np-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.np-field {
    margin-bottom: 16px;
}

.np-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.np-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    direction: rtl;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    color: #2d3748;
}

.np-field input:focus {
    outline: none;
    border-color: #3a7c52;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58,124,82,.12);
}

/* שדות זוגיים בשורה */
.np-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ================================================
   כפתור ראשי בטופס
   ================================================ */
.np-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #3a7c52;
    color: #fff !important;
    border: none;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s, transform .12s;
    font-family: inherit;
    letter-spacing: .02em;
}

.np-portal-btn:hover {
    background: #2d6342;
    transform: translateY(-1px);
    color: #fff !important;
}

.np-portal-btn-full {
    width: 100%;
    margin-top: 6px;
}

/* ================================================
   הודעות שגיאה / הצלחה
   ================================================ */
.np-alert {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.np-alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-right: 4px solid #e53e3e;
    color: #c53030;
}

.np-alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-right: 4px solid #38a169;
    color: #276749;
}

/* ================================================
   קישור מעבר בין טאבים
   ================================================ */
.np-switch-hint {
    text-align: center;
    margin: 18px 0 0;
    font-size: 13px;
    color: #718096;
}

.np-switch-hint a {
    color: #3a7c52;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ================================================
   מסך הצלחה לאחר הרשמה
   ================================================ */
.np-portal-success-screen {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 48px 36px;
    text-align: center;
}

.np-success-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 16px;
}

.np-portal-success-screen h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px;
}

.np-success-msg {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0 0 28px;
}

/* ================================================
   לוח הבקרה של הנטורופת
   ================================================ */
.np-wrap {
    direction: rtl;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    color: #2d3748;
}

.np-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}


/* כפתורי פאנל עליון */
.np-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.np-btn-sm-outline {
    background: transparent;
    border-color: #718096;
    color: #718096 !important;
}
.np-btn-sm-outline:hover {
    background: #718096;
    color: #fff !important;
}

.np-dashboard-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1a202c;
}

/* Stats */
.np-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.np-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.np-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.1;
}

.np-stat-label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.np-stat-green .np-stat-number { color: #3a7c52; }
.np-stat-orange .np-stat-number { color: #dd6b20; }

/* Card */
.np-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.np-card h3 {
    margin: 0 0 18px;
    font-size: 17px;
    color: #1a202c;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}

.np-hint {
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
    background: #f7fafc;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Table */
.np-table-wrap { overflow-x: auto; }

.np-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    direction: rtl;
}

.np-table th,
.np-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #edf2f7;
}

.np-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
}

.np-table tr:last-child td { border-bottom: none; }
.np-table tr:hover td { background: #f7fafc; }

/* Badges */
.np-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #edf2f7;
    color: #4a5568;
}
.np-badge-green  { background: #c6f6d5; color: #276749; }
.np-badge-orange { background: #feebc8; color: #7b341e; }

/* Code */
.np-code {
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #2b6cb0;
}

.np-muted {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* כפתורים קטנים בלוח */
.np-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: transparent;
    border: 2px solid #3a7c52;
    color: #3a7c52 !important;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .18s, color .18s;
    cursor: pointer;
    font-family: inherit;
}
.np-btn-sm:hover {
    background: #3a7c52;
    color: #fff !important;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 600px) {
    .np-panel { padding: 24px 20px 20px; }
    .np-fields-row { grid-template-columns: 1fr; }
    .np-stats-row { grid-template-columns: 1fr 1fr; }
    .np-dashboard-header { flex-direction: column; align-items: flex-start; }
}

/* ================================================
   קופון קבוע – תצוגה בפאנל
   ================================================ */
.np-coupon-display {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 12px;
}

.np-coupon-code {
    font-family: monospace;
    font-size: 26px;
    font-weight: 800;
    color: #3a7c52;
    letter-spacing: .08em;
    background: #f0fff4;
    border: 2px dashed #9ae6b4;
    border-radius: 10px;
    padding: 10px 22px;
    direction: ltr;
}

.np-copy-btn {
    cursor: pointer;
    background: #3a7c52;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: background .2s;
}
.np-copy-btn:hover { background: #2d6342; }

/* ================================================
   Range slider לאחוז הנחה
   ================================================ */
.np-field-inline label {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
}

.np-range-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.np-range-wrap input[type="range"] {
    flex: 1;
    max-width: 320px;
    accent-color: #3a7c52;
    height: 6px;
    cursor: pointer;
}

.np-range-val {
    font-size: 22px;
    font-weight: 700;
    color: #3a7c52;
    min-width: 60px;
}

/* warning alert */
.np-alert-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-right: 4px solid #f59e0b;
    color: #92400e;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* stat blue */
.np-stat-blue .np-stat-number { color: #2b6cb0; }
