/* ============================================================
   Shrang Global CSS — .sh-* Component System
   Brand: Dark theme, Orange #E8732A, Vazirmatn RTL, Inter EN
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --sh-orange:        #E8732A;
    --sh-orange-light:  #F0924F;
    --sh-orange-dark:   #C4622D;
    --sh-gold:          #D4A843;
    --sh-dark:          #0F0E0C;
    --sh-dark-2:        #161410;
    --sh-dark-3:        #1E1B16;
    --sh-dark-4:        #28231C;
    --sh-text:          #F5F0E8;
    --sh-text-muted:    #9A8E7E;
    --sh-border:        #2C2720;
    --sh-success:       #4CAF50;
    --sh-danger:        #E05C5C;
    --sh-warning:       #F0A500;
    --sh-info:          #4A90D9;
    --sh-radius-sm:     0.5rem;
    --sh-radius:        0.75rem;
    --sh-radius-lg:     1.25rem;
    --sh-radius-pill:   9999px;
    --sh-font-en:       'Inter', sans-serif;
    --sh-font-rtl:      'Vazirmatn', sans-serif;
    --sh-font-poetry:   'Amiri', serif;
    --sh-transition:    0.2s ease;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background:  var(--sh-dark);
    color:       var(--sh-text);
    font-family: var(--sh-font-en);
    font-size:   1rem;
    line-height: 1.6;
    min-height:  100vh;
    -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    font-family: var(--sh-font-rtl);
}
a { color: var(--sh-orange); text-decoration: none; transition: color var(--sh-transition); }
a:hover { color: var(--sh-orange-light); }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.sh-heading {
    font-size: clamp(1.375rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--sh-text);
}
.sh-heading--sm { font-size: 1.125rem; font-weight: 600; }
.sh-heading--lg { font-size: clamp(2rem, 5vw, 3rem); }
.sh-text-muted  { color: var(--sh-text-muted); font-size: 0.9375rem; }
.sh-script-rtl  {
    direction: rtl;
    text-align: right;
    font-family: var(--sh-font-rtl);
    line-height: 1.9;
}
.sh-script-ltr  { direction: ltr; text-align: left; }
.sh-poetry {
    font-family: var(--sh-font-poetry);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    direction: rtl;
    text-align: right;
    color: var(--sh-orange-light);
    line-height: 1.6;
}
.sh-phoneme-hint {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    background: var(--sh-dark-4);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-sm);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    font-family: var(--sh-font-en);
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.sh-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    width: 100%;
}
.sh-page-wrap--wide { max-width: 1100px; }
.sh-page-wrap--narrow { max-width: 560px; }
.sh-section { margin-bottom: 2rem; }
.sh-stack { display: flex; flex-direction: column; gap: 1rem; }
.sh-stack--sm { gap: 0.5rem; }
.sh-stack--lg { gap: 2rem; }
.sh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sh-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--sh-radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--sh-transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.sh-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.sh-btn--primary {
    background: var(--sh-orange);
    color: #fff;
}
.sh-btn--primary:hover {
    background: var(--sh-orange-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 115, 42, 0.35);
}
.sh-btn--ghost {
    background: transparent;
    color: var(--sh-text-muted);
    border: 1px solid var(--sh-border);
}
.sh-btn--ghost:hover {
    border-color: var(--sh-orange);
    color: var(--sh-orange);
}
.sh-btn--danger {
    background: var(--sh-danger);
    color: #fff;
}
.sh-btn--danger:hover { background: #c94444; color: #fff; }
.sh-btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.sh-btn--lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.sh-btn--full { width: 100%; }
.sh-btn--icon { padding: 0.625rem; border-radius: 50%; }
.sh-btn--loading { opacity: 0.7; pointer-events: none; }

/* ── FORMS ───────────────────────────────────────────────── */
.sh-field { margin-bottom: 1.25rem; }
.sh-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sh-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sh-text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.sh-input,
.sh-select,
.sh-textarea {
    width: 100%;
    background: var(--sh-dark-4);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 0.75rem 1rem;
    color: var(--sh-text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--sh-transition);
    outline: none;
    appearance: none;
}
.sh-input:focus,
.sh-select:focus,
.sh-textarea:focus { border-color: var(--sh-orange); }
.sh-input--error,
.sh-select--error,
.sh-textarea--error { border-color: var(--sh-danger); }
.sh-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.8;
    font-family: var(--sh-font-rtl);
}
.sh-textarea--rtl { direction: rtl; text-align: right; }
.sh-textarea--ltr { direction: ltr; text-align: left; font-family: var(--sh-font-en); }
.sh-select { cursor: pointer; }
.sh-select option { background: var(--sh-dark-3); }
.sh-field-error {
    display: block;
    color: var(--sh-danger);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}
.sh-char-count {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* ── CARDS ───────────────────────────────────────────────── */
.sh-card {
    background: var(--sh-dark-3);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    transition: border-color var(--sh-transition);
}
.sh-card--sm { border-radius: var(--sh-radius); }
.sh-card--flat { background: transparent; border-color: var(--sh-border); }
.sh-card:hover { border-color: rgba(232, 115, 42, 0.25); }
.sh-card__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sh-border);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sh-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sh-card__body { padding: 1.5rem; }
.sh-card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sh-border);
    background: var(--sh-dark-4);
}

/* ── NOTICES ─────────────────────────────────────────────── */
.sh-notice {
    padding: 0.875rem 1rem;
    border-radius: var(--sh-radius);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.sh-notice--success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #6fcf72;
}
.sh-notice--danger {
    background: rgba(224, 92, 92, 0.1);
    border-color: rgba(224, 92, 92, 0.3);
    color: var(--sh-danger);
}
.sh-notice--warning {
    background: rgba(240, 165, 0, 0.1);
    border-color: rgba(240, 165, 0, 0.3);
    color: var(--sh-warning);
}
.sh-notice--info {
    background: rgba(74, 144, 217, 0.1);
    border-color: rgba(74, 144, 217, 0.3);
    color: var(--sh-info);
}

/* ── BADGES ──────────────────────────────────────────────── */
.sh-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: var(--sh-radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--sh-dark-4);
    border: 1px solid var(--sh-border);
    color: var(--sh-text-muted);
}
.sh-badge--lang {
    background: rgba(232, 115, 42, 0.1);
    border-color: rgba(232, 115, 42, 0.3);
    color: var(--sh-orange-light);
}
.sh-badge--status-ready {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #6fcf72;
}
.sh-badge--status-processing {
    background: rgba(240, 165, 0, 0.1);
    border-color: rgba(240, 165, 0, 0.3);
    color: var(--sh-warning);
}
.sh-badge--status-failed {
    background: rgba(224, 92, 92, 0.1);
    border-color: rgba(224, 92, 92, 0.3);
    color: var(--sh-danger);
}

/* ── AUDIO PLAYER ────────────────────────────────────────── */
.sh-player {
    width: 100%;
    background: var(--sh-dark-4);
    border-radius: var(--sh-radius);
    padding: 1rem;
    border: 1px solid var(--sh-border);
}
.sh-player audio {
    width: 100%;
    accent-color: var(--sh-orange);
}
.sh-player__meta {
    font-size: 0.8rem;
    color: var(--sh-text-muted);
    margin-top: 0.5rem;
}

/* ── WAVEFORM ANIMATION ──────────────────────────────────── */
.sh-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 48px;
}
.sh-waveform__bar {
    width: 3px;
    background: linear-gradient(to top, var(--sh-orange-dark), var(--sh-orange-light));
    border-radius: var(--sh-radius-pill);
    animation: sh-wave 1.6s ease-in-out infinite;
}
@keyframes sh-wave {
    0%, 100% { transform: scaleY(0.25); opacity: 0.4; }
    50%       { transform: scaleY(1);    opacity: 0.9; }
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.sh-divider {
    height: 1px;
    background: var(--sh-border);
    margin: 1.5rem 0;
}
.sh-divider--text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sh-text-muted);
    font-size: 0.8rem;
}
.sh-divider--text::before,
.sh-divider--text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sh-border);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.sh-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--sh-border);
    color: var(--sh-text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.sh-footer a {
    color: var(--sh-text-muted);
    text-decoration: none;
    transition: color var(--sh-transition);
}
.sh-footer a:hover { color: var(--sh-orange); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .sh-nav { padding: 0 1rem; }
    .sh-nav__links { display: none; }
    .sh-page-wrap { padding: 5rem 1rem 3rem; }
    .sh-field--row { grid-template-columns: 1fr; }
    .sh-grid--2,
    .sh-grid--3 { grid-template-columns: 1fr; }
    .sh-card__header,
    .sh-card__body,
    .sh-card__footer { padding: 1rem; }
    .sh-btn--lg { padding: 0.875rem 2rem; }
}

/* STUDIO PAGE */
.studio-page__grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.studio-cover { display: flex; flex-direction: column; gap: 0.75rem; }
.studio-cover__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--sh-radius); display: block; }
.studio-cover__placeholder { width: 100%; aspect-ratio: 1/1; border-radius: var(--sh-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: var(--sh-dark-4); border: 1px dashed var(--sh-border); }
.studio-cover__placeholder-icon { font-size: 3rem; }
.studio-cover__placeholder-label { font-size: 0.875rem; color: var(--sh-text-muted); margin: 0; }
.studio-cover__form { display: flex; flex-direction: column; gap: 0.5rem; }
.studio-panel { display: flex; flex-direction: column; gap: 1rem; }
.studio-player__audio { width: 100%; display: block; accent-color: var(--sh-orange); margin-bottom: 0.5rem; }
.studio-details__row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--sh-border); }
.studio-details__row:last-child { border-bottom: none; }
.studio-page__lyrics { white-space: pre-wrap; line-height: 1.9; font-size: 0.95rem; }
.studio-page__lyrics[dir=rtl] { text-align: right; font-family: var(--sh-font-rtl); font-size: 1.05rem; }
.studio-page__actions .sh-field + .sh-field { border-top: 1px solid var(--sh-border); padding-top: 1.5rem; margin-top: 1.5rem; }
.studio-processing { text-align: center; padding: 2rem; }
@media (max-width: 768px) { .studio-page__grid { grid-template-columns: 1fr; } }

/* PLAYER PAGE */
.player-wrap { max-width: 640px; }
.player-cover { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: var(--sh-radius-lg); overflow: hidden; margin-bottom: 1.5rem; }
.player-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-cover__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.player-cover--no-image { background: var(--sh-dark-3); border: 1px solid var(--sh-border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; min-height: 200px; }
.player-cover__title { font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 700; color: #fff; margin: 0 0 0.5rem; }
.player-cover__title[dir="rtl"], .player-cover__title:dir(rtl) { font-family: var(--sh-font-rtl); }
.player-cover__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.player-card { margin-bottom: 1.5rem; }
.player-audio { width: 100%; display: block; accent-color: var(--sh-orange); margin-bottom: 1.25rem; }
.player-actions { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.player-actions__copied { font-size: 0.8rem; color: var(--sh-success); opacity: 0; transition: opacity 0.3s; }
.player-share-box { margin-bottom: 1rem; }
.player-share-box__row { display: flex; gap: 0.5rem; align-items: center; }
.player-share-box__row .sh-input { flex: 1; font-size: 0.8rem; }
@media (max-width: 640px) { .player-cover__overlay { padding: 1.5rem 1rem 1rem; } }

/* ADMIN LAYOUT */
.admin-body { background: var(--sh-dark-2); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--sh-dark); border-right: 1px solid var(--sh-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar__logo { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--sh-border); display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.admin-sidebar__logo a { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.admin-sidebar__logo-arabic { font-size: 1.25rem; color: var(--sh-orange); font-family: var(--sh-font-rtl); }
.admin-sidebar__logo-latin { font-size: 0.875rem; font-weight: 600; color: var(--sh-text-muted); }
.admin-sidebar__nav { flex: 1; padding: 1rem 0; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-sidebar__link { display: block; padding: 0.625rem 1.5rem; font-size: 0.875rem; color: var(--sh-text-muted); text-decoration: none; transition: all var(--sh-transition); border-left: 3px solid transparent; }
.admin-sidebar__link:hover { color: var(--sh-text); background: var(--sh-dark-3); }
.admin-sidebar__link.active { color: var(--sh-orange); background: rgba(232,115,42,0.08); border-left-color: var(--sh-orange); }
.admin-sidebar__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--sh-border); display: flex; flex-direction: column; gap: 0.5rem; }
.admin-sidebar__logout { background: none; border: none; color: var(--sh-text-muted); font-size: 0.875rem; cursor: pointer; padding: 0; text-align: left; transition: color var(--sh-transition); }
.admin-sidebar__logout:hover { color: var(--sh-danger); }
.admin-main { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.admin-topbar { padding: 1rem 2rem; border-bottom: 1px solid var(--sh-border); background: var(--sh-dark); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.admin-topbar__title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.admin-topbar__user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--sh-text-muted); }
.admin-content { padding: 2rem; flex: 1; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { text-align: center; }
.admin-stat__label { font-size: 0.75rem; color: var(--sh-text-muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-stat__number { font-size: 2rem; font-weight: 700; color: var(--sh-orange); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--sh-border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sh-text-muted); font-weight: 500; }
.admin-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--sh-border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--sh-dark-4); }
.admin-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--sh-text); }
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { position: relative; height: auto; } }

.admin-table-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--sh-border); }
.admin-table-row:last-child { border-bottom: none; }

.credits-packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.credits-package__name{font-size:1rem;font-weight:600;margin-bottom:.5rem;}
.credits-package__credits{font-size:2rem;font-weight:700;color:var(--sh-orange);}
.credits-package__price{font-size:1.25rem;font-weight:600;margin-bottom:.5rem;}

/* DISCOVER PAGE */
.discover-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem;}
.discover-filters{margin-bottom:1.5rem;}
.discover-filters__row{display:flex;gap:0.75rem;flex-wrap:wrap;}
.discover-filters__select{width:auto;min-width:140px;}
.discover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem;margin-bottom:2rem;}
.discover-card{background:var(--sh-dark-3);border:1px solid var(--sh-border);border-radius:var(--sh-radius-lg);overflow:hidden;transition:border-color var(--sh-transition);}
.discover-card:hover{border-color:rgba(232,115,42,0.3);}
.discover-card__cover{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;}
.discover-card__cover-img{width:100%;height:100%;object-fit:cover;display:block;}
.discover-card__cover-placeholder{width:100%;height:100%;background:#1c1208;display:flex;align-items:center;justify-content:center;position:relative;}
.discover-card__cover-icon{color:var(--sh-orange);opacity:0.15;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}
.discover-card__cover-icon svg{width:120px;height:120px;display:block;}
.discover-card__cover-overlay{position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(0,0,0,0.8));display:flex;flex-direction:column;justify-content:space-between;padding:0.75rem;}
.discover-card__badges{display:flex;gap:0.4rem;flex-wrap:wrap;}
.discover-card__play-btn{width:48px;height:48px;border-radius:50%;background:var(--sh-orange);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;margin:auto;transition:transform var(--sh-transition);}
.discover-card__play-btn:hover{transform:scale(1.1);}
.discover-card__play-icon{color:#fff;font-size:1.25rem;margin-left:3px;}
.discover-card__body{padding:1rem;}
.discover-card__title{font-size:0.9375rem;font-weight:600;margin-bottom:0.4rem;}
.discover-card__excerpt{font-size:0.8rem;color:var(--sh-text-muted);margin-bottom:0.5rem;line-height:1.6;}
.discover-card__stats{display:flex;gap:0.75rem;font-size:0.75rem;color:var(--sh-text-muted);margin-bottom:0.75rem;}
.discover-card__actions{display:flex;gap:0.5rem;flex-wrap:wrap;}
@media(max-width:640px){.discover-grid{grid-template-columns:repeat(2,1fr);}.discover-filters__select{min-width:100px;}}

/* DASHBOARD */
.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem;}
.dashboard-clip{overflow:hidden;}
.dashboard-clip__cover-link{display:block;position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;text-decoration:none;}
.dashboard-clip__cover-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.3s;}
.dashboard-clip:hover .dashboard-clip__cover-img{transform:scale(1.03);}
/* dashboard-clip__cover-placeholder defined below */
.dashboard-clip__status-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.6);display:flex;flex-direction:column;align-items:center;justify-content:center;}
.dashboard-clip__status-overlay--failed{background:rgba(224,92,92,0.15);}
@media(max-width:640px){.dashboard-grid{grid-template-columns:repeat(2,1fr);}}

/* MOBILE BOTTOM TAB BAR */

/* PUBLIC NAV */
.public-body { background: var(--sh-dark); }
@media(max-width:768px) { .pub-nav__links { display:none; } .pub-nav__actions { display:none; } .pub-nav__burger { display:flex; } }

/* PUBLIC FOOTER */
.pub-footer { background:var(--sh-dark-2); border-top:1px solid var(--sh-border); margin-top:4rem; }
.pub-footer__inner { max-width:1200px; margin:0 auto; padding:3rem 2rem; display:grid; grid-template-columns:280px 1fr; gap:4rem; }
.pub-footer__brand { display:flex; flex-direction:column; gap:0; }
.pub-footer__tagline { font-size:0.85rem; color:var(--sh-text-muted); line-height:1.6; margin-bottom:1.25rem; max-width:220px; }
.pub-footer__langs { display:flex; gap:0.75rem; flex-wrap:wrap; }
.pub-footer__langs a { color:var(--sh-text-muted); font-size:0.8rem; text-decoration:none; transition:color var(--sh-transition); }
.pub-footer__langs a:hover { color:var(--sh-orange); }
.pub-footer__cols { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.pub-footer__col { display:flex; flex-direction:column; gap:0.625rem; }
.pub-footer__col h4 { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.08em; color:var(--sh-text); margin-bottom:0.5rem; }
.pub-footer__col a { color:var(--sh-text-muted); text-decoration:none; font-size:0.875rem; transition:color var(--sh-transition); }
.pub-footer__col a:hover { color:var(--sh-orange); }
.pub-footer__bottom { max-width:1200px; margin:0 auto; padding:1.25rem 2rem; border-top:1px solid var(--sh-border); font-size:0.8rem; color:var(--sh-text-muted); }
@media(max-width:768px) { .pub-footer__inner { grid-template-columns:1fr; gap:2rem; } .pub-footer__cols { grid-template-columns:1fr 1fr; } }

/* HOMEPAGE */
.home-hero { min-height:100vh; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse at 60% 50%, rgba(232,115,42,0.12) 0%, transparent 70%), var(--sh-dark); padding:6rem 2rem 4rem; }
.home-hero__inner { max-width:800px; margin:0 auto; text-align:center; }
.home-hero__badge { display:inline-flex; align-items:center; gap:0.5rem; background:rgba(232,115,42,0.1); border:1px solid rgba(232,115,42,0.3); color:var(--sh-orange); font-size:0.8rem; padding:0.375rem 1rem; border-radius:var(--sh-radius-pill); margin-bottom:2rem; }
.home-hero__headline-ar { font-family:var(--sh-font-rtl); font-size:clamp(2rem,6vw,4rem); color:var(--sh-orange); line-height:1.3; margin-bottom:1rem; direction:rtl; }
.home-hero__headline-en { font-size:clamp(1.75rem,4vw,3rem); font-weight:700; color:var(--sh-text); line-height:1.2; margin-bottom:1rem; }
.home-hero__headline-en em { color:var(--sh-orange); font-style:normal; }
.home-hero__sub { font-size:1.1rem; color:var(--sh-text-muted); max-width:560px; margin:0 auto 2.5rem; line-height:1.7; }
.home-hero__actions { display:flex; align-items:center; justify-content:center; gap:1rem; flex-wrap:wrap; margin-bottom:3rem; }
.home-hero__cta { font-size:1rem; padding:0.875rem 2rem; }
.home-hero__ghost { color:var(--sh-text-muted); text-decoration:none; font-size:0.9375rem; padding:0.875rem 1.5rem; border:1px solid var(--sh-border); border-radius:var(--sh-radius-pill); transition:all var(--sh-transition); }
.home-hero__ghost:hover { border-color:var(--sh-orange); color:var(--sh-orange); }
.home-hero__waveform { display:flex; align-items:center; justify-content:center; gap:3px; height:60px; }
.home-hero__bar { width:3px; background:linear-gradient(to top, var(--sh-orange-dark), var(--sh-orange-light)); border-radius:var(--sh-radius-pill); animation:sh-wave 1.6s ease-in-out infinite; }
.home-section { padding:5rem 2rem; }
.home-section--dark { background:var(--sh-dark-2); }
.home-section__inner { max-width:1100px; margin:0 auto; }
.home-section__label { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em; color:var(--sh-orange); margin-bottom:0.75rem; }
.home-section__title { font-size:clamp(1.5rem,3vw,2.25rem); font-weight:700; color:var(--sh-text); margin-bottom:0.75rem; }
.home-section__sub { color:var(--sh-text-muted); font-size:1rem; margin-bottom:2.5rem; }
.home-featured { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.25rem; }
.home-featured__card { background:var(--sh-dark-3); border:1px solid var(--sh-border); border-radius:var(--sh-radius-lg); overflow:hidden; transition:border-color var(--sh-transition); }
.home-featured__card:hover { border-color:rgba(232,115,42,0.3); }
.home-featured__cover { position:relative; aspect-ratio:1/1; overflow:hidden; }
.home-featured__img { width:100%; height:100%; object-fit:cover; display:block; }
.home-featured__placeholder { width:100%; height:100%; background:var(--sh-dark-4); display:flex; align-items:center; justify-content:center; font-size:2.5rem; color:var(--sh-orange); }
.home-featured__play { position:absolute; inset:0; margin:auto; width:48px; height:48px; border-radius:50%; background:var(--sh-orange); border:none; cursor:pointer; font-size:1.1rem; color:#fff; display:flex; align-items:center; justify-content:center; transition:transform var(--sh-transition); }
.home-featured__play:hover { transform:scale(1.1); }
.home-featured__info { padding:0.875rem; }
.home-featured__title { font-size:0.9rem; font-weight:600; margin-bottom:0.4rem; }
.home-featured__meta { display:flex; align-items:center; gap:0.5rem; }
.home-featured__likes { font-size:0.75rem; color:var(--sh-text-muted); }
.home-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.home-step { text-align:center; padding:2rem 1.5rem; background:var(--sh-dark-3); border:1px solid var(--sh-border); border-radius:var(--sh-radius-lg); }
.home-step__number { font-family:var(--sh-font-rtl); font-size:2.5rem; color:var(--sh-orange); margin-bottom:1rem; line-height:1; }
.home-step__title { font-size:1.1rem; font-weight:600; margin-bottom:0.75rem; }
.home-step__text { color:var(--sh-text-muted); font-size:0.9rem; line-height:1.7; }
.home-langs { display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap; margin-top:2rem; }
.home-lang { display:flex; flex-direction:column; align-items:center; gap:0.5rem; padding:1.5rem 2rem; background:var(--sh-dark-3); border:1px solid var(--sh-border); border-radius:var(--sh-radius-lg); min-width:120px; transition:border-color var(--sh-transition); }
.home-lang:hover { border-color:var(--sh-orange); }
.home-lang__script { font-family:var(--sh-font-rtl); font-size:1.5rem; color:var(--sh-orange); }
.home-lang__name { font-size:0.8rem; color:var(--sh-text-muted); }
.home-pricing { display:grid; grid-template-columns:1fr 2fr; gap:2rem; align-items:start; }
.home-pricing__free { background:rgba(232,115,42,0.08); border:1px solid rgba(232,115,42,0.3); border-radius:var(--sh-radius-lg); padding:2rem; text-align:center; }
.home-pricing__free-badge { font-size:0.75rem; font-weight:600; text-transform:uppercase; letter-spacing:0.08em; color:var(--sh-orange); margin-bottom:0.75rem; }
.home-pricing__free-credits { font-size:2.5rem; font-weight:700; color:var(--sh-text); margin-bottom:0.5rem; }
.home-pricing__free-desc { color:var(--sh-text-muted); font-size:0.875rem; line-height:1.6; }
.home-pricing__packages { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; }
.home-pricing__pkg { background:var(--sh-dark-3); border:1px solid var(--sh-border); border-radius:var(--sh-radius-lg); padding:1.25rem; }
.home-pricing__pkg-name { font-weight:600; margin-bottom:0.25rem; }
.home-pricing__pkg-credits { font-size:0.85rem; color:var(--sh-text-muted); margin-bottom:0.25rem; }
.home-pricing__pkg-price { font-size:1.25rem; font-weight:700; color:var(--sh-orange); }
.home-cta-section { background:radial-gradient(ellipse at 50% 50%, rgba(232,115,42,0.1) 0%, transparent 70%); }
.home-cta__poetry { font-family:var(--sh-font-poetry); font-size:1.5rem; color:var(--sh-orange-light); direction:rtl; margin-bottom:1rem; }
@media(max-width:768px) { .home-steps { grid-template-columns:1fr; } .home-pricing { grid-template-columns:1fr; } .home-pricing__packages { grid-template-columns:1fr 1fr; } }
@media(max-width:480px) { .home-hero__headline-ar { font-size:1.75rem; } .home-hero__headline-en { font-size:1.5rem; } }

/* STUDIO PROGRESS BAR */
.studio-progress{width:100%;height:6px;background:var(--sh-dark-4);border-radius:var(--sh-radius-pill);overflow:hidden;}
.studio-progress__bar{height:100%;background:linear-gradient(90deg,var(--sh-orange-dark),var(--sh-orange),var(--sh-orange-light));border-radius:var(--sh-radius-pill);transition:width 1.5s ease;}

.studio-progress__bar--pulse { width:100%; animation:sh-progress-pulse 1.5s ease-in-out infinite; }
@keyframes sh-progress-pulse { 0%{opacity:1;} 50%{opacity:0.4;} 100%{opacity:1;} }

/* ── CREATE PAGE ─────────────────────────────────────────────── */
.create-paths { display:flex; flex-direction:column; gap:1rem; margin-top:1.5rem; }
.create-path { background:var(--sh-dark-2); border:1px solid var(--sh-dark-4); border-radius:var(--sh-radius-lg); overflow:hidden; transition:border-color 0.2s; }
.create-path--open { border-color:var(--sh-orange); overflow:visible; }
.create-path__header { display:flex; align-items:center; justify-content:space-between; padding:1.25rem 1.5rem; cursor:pointer; gap:1rem; }
.create-path__header:hover { background:var(--sh-dark-3); }
.create-path__info { display:flex; align-items:center; gap:1rem; flex:1; min-width:0; }
.create-path__icon { font-size:1.5rem; flex-shrink:0; color:var(--sh-orange); }
.create-path__title { font-weight:600; color:var(--sh-text-primary); font-size:1rem; }
.create-path__desc { font-size:0.8rem; color:var(--sh-text-muted); margin-top:0.2rem; }
.create-path__meta { display:flex; align-items:center; gap:0.75rem; flex-shrink:0; }
.create-path__arrow { color:var(--sh-text-muted); font-size:1.25rem; transition:transform 0.2s; line-height:1; }
.create-path__form { padding:0 1.5rem 1.5rem; border-top:1px solid var(--sh-dark-4); }
.create-path__form form { padding-top:1.25rem; }
.sh-field--row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.sh-label-opt { font-weight:400; color:var(--sh-text-muted); font-size:0.8rem; }
.sh-label-req { font-weight:400; color:var(--sh-text-muted); font-size:0.8rem; }
.sh-radio-group { display:flex; flex-wrap:wrap; gap:1rem; margin-top:0.4rem; }
.sh-radio { display:flex; align-items:center; gap:0.4rem; cursor:pointer; font-size:0.875rem; color:var(--sh-text-primary); }
.sh-radio input { accent-color:var(--sh-orange); }
.sh-checkbox { display:flex; align-items:flex-start; gap:0.6rem; cursor:pointer; font-size:0.8rem; color:var(--sh-text-muted); line-height:1.5; }
.sh-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--sh-border);
    border-radius: 0.25rem;
    background: var(--sh-dark-3);
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color var(--sh-transition), background var(--sh-transition);
}
.sh-checkbox input[type="checkbox"]:checked {
    background: var(--sh-orange);
    border-color: var(--sh-orange);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
}
.sh-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--sh-orange);
    outline-offset: 2px;
}
.sh-field-hint { font-size:0.75rem; color:var(--sh-text-muted); margin-top:0.4rem; }
.sh-btn-badge { background:rgba(255,255,255,0.15); border-radius:var(--sh-radius-pill); padding:0.15rem 0.5rem; font-size:0.75rem; margin-left:0.4rem; }
.sh-btn--orange-border { border-color:var(--sh-orange); color:var(--sh-orange); }
.sh-badge--free { background:var(--sh-dark-4); color:var(--sh-text-muted); }
@media(max-width:600px){
    .sh-field--row { grid-template-columns:1fr; }
    .create-path__header { padding:1rem; }
    .create-path__form { padding:0 1rem 1rem; }
}

/* ── STUDIO PHASE C ─────────────────────────────────────────── */
.studio-cover-wrap { display:flex; gap:1.5rem; align-items:flex-start; }
.studio-cover-preview { flex-shrink:0; width:160px; }
.studio-cover-preview .studio-cover__img { width:160px; height:160px; object-fit:cover; border-radius:var(--sh-radius-lg); }
.studio-cover-preview .studio-cover__placeholder { width:160px; height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--sh-dark-3); border-radius:var(--sh-radius-lg); }
.studio-cover-actions { flex:1; }
.studio-lyrics { font-size:1rem; line-height:2; white-space:pre-wrap; color:var(--sh-text-primary); }
.studio-lyrics--rtl { text-align:right; direction:rtl; font-size:1.1rem; line-height:1.8; }
.studio-lyrics--ltr { text-align:left; direction:ltr; }
.studio-action-row { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 0; border-bottom:1px solid var(--sh-dark-4); gap:1rem; }
.studio-action-row:last-child { border-bottom:none; }
.studio-action-row--danger .studio-action-label { color:var(--sh-danger, #e05555); }
.studio-action-label { font-size:0.875rem; color:var(--sh-text-muted); }
.studio-rename-form { display:flex; gap:0.5rem; flex:1; }
.studio-rename-form .sh-input--sm { flex:1; }
.sh-btn--danger { background:transparent; border:1px solid var(--sh-danger, #e05555); color:var(--sh-danger, #e05555); }
.sh-btn--danger:hover { background:var(--sh-danger, #e05555); color:#fff; }
.sh-input--sm { padding:0.4rem 0.75rem; font-size:0.875rem; }
.sh-select--sm { padding:0.4rem 0.75rem; font-size:0.875rem; }
@media(max-width:600px){
    .studio-cover-wrap { flex-direction:column; }
    .studio-cover-preview { width:100%; }
    .studio-cover-preview .studio-cover__img { width:100%; height:220px; }
    .studio-cover-preview .studio-cover__placeholder { width:100%; height:160px; }
    .studio-rename-form { flex-direction:column; }
}

/* ── STUDIO REDESIGN ─────────────────────────────────────────── */
.studio-wrap { max-width:900px; margin:0 auto; padding:0 0 3rem; }
.studio-back { margin-bottom:1rem; }
.studio-layout { display:grid; grid-template-columns:300px 1fr; gap:1.5rem; align-items:start; }
.studio-section { margin-bottom:1rem; }

/* Hero Cover */
.studio-hero-cover { width:100%; aspect-ratio:1/1; border-radius:var(--sh-radius-lg); overflow:hidden; margin-bottom:1rem; background:var(--sh-dark-2); }
.studio-hero-cover__img { width:100%; height:100%; object-fit:cover; display:block; }
.studio-hero-cover__placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--sh-dark-2),var(--sh-dark-3)); }
.studio-hero-cover__icon { width:80px; height:80px; opacity:0.7; }
.studio-hero-cover__label { color:var(--sh-text-muted); font-size:0.8rem; margin-top:0.75rem; }

/* Hero Card */
.studio-clip-title { font-size:1.4rem; font-weight:700; color:var(--sh-text-primary); margin:0 0 0.75rem; line-height:1.3; }
.studio-badges { display:flex; flex-wrap:wrap; gap:0.4rem; margin-bottom:1rem; }

/* Audio Player */
.studio-player { margin:1rem 0; }
.studio-player__label { font-size:0.8rem; color:var(--sh-text-muted); margin-bottom:0.5rem; }
.studio-player__audio { width:100%; border-radius:var(--sh-radius-md); }

/* Quick Actions */
.studio-quick-actions { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--sh-dark-4); }

/* Manage */
.studio-manage-item { padding:0.75rem 0; border-bottom:1px solid var(--sh-dark-4); }
.studio-manage-item:last-child { border-bottom:none; padding-bottom:0; }
.studio-manage-item .sh-label { display:block; margin-bottom:0.4rem; }
.studio-inline-form { display:flex; gap:0.5rem; align-items:center; }
.studio-inline-form .sh-input--sm { flex:1; }

/* Metadata grid */
.studio-meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.5rem 1rem; }
.studio-meta-item { display:flex; flex-direction:column; gap:0.15rem; }
.studio-meta-label { font-size:0.72rem; color:var(--sh-text-muted); text-transform:uppercase; letter-spacing:0.05em; }
.studio-meta-value { font-size:0.875rem; color:var(--sh-text-primary); font-weight:500; }

/* Lyrics */
.studio-lyrics { font-size:1rem; line-height:2; white-space:pre-wrap; color:var(--sh-text-primary); }
.studio-lyrics--rtl { direction:rtl; text-align:right; font-size:1.1rem; line-height:1.8; font-family:var(--sh-font-rtl); }
.studio-lyrics--ltr { direction:ltr; text-align:left; }

/* Danger Zone */
.studio-danger-card { border-color:rgba(224,85,85,0.3); }
.studio-danger-card__header { color:#e05555; }

/* Status badge colors */
.sh-badge--ready { background:rgba(34,197,94,0.15); color:#22c55e; }
.sh-badge--failed { background:rgba(224,85,85,0.15); color:#e05555; }
.sh-badge--processing { background:rgba(232,115,42,0.15); color:var(--sh-orange); }

/* Desktop two-column */
@media(min-width:700px){
    .studio-left { position:sticky; top:1rem; }
}

/* Mobile single column */
@media(max-width:699px){
    .studio-layout { grid-template-columns:1fr; }
    .studio-left { display:contents; }
    .studio-hero-cover { max-width:320px; margin:0 auto 1rem; }
    .studio-clip-title { font-size:1.2rem; }
    .studio-meta-grid { grid-template-columns:1fr 1fr; }
    .studio-inline-form { flex-wrap:wrap; }
    .studio-inline-form .sh-input--sm { width:100%; }
}

/* ── Dashboard improvements ─────────────────────────────────────── */
.dashboard-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:2rem;}
.dashboard-empty{text-align:center;padding:4rem 2rem;display:flex;flex-direction:column;align-items:center;}
.dashboard-clip__title{font-size:0.9rem;font-weight:600;margin-bottom:0.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dashboard-clip__badges{display:flex;gap:0.35rem;flex-wrap:wrap;margin-bottom:0.45rem;}
.dashboard-clip__indicators{display:flex;gap:0.4rem;margin-bottom:0.6rem;}
.dashboard-clip__dot{font-size:0.65rem;padding:0.15rem 0.45rem;border-radius:20px;background:var(--sh-dark-4);color:var(--sh-text-muted);opacity:0.5;}
.dashboard-clip__dot--on{background:rgba(34,197,94,0.15);color:#22c55e;opacity:1;}
.dashboard-clip__actions{display:flex;gap:0.4rem;align-items:center;}
.dashboard-clip__studio-btn{flex:1;justify-content:center;}
.dashboard-clip__secondary{display:flex;gap:0.3rem;}

/* ── Dashboard v2 ───────────────────────────────────────────────── */
.dashboard-notice { margin-bottom: 1rem; }
.dashboard-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-bottom:2rem; }
.dashboard-header__text {}
.dashboard-pagination { margin-top:1.5rem; }
.dashboard-empty { text-align:center; padding:4rem 2rem; display:flex; flex-direction:column; align-items:center; }
.dashboard-empty__icon { width:48px; height:48px; opacity:0.2; margin-bottom:1rem; }
.dashboard-empty__title { margin-bottom:0.5rem; }
.dashboard-empty__sub { margin-bottom:1.5rem; }

.dashboard-clip__body { padding:0.75rem; }
.dashboard-clip__title { font-size:0.9rem; font-weight:600; margin-bottom:0.4rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--sh-text-primary); }
.dashboard-clip__badges { display:flex; gap:0.3rem; flex-wrap:wrap; margin-bottom:0.45rem; }
.dashboard-clip__vis-badge--public { background:rgba(34,197,94,0.12); color:#22c55e; }
.dashboard-clip__vis-badge--private { background:var(--sh-dark-4); color:var(--sh-text-muted); }

.dashboard-clip__chips { display:flex; gap:0.3rem; margin-bottom:0.6rem; }
.dashboard-chip { font-size:0.62rem; padding:0.12rem 0.5rem; border-radius:20px; background:var(--sh-dark-4); color:var(--sh-text-muted); opacity:0.45; font-weight:500; }
.dashboard-chip--on { background:rgba(34,197,94,0.12); color:#22c55e; opacity:1; }

.dashboard-clip__actions { display:flex; gap:0.4rem; align-items:center; }
.dashboard-clip__main-action { flex:1; justify-content:center; text-align:center; }
.dashboard-clip__icon-actions { display:flex; gap:0.25rem; }
.dashboard-clip__icon-btn { width:30px; height:30px; padding:0; display:flex; align-items:center; justify-content:center; }
.dashboard-clip__icon-btn svg { width:13px; height:13px; }

.dashboard-clip__overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.4rem; }
.dashboard-clip__overlay--failed { background:rgba(224,92,92,0.15); }
.dashboard-clip__overlay-label { font-size:0.72rem; color:#fff; }
.dashboard-clip__cover-placeholder { width:100%; height:100%; background:#1c1208; display:flex; align-items:center; justify-content:center; position:relative; }
.dashboard-clip__cover-icon { width:80px; height:80px; opacity:0.15; color:var(--sh-orange); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    padding: 0;
    margin: 1.5rem 0 0;
    flex-wrap: wrap;
    align-items: center;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--sh-text-muted);
    background: var(--sh-dark-2, #161616);
    border: 1px solid var(--sh-dark-4);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pagination li a:hover { background: var(--sh-dark-4); color: var(--sh-text-primary); }
.pagination li.active span { background: var(--sh-orange); color: #fff; border-color: var(--sh-orange); }
.pagination li.disabled span { opacity: 0.35; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   UNIFIED NAV — sh-nav
   All pages, all states, LTR + RTL safe
═══════════════════════════════════════════════════════════ */
.sh-nav {
    position:fixed; top:0; inset-inline-start:0; inset-inline-end:0;
    z-index:200; height:56px;
    background:rgba(15,14,12,0.97);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--sh-border);
}
.sh-nav__inner {
    max-width:1200px; margin:0 auto;
    height:100%; padding:0 1rem;
    display:flex; align-items:center;
    justify-content:space-between; gap:1rem;
}
/* Logo */
.sh-nav__logo {
    display:flex; align-items:center; gap:0.375rem;
    text-decoration:none; flex-shrink:0;
}
.sh-nav__logo-ar {
    font-family:var(--sh-font-rtl);
    font-size:1.25rem; color:var(--sh-orange); line-height:1;
}
.sh-nav__logo-en {
    font-size:0.9375rem; font-weight:700;
    color:var(--sh-text); letter-spacing:-0.01em;
}
/* Desktop center links */
.sh-nav__links {
    display:none; align-items:center;
    gap:0.25rem; list-style:none; flex:1;
    justify-content:center;
}
.sh-nav__links a {
    display:flex; align-items:center; gap:0.375rem;
    color:var(--sh-text-muted); font-size:0.875rem;
    text-decoration:none; padding:0.4rem 0.75rem;
    border-radius:var(--sh-radius); transition:all var(--sh-transition);
}
.sh-nav__links a svg {
    width:15px; height:15px; flex-shrink:0;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__links a:hover { color:var(--sh-text); background:var(--sh-dark-3); }
.sh-nav__links a.active { color:var(--sh-orange); }
/* Right cluster */
.sh-nav__right {
    display:flex; align-items:center;
    gap:0.5rem; flex-shrink:0;
}
/* Language selector */
.sh-nav__lang { position:relative; }
.sh-nav__lang-btn {
    display:flex; align-items:center; gap:0.35rem;
    background:none; border:1px solid var(--sh-border);
    border-radius:var(--sh-radius-pill);
    padding:0.35rem 0.7rem;
    color:var(--sh-text-muted); cursor:pointer;
    font-size:0.8rem; font-family:inherit;
    transition:all var(--sh-transition);
}
.sh-nav__lang-btn svg {
    width:14px; height:14px; flex-shrink:0;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__lang-btn:hover { border-color:var(--sh-orange); color:var(--sh-orange); }
.sh-nav__lang-drop {
    position:absolute; top:calc(100% + 6px);
    inset-inline-end:0;
    background:var(--sh-dark-3); border:1px solid var(--sh-border);
    border-radius:var(--sh-radius); min-width:130px;
    padding:0.375rem 0; display:none; z-index:300;
    box-shadow:0 8px 24px rgba(0,0,0,0.5);
}
.sh-nav__lang-drop.open { display:block; }
.sh-nav__lang-drop a {
    display:block; padding:0.5rem 1rem;
    font-size:0.875rem; color:var(--sh-text-muted);
    text-decoration:none; transition:all var(--sh-transition);
}
.sh-nav__lang-drop a:hover { color:var(--sh-text); background:var(--sh-dark-4); }
.sh-nav__lang-drop a.active { color:var(--sh-orange); }
/* Credits pill */
.sh-nav__credits-pill {
    display:none; align-items:center; gap:0.3rem;
    background:var(--sh-dark-3); border:1px solid var(--sh-border);
    border-radius:var(--sh-radius-pill);
    padding:0.3rem 0.75rem;
    font-size:0.8rem; color:var(--sh-text-muted);
    text-decoration:none; transition:all var(--sh-transition);
}
.sh-nav__credits-pill svg {
    width:13px; height:13px;
    fill:none; stroke:var(--sh-orange);
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__credits-pill strong { color:var(--sh-orange); font-weight:600; }
.sh-nav__credits-pill:hover { border-color:var(--sh-orange); }
/* Avatar */
.sh-nav__avatar-wrap { position:relative; }
.sh-nav__avatar-btn {
    width:34px; height:34px; border-radius:50%;
    background:var(--sh-orange); color:#fff;
    font-size:0.875rem; font-weight:700;
    border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:all var(--sh-transition); font-family:inherit;
}
.sh-nav__avatar-btn:hover { background:var(--sh-orange-light); transform:scale(1.05); }
.sh-nav__avatar-drop {
    position:absolute; top:calc(100% + 8px);
    inset-inline-end:0;
    background:var(--sh-dark-3); border:1px solid var(--sh-border);
    border-radius:var(--sh-radius); min-width:200px;
    padding:0.375rem 0; display:none; z-index:300;
    box-shadow:0 8px 32px rgba(0,0,0,0.5);
}
.sh-nav__avatar-drop.open { display:block; }
.sh-nav__drop-header {
    padding:0.75rem 1rem 0.5rem;
    display:flex; flex-direction:column; gap:0.125rem;
}
.sh-nav__drop-header strong { color:var(--sh-text); font-size:0.875rem; }
.sh-nav__drop-header span { color:var(--sh-orange); font-size:0.75rem; }
.sh-nav__drop-divider { height:1px; background:var(--sh-border); margin:0.25rem 0; }
.sh-nav__avatar-drop a,
.sh-nav__avatar-drop button {
    display:flex; align-items:center; gap:0.625rem;
    width:100%; padding:0.6rem 1rem;
    font-size:0.875rem; color:var(--sh-text-muted);
    text-decoration:none; background:none; border:none;
    text-align:start; cursor:pointer; font-family:inherit;
    transition:all var(--sh-transition);
}
.sh-nav__avatar-drop a svg,
.sh-nav__avatar-drop button svg {
    width:15px; height:15px; flex-shrink:0;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__avatar-drop a:hover,
.sh-nav__avatar-drop button:hover { color:var(--sh-text); background:var(--sh-dark-4); }
/* Desktop only elements */
.sh-nav__desktop-only { display:none; }
/* Burger */
.sh-nav__burger {
    display:flex; flex-direction:column; gap:4.5px;
    background:none; border:none; cursor:pointer; padding:6px;
}
.sh-nav__burger span {
    display:block; width:20px; height:2px;
    background:var(--sh-text); border-radius:2px;
    transition:all 0.3s;
}
.sh-nav__burger.open span:nth-child(1) { transform:rotate(45deg) translate(4.5px, 4.5px); }
.sh-nav__burger.open span:nth-child(2) { opacity:0; }
.sh-nav__burger.open span:nth-child(3) { transform:rotate(-45deg) translate(4.5px, -4.5px); }
/* Drawer */
.sh-nav__drawer {
    position:fixed; top:56px; inset-inline-end:-100%;
    width:280px; height:calc(100vh - 56px);
    background:var(--sh-dark); border-inline-start:1px solid var(--sh-border);
    z-index:190; overflow-y:auto;
    transition:inset-inline-end 0.3s ease;
}
.sh-nav__drawer.open { inset-inline-end:0; }
.sh-nav__drawer-inner { padding:1rem; display:flex; flex-direction:column; gap:0.125rem; }
.sh-nav__drawer-user {
    display:flex; align-items:center; gap:0.75rem;
    padding:0.75rem 0.5rem 1rem;
}
.sh-nav__drawer-avatar {
    width:38px; height:38px; border-radius:50%;
    background:var(--sh-orange); color:#fff;
    font-size:1rem; font-weight:700;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.sh-nav__drawer-user-info { display:flex; flex-direction:column; gap:0.125rem; }
.sh-nav__drawer-user-info strong { color:var(--sh-text); font-size:0.875rem; }
.sh-nav__drawer-user-info span { color:var(--sh-orange); font-size:0.75rem; }
.sh-nav__drawer-link {
    display:flex; align-items:center; gap:0.75rem;
    padding:0.7rem 0.5rem; color:var(--sh-text-muted);
    text-decoration:none; font-size:0.9rem;
    border-radius:var(--sh-radius); transition:all var(--sh-transition);
}
.sh-nav__drawer-link svg {
    width:18px; height:18px; flex-shrink:0;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__drawer-link:hover { color:var(--sh-text); background:var(--sh-dark-3); }
.sh-nav__drawer-link.active { color:var(--sh-orange); }
.sh-nav__drawer-logout {
    display:flex; align-items:center; gap:0.75rem;
    padding:0.7rem 0.5rem; color:var(--sh-danger);
    background:none; border:none; cursor:pointer;
    font-size:0.9rem; font-family:inherit; width:100%;
    text-align:start; border-radius:var(--sh-radius);
    transition:all var(--sh-transition);
}
.sh-nav__drawer-logout svg {
    width:18px; height:18px; flex-shrink:0;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-nav__drawer-logout:hover { background:var(--sh-dark-3); }
.sh-nav__drawer-langs {
    display:flex; flex-wrap:wrap; gap:0.5rem;
    padding:0.5rem 0.5rem 1rem;
}
.sh-nav__drawer-langs a {
    padding:0.35rem 0.75rem;
    border:1px solid var(--sh-border);
    border-radius:var(--sh-radius-pill);
    font-size:0.8rem; color:var(--sh-text-muted);
    text-decoration:none; transition:all var(--sh-transition);
}
.sh-nav__drawer-langs a:hover { border-color:var(--sh-orange); color:var(--sh-orange); }
.sh-nav__drawer-langs a.active { border-color:var(--sh-orange); color:var(--sh-orange); background:rgba(232,101,10,0.1); }
/* Overlay */
.sh-nav__overlay {
    display:none; position:fixed;
    inset:0; z-index:180;
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(2px);
}
.sh-nav__overlay.open { display:block; }
/* Desktop breakpoint */
@media(min-width:768px){
    .sh-nav__inner { padding:0 1.5rem; }
    .sh-nav__links { display:flex; }
    .sh-nav__credits-pill { display:flex; }
    .sh-nav__desktop-only { display:inline-flex; }
    .sh-nav__burger { display:none; }
    main { padding-top:56px; }
}
@media(max-width:767px){
    main { padding-top:56px; padding-bottom:70px; }
}

/* ── Bottom Nav Fix ────────────────────────────────────────── */
.sh-bottom-nav {
    display:none;
    position:fixed; bottom:0; left:0; right:0;
    height:64px;
    background:rgba(15,14,12,0.97);
    backdrop-filter:blur(20px);
    border-top:1px solid var(--sh-border);
    z-index:150;
}
.sh-bottom-nav a.sh-bottom-nav__item {
    flex:1; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    gap:0.2rem; padding:0.5rem 0;
    text-decoration:none;
    color:var(--sh-text-muted);
    font-size:0.65rem; font-weight:500;
    transition:color var(--sh-transition);
}
.sh-bottom-nav a.sh-bottom-nav__item.active { color:var(--sh-orange); }
.sh-bottom-nav a.sh-bottom-nav__item:hover { color:var(--sh-text); }
.sh-bottom-nav__icon {
    display:flex; align-items:center; justify-content:center;
    width:24px; height:24px;
}
.sh-bottom-nav__icon svg {
    width:22px; height:22px;
    fill:none; stroke:currentColor;
    stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round;
}
.sh-bottom-nav__label { line-height:1; }
@media(max-width:767px) {
    .sh-bottom-nav {
        display:flex;
        flex-direction:row;
        align-items:stretch;
    }
    main { padding-bottom:72px; }
    .sh-nav__burger { display:none; }
}

/* ── Auth Pages ────────────────────────────────────────────── */
.sh-auth-body {
    min-height:100vh; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding:2rem 1rem;
    background:var(--sh-dark);
}
.sh-auth-wrap { width:100%; max-width:420px; }
.sh-auth-card {
    background:var(--sh-dark-3);
    border:1px solid var(--sh-border);
    border-radius:1.25rem;
    padding:2.5rem;
    width:100%;
}
.sh-auth-logo {
    display:flex; flex-direction:column; align-items:center;
    text-decoration:none; margin-bottom:2rem; gap:0.25rem;
}
.sh-auth-logo__ar {
    font-family:var(--sh-font-rtl);
    font-size:2rem; color:var(--sh-orange); line-height:1;
}
.sh-auth-logo__en {
    font-size:0.875rem; font-weight:600; color:var(--sh-text-muted);
    letter-spacing:0.15em; text-transform:uppercase;
}
.sh-auth-title {
    font-size:1.375rem; font-weight:600;
    margin-bottom:0.375rem; text-align:center;
    color:var(--sh-text);
}
.sh-auth-sub {
    color:var(--sh-text-muted); font-size:0.875rem;
    text-align:center; margin-bottom:2rem;
}
.sh-auth-divider {
    display:flex; align-items:center;
    gap:1rem; margin-bottom:1.25rem;
    color:var(--sh-text-muted); font-size:0.8rem;
}
.sh-auth-divider::before, .sh-auth-divider::after {
    content:''; flex:1; height:1px; background:var(--sh-border);
}
.sh-auth-footer {
    text-align:center; margin-top:1.5rem;
    font-size:0.875rem; color:var(--sh-text-muted);
}
.sh-auth-footer a { color:var(--sh-orange); text-decoration:none; }
.sh-auth-footer a:hover { text-decoration:underline; }
.sh-auth-remember {
    display:flex; align-items:center;
    justify-content:space-between;
    margin-bottom:1.5rem; font-size:0.875rem;
}
.sh-auth-remember label {
    color:var(--sh-text-muted); display:flex;
    align-items:center; gap:0.4rem; cursor:pointer;
}
.sh-auth-remember a { color:var(--sh-orange); text-decoration:none; }
.sh-btn--google {
    width:100%; background:var(--sh-dark-4);
    color:var(--sh-text); border:1px solid var(--sh-border);
    padding:0.875rem; border-radius:var(--sh-radius-pill);
    font-size:0.9375rem; font-weight:500; cursor:pointer;
    font-family:inherit; display:flex; align-items:center;
    justify-content:center; gap:0.75rem;
    text-decoration:none; margin-bottom:1.25rem;
    transition:border-color var(--sh-transition);
}
.sh-btn--google:hover { border-color:var(--sh-orange); color:var(--sh-text); }
@media(max-width:480px) {
    .sh-auth-card { padding:2rem 1.25rem; border-radius:1rem; }
}

/* ── Player Actions ────────────────────────────────────────── */
.player-actions {
    display:flex; flex-wrap:wrap; gap:0.75rem;
    align-items:center; margin-top:1rem;
}
.player-actions__copied {
    font-size:0.8rem; color:var(--sh-orange);
    opacity:0; transition:opacity 0.3s;
}
.player-btn--whatsapp {
    color:#25D366 !important;
    border-color:#25D366 !important;
}
.player-btn--whatsapp:hover {
    background:rgba(37,211,102,0.1) !important;
}
.player-btn--facebook {
    color:#1877F2 !important;
    border-color:#1877F2 !important;
}
.player-btn--facebook:hover {
    background:rgba(24,119,242,0.1) !important;
}
.player-share-box { margin-top:1rem; }
.player-share-box__row {
    display:flex; gap:0.5rem; align-items:center;
}
.player-share-box__row .sh-input { flex:1; }

/* ── Dashboard filter tabs ───────────────────────────────────── */
.dashboard-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.dashboard-filters__tab {
    padding: 0.4rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sh-text-muted);
    background: transparent;
    border: 1px solid var(--sh-border);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dashboard-filters__tab:hover {
    background: var(--sh-surface-2, rgba(255,255,255,0.06));
    color: var(--sh-text);
}
.dashboard-filters__tab--active {
    background: var(--sh-primary);
    color: #fff;
    border-color: var(--sh-primary);
}

/* ── Studio reel preview (primary asset when reel exists) ────── */
.studio-hero__reel-preview {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
    background: #000;
    max-height: 480px;
    object-fit: contain;
}
.studio-hero__reel-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    margin-top: 0.5rem;
}

/* ── Studio failed state ─────────────────────────────────────── */
.studio-failed {
    text-align: center;
    padding: 2rem 1.5rem;
}
.studio-failed__icon {
    font-size: 2.5rem;
    color: var(--sh-danger, #e05555);
    margin-bottom: 1rem;
}
.studio-failed__heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sh-text);
    margin-bottom: 0.75rem;
}
.studio-failed__body {
    color: var(--sh-text-muted);
    margin-bottom: 0.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.studio-failed__suggestion {
    color: var(--sh-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.studio-failed__technical {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}
.studio-failed__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Studio Next Best Action labels ─────────────────────────── */
.studio-nba__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}
.studio-nba__label--warn {
    color: var(--sh-danger, #e05555);
}

/* ── Studio creation state timeline ─────────────────────────── */
.studio-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    gap: 0;
    margin: 0 0 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--sh-dark-3);
    border-radius: 0.75rem;
    border: 1px solid var(--sh-border);
    flex-wrap: nowrap;
    overflow-x: auto;
}
.studio-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.studio-timeline__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--sh-border);
    background: transparent;
}
.studio-timeline__step--done .studio-timeline__dot {
    background: var(--sh-orange);
    border-color: var(--sh-orange);
}
.studio-timeline__label {
    font-size: 0.7rem;
    color: var(--sh-text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.studio-timeline__step--done .studio-timeline__label {
    color: var(--sh-text);
}
.studio-timeline__line {
    flex: 1;
    height: 2px;
    background: var(--sh-border);
    min-width: 1.5rem;
    margin-bottom: 1rem;
}
.studio-timeline__line--done {
    background: var(--sh-orange);
}

/* ── Share buttons ───────────────────────────────────────────── */
.sh-btn--whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}
.sh-btn--whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}
.sh-btn--facebook {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}
.sh-btn--facebook:hover {
    background: #1465d4;
    border-color: #1465d4;
    color: #fff;
}

/* ── My Clips icon button labels (MP3 vs Reel distinction) ───── */
.dashboard-clip__icon-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    display: block;
}
.dashboard-clip__icon-btn--reel {
    color: var(--sh-orange);
    border-color: var(--sh-orange);
}
.dashboard-clip__icon-btn--reel:hover {
    background: var(--sh-orange);
    color: #fff;
}

/* ── Admin packages table fix ────────────────────────────────── */
.admin-table td, .admin-table th {
    white-space: nowrap;
    padding: 0.6rem 0.75rem;
}
.admin-packages-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

/* ── Stage 2.1: Input autofill + email/password LTR ─────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px var(--sh-dark-3) inset !important;
    -webkit-text-fill-color: var(--sh-text) !important;
    caret-color: var(--sh-text);
}

input[type="email"],
input[type="password"] {
    direction: ltr;
    text-align: left;
}

/* ── Shared branded audio player component ───────────────────── */
.sh-audio-player { margin: 1rem 0; }
.sh-audio-player__label { font-size: 0.8rem; color: var(--sh-text-muted); margin-bottom: 0.5rem; }
.sh-audio-player__ui {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sh-audio-player__playbtn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--sh-orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}
.sh-audio-player__playbtn:hover { background: var(--sh-orange-light); transform: scale(1.06); }
.sh-audio-player__playbtn svg { width: 18px; height: 18px; display: block; }
.sh-audio-player__progress-wrap { flex: 1; }
.sh-audio-player__bar {
    position: relative;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    cursor: pointer;
    margin: 12px 0;
}
.sh-audio-player__bar-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: var(--sh-orange);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}
.sh-audio-player__bar-thumb {
    position: absolute;
    top: 50%; left: 0%;
    width: 14px; height: 14px;
    background: var(--sh-text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0,0,0,0.6);
    pointer-events: none;
}
.sh-audio-player__time {
    font-size: 0.72rem;
    color: var(--sh-text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 76px;
    text-align: right;
}
.sh-audio-player__native { display: none; }

/* ── Branded file upload zone ────────────────────────────────── */
.sh-upload-zone {
    border: 2px dashed var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--sh-transition), background var(--sh-transition);
    background: var(--sh-dark-3);
}
.sh-upload-zone:hover { border-color: var(--sh-orange); background: var(--sh-dark-4); }
.sh-upload-zone input[type="file"] { display: none !important; }
.sh-upload-zone__icon { color: var(--sh-orange); margin-bottom: 0.5rem; }
.sh-upload-zone__label { font-size: 0.9rem; color: var(--sh-text-primary); margin-bottom: 0.25rem; }
.sh-upload-zone__hint { font-size: 0.75rem; color: var(--sh-text-muted); }
.sh-upload-zone__filename { font-size: 0.8rem; color: var(--sh-orange); margin-top: 0.5rem; display: none; }
.sh-upload-zone--has-file { border-color: var(--sh-orange); }
.sh-upload-zone--has-file .sh-upload-zone__filename { display: block; }

/* Studio cover upload — hide native input */
.studio-cover-upload-input { display: none; }

/* ── Compact file upload ─────────────────────────────────────── */
.sh-upload-compact { display: flex; align-items: center; gap: 0.75rem; }
.sh-upload-compact__name { font-size: 0.8rem; color: var(--sh-text-muted); }
.sh-upload-compact__name--chosen { color: var(--sh-orange); }

/* ── Select wrapper with custom chevron (Task 5A) ────────────── */
.sh-select-wrap { position: relative; display: block; }
.sh-select-wrap::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--sh-text-muted);
    pointer-events: none;
}
.sh-select-wrap .sh-select { padding-right: 2.5rem; }
.sh-select-wrap--sm::after { right: 0.75rem; border-left-width: 4px; border-right-width: 4px; border-top-width: 5px; }

/* ── No-cover card — remove dark overlay so placeholder is visible ── */
.discover-card--no-cover .discover-card__cover-overlay { background: transparent; }

/* ── Single column on small mobile (Task 8) ─────────────────── */
@media(max-width:480px){
    .discover-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Public Player collapsible Embed section ─────────────────── */
.player-share-box--collapsible { margin-top: 1rem; }
.player-share-box__summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--sh-text-muted);
    padding: 0.5rem 0;
    list-style: none;
    user-select: none;
}
.player-share-box__summary::-webkit-details-marker { display: none; }
.player-share-box__summary::before {
    content: '+ ';
    color: var(--sh-orange);
    font-weight: 600;
}
.player-share-box--collapsible[open] .player-share-box__summary::before {
    content: '− ';
}
.player-share-box--collapsible[open] .player-share-box__summary {
    color: var(--sh-text-primary);
}

/* ── Public Player action rows ───────────────────────────────── */
.player-actions--downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
}
.player-actions--downloads .sh-btn { flex: 1; min-width: 0; justify-content: center; }
.player-actions--share {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.player-actions--share .sh-btn { flex: 1; min-width: 0; justify-content: center; }

/* ── Public Player brand mark ────────────────────────────────── */
.player-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sh-border);
    font-size: 0.75rem;
    color: var(--sh-text-muted);
}
.player-brand-mark__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--sh-orange);
    font-weight: 600;
}
.player-brand-mark__logo-ar {
    font-family: var(--sh-font-rtl);
    font-size: 0.95rem;
}
.player-brand-mark__logo-en {
    font-family: var(--sh-font-en);
    font-size: 0.85rem;
}
.player-brand-mark__logo:hover { color: var(--sh-orange-light); }

/* ── Public Player lyrics card polish ────────────────────────── */
.player-lyrics-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.player-lyrics-card__header svg {
    color: var(--sh-orange);
    flex-shrink: 0;
}

/* ── Discover card reel video preview ─────────────────────────── */
.discover-card__cover-reel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

