/* ===== Public site v4: accounts, reviews, LBP, support, booking, blog ===== */
[hidden] { display: none !important; }
.ok { color: #16a34a; }
.text-danger { color: #dc2626; }
.mt-lg { margin-top: 26px; }
.narrow-sm { max-width: 480px; }
.ic.flip-back { transform: scaleX(-1); } /* "back" arrows; rtl.css flips them for Arabic */

/* Spam-trap field: hidden without pushing it off-screen (that breaks right-to-left pages) */
.hp { position: absolute !important; left: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }

/* Footer has 4 columns now */
.footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; }
.footer-links { display: flex; gap: 16px; align-items: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Header extras */
.lang-btn, .icon-circle { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--text); }
.lang-btn:hover, .icon-circle:hover { border-color: var(--primary); color: var(--primary); }
.icon-circle.is-in { border-color: color-mix(in srgb, var(--primary) 40%, white); }
.mini-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; }
.lang-mobile { display: none !important; }
.btn-ghost-dark { background: var(--bg); border-color: var(--line); color: var(--text); }
.btn-ghost-dark:hover { background: var(--surface); border-color: var(--primary); }

/* Second currency */
.alt-price { display: block; width: 100%; color: var(--muted); font-size: .78rem; font-weight: 600; }
.alt-price.big { width: auto; font-size: .95rem; flex-basis: 100%; }
.alt-total { text-align: end; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: -4px; }

/* Ratings */
.stars-row { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { fill: #e2e8f0; }
.star.on { fill: #f59e0b; }
.star.half { fill: url(#half); fill: #fcd34d; }
.pc-rating { display: flex; align-items: center; gap: 5px; margin: -2px 0 6px; font-size: .78rem; color: var(--muted); }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.pd-rating:hover b { color: var(--primary); }
.earn-note { display: flex; align-items: center; gap: 6px; color: #b45309; font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
.earn-note .ic { fill: #f59e0b; stroke: #f59e0b; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rating-big { display: flex; align-items: center; gap: 12px; }
.rating-big b { font-size: 2.4rem; line-height: 1; }
.review-cta { text-align: end; }
.review-cta p { margin: 0 0 6px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-top { display: flex; gap: 12px; align-items: center; }
.review p { margin: 10px 0 0; }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 1px 7px; border-radius: 999px; }
.review-reply { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: .92rem; border-inline-start: 3px solid var(--primary); }
.review-product { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.review-product h2 { font-size: 1.25rem; margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 16px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #e2e8f0; cursor: pointer; margin: 0; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

/* Payment proof */
.pay-box { text-align: start; border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); background: var(--bg); }
.pay-status { display: flex; align-items: center; gap: 8px; }
.pay-box p { margin: 6px 0 10px; }
.pay-paid { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.pay-pending { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.pay-rejected { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.proof-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.proof-form input[type=file] { flex: 1; min-width: 200px; margin: 0 !important; padding: 8px !important; background: var(--surface); }
.quick-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.quick-row form { margin: 0; }

.account-promo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: var(--radius-sm); border: 1px dashed color-mix(in srgb, var(--primary) 40%, white); background: var(--primary-soft); margin: 22px 0 14px; }
.points-box { padding: 12px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; margin: 10px 0 6px; font-size: .9rem; }
.points-box div { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #92400e; }
.points-box .check { margin: 8px 0 0 !important; }
.points-hint { font-size: .86rem; color: var(--muted); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; }
.points-hint a { color: var(--primary); font-weight: 700; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Auth pages */
.auth-section { padding: 56px 0; }
.auth-wrap { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; max-width: 1000px; }
.auth-side h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.ticks.big { font-size: 1rem; gap: 14px; color: var(--text); }
.auth-card-pub h1 { font-size: 1.6rem; margin-bottom: .2em; }
.auth-card-pub > p.muted { margin-bottom: 20px; }
.forgot { display: block; text-align: end; font-size: .86rem; font-weight: 600; color: var(--primary); margin: -6px 0 16px; }
.auth-switch { text-align: center; margin: 16px 0 0; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 700; }

/* Account */
.account-section { padding-top: 40px; }
.account-grid { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.account-nav { padding: 12px; position: sticky; top: 90px; display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: .94rem; }
.account-nav a:hover { background: var(--bg); color: var(--text); }
.account-nav a.active { background: var(--primary-soft); color: var(--primary); }
.acc-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.acc-user div { min-width: 0; }
.acc-user b, .acc-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-avatar.big { width: 44px; height: 44px; font-size: .95rem; flex-shrink: 0; }
.acc-title { font-size: 1.7rem; margin-bottom: 18px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.acc-stats .card { padding: 16px 18px; }
.acc-stats small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }
.acc-stats b { font-size: 1.5rem; }
.acc-stats em { display: block; font-style: normal; font-size: .8rem; color: #b45309; font-weight: 600; }
.points-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.acc-head h3, .acc-head h1 { margin: 0; }
.acc-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
a.acc-row:hover b:first-child { color: var(--primary); }
.acc-row b, .acc-row small { display: block; }
.acc-row form { margin: 0; }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eef2f7; color: #475569; white-space: nowrap; }
.st-new, .st-pending, .st-open { background: #fef3c7; color: #92400e; }
.st-confirmed, .st-sent, .st-answered, .st-active, .st-trial { background: #dbeafe; color: #1e40af; }
.st-processing, .st-waiting { background: #ede9fe; color: #5b21b6; }
.st-delivered, .st-completed, .st-accepted, .st-done, .st-paid { background: #dcfce7; color: #166534; }
.st-cancelled, .st-declined, .st-expired, .st-overdue { background: #fee2e2; color: #991b1b; }
.st-closed, .st-paused { background: #f1f5f9; color: #64748b; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #16a34a); }
.bar.mini { width: 110px; }
.sub-card.is-overdue { border-color: #fecaca; }
.points-hero { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.points-hero small, .points-hero span { display: block; color: #92400e; font-weight: 600; }
.points-hero b { font-size: 2rem; }
.points-hero p { max-width: 380px; margin: 0; }
.verify-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.verify-bar .btn { margin: 0; }

/* Support & tickets */
.seg-pub { display: flex; gap: 8px; margin: 6px 0 16px; }
.seg-pub label { margin: 0; flex: 1; cursor: pointer; }
.seg-pub input { position: absolute; opacity: 0; }
.seg-pub span { display: block; text-align: center; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; }
.seg-pub input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.ticket-title { font-size: 1.4rem; margin: 4px 0 0; }
.thread { display: grid; gap: 12px; margin: 18px 0; }
.msg-bubble { padding: 14px 16px; border-radius: 14px; max-width: 88%; background: var(--bg); border: 1px solid var(--line); }
.msg-bubble.mine { margin-inline-start: auto; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 20%, white); }
.msg-bubble.staff { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.msg-bubble .who { font-size: .78rem; color: var(--muted); font-weight: 600; }
.msg-bubble p { margin: 6px 0 0; }
.reply-form { display: grid; gap: 10px; }
.reply-form textarea { margin: 0; }
.reply-form .btn { justify-self: start; }

/* Booking */
.checkout-grid > *, .account-main, .shop-main { min-width: 0; } /* long rows scroll inside instead of widening the page */
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.day small { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.day b { font-size: 1.35rem; line-height: 1.3; }
.day:hover { border-color: var(--primary); }
.day.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.day.active small { color: rgba(255,255,255,.8); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { margin: 0; cursor: pointer; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; text-align: center; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin-top: 28px; }
.inline-cta b, .inline-cta span { display: block; }

/* Portfolio actions */
.portfolio-card .pf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.portfolio-card .pf-actions .btn { margin: 0; }
.portfolio-card .card-media { display: block; }

/* Blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card h3 { margin-bottom: .3em; }
.post-card .card-body p { font-size: .92rem; }
.post-featured { grid-column: span 2; }
.post-featured h3 { font-size: 1.4rem; }
.post-section { padding-top: 40px; }
.post-wrap { max-width: 760px; }
.post-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2em 0 .3em; }
.post-meta { margin-bottom: 24px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.post-body { font-size: 1.08rem; line-height: 1.8; }
.post-body h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body ul { padding-inline-start: 22px; }
.post-body li { margin-bottom: 6px; }
.post-share { margin: 30px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.post-cta { margin-top: 30px; padding: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .account-nav .acc-user { display: none; }
  .account-nav a { white-space: nowrap; }
  .acc-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; gap: 24px; }
  .post-featured { grid-column: auto; }
}
@media (max-width: 860px) {
  .lang-mobile { display: flex !important; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; }
}
@media (max-width: 560px) {
  .icon-circle { width: 38px; height: 38px; }
  .acc-row { grid-template-columns: 1fr auto; }
  .acc-row > :nth-child(3) { grid-column: 1; }
  .bar.mini { width: 70px; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .review-cta { text-align: start; }
  .msg-bubble { max-width: 100%; }
}
