/* Explain: General styling for UI components like buttons, cards, forms, and tables. */
/* ---------- Buttons ---------- */
.btn-order,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    min-height: 40px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-order:hover,
.btn-gold:hover {
    background: linear-gradient(135deg, #f2d479, var(--primary-hover));
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-order:active,
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.08);
}

.icon-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.ap-play {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform 0.25s ease, background 0.25s ease;
}

.ap-play:hover { transform: scale(1.06); background: linear-gradient(135deg, #f2d479, var(--primary-hover)); }

.track-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.track-play:hover { transform: scale(1.06); box-shadow: var(--shadow-gold); }

.track-play.is-playing {
    background: var(--primary-hover);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
}

.track-play-sm {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

/* ---------- Top bar (شريط علوي أعلى الترويسة) ---------- */
.topbar {
    background: #0a1120;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.82rem;
}

.topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.5rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.topbar-item i {
    color: var(--gold-soft);
    font-size: 0.85rem;
}

.topbar-location {
    justify-self: start;
    min-width: 0;
}

.topbar-location > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-date {
    justify-self: end;
}

@media (max-width: 900px) {
    .topbar-hours { display: none; }
}

@media (max-width: 640px) {
    .topbar-phone { display: none; }
}

.topbar-phone {
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.topbar-phone:hover { color: var(--primary-color); }

@media (max-width: 640px) {
    .topbar { font-size: 0.76rem; }
    .topbar-item { gap: 0.35rem; }
}

.logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 26%, #f6e6a8, #d4af37 55%, #a9821a);
    color: #4a3a08;
    font-size: 1.05rem;
}

.nav-link {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover { color: var(--primary-color); }
.nav-link.is-active { color: var(--primary-color); }

/* شريط التنقل الجانبي للجوال انتقل إلى css/mobile-nav.css */

/* ---------- Search bar ---------- */
.search-bar {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    overflow: visible;
}

.search-row {
    display: flex;
    align-items: stretch;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    border-inline-end: 1px solid var(--border-soft);
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
}

.search-artist-wrap {
    position: relative;
    display: flex;
    border-inline-end: 1px solid var(--border-soft);
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; }

.search-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-inline-end: 1px solid var(--border-soft);
    background: transparent;
}

.search-select {
    border: none;
    padding: 0.9rem 2.2rem 0.9rem 1rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.search-select option { background: var(--surface-2); color: var(--text-color); }

.search-select:focus { outline: none; }

.search-select-icon {
    position: absolute;
    inset-inline-end: 0.85rem;
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.search-submit {
    border: none;
    background: transparent;
    color: var(--text-color);
    padding-inline: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-submit:hover { color: var(--primary-color); }

.search-voice {
    border: none;
    background: transparent;
    color: var(--text-color);
    padding-inline: 0.85rem;
    min-width: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-voice:hover { color: var(--primary-color); }

.search-voice.is-recording { color: #ef4444; }

.search-voice.is-recording i {
    animation: voicePulse 1.1s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.28); opacity: 0.7; }
}

/* ---------- Listing table ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: var(--surface-color);
}

.zafat-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
}

.zafat-table thead th {
    background: #0e1729;
    color: var(--gold-soft);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.55rem 0.4rem;
    text-align: start;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.zafat-table tbody td {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.zafat-table tbody tr:last-child td { border-bottom: none; }
.zafat-table tbody tr:hover { background: rgba(212, 175, 55, 0.05); }

.zafat-table .col-name { min-width: 0; }

.zafat-table .col-name a {
    color: var(--link-color);
    font-weight: 800;
    font-size: 0.9rem;
}

.zafat-table .col-name a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.zafat-table .col-name .artist {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zafat-table .col-name .track-named-for {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.6;
}

.zafat-table .col-listen {
    width: 54px;
    text-align: center;
}

.zafat-table .col-order { width: 132px; }

.zafat-table .col-details {
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-muted);
    min-width: 0;
}

.zafat-table .col-details a {
    color: var(--link-color);
    font-weight: 700;
}

.zafat-table .col-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.zafat-table .col-details span {
    display: block;
}

.zafat-table .col-details span + span {
    margin-top: 0.25rem;
}

.track-named-for {
    color: var(--gold-soft);
    font-weight: 800;
}

/* ---------- Cards & bits ---------- */
.card-dark {
    background: var(--surface-color);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-dark:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-card);
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.text-gold-gradient {
    background: linear-gradient(120deg, #f2d479, #c9a227 58%, #a9821a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
}

.filter-btn.is-active {
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

/* ---------- Forms ---------- */
.field {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.field::placeholder { color: #6f7b92; }

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.req-mark {
    color: #ef4444;
    font-weight: 900;
}

.field-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.field.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.field-error {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fca5a5;
}

.field-error.hidden { display: none; }

.form-status {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    display: none;
}

.form-status.is-shown { display: block; }
.form-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #6ee7a8;
}
.form-status.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ---------- Audio player bar ---------- */
.player-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(16, 26, 46, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px -22px rgba(0, 0, 0, 0.9);
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.player-bar.is-open { transform: translateY(0); }

body.player-active { padding-bottom: 7rem; }

@media (max-width: 767px) {
    body.player-active { padding-bottom: 8rem; }
    .table-wrap { overflow-x: hidden; }
    .zafat-table { min-width: 0; table-layout: fixed; }
    .zafat-table .col-details,
    .zafat-table thead th.col-details { display: none; }
    .zafat-table thead th { padding: 0.5rem 0.28rem; font-size: 0.7rem; }
    .zafat-table tbody td { padding: 0.55rem 0.28rem; }
    .zafat-table .col-name a { font-size: 0.82rem; }
    .zafat-table .col-name .artist { font-size: 0.72rem; margin-top: 0.1rem; }
    .zafat-table .col-listen { width: 46px; }
    .zafat-table .col-order { width: 54px; }
    .zafat-table .col-order .btn-order {
        width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 50%;
    }
    .zafat-table .col-order .btn-order .order-label { display: none; }
    .zafat-table .col-order .btn-order i { font-size: 1rem; }
}

/* ---------- Floating widgets ---------- */
.float-wa {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1.2rem;
    z-index: 60;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 12px 26px -10px rgba(37, 211, 102, 0.75);
    transition: transform 0.25s ease;
}

.float-wa:hover { transform: scale(1.08); }

.float-top {
    position: fixed;
    inset-inline-start: 1rem;
    bottom: 1.2rem;
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.25s ease, border-color 0.25s ease;
}

.float-top.is-visible { opacity: 1; pointer-events: auto; }
.float-top:hover { color: var(--primary-color); border-color: var(--primary-color); }

body.player-active .float-wa,
body.player-active .float-top { bottom: 7.5rem; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--border-soft);
    background: #0a1120;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.25s ease;
}

.footer-link:hover,
.footer-link.is-active { color: var(--primary-color); }

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.social-btn:hover {
    color: #0b1220;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    border-color: transparent;
}

/* ---------- Artists directory ---------- */
.artist-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(160deg, #141b2e, #0c1120);
    border: 1px solid rgba(212, 175, 55, 0.34);
    color: var(--gold-soft);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}

.artist-count-badge i { font-size: 0.85rem; }

.artists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .artists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

@media (min-width: 1024px) {
    .artists-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}

@media (min-width: 1280px) {
    .artists-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.artist-card {
    --artist-card-size: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: var(--artist-card-size);
    margin-inline: auto;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.artist-card:hover { transform: translateY(-5px); }

.artist-card:focus-visible {
    outline: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.artist-photo {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--artist-card-size, 168px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 32% 24%, #1d2a48, var(--surface-color));
    border: 3px solid rgba(212, 175, 55, 0.42);
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s ease;
}

.artist-card:hover .artist-photo {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.artist-card:hover .artist-photo img { transform: scale(1.05); }

.artist-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    text-align: center;
}

.artist-meta .artist-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    transition: color 0.25s ease;
}

.artist-card:hover .artist-name { color: var(--gold-soft); }

.artist-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.artist-tag i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

/* ---------- Testimonials ---------- */
.testimonials-head {
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 2.2rem;
    text-align: center;
}

.testimonials-title {
    margin-top: 0.75rem;
    font-weight: 900;
    font-size: clamp(1.35rem, 4.4vw, 2rem);
    color: var(--text-color);
}

.testimonials-sub {
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 2;
    color: var(--text-muted);
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem 1.4rem 1.4rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--surface-2), var(--surface-color));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.42);
}

.testimonial-mark {
    position: absolute;
    top: 1.15rem;
    inset-inline-end: 1.25rem;
    font-size: 1.4rem;
    color: rgba(212, 175, 55, 0.42);
}

.testimonial-text {
    font-size: 0.98rem;
    line-height: 2;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.testimonial-card .divider-soft { margin-top: auto; }

.testimonial-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.9rem;
}

.stars {
    display: inline-flex;
    gap: 0.2rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--gold-soft);
    white-space: nowrap;
}

/* ---------- Side popup (عرض العرائس) ---------- */
.side-popup {
    position: fixed;
    inset-inline-start: 1rem;
    bottom: 5.5rem;
    z-index: 65;
    width: min(92vw, 350px);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem 1.25rem 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #1a2440, #0c1120);
    border: 1px solid rgba(212, 175, 55, 0.38);
    box-shadow: 0 28px 64px -26px rgba(0, 0, 0, 0.92), var(--shadow-gold);
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-popup.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.side-popup-close {
    position: absolute;
    top: 0.7rem;
    inset-inline-end: 0.7rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.side-popup-close:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.side-popup-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-inline-end: 2rem;
}

.side-popup-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0b1220;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow-gold);
}

.side-popup-icon img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.side-popup-head-text { min-width: 0; }

.side-popup-kicker {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold-soft);
}

.side-popup-title {
    margin-top: 0.1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--text-color);
}

.side-popup-text {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.side-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.side-popup-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.side-popup-btn-wa {
    background: linear-gradient(135deg, #3ddc84, #1da851);
    color: #052011;
    box-shadow: 0 12px 26px -14px rgba(37, 211, 102, 0.75);
}

.side-popup-btn-wa:hover {
    background: linear-gradient(135deg, #52e596, #21b95a);
    transform: translateY(-1px);
}

.side-popup-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.side-popup-btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.08);
}

body.player-active .side-popup { bottom: 11rem; }

@media (max-width: 480px) {
    .side-popup {
        inset-inline: 0.75rem;
        width: auto;
        bottom: 5.5rem;
    }
    body.player-active .side-popup { bottom: 11rem; }
}

/* ---------- Chat widget (نافذة التواصل عبر واتساب) ---------- */
.chat-widget {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1.2rem;
    z-index: 68;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.chat-launcher {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(212, 175, 55, 0.7);
    transition: transform 0.25s ease, background 0.25s ease;
}

.chat-launcher:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #f2d479, var(--primary-hover));
}

.chat-panel {
    width: min(92vw, 320px);
    border-radius: 16px;
    overflow: hidden;
    background: #f4f6f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom left;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-head-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: #0b1220;
}

.chat-close {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(11, 18, 32, 0.78);
    border: none;
    color: var(--gold-soft);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.25s ease;
}

.chat-close:hover { background: #0b1220; }

.chat-panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.4rem 1rem 1rem;
    background: #f4f6f5;
}

.chat-bubble {
    position: relative;
    padding: 0.9rem 1.05rem;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.85;
    text-align: center;
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.45);
}

.chat-bubble::after {
    content: "";
    position: absolute;
    top: -6px;
    inset-inline-end: 22px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 2px;
    transform: rotate(45deg);
}

.chat-brand {
    font-weight: 800;
    color: var(--gold-deep);
}

.chat-open-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    min-height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-soft), var(--primary-color));
    color: #0b1220;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 12px 26px -14px rgba(212, 175, 55, 0.7);
    transition: transform 0.25s ease, background 0.25s ease;
}

.chat-open-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f2d479, var(--primary-hover));
}

body.player-active .chat-widget { bottom: 7.5rem; }

@media (max-width: 480px) {
    .chat-widget { inset-inline-end: 0.75rem; bottom: 1rem; }
    body.player-active .chat-widget { bottom: 7.5rem; }
    .chat-panel { width: min(94vw, 320px); }
}