/* ===== פלטת צבעים בהירה-נייטרלית ===== */
:root {
    --bs-primary: #7c5c2e;
    --bs-primary-rgb: 124, 92, 46;
    --clr-bg:        #f7f4ef;
    --clr-surface:   #ffffff; 
    --clr-surface2:  #f0ece4;
    --clr-border:    #e0d9ce;
    --clr-text:      #2c2418;
    --clr-text2:     #6b5c45;
    --clr-muted:     #9e8e78;
    --clr-gold:      #9a6f2e;
    --clr-gold-lt:   #c9a048;
    --clr-nav-bg:    #2c2418;
}

.progress {  
    height: 25px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.progress-bar {
    background-color: #28a745;
    transition: width 0.3s ease-in-out;
}

#syncProgress {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

#syncErrors {
    max-height: 200px;
    overflow-y: auto;
}

.sync-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin-top: 10px;
}

.stat-box {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
} 
 
.form-check {
    display: flex; 
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check-input {
    float: none;
    margin: 0;
}

.form-check-label {
    margin: 0;
}

/* הגדרת מיקום כפתור הסגירה בצד שמאל במודאל */
/* הגדרת מיקום כפתור הסגירה בצד שמאל במודאל, תוך שמירה על הכותרת בצד ימין */
.modal-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.modal-header .modal-title {
    margin-right: 0;
    margin-left: auto;
}

.modal-header .btn-close {
    margin: 0;
    padding: 0.5rem;
}


/* וידוא שתוכן הלשוניות מוצג כראוי */
.tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
 
/* וידוא שלשונית דרופבוקס מוצגת כראוי */
#dropbox.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important; 
} 
/* ===== Navbar ===== */
.navbar-logo {
    max-height: 38px;
    width: auto;
    flex-shrink: 0;
}
.navbar-brand-text {
    font-size: 1rem;
    color: #f0ece4;
    white-space: nowrap;
}
.navbar-user-greeting {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f0ece4;  
    font-size: 0.92rem;
    white-space: nowrap; 
}
.navbar-greeting-name {
    color: #f0ece4;
}
.navbar-logout-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b8c5ce;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.navbar-logout-link:hover { color: #f0ece4; }

@media (max-width: 767px) {
    .navbar-brand-text    { display: none; } 
    .navbar-greeting-name { display: none; }
    .navbar-logout-label  { display: none; }
    .navbar-user-greeting { font-size: 1rem; }
    .navbar-logout-link   { font-size: 1rem; }
    .navbar .container    { padding-inline: 12px; }
}
        .search-hero { 
            background: var(--clr-surface2);
            color: var(--clr-text);
            padding: 36px 0 28px;
            border-bottom: 1px solid var(--clr-border);
        }

        .search-hero-inner {
            max-width: 680px;
            margin: 0 auto;
            text-align: center;
        }

        .search-hero-sub {
            color: var(--clr-muted);
            font-size: 0.9em;
            margin-bottom: 16px;
            letter-spacing: 0.03em;
        }

        .search-main-form { margin-bottom: 14px; }

        .search-main-wrap {
            display: flex;
            align-items: center;
            background: var(--clr-surface);
            border: 1.5px solid var(--clr-border);
            border-radius: 50px; 
            padding: 6px 6px 6px 16px;
            transition: border-color .2s, box-shadow .2s;
        }    
        .search-main-wrap:focus-within {  
            border-color: var(--clr-gold-lt);
            box-shadow: 0 0 0 3px rgba(201,160,72,.15);
        }
        .search-main-icon {
            color: var(--clr-muted);
            margin-left: 10px;
            flex-shrink: 0;
        }
        .search-main-input {    
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--clr-text);
            font-size: 1.05em;
            min-width: 0;
        }
        .search-main-input::placeholder { color: var(--clr-muted); }
        .search-main-btn {
            background: var(--clr-gold-lt);
            color: #fff;
            border: none;
            border-radius: 40px;   
            padding: 8px 22px;
            font-weight: 700;
            font-size: 0.95em; 
            cursor: pointer; 
            flex-shrink: 0;
            transition: background .2s;
        }
        .search-main-btn:hover { background: #e0bc6a; }

        .search-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .search-action-btn {
            background: var(--clr-surface);
            border: 1px solid var(--clr-border);
            color: var(--clr-text2);
            border-radius: 30px;
            padding: 6px 16px;
            font-size: 0.88em;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background .2s, border-color .2s;
        }
        .search-action-btn:hover {
            background: rgba(201,160,72,.08);
            border-color: var(--clr-gold-lt);
            color: var(--clr-text);
        }
        .search-action-muted { color: #c9a048; border-color: rgba(201,160,72,.3); }

        .search-tags-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-bottom: 16px;
        }
        .search-tags-row .tag-badge {
            cursor: pointer;
            font-size: 0.8em;
            padding: 4px 10px;
            border-radius: 20px;
        }

        .active-filter-bar {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 12px;
            background: linear-gradient(135deg, #c9a048, #a6804a);
            border: none;
            border-radius: 12px;
            padding: 18px 20px;
            margin-bottom: 20px;
            color: #fff;
            font-size: 1.02em;
            font-weight: 600;
            box-shadow: 0 4px 16px rgba(166,128,74,.45);
        }
        .active-filter-bar .btn-clear-filter {
            background: #fff;
            color: #a6804a;
            border: none;
            font-weight: 800;
            padding: 12px 36px;
            font-size: 1.15em;
            border-radius: 30px;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0,0,0,.2);
            transition: transform .15s, box-shadow .15s;
        }
        .active-filter-bar .btn-clear-filter:hover {
            background: #fff8ec;
            color: #8a6a3a;
            transform: translateY(-1px) scale(1.03);
            box-shadow: 0 4px 14px rgba(0,0,0,.28);
        }

        .search-sort-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .search-sort-label { color: var(--clr-text, #2c2418); font-size: 0.9em; font-weight: 600; }
        .search-sort-select {
            background: var(--clr-surface, #fff) !important;
            border: 1px solid var(--clr-border, #c9a048) !important;
            color: var(--clr-text, #2c2418) !important;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 600;
            padding: 5px 14px;
        }
        .search-sort-select option {
            background: #fff;
            color: #2c2418;
        }
        .feature-card {
            border: none;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .feature-card:hover {
            transform: translateY(-2px);
        }
        .poem-card {
            background: var(--clr-surface) !important;
            border: 1px solid var(--clr-border) !important;
            border-right: 3px solid rgba(124,92,46,.3) !important;
            border-radius: 10px !important;
            box-shadow: 0 1px 4px rgba(0,0,0,.06);
            transition: border-color .2s, box-shadow .2s, transform .2s;
        }
        .poem-card:hover {
            border-right-color: var(--clr-gold) !important;
            box-shadow: 0 4px 16px rgba(0,0,0,.1);
            transform: translateY(-2px);
        }
        .poem-card .card-title {
            font-size: 1em;
            font-weight: 700;
            color: var(--clr-text) !important;
            margin-bottom: 6px;
        }
        .poem-card .poem-preview {
            color: var(--clr-text2);
            font-size: 0.85em;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        .poem-card .poem-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .poem-card .poem-date {
            color: var(--clr-muted);
            font-size: 0.78em;
        }
        .poem-read-btn {
            background: transparent;
            border: 1px solid rgba(124,92,46,.4);
            color: var(--clr-gold);
            border-radius: 20px;
            padding: 4px 14px;
            font-size: 0.82em;
            cursor: pointer;
            transition: background .2s, border-color .2s;
        }
        .poem-read-btn:hover {
            background: rgba(124,92,46,.08);
            border-color: var(--clr-gold);
        }
        .tag-badge {
            font-size: 0.8em;
            margin: 2px;
            background: #a6804a !important;
            color: #fff !important;
            border: none !important;
            border-radius: 12px;
            padding: 4px 10px;
        }
        .tag-badge-c1 { background: #a6804a !important; }
        .tag-badge-c2 { background: #8f6a52 !important; }
        .tag-badge-c3 { background: #6b7c5c !important; }
        .tag-badge-c4 { background: #7a5c6d !important; }
        .tag-badge-c5 { background: #9c6b3f !important; }
        .tag-badge-c6 { background: #5c6b5a !important; }

        .book-tags-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-basis: 100%;
            width: 100%;
            gap: 8px;
        }
        .book-tag-badge {
            display: block !important;
            font-size: 0.95em !important;
            font-weight: 700;
            margin: 2px;
            background: linear-gradient(135deg, #1899d4, #3752a3) !important;
            color: #fff !important;
            border: none !important;
            border-radius: 14px;
            padding: 8px 16px !important;
            box-shadow: 0 2px 8px rgba(24,110,180,.35);
            white-space: nowrap !important;
            overflow: hidden;
            text-overflow: ellipsis;
            width: fit-content;
            max-width: min(80vw, 360px) !important;
            min-width: 0;
            box-sizing: border-box;
            line-height: 1.4;
        }
        @media (max-width: 480px) {
            .book-tag-badge {
                font-size: 0.82em !important;
                padding: 7px 12px !important;
                max-width: 82vw !important;
            }
        }
        .tags-divider {
            border: none;
            border-top: 1px dashed rgba(124,92,46,.3);
            margin: 12px 0;
        }


        /* עיצוב קרטיסי המחירים */
.pricing-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-card:hover {
    border-color: #c9a048;
    transform: translateY(-3px);
}

.pricing-card.featured {
    border-color: #c9a048;
    position: relative;
}

.pricing-card.featured::before {
    content: "הכי פופולרי";
    position: absolute;
    top: -10px;
    right: 20px;
    background: #c9a048;
    color: #0f1923;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
}


/* תיקון כיוון כפתורים בעברית - החלק המעוגל בצד שמאל */
.input-group .btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}


/* עיצוב חלונית טעינה לתשלום */
#paymentLoader .modal-content,
#donationLoader .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 15px;
}

#paymentLoader .spinner-border,
#donationLoader .spinner-border {
    border-width: 0.3em;
}

#paymentLoader .modal-body,
#donationLoader .modal-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}


/* תיקון מובייל - מניעת גלילה אופקית */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .container, .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    } 
}

html, body {
    overflow-x: hidden;
}

body {
    padding-right: 0 !important;
    font-family: 'Heebo', system-ui, Arial, sans-serif;
}

body.modal-open {
    overflow-y: hidden !important;
}

/* כפתור חזרה למעלה */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a048 0%, #e0bc6a 100%);
    color: #0f1923;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(201,160,72,.4);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, #e0bc6a 0%, #c9a048 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(201,160,72,.6);
}

.btn-back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

/* אנימציה לאייקון */
.btn-back-to-top i {
    transition: transform 0.3s ease;
}

.btn-back-to-top:hover i {
    transform: translateY(-2px);
    animation: bounce-up 0.6s ease-in-out;
}

@keyframes bounce-up {
    0%, 20%, 60%, 100% {
        transform: translateY(-2px);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

/* עיצוב מותאם למובייל */
/* כפתור עם אחוז גלילה */
.btn-back-to-top-progress {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a048 0%, #e0bc6a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(201,160,72,.4);
}

.btn-back-to-top-progress.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top-progress:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(201,160,72,.6);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.btn-back-to-top-progress:hover .progress-icon {
    transform: translateY(-2px);
}

#progress-circle {
    transition: stroke-dashoffset 0.3s ease;
}

/* עיצוב מותאם למובייל */
@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}
/* כפתור כמו שאר ה-.btn.btn-sm */
.favorite-btn.btn {}

/* לא צובעים טקסט/רקע; outline בלבד */
.favorite-btn.btn-outline-warning {
  color: inherit !important;
  border-color: var(--bs-warning) !important;
  background-color: transparent !important;
}

/* אייקון SOLID תמיד; אפור כשהוא כבוי, זהב כשהוא פעיל */
.favorite-btn .fa-star { color: #6c757d; }        /* כבוי */
.favorite-btn.active .fa-star { color: #f1c40f; } /* דלוק */

/* hover עדין בלי מילוי */
.favorite-btn.btn-outline-warning:hover,
.favorite-btn.btn-outline-warning:focus {
  background-color: rgba(241,196,15,0.08) !important;
  color: inherit !important;
  border-color: var(--bs-warning) !important;
  box-shadow: none !important;
}

/* גם כשהוא active – לא ממלאים רקע */
.favorite-btn.active,
.favorite-btn.active:focus,
.favorite-btn.active:hover {
  background-color: transparent !important;
  color: inherit !important;
  border-color: var(--bs-warning) !important;
  box-shadow: none !important;
}

.favorite-btn:focus { outline: none !important; box-shadow: none !important; }


/* ===== Toasts ===== */
#toast-container{
  position: fixed;
  inset-inline-end: 16px; /* תומך RTL/LTR */
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none; /* שלא יחסום קליקים על הדף */
}

.toast{
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 380px);
  padding: 10px 12px;
  border-radius: 12px;
  background: #111827;            /* Slate-900 */
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border-inline-start: 4px solid #10b981; /* ירוק הצלחה */
  font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  transform: translateY(8px);
  opacity: 0;
  animation: toast-in 200ms ease forwards, toast-out 250ms ease forwards var(--toast-hide, 3s);
}

.toast--error{ border-inline-start-color: #ef4444; }   /* אדום */
.toast--info{  border-inline-start-color: #3b82f6; }   /* כחול */

.toast__icon{
  flex: none; width: 18px; height: 18px; opacity: .9;
}

.toast__close{
  margin-inline-start: 6px;
  background: transparent; color: #fff; opacity: .7;
  border: none; cursor: pointer; font-size: 18px; line-height: 1;
}

@keyframes toast-in { to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(6px); opacity: 0; } }

.navbar-dark,
.navbar {
    background: var(--clr-nav-bg) !important;
    border-bottom: 1px solid rgba(0,0,0,.12);
}
.navbar .navbar-brand,
.navbar .nav-link { color: #f0ece4 !important; }
.navbar .btn-primary {
    background: var(--clr-gold-lt) !important;
    border-color: var(--clr-gold-lt) !important;
    color: #1a1008 !important;
}
.navbar .btn-primary:hover {
    background: #e0bc6a !important;
    border-color: #e0bc6a !important;
}

.btn-primary {
    background: var(--clr-gold) !important;
    border-color: var(--clr-gold) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #7c5c2e !important;
    border-color: #7c5c2e !important;
    color: #fff !important;
}
.btn-warning {
    background: var(--clr-gold) !important;
    border-color: var(--clr-gold) !important;
    color: #fff !important;
}
.btn-warning:hover {
    background: #7c5c2e !important;
    border-color: #7c5c2e !important;
}

.stat-value { color: var(--clr-gold) !important; }

body { background: var(--clr-bg) !important; color: var(--clr-text) !important; }

.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
}
.card-header { background: var(--clr-surface2) !important; color: var(--clr-text) !important; border-bottom: 1px solid var(--clr-border) !important; }
.card-body { color: var(--clr-text2); }
.card-title { color: var(--clr-text) !important; }

.feature-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border) !important;
    color: var(--clr-text);
}
.feature-card .card-title { color: var(--clr-text); }
.feature-card .card-body { color: var(--clr-text2); }

.text-muted { color: var(--clr-muted) !important; }

.form-control, .form-select {
    background: var(--clr-surface) !important;
    border: 1px solid var(--clr-border) !important;
    color: var(--clr-text) !important;
}
.form-control:focus, .form-select:focus {
    background: var(--clr-surface) !important;
    border-color: var(--clr-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(124,92,46,.15) !important;
    color: var(--clr-text) !important;
}
.form-control::placeholder { color: var(--clr-muted) !important; }
.form-label { color: var(--clr-text2) !important; }

.modal-content {
    background: var(--clr-surface) !important;
    border: 1px solid var(--clr-border) !important;
    color: var(--clr-text) !important;
}
.modal-header { background: var(--clr-surface2) !important; border-bottom: 1px solid var(--clr-border) !important; }
.modal-footer { border-top: 1px solid var(--clr-border) !important; }
.modal-title { color: var(--clr-text) !important; }
.btn-close { filter: none !important; }

.table { color: var(--clr-text) !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: var(--clr-surface2) !important; color: var(--clr-text) !important; }
.table > :not(caption) > * > * { background: transparent !important; border-bottom-color: var(--clr-border) !important; }
.table thead th { border-bottom: 1px solid var(--clr-gold) !important; color: var(--clr-gold) !important; }

.badge.bg-primary   { background: #e8dccb !important; color: var(--clr-gold) !important; }
.badge.bg-success   { background: #d8ead0 !important; color: #3a6030 !important; }
.badge.bg-warning   { background: #f5dfa0 !important; color: #7c5c2e !important; }
.badge.bg-info      { background: #dde8f0 !important; color: #2c5f7a !important; }
.badge.bg-secondary { background: #e8e1d8 !important; color: #6b5c45 !important; }
.badge.bg-dark      { background: #3a2e22 !important; color: #f0ece4 !important; }

.alert-info    { background: rgba(124,92,46,.08) !important;  border-color: rgba(124,92,46,.2) !important;  color: var(--clr-text2) !important; }
.alert-success { background: rgba(58,96,48,.08) !important;   border-color: rgba(58,96,48,.2) !important;   color: #3a6030 !important; }
.alert-danger  { background: rgba(180,40,40,.08) !important;  border-color: rgba(180,40,40,.2) !important;  color: #8b1a1a !important; }
.alert-warning { background: rgba(124,92,46,.1) !important;   border-color: rgba(124,92,46,.25) !important; color: var(--clr-gold) !important; }

a { color: var(--clr-gold); }
a:hover { color: #7c5c2e; }

.nav-tabs .nav-link { color: var(--clr-text2) !important; border-color: transparent !important; }
.nav-tabs .nav-link.active { background: var(--clr-surface) !important; border-color: var(--clr-border) var(--clr-border) var(--clr-surface) !important; color: var(--clr-gold) !important; }
.nav-tabs { border-bottom: 1px solid var(--clr-border) !important; }

.dropdown-menu { background: var(--clr-surface) !important; border: 1px solid var(--clr-border) !important; }
.dropdown-item { color: var(--clr-text2) !important; }
.dropdown-item:hover { background: var(--clr-surface2) !important; color: var(--clr-text) !important; }

.list-group-item { background: var(--clr-surface) !important; border-color: var(--clr-border) !important; color: var(--clr-text2) !important; }
.list-group-item:hover { background: var(--clr-surface2) !important; }
.list-group-item.active { background: var(--clr-gold) !important; border-color: var(--clr-gold) !important; color: #fff !important; }

.progress { background: var(--clr-surface2) !important; }
.progress-bar { background: var(--clr-gold) !important; }
 
/* ===== public_index.php styles ===== */
.hero-section {
    background: linear-gradient(160deg, var(--clr-nav-bg) 0%, #3a2510 100%);
    color: #f0ece4;
    padding: 72px 0 80px;
    text-align: center;
    border-bottom: 3px solid var(--clr-gold-lt);
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.logo { max-height: 80px; margin-bottom: 20px; }
.navbar .logo { max-height: 44px; margin-bottom: 0; }
.welcome-text {
    background: var(--clr-surface2);
    border-right: 4px solid var(--clr-gold);
    padding: 30px;
    margin: 40px 0;
    font-size: 1.05em;
    line-height: 1.8;
    border-radius: 8px;
    color: var(--clr-text2);
}
.author-signature {
    text-align: left;
    font-weight: bold;
    color: var(--clr-gold);
    margin-top: 20px;
    font-size: 1.2em;
}
.support-section {
    background: var(--clr-surface2) !important;
    border-right: 4px solid var(--clr-gold) !important;
    border-radius: 10px;
}
.support-section p { color: var(--clr-text2) !important; }
.support-section strong { color: var(--clr-gold) !important; }
footer.bg-dark {
    background: var(--clr-nav-bg) !important;
    border-top: 1px solid rgba(0,0,0,.15);
}
@media (max-width: 800px) {
    .h2title { margin-top: 0 !important; }
}

hr { border-color: var(--clr-border) !important; }

@media (max-width: 576px) {
    .navbar .btn-lg { font-size: 13px; padding: 8px 12px; }
    .hero-section { padding: 48px 0 56px; }
    .hero-section .display-4 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .btn-lg { font-size: 14px !important; padding: 10px 15px !important; }
    .hero-section .gap-3 { gap: 8px !important; }
    .hero-info-box { font-size: 0.95em !important; padding: 12px !important; }
}

/* ===== public_index.php – Call to Action section ===== */
.section-cta {
    background: var(--clr-surface2);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

/* ===== public_index.php – hero paragraph box ===== */
.hero-info-box {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 10px;
    color: #f0ece4;
    font-size: 1.1em;
}
