:root {
    --bg: #f7f5ef;
    --surface: #ffffff;
    --card-soft: #fbfaf4;
    --ink: #161616;
    --muted: #6f6a61;
    --line: #ded9ce;
    --primary: #0d335f;
    --primary-dark: #092747;
    --accent: #b98b0d;
    --accent-ink: #785b00;
    --link: #0d335f;
    --link-hover: var(--accent-ink);
    --header-bg: #f7f5ef;
    --footer-bg: #0d335f;
    --hover-bg: #eef5fb;
    --soft: #eef5fb;
    --blue-chip: #e7f2ff;
    --green-chip: #dff5eb;
    --gold-chip: #fff0d7;
    --danger: #b42318;
    --success: #027a48;
    --shadow: 0 16px 36px rgba(13, 51, 95, .08);
}

:root[data-theme="dark"] {
    --bg: #0f1724;
    --surface: #162132;
    --card-soft: #111a28;
    --ink: #f4f7fb;
    --muted: #a9b4c3;
    --line: #2a3a4f;
    --primary: #0f3460;
    --primary-dark: #0a2749;
    --accent: #ffb400;
    --accent-ink: #ffb400;
    --soft: #152a42;
    --blue-chip: #173656;
    --green-chip: #143b31;
    --gold-chip: #3f3216;
    --shadow: 0 18px 46px rgba(0, 0, 0, .26);
    --link: #cfe3ff;
    --link-hover: var(--accent-ink);
    --hover-bg: #152a42;
}

* { box-sizing: border-box; }
.password-input-wrap { display: block; position: relative; width: 100%; }
.password-input-wrap > input { width: 100%; }
button.password-visibility-toggle { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 8px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
button.password-visibility-toggle:hover, button.password-visibility-toggle:focus-visible { color: var(--primary); background: var(--hover-bg); }
.password-visibility-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.email-verification-status { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.email-verification-status > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.email-verification-status p { margin: 4px 0 10px; }
.email-verification-status.verified { border-color: #86d5af; background: var(--green-chip); color: #146c43; }
:root[data-theme="dark"] .email-verification-status.verified { border-color: #215446; color: #a9ead5; }
.email-verification-status.verified > span { background: #198754; color: #fff; }
.email-verification-status.unverified { border-color: #f0c36d; background: var(--gold-chip); }
.email-verification-status.unverified > span { background: #a66500; color: #fff; }
body {
    margin: 0;
    font-family: var(--font-main, Cairo, Tajawal, Tahoma, Arial, sans-serif);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.8;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img, audio { max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--header-bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
:root[data-theme="dark"] .site-header { background: rgba(15, 23, 36, .94); }
.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 0; font-weight: 800; flex: 0 1 auto; }
.brand-logo-full { display: block; width: auto; height: 50px; max-width: 100%; object-fit: contain; }
.brand-logo-full.brand-logo-dark, .brand-logo-compact { display: none; }
:root[data-theme="dark"] .brand-logo-full.brand-logo-light,
:root[data-theme="dark"] .brand-logo-compact.brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-full.brand-logo-dark { display: block; }
.admin-sidebar .admin-brand { display: flex; align-items: center; width: fit-content; margin: 0 0 16px; padding: 0; }
.admin-brand img { display: block; width: 100%; max-width: 190px; height: auto; max-height: 54px; object-fit: contain; object-position: right center; }
.brand, .main-nav a { color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 18px; color: #344054; }
.main-nav a:hover { color: var(--link-hover); }
.member-message-alert {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-chip);
    color: var(--primary) !important;
    font-size: 19px;
}
.member-message-badge {
    position: absolute;
    top: -5px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #17202a;
    font-size: 11px;
    font-weight: 800;
    padding: 0 6px;
}
.message-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}
.section-tight { padding-top: 18px; padding-bottom: 0; }
.nav-toggle { display: none; border: 0; background: var(--surface); font-size: 24px; border-radius: 8px; padding: 6px 12px; }
.btn, button, input[type="submit"], input[type="button"], a.btn, .admin-btn, .action-btn {
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    padding: 11px 18px;
    font-weight: 700;
    font-family: Cairo, var(--font-main, Tajawal, Tahoma, Arial, sans-serif);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover, button:hover, input[type="submit"]:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--accent); color: #161616; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); }
.btn-small { padding: 7px 12px; font-size: 14px; }
.theme-toggle {
    width: 42px;
    height: 42px;
    margin: 10px 0 14px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
}
.theme-toggle-public {
    width: 36px;
    height: 36px;
    margin: 0;
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 0;
    font-size: 18px;
}
.hero {
    padding: 72px 0 38px;
    background:
        linear-gradient(90deg, rgba(13, 51, 95, .97), rgba(13, 51, 95, .82)),
        url('../img/hero-pattern.svg');
    color: #fff;
}
.services-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 0 40px;
    text-align: center;
    color: #fff;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 180, 0, .15);
    border: 1px solid rgba(255, 180, 0, .4);
    color: #ffb400;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.services-hero h1 {
    margin: 0 0 8px;
    font-family: var(--font-main, Tajawal, Cairo, Tahoma, Arial, sans-serif);
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.3;
}
.services-hero p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }
.hero-search {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin: 24px auto 0;
}
.hero-search span { color: rgba(255,255,255,.45); font-size: 18px; }
.hero-search input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    padding: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,.36); }
.hero-search button {
    border-radius: 8px;
    padding: 7px 14px;
    background: #ffb400;
    color: #1a1a2e;
}
.filter-strip {
    background: var(--surface);
    border-bottom: .5px solid var(--line);
}
.filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-block: 18px;
}
.filter-btn {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    border: .5px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    transition: all .2s;
}
.filter-btn.active,
.filter-btn:hover {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.22; margin: 0 0 18px; }
.hero p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 720px; }
.hero-promise {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 6px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(214, 0, 132, .78);
    border: 1px solid rgba(255, 128, 205, .72);
    color: #fff;
    font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: 24px;
}
.hero-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.hero-stat span { display: block; font-size: 26px; font-weight: 800; }
.section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2, .page-title h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.35; }
.section-head p, .page-title p { color: var(--muted); margin: 8px 0 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.category-card { min-height: 135px; }
.category-card strong { font-size: 20px; }
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    color: var(--muted);
}
.blog-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.blog-category-card {
    display: grid;
    gap: 12px;
}
.blog-category-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}
.clients-section {
    overflow: hidden;
}
.clients-marquee {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 16px 0;
    direction: ltr;
}
.clients-track {
    display: flex;
    width: max-content;
    gap: 0;
    align-items: center;
    animation: clients-marquee var(--clients-speed, 30s) linear infinite;
    will-change: transform;
}
.clients-set {
    display: flex;
    align-items: center;
    gap: 38px;
    padding-inline: 19px;
}
.client-logo-item {
    display: grid;
    place-items: center;
    width: var(--client-logo-width, 120px);
    height: var(--client-logo-height, 70px);
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    opacity: .82;
    transition: opacity .2s, transform .2s;
}
.client-logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.client-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(.95);
}
@keyframes clients-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.muted { color: var(--muted); }
.talent-card { display: flex; flex-direction: column; gap: 14px; }
.talent-card img, .profile-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft);
}
.profile-views-count {
    margin: 12px 0 18px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--blue-chip);
    color: #1d65a6;
    border: 1px solid #d4e9fb;
    font-weight: 700;
    text-align: center;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.talent-stats-row {
    align-items: center;
    gap: 10px;
}
.talent-stat-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.pill {
    display: inline-flex;
    align-items: center;
    background: var(--blue-chip);
    color: #1d65a6;
    border: 1px solid #d4e9fb;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.page-title { padding: 46px 0 20px; }
.form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.search-panel { margin-bottom: 24px; }
.search-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.price-currency-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
}
label { display: block; font-weight: 700; margin-bottom: 7px; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    background: #101827;
    border-color: var(--line);
    color: var(--ink);
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
}
.western-date-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
}
.western-date-row input[data-western-date-ready] {
    width: 100%;
    direction: ltr;
    text-align: left;
}
.western-date-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
}
.western-date-calendar {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    direction: rtl;
}
.western-date-calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    text-align: center;
}
.western-date-nav {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 20px;
}
.western-date-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
}
.western-date-calendar-days > span,
.western-date-day {
    min-width: 0;
    min-height: 36px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 4px;
    font-size: 14px;
    line-height: 1.3;
}
.western-date-calendar-days > span {
    color: var(--muted);
    font-weight: 700;
}
.western-date-day {
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
}
.western-date-day:hover,
.western-date-day[aria-current="date"] {
    border-color: var(--primary);
    background: var(--soft);
    color: var(--ink);
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    gap: 7px;
    margin: 0;
    cursor: pointer;
}
.field:has(> label:not(:has(input)) + label:has(input[type="checkbox"])),
.field:has(> label:not(:has(input)) + label:has(input[type="radio"])) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.field:has(> label:not(:has(input)) + label:has(input[type="checkbox"])) > label:first-child,
.field:has(> label:not(:has(input)) + label:has(input[type="radio"])) > label:first-child {
    flex: 0 0 100%;
}
select[multiple] { min-height: 148px; }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 16px; }
.field small {
    display: block;
    margin-top: 6px;
}
.char-counter {
    color: var(--muted);
    font-size: 12px;
}
.char-counter.is-over-limit { color: var(--danger); font-weight: 800; }
.radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px 16px;
}
.radio-group label,
.sample-type-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 600;
}
.upload-dropzone {
    display: grid;
    gap: 10px;
    place-items: center;
    min-height: 150px;
    padding: 18px;
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    background: var(--card-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}
.upload-dropzone input { max-width: 320px; }
.upload-dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--hover-bg);
    transform: translateY(-1px);
}
.client-logo-link-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.client-logo-link-row {
    display: grid;
    grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-soft);
}
.client-logo-link-row label {
    margin: 0;
    overflow-wrap: anywhere;
}
.sort-order-input {
    width: 90px;
}
.sample-type-form {
    display: grid;
    gap: 6px;
    min-width: 160px;
}
.sample-type-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 10px;
    background: #eadcff;
    --discovery-tag-text: #5b3b83;
    color: var(--discovery-tag-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.semantic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid;
}
:root[data-theme="dark"] .sample-type-badge {
    background: #302445;
    --discovery-tag-text: #dbc9ff;
    color: var(--discovery-tag-text);
}
.service-price-list {
    display: grid;
    gap: 12px;
}
.service-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-soft);
}
.service-recommendation-note {
    margin-top: 8px;
}
.service-recommendation-levels {
    margin: 6px 0 0;
    padding-inline-start: 20px;
    color: var(--muted);
    line-height: 1.9;
}
.service-recommendation-levels li {
    overflow-wrap: anywhere;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reaction-form button:disabled {
    opacity: .65;
    cursor: progress;
}
.reaction-feedback {
    color: var(--success);
    font-size: 13px;
}
.reaction-feedback.is-error { color: var(--danger); }
.member-message-card {
    display: grid;
    gap: 12px;
}
.admin-message-card {
    display: grid;
    gap: 14px;
}
.message-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}
.message-snippet {
    max-width: 360px;
    overflow-wrap: break-word;
    line-height: 1.7;
}
.message-detail-list {
    display: grid;
    gap: 16px;
}
.admin-message-body {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-soft);
    line-height: 2;
    overflow-wrap: break-word;
    white-space: normal;
}
.alert { padding: 12px 14px; border-radius: 8px; margin: 16px 0 0; border: 1px solid var(--line); background: var(--surface); }
.alert-success { border-color: #abefc6; color: var(--success); }
.alert-error { border-color: #fecdca; color: var(--danger); }
:root[data-theme="dark"] .alert-success { border-color: #215446; color: #72e6b4; }
:root[data-theme="dark"] .alert-error { border-color: #7a3139; color: #ff9992; }
.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.audio-card { display: grid; gap: 12px; }
.member-samples-table tr.is-dragging,
.member-samples-table tr.sortable-ghost,
[data-client-sort-list] tr.is-dragging {
    opacity: .55;
}
.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: grab;
    background: var(--card-soft);
    color: var(--primary);
    border: 1px solid var(--line);
}
.drag-handle:active {
    cursor: grabbing;
}
.member-samples-table tr {
    transition: box-shadow .16s ease, opacity .16s ease, background-color .16s ease;
}
.member-samples-table tr:has(.drag-handle:hover) {
    background: var(--hover-bg);
}
.member-samples-table tr.is-dragging,
.member-samples-table tr.sortable-chosen {
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    outline: 1px dashed var(--accent);
}
.member-samples-table tr.sortable-drag {
    cursor: grabbing;
}
.sample-order-status {
    min-height: 24px;
    margin: 8px 0;
    color: var(--success);
    font-weight: 700;
}
.sample-order-status.is-error {
    color: var(--danger);
}
.sample-edit-row td {
    background: var(--card-soft);
    border-top: 1px solid var(--line);
}
.sample-edit-form {
    padding: 12px;
}
.sample-edit-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(160px, .8fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
}
.reaction-form { display: inline; }
.reaction-form button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 7px 10px; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.rating-summary {
    font-size: 18px;
    font-weight: 800;
    margin-top: 8px;
}
.review-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.review-stars-preview { color: #f59e0b; font-size: 20px; letter-spacing: 1px; }
.rating-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
    margin-bottom: 8px;
}
.rating-picker button {
    width: auto;
    padding: 0 2px;
    background: transparent;
    color: #c9c1b4;
    border: 0;
    font-size: 30px;
    line-height: 1;
}
.rating-picker button:hover,
.rating-picker button.is-preview,
.rating-picker button.is-active,
.rating-picker button:hover ~ button {
    color: #f59e0b;
    background: transparent;
}
.rating-select {
    max-width: 180px;
    display: none;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.reviews-panel {
    grid-column: 1 / -1;
}
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
th { background: #f2ede6; color: #161616; }
:root[data-theme="dark"] th { background: var(--surface); color: var(--ink); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: var(--primary); color: #fff; padding: 22px; }
.admin-sidebar a { display: block; padding: 10px 0; color: rgba(255,255,255,.82); }
.admin-sidebar a:hover { color: #fff; }
.admin-nav-link { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.admin-member-switch-form { margin: 0; }
.admin-member-switch-btn {
    width: 100%;
    text-align: right;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,.82);
    cursor: pointer;
    padding: 10px 0;
    font: inherit;
}
.admin-member-switch-btn:hover { color: #fff; }
.admin-member-mode-bar {
    background: #e7f2ff;
    border: 1px solid #b9dcff;
    color: #0d335f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
:root[data-theme="dark"] .admin-member-mode-bar {
    background: var(--blue-chip);
    border-color: var(--line);
    color: var(--link);
}

.messenger-layout {
    display: grid;
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}
.conversation-list,
.message-thread {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.conversation-list h2 {
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
}
.conversation-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}
.conversation-item:hover,
.conversation-item.active {
    background: var(--hover-bg);
}
.conversation-item.unread strong {
    font-weight: 800;
}
.conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
    font-weight: 700;
}
.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conversation-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.conversation-meta small,
.conversation-side small {
    color: var(--muted);
}
.conversation-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    font-size: .8rem;
}
.conversation-side b {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #161616;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}
.message-thread {
    display: grid;
    grid-template-rows: auto minmax(320px, 58vh) auto;
}
.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.thread-header h2 {
    margin: 0;
    font-size: 1.15rem;
}
.thread-back {
    display: none;
}
.thread-messages {
    padding: 18px;
    overflow: auto;
    background: var(--card-soft);
}
.message-bubble {
    max-width: min(72%, 620px);
    padding: 10px 13px;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    line-height: 1.75;
    border: 1px solid var(--line);
}
.message-bubble time {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-top: 6px;
}
.message-bubble.outgoing {
    margin-right: auto;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.message-bubble.outgoing time {
    color: rgba(255,255,255,.78);
}
.message-bubble.incoming {
    margin-left: auto;
    background: var(--surface);
    color: var(--ink);
}
.reply-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.reply-composer textarea {
    min-height: 48px;
    max-height: 130px;
    resize: vertical;
}
.emoji-picker-wrap {
    position: relative;
}
.emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    z-index: 5;
}
.emoji-picker button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
}
@media (max-width: 760px) {
    .messenger-layout {
        grid-template-columns: 1fr;
    }
    .message-thread {
        grid-template-rows: auto minmax(360px, 62vh) auto;
    }
    .thread-back {
        display: inline-flex;
    }
    .message-bubble {
        max-width: 88%;
    }
    .reply-composer {
        grid-template-columns: auto 1fr;
    }
    .reply-composer .btn:not([data-emoji-toggle]) {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Premium conversation UI - mapped to existing badge preset families. */
:root {
    --message-self-text: #075985;
    --message-self-bg: #e0f7ff;
    --message-self-border: #a5e7ff;
    --message-other-text: #5b21b6;
    --message-other-bg: #ede9fe;
    --message-other-border: #c4b5fd;
}
.message-thread {
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(13, 51, 95, .08);
}
.thread-header {
    padding: 18px 20px;
    background: var(--surface);
}
.thread-header .muted {
    margin: 4px 0 0;
}
.messages-thread,
.thread-messages {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px;
    background:
        radial-gradient(circle at 15% 15%, rgba(224, 247, 255, .36), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(237, 233, 254, .42), transparent 30%),
        var(--card-soft);
}
.message-row {
    display: flex;
    width: 100%;
}
.message-row.message-self {
    justify-content: flex-end;
}
.message-row.message-other {
    justify-content: flex-start;
}
.message-row .message-bubble {
    max-width: min(74%, 680px);
    margin: 0;
    padding: 13px 16px 10px;
    border: 1px solid;
    border-radius: 22px;
    color: var(--ink);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-shadow: 0 10px 24px rgba(13, 51, 95, .06);
}
.message-self .message-bubble {
    color: var(--message-self-text);
    background: var(--message-self-bg);
    border-color: var(--message-self-border);
    border-bottom-right-radius: 8px;
}
.message-other .message-bubble {
    color: var(--message-other-text);
    background: var(--message-other-bg);
    border-color: var(--message-other-border);
    border-bottom-left-radius: 8px;
}
.message-text {
    white-space: pre-wrap;
}
.message-sender,
.admin-message-bubble > strong {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 700;
}
.message-time,
.message-bubble time {
    display: block;
    margin-top: 8px;
    color: currentColor;
    font-size: .78rem;
    font-weight: 500;
    opacity: .66;
}
.message-bubble.outgoing,
.message-bubble.incoming {
    margin: 0;
    color: inherit;
}
.message-bubble.outgoing {
    background: var(--message-self-bg);
    border-color: var(--message-self-border);
    color: var(--message-self-text);
}
.message-bubble.incoming {
    background: var(--message-other-bg);
    border-color: var(--message-other-border);
    color: var(--message-other-text);
}
.message-admin-actions {
    margin-top: 10px;
}
.reply-composer {
    margin: 0;
    padding: 14px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(13, 51, 95, .05);
}
.reply-composer textarea {
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--ink);
    background: var(--surface);
}
.reply-composer textarea::placeholder {
    color: var(--muted);
    opacity: .9;
}
.emoji-picker {
    border-radius: 14px;
}
@media (max-width: 760px) {
    .messages-thread,
    .thread-messages {
        padding: 14px;
    }
    .message-row .message-bubble {
        max-width: 92%;
        font-size: 15px;
        padding: 12px 14px 9px;
    }
}
.admin-badge {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffb400;
    color: #17202a;
    font-size: 12px;
    font-weight: 800;
    padding: 0 7px;
}
.admin-main { padding: 24px; }
.compact-head { margin-bottom: 12px; }
.admin-notes-card { min-height: 100%; }
.admin-notes {
    min-height: 260px;
    line-height: 1.9;
}
.autosave-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--blue-chip);
    color: #185fa5;
    font-size: 12px;
    white-space: nowrap;
}
:root[data-theme="dark"] .autosave-status { color: #b8d9ff; }
.status { font-weight: 800; }
.status-approved, .status-active { color: var(--success); }
.status-pending { color: #b54708; }
.status-rejected, .status-suspended { color: var(--danger); }
:root[data-theme="dark"] .status-approved,
:root[data-theme="dark"] .status-active { color: #72e6b4; }
:root[data-theme="dark"] .status-pending { color: #ffd08a; }
:root[data-theme="dark"] .status-rejected,
:root[data-theme="dark"] .status-suspended { color: #ff9992; }
.site-footer { background: var(--footer-bg); color: #eef2f6; padding: 42px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 24px; }
.site-footer a, .site-footer p { display: block; color: #cbd5e1; margin: 8px 0; }
.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.footer-stats div {
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
}
.footer-stats span {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}
.copyright { color: #94a3b8; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 20px; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; }
.profile-info-card {
    display: grid;
    gap: 18px;
}
.profile-info-card h2 { margin: 0; }
.profile-bio {
    margin: 0;
    color: var(--muted);
    line-height: 2;
}
.profile-info-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.profile-info-group {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-soft);
}
.profile-info-group h3 {
    margin: 0 0 12px;
    color: #9b8971;
    font-size: 15px;
}
.profile-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
}
.chip-blue {
    background: #e7f2ff;
    --discovery-tag-text: #1d65a6;
    color: var(--discovery-tag-text);
    border-color: #d4e9fb;
}
.chip-green {
    background: #dff5eb;
    --discovery-tag-text: #0f6e56;
    color: var(--discovery-tag-text);
    border-color: #ccebdd;
}
.chip-gold {
    background: #fff0d7;
    --discovery-tag-text: #854f0b;
    color: var(--discovery-tag-text);
    border-color: #f6dfb8;
}
.chip-purple {
    background: #eadcff;
    --discovery-tag-text: #6941a8;
    color: var(--discovery-tag-text);
    border-color: #d9c6fb;
}
.chip-pink {
    background: #ffe0ef;
    --discovery-tag-text: #a53266;
    color: var(--discovery-tag-text);
    border-color: #f8c8dd;
}
.chip-mauve {
    background: #f0e4ff;
    --discovery-tag-text: #7543a6;
    color: var(--discovery-tag-text);
    border-color: #dec8fb;
}
.chip-rose {
    background: #ffddeb;
    --discovery-tag-text: #a12d5b;
    color: var(--discovery-tag-text);
    border-color: #f4bdd3;
}
.chip-peach {
    background: #ffe8d6;
    --discovery-tag-text: #9a4d18;
    color: var(--discovery-tag-text);
    border-color: #f8d4b8;
}
:root[data-theme="dark"] .chip-blue { background: #173656; --discovery-tag-text: #b8d9ff; color: var(--discovery-tag-text); border-color: #24496d; }
:root[data-theme="dark"] .chip-green { background: #143b31; --discovery-tag-text: #a9ead5; color: var(--discovery-tag-text); border-color: #215446; }
:root[data-theme="dark"] .chip-gold { background: #3f3216; --discovery-tag-text: #ffd891; color: var(--discovery-tag-text); border-color: #665025; }
:root[data-theme="dark"] .chip-purple { background: #302445; --discovery-tag-text: #dbc9ff; color: var(--discovery-tag-text); border-color: #4c3970; }
:root[data-theme="dark"] .chip-pink { background: #452235; --discovery-tag-text: #ffc4dd; color: var(--discovery-tag-text); border-color: #6f3854; }
:root[data-theme="dark"] .chip-mauve { background: #342246; --discovery-tag-text: #e0c7ff; color: var(--discovery-tag-text); border-color: #5a3a76; }
:root[data-theme="dark"] .chip-rose { background: #472232; --discovery-tag-text: #ffc2d8; color: var(--discovery-tag-text); border-color: #75364f; }
:root[data-theme="dark"] .chip-peach { background: #452b1e; --discovery-tag-text: #ffd1b0; color: var(--discovery-tag-text); border-color: #70472f; }
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    padding: 0;
    box-shadow: 0 8px 18px rgba(13, 51, 95, .16);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(13, 51, 95, .22);
}
.social-link-facebook { background: #1877f2; }
.social-link-instagram {
    background: linear-gradient(135deg, #405de6 0%, #5851db 16%, #833ab4 34%, #c13584 50%, #e1306c 64%, #fd1d1d 78%, #f56040 90%, #fcaf45 100%);
}
.social-link-youtube { background: #ff0000; }
.social-link-linkedin { background: #0a66c2; }
.social-link-x { background: #111; }
.social-link-tiktok { background: #000; }
.social-link-soundcloud { background: #ff5500; }
.social-link-whatsapp { background: #25d366; }
.social-link-telegram { background: #229ed9; }
.social-link-website {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--line);
}
.social-link-website:hover { color: var(--primary); }
.site-footer .social-link {
    color: #fff;
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.site-footer .social-link-website {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.footer-email-protected {
    direction: ltr;
    unicode-bidi: isolate;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}
.footer-email-protected span { pointer-events: none; }
.profile-social-links { margin-bottom: 18px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 7px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
}
.share-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.share-link:hover { color: #fff; filter: brightness(1.05); }
.share-link:not([class*="social-link-"]):hover { background: var(--primary-dark); }
.social-admin-list { display: grid; gap: 10px; margin-bottom: 18px; }
.social-admin-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; }
.color-field {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
}
.color-field label { grid-column: 1 / -1; }
.color-field input[type="color"] {
    height: 44px;
    padding: 4px;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.editor-toolbar button {
    width: auto;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--card-soft);
    border: 1px solid var(--line);
    color: var(--ink);
}
.rich-editor {
    min-height: 220px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
    color: var(--ink);
}
.rich-editor:focus { outline: 2px solid rgba(15, 52, 96, .18); }
.html-code-editor {
    min-height: 320px;
    direction: ltr;
    text-align: left;
    font-family: Consolas, Monaco, "Courier New", monospace;
    line-height: 1.6;
}
.blog-rich-editor {
    min-height: 360px;
    line-height: 2;
}
.blog-rich-editor h2,
.blog-rich-editor h3,
.blog-rich-editor h4,
.blog-content h2,
.blog-content h3,
.blog-content h4 { line-height: 1.45; }
.blog-rich-editor img,
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.blog-rich-editor table,
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.blog-rich-editor th,
.blog-rich-editor td,
.blog-content th,
.blog-content td {
    border: 1px solid var(--line);
    padding: 10px;
}
.blog-editor-toolbar input[type="color"] {
    width: 42px;
    height: 34px;
    padding: 2px;
}
.blog-editor-toolbar select {
    min-height: 34px;
    width: auto;
    padding: 4px 8px;
}
.blog-admin-current-image {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}
.blog-admin-current-image img,
.admin-thumb {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.blog-list {
    display: grid;
    gap: 22px;
}
.blog-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 150px;
}
.blog-card-image {
    display: block;
    width: 220px;
    height: 150px;
    background: var(--soft);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 18px 20px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
}
.blog-card-body h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.45;
}
.blog-card-body small,
.blog-detail-head small {
    color: var(--accent);
    font-weight: 800;
}
.blog-detail-container {
    max-width: 880px;
}
.blog-detail-head {
    margin-bottom: 18px;
}
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-top: 10px;
}
.blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.8;
    margin: 0;
}
.blog-detail-head h1 {
    margin: 6px 0 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.35;
}
.blog-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.blog-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    line-height: 2.05;
}
.blog-content p { margin: 0 0 16px; }
.blog-content a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.blog-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-inline-start: 4px solid var(--accent);
    background: var(--card-soft);
    border-radius: 8px;
}

.voice-card-grid { align-items: start; }
.voice-card {
    overflow: hidden;
    background: var(--surface);
    border: .5px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.voice-card:hover { transform: translateY(-3px); }
.voice-card-head {
    position: relative;
    min-height: 110px;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 14px;
    padding: 24px 20px 16px;
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
}
.talent-name { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.talent-title { color: rgba(255,255,255,.58); font-size: 12px; }
.avatar-img,
.avatar-fallback {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 180, 0, .5);
    background: linear-gradient(135deg, #2d6a4f, #1b4332);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}
.verified-badge {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    background: rgba(255, 180, 0, .2);
    color: #ffb400;
    border: 1px solid rgba(255, 180, 0, .4);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
}
.voice-card-body { padding: 16px 20px; background: #fff; }
:root[data-theme="dark"] .voice-card-body { background: var(--surface); }
.voice-section-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin: 8px 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-flex; font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600; line-height: 1.4; }
.filter-btn,
.category-card.semantic-badge,
.audio-dur.semantic-badge {
    font-weight: 600;
    line-height: 1.4;
}
.category-card.semantic-badge strong {
    font-weight: 600;
}
.tag-lang { background: #e6f1fb; --discovery-tag-text: #185fa5; color: var(--discovery-tag-text); }
.tag-accent { background: #e1f5ee; --discovery-tag-text: #0f6e56; color: var(--discovery-tag-text); }
.tag-style { background: #faeeda; --discovery-tag-text: #854f0b; color: var(--discovery-tag-text); }
.audio-bar {
    background: var(--card-soft);
    border: .5px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: background .2s;
}
.audio-bar:hover { background: var(--hover-bg); }
.legacy-audio-card-hidden,
.legacy-audio-bar-hidden,
.legacy-rating-select-hidden {
    display: none !important;
}
.custom-audio-player {
    background: var(--card-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    direction: ltr;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "head head" "play wave" "meta meta";
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(13, 51, 95, .06);
}
.custom-audio-player.is-compact {
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: none;
}
.custom-audio-source {
    display: none;
}
.custom-play-btn {
    grid-area: play;
    justify-self: start;
    direction: ltr;
    padding: 0;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 0;
    border-radius: 50%;
    background: #0f3460;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 52, 96, .18);
}
.custom-play-btn:hover { background: #1d4e87; color: #fff; }
.custom-audio-player.is-compact .custom-play-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
}
.custom-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-inline-start: 2px;
}
.custom-audio-player.is-playing .custom-play-icon {
    width: 12px;
    height: 14px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}
.custom-audio-main {
    display: contents;
}
.custom-audio-head {
    grid-area: head;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    gap: 5px;
}
.custom-audio-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.custom-audio-player.is-compact .custom-audio-title {
    font-size: 12px;
}
.custom-audio-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
}
/* The timeline and seeking use physical left-to-right coordinates. */
.custom-audio-player .custom-wave {
    grid-area: wave;
    position: relative;
    display: block;
    direction: ltr;
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #e8edf3;
    cursor: pointer;
    overflow: hidden;
}
.custom-audio-player .custom-wave:hover { background: #e8edf3; }
.custom-audio-player .custom-wave-bars {
    position: absolute;
    inset: 0;
    z-index: 2;
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 0 5px;
    pointer-events: none;
}
.custom-audio-player .custom-wave .wave-bar {
    flex: 1 1 0;
    min-width: 0;
    max-width: 6px;
    background: #718096;
    opacity: .9;
}
.custom-audio-player .custom-wave .wave-bar.on { background: #1d4e87; opacity: 1; }
.custom-audio-player .custom-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 6px 0 0 6px;
    background: rgba(29, 78, 135, .12);
    transition: width .12s linear;
    pointer-events: none;
    z-index: 1;
}
:root[data-theme="dark"] .custom-audio-player .custom-wave,
:root[data-theme="dark"] .custom-audio-player .custom-wave:hover { background: #20344a; }
:root[data-theme="dark"] .custom-audio-player .custom-wave .wave-bar { background: #8da2b9; }
:root[data-theme="dark"] .custom-audio-player .custom-wave .wave-bar.on { background: #ffb400; }
:root[data-theme="dark"] .custom-audio-player .custom-progress-fill { background: rgba(255,180,0,.12); }
.custom-audio-side {
    grid-area: meta;
    direction: ltr;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    min-width: 0;
}
.custom-audio-time {
    font-size: 12px;
    color: var(--muted);
    direction: ltr;
}

.custom-audio-player .custom-audio-stats { direction: rtl; flex-wrap: wrap; min-width: 0; max-width: 100%; white-space: normal; }
.custom-audio-player .reaction-feedback { overflow-wrap: anywhere; }
.custom-audio-player .custom-audio-badges > * { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.custom-audio-player .custom-wave:focus-visible { outline: 2px solid #b98b0d; outline-offset: 2px; }
/* Public discovery tags retain their current badge colors and shape. */
.public-discovery-tag { text-decoration: none; transition: transform .15s ease; }
a.public-discovery-tag,
a.public-discovery-tag:visited,
a.public-discovery-tag:hover,
a.public-discovery-tag:active,
a.public-discovery-tag:focus-visible { color: var(--discovery-tag-text, inherit); }
a.public-discovery-tag:hover { transform: translateY(-1px); }
a.public-discovery-tag:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.public-talent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 6px; }
.public-talent-inline { --discovery-tag-text: var(--link); color: var(--discovery-tag-text); text-decoration: none; }
.public-talent-inline:hover { color: var(--discovery-tag-text); text-decoration: underline; }
.discovery-layout { display: grid; gap: 20px; }
.discovery-filters { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.discovery-filters select[multiple] { min-height: 92px; }
.discovery-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.discovery-active > strong { margin-inline-end: 4px; }
.discovery-active .public-discovery-tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.discovery-note { margin: 0; padding: 10px 14px; border-inline-start: 3px solid var(--accent); background: var(--card-soft); color: var(--muted); }
.discovery-unconfirmed { width: fit-content; padding: 2px 8px; border: 1px solid var(--line); background: var(--card-soft); color: var(--muted); font-size: 12px; }
.discovery-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.discovery-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink); border-bottom: 2px solid transparent; }
.discovery-tabs a.active { color: var(--link); border-color: var(--accent); font-weight: 700; }
.discovery-tabs b { direction: ltr; font-variant-numeric: tabular-nums; }
.discovery-sample-card { display: grid; gap: 12px; min-width: 0; }
.discovery-sample-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.discovery-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; }
.discovery-pagination a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
@media (max-width: 640px) {
    .discovery-filters { padding: 12px; }
    .discovery-filters select[multiple] { width: 100%; }
    .discovery-tabs a { flex: 1 1 100%; justify-content: center; }
    .discovery-sample-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .public-discovery-tag { transition: none; }
}
.custom-audio-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
.audio-reaction-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.audio-reaction-btn:hover {
    color: var(--primary);
}
.play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0f3460;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #fff;
    margin-inline-start: 2px;
}
.audio-info { flex: 1; min-width: 0; }
.audio-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-wave { height: 20px; display: flex; align-items: center; gap: 2px; }
.wave-bar { width: 3px; border-radius: 2px; background: #b8b4aa; }
.audio-dur { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.voice-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    padding-top: 8px;
}
.voice-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: var(--card-soft);
    border-top: .5px solid var(--line);
    color: var(--ink);
    font-size: 11px;
}
.contact-info { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.contact-info strong { color: var(--ink); font-weight: 700; }
.hire-btn {
    padding: 7px 16px;
    background: #0f3460;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.hire-btn:hover { background: #1a4a7a; color: #fff; }

@media (max-width: 900px) {
    .service-price-row {
        grid-template-columns: 1fr;
    }
    .blog-category-grid {
        grid-template-columns: 1fr;
    }
    .client-logo-item {
        max-width: 40vw;
    }
    .clients-set {
        gap: 24px;
        padding-inline: 12px;
    }
    .client-logo-link-row {
        grid-template-columns: 1fr;
    }
    .hero-grid, .profile-layout, .admin-shell, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .blog-card { grid-template-columns: 1fr; }
    .blog-card-image { width: 100%; height: 210px; }
    .profile-info-groups { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        inset-inline: 16px;
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 16px;
        box-shadow: var(--shadow);
    }
    :root[data-theme="dark"] .main-nav { background: var(--surface); }
    .main-nav.is-open { display: flex; }
    .admin-sidebar { position: static; }
    .section-head { display: block; }
    .social-admin-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 22px, 1160px); }
    .hero { padding-top: 44px; }
    .hero-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hero-stat div {
        min-width: 0;
        text-align: center;
        padding: 8px 4px;
        border-radius: 8px;
        background: rgba(255,255,255,.08);
    }
    .hero-stat span { font-size: 22px; }
    .footer-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .footer-stats div { padding: 10px 4px; }
    .footer-stats span { font-size: 22px; }
    .blog-card-body, .blog-content { padding: 18px; }
    .card, .form { padding: 16px; }
}

@media (max-width: 240px) {
    .brand-logo-full { display: none; }
    .brand-logo-compact.brand-logo-light { display: block; width: auto; height: 42px; }
    :root[data-theme="dark"] .brand-logo-full.brand-logo-dark { display: none; }
    :root[data-theme="dark"] .brand-logo-compact.brand-logo-dark { display: block; width: auto; height: 42px; }
}
@media (max-width: 640px) {
    .sample-edit-grid {
        grid-template-columns: 1fr;
    }
    .custom-audio-player {
        align-items: center;
        gap: 6px 8px;
    }
    .custom-audio-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .custom-audio-side {
        justify-items: start;
    }
    .custom-audio-stats {
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 340px) {
    .hero-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price-currency-row { grid-template-columns: 1fr; }
}

/* ATV-THEME-03C color correction: keep public navigation readable in both themes. */
:root[data-theme="light"] .site-header {
    background: #f7f5ef !important;
}
:root[data-theme="light"] .site-header .main-nav {
    background: #f7f5ef !important;
    color: #161616 !important;
}
:root[data-theme="light"] .site-header .main-nav > a:not(.btn):not(.member-message-alert),
:root[data-theme="light"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):visited {
    color: #161616 !important;
}
:root[data-theme="light"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):hover,
:root[data-theme="light"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):focus-visible {
    color: #785b00 !important;
}
:root[data-theme="light"] .site-header .nav-toggle,
:root[data-theme="light"] .site-header .theme-toggle-public {
    color: #161616 !important;
}
:root[data-theme="dark"] .site-header {
    background: #0f1724 !important;
}
:root[data-theme="dark"] .site-header .main-nav {
    background: #0f1724 !important;
    color: #f4f7fb !important;
}
:root[data-theme="dark"] .site-header .main-nav > a:not(.btn):not(.member-message-alert),
:root[data-theme="dark"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):visited {
    color: #f4f7fb !important;
}
:root[data-theme="dark"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):hover,
:root[data-theme="dark"] .site-header .main-nav > a:not(.btn):not(.member-message-alert):focus-visible {
    color: #ffb400 !important;
}
:root[data-theme="dark"] .site-header .nav-toggle,
:root[data-theme="dark"] .site-header .theme-toggle-public {
    color: #f4f7fb !important;
}

/* Shared audio reactions: explicit readable hover/focus/active states in both themes.
   Do not inherit legacy general button colors on reaction controls. */
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn {
    --atv-react-bg: #ffffff;
    --atv-react-ink: #17365a;
    --atv-react-border: #c5d0dd;
    --atv-react-hover: #e4effa;
    --atv-react-hover-ink: #0d335f;
    --atv-react-hover-border: #6486ac;
    color: var(--atv-react-ink);
    background: var(--atv-react-bg);
    border: 1px solid var(--atv-react-border);
}
:root[data-theme="dark"] .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn,
:root .tp .tp-feature-player .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn {
    --atv-react-bg: #162132;
    --atv-react-ink: #e7eef7;
    --atv-react-border: #435974;
    --atv-react-hover: #42351b;
    --atv-react-hover-ink: #ffcf62;
    --atv-react-hover-border: #ffb400;
}
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn:hover,
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn:focus-visible,
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn:active {
    color: var(--atv-react-hover-ink);
    background: var(--atv-react-hover);
    border-color: var(--atv-react-hover-border);
}
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn:focus-visible {
    outline: 2px solid var(--atv-react-hover-border);
    outline-offset: 2px;
}
:root .custom-audio-player .custom-audio-stats .reaction-form .audio-reaction-btn:disabled {
    opacity: 1;
    cursor: progress;
    color: var(--atv-react-ink);
    background: var(--atv-react-bg);
    border-color: var(--atv-react-border);
}
:root .tp .tp-feature-player .reaction-feedback { color: #d6e1ef; }
:root .tp .tp-feature-player .reaction-feedback.is-error { color: #ffb4ae; }
