html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25, 227, 50, 0.3); }
    50% { box-shadow: 0 0 16px 4px rgba(25, 227, 50, 0.15); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease both;
}
.fade-in {
    animation: fadeIn 0.45s ease both;
}
.fade-in-scale {
    animation: fadeInScale 0.4s ease both;
}

.stagger-1 { animation-delay: 0.04s; }
.stagger-2 { animation-delay: 0.08s; }
.stagger-3 { animation-delay: 0.12s; }
.stagger-4 { animation-delay: 0.16s; }
.stagger-5 { animation-delay: 0.20s; }
.stagger-6 { animation-delay: 0.24s; }
.stagger-7 { animation-delay: 0.28s; }
.stagger-8 { animation-delay: 0.32s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.main-nav {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
}
.nav-link:active {
    transform: scale(0.97);
}

.nav-sign-in {
    transition: all 0.2s ease !important;
}
.nav-sign-in:active {
    transform: scale(0.96);
}

.nav-avatar {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(25, 227, 50, 0.15);
}

button, .btn, [role="button"], input[type="submit"] {
    transition: all 0.2s ease;
}
button:active, .btn:active, [role="button"]:active, input[type="submit"]:active {
    transform: scale(0.97);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #a1a1aa;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease !important;
}
.theme-toggle:hover { border-color: #19E332; color: #19E332; }
.theme-toggle:active {
    transform: scale(0.88) rotate(15deg);
}
.theme-toggle .moon-icon { display: none; }
body.light-mode .theme-toggle .sun-icon { display: none; }
body.light-mode .theme-toggle .moon-icon { display: block; }
body.light-mode .theme-toggle {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #71717a;
}
body.light-mode .theme-toggle:hover { border-color: #19E332; color: #19E332; }

.client-notif-bell {
    transition: all 0.2s ease !important;
}
.client-notif-bell:active {
    transform: scale(0.9);
}

.client-notif-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: top right;
}
.client-notif-dropdown:not(.open) {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
    pointer-events: none;
}
.client-notif-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    display: block !important;
}

.mobile-sidebar {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.mobile-sidebar-overlay {
    transition: opacity 0.3s ease !important;
    opacity: 0;
}
.mobile-sidebar-overlay.open {
    opacity: 1;
}

.hamburger-btn span {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body {
    transition: background-color 0.35s ease, color 0.35s ease;
}
body.light-mode .main-nav,
.main-nav {
    transition: background 0.35s ease, border-color 0.35s ease;
}

a {
    transition: color 0.2s ease;
}

img {
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(25, 227, 50, 0.1);
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}
body.light-mode .skeleton-shimmer {
    background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%);
    background-size: 800px 100%;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}
body.light-mode ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

::selection {
    background: rgba(25, 227, 50, 0.25);
    color: #fafafa;
}
body.light-mode ::selection {
    background: rgba(25, 227, 50, 0.2);
    color: #18181b;
}

.opah-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* In-app dialog (alert / confirm / prompt / form) */
.opah-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.opah-dialog-overlay.show { opacity: 1; }

.opah-dialog {
    width: 100%;
    max-width: 460px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #fafafa;
    padding: 24px;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.opah-dialog-overlay.show .opah-dialog { transform: translateY(0) scale(1); }

.opah-dialog-title {
    font-size: 17px;
    font-weight: 700;
    color: #fafafa;
    margin: 0;
    line-height: 1.3;
}
.opah-dialog-message {
    font-size: 14px;
    line-height: 1.55;
    color: #d4d4d8;
    margin: 0;
    white-space: pre-wrap;
}
.opah-dialog-message a { color: #19E332; }

.opah-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opah-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.opah-dialog-field label {
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.opah-dialog-field input[type="text"],
.opah-dialog-field input[type="number"],
.opah-dialog-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #fafafa;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.opah-dialog-field textarea { min-height: 80px; resize: vertical; }
.opah-dialog-field input:focus,
.opah-dialog-field textarea:focus {
    border-color: #19E332;
    box-shadow: 0 0 0 3px rgba(25, 227, 50, 0.12);
}

.opah-dialog-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #d4d4d8;
    cursor: pointer;
    user-select: none;
}
.opah-dialog-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #19E332;
    flex-shrink: 0;
    cursor: pointer;
}

.opah-dialog-terms {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #a1a1aa;
    max-height: 220px;
    overflow-y: auto;
}
.opah-dialog-terms strong { color: #fafafa; }
.opah-dialog-terms ul { margin: 6px 0 0; padding-left: 18px; }
.opah-dialog-terms li { margin-bottom: 4px; }

/* Task #154 — talent project acceptance acknowledgment dialog */
.opah-dialog-ack-modal { max-width: 480px; }
.opah-dialog-ack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.opah-dialog-ack-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(25, 227, 50, 0.08);
    border: 1px solid rgba(25, 227, 50, 0.35);
    border-radius: 10px;
    color: #d4d4d8;
}
.opah-dialog-ack-badge svg {
    width: 22px;
    height: 22px;
    color: #19E332;
    flex-shrink: 0;
    margin-top: 1px;
}
.opah-dialog-ack-badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #19E332;
    line-height: 1.2;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.opah-dialog-ack-badge-sub {
    font-size: 12.5px;
    line-height: 1.5;
    color: #d4d4d8;
}
.opah-dialog-ack-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #d4d4d8;
}
.opah-dialog-ack-fineprint {
    font-size: 12.5px;
    line-height: 1.55;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #19E332;
    padding: 10px 12px;
    border-radius: 6px;
}
.opah-dialog-ack-fineprint strong {
    color: #fafafa;
    font-weight: 700;
}

body.light-mode .opah-dialog-ack-badge {
    background: rgba(25, 227, 50, 0.1);
    border-color: rgba(25, 227, 50, 0.5);
    color: #18181b;
}
body.light-mode .opah-dialog-ack-badge-sub { color: #3f3f46; }
body.light-mode .opah-dialog-ack-lead { color: #27272a; }
body.light-mode .opah-dialog-ack-fineprint {
    background: #f4f4f5;
    color: #52525b;
}
body.light-mode .opah-dialog-ack-fineprint strong { color: #09090b; }

.opah-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.opah-dialog-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    min-width: 86px;
}
.opah-dialog-btn:active { transform: scale(0.97); }
.opah-dialog-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.opah-dialog-btn.cancel {
    background: transparent;
    border-color: #3f3f46;
    color: #d4d4d8;
}
.opah-dialog-btn.cancel:hover { border-color: #52525b; color: #fafafa; }

.opah-dialog-btn.confirm {
    background: #19E332;
    color: #09090b;
}
.opah-dialog-btn.confirm:hover { background: #22f73e; }

.opah-dialog-btn.danger {
    background: #ef4444;
    color: #fff;
}
.opah-dialog-btn.danger:hover { background: #dc2626; }

body.light-mode .opah-dialog {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
body.light-mode .opah-dialog-title { color: #09090b; }
body.light-mode .opah-dialog-message { color: #3f3f46; }
body.light-mode .opah-dialog-field label { color: #71717a; }
body.light-mode .opah-dialog-field input,
body.light-mode .opah-dialog-field textarea {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .opah-dialog-checkbox { color: #3f3f46; }
body.light-mode .opah-dialog-terms {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .opah-dialog-terms strong { color: #09090b; }
body.light-mode .opah-dialog-btn.cancel {
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .opah-dialog-btn.cancel:hover { border-color: #a1a1aa; color: #18181b; }

.opah-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 20px 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    font-family: inherit;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #18181b;
    color: #fafafa;
    border: 1px solid #27272a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.opah-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.opah-toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

.opah-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.opah-toast.success .opah-toast-icon {
    background: #19E332;
    color: #09090b;
}

.opah-toast.error .opah-toast-icon {
    background: #ef4444;
    color: #fff;
}

.opah-toast.warning .opah-toast-icon {
    background: #f59e0b;
    color: #09090b;
}

.opah-toast.info .opah-toast-icon {
    background: #3b82f6;
    color: #fff;
}

.opah-toast.success {
    border-color: rgba(25, 227, 50, 0.25);
}

.opah-toast.error {
    border-color: rgba(239, 68, 68, 0.25);
}

.opah-toast.warning {
    border-color: rgba(245, 158, 11, 0.25);
}

.opah-toast.info {
    border-color: rgba(59, 130, 246, 0.25);
}

.opah-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    transition: color 0.15s;
}

.opah-toast-close:hover {
    color: #fafafa;
}

.opah-toast-msg {
    flex: 1;
    white-space: pre-line;
}

.opah-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 12px 12px;
    background: rgba(255,255,255,0.15);
    transition: width linear;
}

.opah-toast.success .opah-toast-progress { background: rgba(25, 227, 50, 0.4); }
.opah-toast.error .opah-toast-progress { background: rgba(239, 68, 68, 0.4); }
.opah-toast.warning .opah-toast-progress { background: rgba(245, 158, 11, 0.4); }
.opah-toast.info .opah-toast-progress { background: rgba(59, 130, 246, 0.4); }

body.light-mode .opah-toast {
    background: #ffffff;
    color: #18181b;
    border-color: #e4e4e7;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

body.light-mode .opah-toast-close { color: #a1a1aa; }
body.light-mode .opah-toast-close:hover { color: #18181b; }
body.light-mode .opah-toast.success { border-color: rgba(25, 227, 50, 0.3); }
body.light-mode .opah-toast.error { border-color: rgba(239, 68, 68, 0.3); }
body.light-mode .opah-toast.warning { border-color: rgba(245, 158, 11, 0.3); }
body.light-mode .opah-toast.info { border-color: rgba(59, 130, 246, 0.3); }

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — GLOBAL OVERRIDES
   Applied via body.light-mode (added by opah-polish.js on load)
   Higher specificity than plain element/class rules in page <style>
   ═══════════════════════════════════════════════════════════ */

/* ── Foundation: body background + text + CSS variable overrides ── */
body.light-mode {
    background-color: #ffffff;
    color: #18181b;
    /* CSS variable system — covers pages that use var(--bg) etc. */
    --bg: #ffffff;
    --card: #ffffff;
    --card-alt: #f4f4f5;
    --card-dark: #f0f0f0;
    --border: #e4e4e7;
    --border-light: #f0f0f0;
    --text: #18181b;
    --text-muted: #52525b;
    --text-dim: #71717a;
    --text-dimmer: #a1a1aa;
    --muted: #71717a;
    --nav-bg: #ffffff;
    --badge-bg: rgba(25, 227, 50, 0.07);
    --badge-border: rgba(25, 227, 50, 0.18);
    --glow-light: rgba(25, 227, 50, 0.08);
}

/* ── Auth & Form pages: .signin-* (signin.html, register.html, landing.html) ── */
body.light-mode .signin-nav {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .signin-nav-home { color: #71717a; }
body.light-mode .signin-nav-home:hover { color: #18181b; }

body.light-mode .signin-card {
    background: #ffffff;
    border-color: #e4e4e7;
}
body.light-mode .signin-title { color: #18181b; }
body.light-mode .signin-subtitle,
body.light-mode .signin-card-desc { color: #52525b; }

body.light-mode .form-label { color: #52525b; }
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder { color: #a1a1aa; }
body.light-mode .form-select option { background: #ffffff; color: #18181b; }

body.light-mode .signin-btn-secondary {
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .signin-btn-secondary:hover {
    border-color: #d4d4d8;
    color: #18181b;
}
body.light-mode .signin-divider-line { background: #e4e4e7; }
body.light-mode .signin-divider-text { color: #a1a1aa; }
body.light-mode .signin-info {
    background: #f4f4f5;
    border-color: #e4e4e7;
}
body.light-mode .signin-info-text { color: #52525b; }
body.light-mode .signin-footer { color: #71717a; }
body.light-mode .signin-footer a { color: #19E332; }

/* ── Landing page specific ── */
body.light-mode .landing-subtitle { color: #52525b; }
body.light-mode .footer-note { color: #71717a; }
body.light-mode .flow-connector-line { background: #e4e4e7; }
body.light-mode .flow-step-desc { color: #71717a; }
body.light-mode .feature-label { color: #52525b; }

/* ── Talent Signup: .signup-* and .ob-* (talent_signup.html) ── */
body.light-mode .signup-nav {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .signup-nav-link { color: #71717a; }
body.light-mode .signup-nav-link:hover { color: #18181b; }
body.light-mode .signup-nav-badge {
    background: rgba(25, 227, 50, 0.07);
    border-color: rgba(25, 227, 50, 0.18);
}
body.light-mode .signup-title { color: #18181b; }
body.light-mode .signup-subtitle { color: #52525b; }

body.light-mode .ob-nav {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .ob-option-card {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .ob-option-card:hover {
    border-color: rgba(25, 227, 50, 0.4);
    background: rgba(25, 227, 50, 0.03);
}
body.light-mode .ob-option-card.selected {
    border-color: #19E332;
    background: rgba(25, 227, 50, 0.04);
}
body.light-mode .ob-option-label { color: #18181b; }
body.light-mode .ob-option-sub { color: #71717a; }
body.light-mode .ob-exp-card {
    background: #ffffff;
    border-color: #e4e4e7;
}
body.light-mode .ob-exp-card.selected {
    background: rgba(25, 227, 50, 0.04);
    border-color: #19E332;
}
body.light-mode .ob-exp-label { color: #18181b; }
body.light-mode .ob-exp-sub { color: #71717a; }
body.light-mode .ob-chip {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .ob-chip.selected {
    background: rgba(25, 227, 50, 0.08);
    border-color: rgba(25, 227, 50, 0.3);
    color: #18181b;
}
body.light-mode .ob-equipment-tags { background: #f9f9f9; border-color: #e4e4e7; }
body.light-mode .ob-equipment-tag {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .ob-add-btn {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .ob-add-btn:hover { background: #e4e4e7; }
body.light-mode .ob-range-labels { color: #71717a; }
body.light-mode .ob-char-count { color: #a1a1aa; }
body.light-mode .ob-review-avatar { border-color: #e4e4e7; background: #f4f4f5; }
body.light-mode .ob-photo-placeholder {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #71717a;
}
body.light-mode .ob-photo-hint { color: #a1a1aa; }
body.light-mode .signin-prompt { color: #71717a; }
body.light-mode .error-msg { color: #ef4444; }

/* ── Admin pages: .admin-* (admin.html, admin_now_shop.html) ── */
body.light-mode .admin-nav {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .admin-nav-right a { color: #71717a; }
body.light-mode .admin-nav-right a:hover { color: #18181b; }
body.light-mode .admin-tabs {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e7;
}
body.light-mode .admin-tab { color: #71717a; }
body.light-mode .admin-tab:hover { color: #19E332; }
body.light-mode .admin-tab.active { color: #19E332; }
body.light-mode .admin-content { background: #f9f9f9; }
body.light-mode .admin-header {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .admin-body { background: #f9f9f9; }

body.light-mode .stat-card {
    background: #ffffff;
    border-color: #e4e4e7;
}
body.light-mode .stat-label { color: #71717a; }

body.light-mode .data-table-wrap,
body.light-mode .table-wrap {
    background: #ffffff;
    border-color: #e4e4e7;
}
body.light-mode .data-table th,
body.light-mode .table-header {
    background: #f4f4f5;
    color: #71717a;
    border-bottom-color: #e4e4e7;
}
body.light-mode .data-table td { border-bottom-color: #f0f0f0; }
body.light-mode .data-table tr:hover td { background: rgba(0,0,0,0.02); }
body.light-mode .section-label { color: #71717a; }

body.light-mode .search-input,
body.light-mode .filter-select {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .search-input::placeholder { color: #a1a1aa; }
body.light-mode .filter-select option { background: #ffffff; color: #18181b; }

body.light-mode .controls-bar { border-bottom-color: #e4e4e7; }
body.light-mode .empty-state { color: #71717a; }

body.light-mode .modal-overlay { background: rgba(0, 0, 0, 0.45); }
body.light-mode .modal,
body.light-mode .modal-box {
    background: #ffffff;
    border-color: #e4e4e7;
}
body.light-mode .modal-header,
body.light-mode .modal-body {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .modal-footer { border-top-color: #e4e4e7; background: #ffffff; }
body.light-mode .modal-close { color: #71717a; }
body.light-mode .modal-close:hover { color: #18181b; background: #f4f4f5; }

body.light-mode .tag,
body.light-mode .cat-badge {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .preset-name { color: #18181b; }
body.light-mode .preset-sub { color: #71717a; }
body.light-mode .list-input-row { border-color: #e4e4e7; }
body.light-mode .list-input-group input {
    background: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode .form-check { color: #52525b; }
body.light-mode .form-hint { color: #a1a1aa; }

/* ── Talent Portfolio: uses CSS vars (handled by body.light-mode vars above) ── */
body.light-mode .talent-nav {
    background: #ffffff;
    border-bottom-color: #e4e4e7;
}
body.light-mode .talent-nav-link { color: #71717a; }
body.light-mode .talent-nav-link:hover { color: #18181b; background: #f4f4f5; }
body.light-mode .talent-nav-link.active {
    color: #19E332;
    background: rgba(25, 227, 50, 0.06);
}
body.light-mode .btn-secondary {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
body.light-mode .btn-secondary:hover {
    background: #e4e4e7;
    color: #18181b;
}

/* ── Video Slideshow Section ── */
.video-slideshow-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    background: #ffffff;
}
body.dark-mode .video-slideshow-section {
    background: #09090b;
}
.vss-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vss-header {
    text-align: center;
    margin-bottom: 32px;
}
.vss-slide-title {
    font-size: 1.65rem;
    font-weight: 500;
    color: #111111;
    margin: 0 0 10px;
    transition: opacity 0.4s ease;
}
body.dark-mode .vss-slide-title {
    color: #fafafa;
}
.vss-slide-subtitle {
    font-size: 0.95rem;
    color: #777777;
    margin: 0;
    transition: opacity 0.4s ease;
}
body.dark-mode .vss-slide-subtitle {
    color: #a1a1aa;
}
.vss-stage {
    width: 100%;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 3px solid #1a1a1a;
}
body.dark-mode .vss-stage {
    border-color: #3f3f46;
}
.vss-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.vss-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.vss-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vss-dots {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 28px;
}
.vss-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid #19E332;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.25s ease;
}
.vss-dot.active {
    background: #19E332;
}
.vss-dot:hover:not(.active) {
    background: rgba(25, 227, 50, 0.25);
}
@media (max-width: 768px) {
    .video-slideshow-section {
        padding: 48px 16px;
    }
    .vss-stage {
        border-radius: 20px;
    }
    .vss-dots {
        margin-top: 20px;
    }
}

/* ── Chat Public page: .hero-section, h1 gradient ── */
body.light-mode .hero-section { background: #f9f9f9; }
body.light-mode .content-side h1 {
    background: linear-gradient(135deg, #18181b 30%, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .content-side .subtitle { color: #52525b; }
body.light-mode .features-row { border-top-color: #e4e4e7; }

/* ── Generic shared dark elements across all pages ── */
body.light-mode input:not([type="range"]),
body.light-mode textarea,
body.light-mode select {
    background-color: #ffffff;
    border-color: #e4e4e7;
    color: #18181b;
}
body.light-mode input::placeholder,
body.light-mode textarea::placeholder { color: #a1a1aa; }

@media (max-width: 600px) {
    .opah-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    .opah-toast {
        min-width: unset;
        max-width: unset;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-reveal, .scroll-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   OPAH DESIGN TOKENS — Talent UI consistency pass (Task #39)
   ═══════════════════════════════════════════════════════════ */
:root {
    --opah-accent: #19E332;
    --opah-accent-hover: #16c92d;
    --opah-accent-soft: rgba(25, 227, 50, 0.1);
    --opah-bg: #09090b;
    --opah-surface: #18181b;
    --opah-surface-2: #111113;
    --opah-border: #27272a;
    --opah-border-soft: #1a1a1e;
    --opah-text: #fafafa;
    --opah-text-dim: #a1a1aa;
    --opah-text-muted: #71717a;
    --opah-text-faint: #52525b;
    --opah-radius-sm: 8px;
    --opah-radius-md: 10px;
    --opah-radius-lg: 12px;
    --opah-radius-xl: 16px;
    --opah-container-narrow: 720px;
    --opah-container: 900px;
    --opah-container-wide: 1200px;
    --opah-bp-sm: 480px;
    --opah-bp-md: 768px;
    --opah-bp-lg: 1024px;
    --opah-avatar-sm: 32px;
    --opah-avatar-md: 48px;
    --opah-avatar-lg: 64px;
    --opah-focus-glow: 0 0 0 3px rgba(25, 227, 50, 0.18);
    --opah-status-success: #19E332;
    --opah-status-warn: #f59e0b;
    --opah-status-error: #ef4444;
    --opah-status-info: #3b82f6;
    --opah-status-neutral: #71717a;
    --opah-status-success-soft: rgba(25, 227, 50, 0.15);
    --opah-status-warn-soft: rgba(245, 158, 11, 0.15);
    --opah-status-error-soft: rgba(239, 68, 68, 0.15);
    --opah-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --opah-shadow-sm-light: 0 1px 3px rgba(0, 0, 0, 0.06);
    --opah-light-surface: #ffffff;
    --opah-light-border: #e4e4e7;
    --opah-light-text: #18181b;
}

/* ── Shared status badge palette (project / folder / KYC / payout) ── */
.opah-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    line-height: 1.4;
}
.opah-status-badge.success,
.opah-status-badge.active,
.opah-status-badge.accepted,
.opah-status-badge.completed,
.opah-status-badge.verified,
.opah-status-badge.paid {
    color: #19E332;
    background: rgba(25,227,50,0.10);
    border-color: rgba(25,227,50,0.22);
}
.opah-status-badge.warn,
.opah-status-badge.pending,
.opah-status-badge.countered,
.opah-status-badge.in_review,
.opah-status-badge.draft {
    color: #f59e0b;
    background: rgba(245,158,11,0.10);
    border-color: rgba(245,158,11,0.22);
}
.opah-status-badge.error,
.opah-status-badge.declined,
.opah-status-badge.failed,
.opah-status-badge.cancelled,
.opah-status-badge.pending_transfer {
    color: #ef4444;
    background: rgba(239,68,68,0.10);
    border-color: rgba(239,68,68,0.22);
}
.opah-status-badge.info,
.opah-status-badge.added,
.opah-status-badge.escrow_in {
    color: #3b82f6;
    background: rgba(59,130,246,0.10);
    border-color: rgba(59,130,246,0.22);
}
.opah-status-badge.neutral,
.opah-status-badge.closed {
    color: #a1a1aa;
    background: rgba(113,113,122,0.10);
    border-color: rgba(113,113,122,0.22);
}

/* ── Unified Now / Go Live indicator ──
   Used on: dashboard nav toggle, public profile, talent cards.
   Variants:
     .opah-go-live              — pill toggle (interactive)
     .opah-go-live-badge        — read-only badge ("Available Now")
     .opah-now-dot              — tiny inline dot for talent cards
*/
.opah-go-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 10px;
    border-radius: 20px;
    border: 1px solid #27272a;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-family: inherit;
}
.opah-go-live:hover { border-color: #3f3f46; }
.opah-go-live.active {
    border-color: rgba(25,227,50,0.4);
    background: rgba(25,227,50,0.06);
}
.opah-go-live-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #52525b;
    transition: color 0.3s;
}
.opah-go-live.active .opah-go-live-label { color: #19E332; }
.opah-go-live-switch {
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: #27272a;
    position: relative;
    transition: background 0.3s;
}
.opah-go-live-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #52525b;
    transition: all 0.3s;
}
.opah-go-live.active .opah-go-live-switch { background: rgba(25,227,50,0.3); }
.opah-go-live.active .opah-go-live-switch::after {
    left: 14px;
    background: #19E332;
    box-shadow: 0 0 8px rgba(25,227,50,0.5);
}

@keyframes opahPulseLive {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25,227,50,0.35); }
    50% { box-shadow: 0 0 0 6px rgba(25,227,50,0); }
}
.opah-go-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(25,227,50,0.18);
    color: #19E332;
    border: 1px solid rgba(25,227,50,0.4);
    font-size: 12px;
    font-weight: 600;
    animation: opahPulseLive 2s ease-in-out infinite;
}
.opah-go-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #19E332;
    box-shadow: 0 0 6px #19E332;
}

.opah-now-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #19E332;
}
.opah-now-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #19E332;
    box-shadow: 0 0 6px rgba(25,227,50,0.7);
    animation: opahPulseLive 2s ease-in-out infinite;
}

/* ── Mobile-friendly notif panel (talent dashboard / wallet / etc.) ── */
@media (max-width: 640px) {
    .notif-panel {
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
    }
}

/* ── Modal full-screen on small viewports ── */
@media (max-width: 480px) {
    .modal-box,
    .create-modal,
    .upload-modal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 8px !important;
    }
}

/* ── Wallet transactions: stacked layout on mobile ── */
@media (max-width: 640px) {
    .txn-table thead { display: none; }
    .txn-table, .txn-table tbody, .txn-table tr, .txn-table td { display: block; width: 100%; }
    .txn-table tr.txn-row {
        padding: 12px 0;
        border-bottom: 1px solid #1a1a1e;
        display: grid;
        grid-template-columns: max-content 1fr;
        column-gap: 10px;
        row-gap: 4px;
    }
    .txn-table tr.txn-row td { padding: 0; border: none; font-size: 12px; }
    .txn-table tr.txn-row td::before {
        content: attr(data-label);
        color: #52525b;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
}

/* ── Prevent horizontal scroll across talent screens ── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* ── Shared mobile hamburger + slide-in drawer (talent pages) ── */
.opah-hamburger {
    display: none; width: 36px; height: 36px;
    background: transparent; border: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 6px; z-index: 1100;
}
.opah-hamburger span {
    display: block; width: 20px; height: 2px;
    background: #a1a1aa; border-radius: 2px;
    transition: all 0.3s ease;
}
.opah-mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 1050; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.opah-mobile-overlay.visible { opacity: 1; pointer-events: auto; }
.opah-mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
    background: #111113; border-right: 1px solid #1a1a1e; z-index: 1060;
    transform: translateX(-100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column; overflow-y: auto;
}
.opah-mobile-drawer.open { transform: translateX(0); }
.opah-mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid #1a1a1e;
}
.opah-mobile-drawer-header .talent-nav-logo,
.opah-mobile-drawer-header a:first-child {
    font-family: 'Aileron', sans-serif; font-size: 20px; font-weight: 900;
    color: #19E332; text-decoration: none; letter-spacing: 1px;
}
.opah-mobile-drawer-close {
    width: 32px; height: 32px; background: transparent;
    border: 1px solid #27272a; border-radius: 8px; color: #a1a1aa;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.opah-mobile-drawer-links { display: flex; flex-direction: column; padding: 12px; gap: 2px; }
.opah-mobile-drawer-links a {
    display: flex; align-items: center; padding: 12px 14px;
    border-radius: 10px; font-size: 14px; color: #a1a1aa;
    text-decoration: none; font-weight: 500; transition: all 0.15s ease;
}
.opah-mobile-drawer-links a:hover { background: #18181b; color: #fafafa; }
.opah-mobile-drawer-links a.active { color: #19E332; background: rgba(25,227,50,0.08); }
body.light-mode .opah-mobile-drawer { background: #ffffff; border-color: #e4e4e7; }
body.light-mode .opah-mobile-drawer-header { border-color: #e4e4e7; }
body.light-mode .opah-mobile-drawer-close { border-color: #e4e4e7; color: #71717a; }
body.light-mode .opah-mobile-drawer-links a { color: #71717a; }
body.light-mode .opah-mobile-drawer-links a:hover { background: #f4f4f5; color: #18181b; }
body.light-mode .opah-mobile-drawer-links a.active { color: #19E332; background: rgba(25,227,50,0.08); }
body.light-mode .opah-hamburger span { background: #71717a; }
@media (max-width: 768px) {
    .opah-hamburger { display: flex; }
    .opah-mobile-overlay { display: block; }
}

/* ── Drawer Go Live toggle (matches desktop go-live-toggle) ── */
.opah-drawer-go-live {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px 14px;
    background: transparent; border: none;
    font-family: inherit; cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 8px;
}
.opah-drawer-go-live:hover { background: rgba(255,255,255,0.04); }
.opah-drawer-go-live-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #52525b; line-height: 1;
    transition: color 0.2s;
}
.opah-drawer-go-live.is-live .opah-drawer-go-live-label { color: #19E332; }
.opah-drawer-go-live-switch {
    position: relative; width: 38px; height: 20px;
    background: #27272a; border-radius: 12px;
    transition: background 0.2s; flex-shrink: 0;
}
.opah-drawer-go-live.is-live .opah-drawer-go-live-switch { background: #19E332; }
.opah-drawer-go-live-knob {
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #71717a;
    transition: all 0.2s;
}
.opah-drawer-go-live.is-live .opah-drawer-go-live-knob { left: 20px; background: #fff; }
body.light-mode .opah-drawer-go-live:hover { background: rgba(0,0,0,0.04); }
body.light-mode .opah-drawer-go-live-label { color: #a1a1aa; }
body.light-mode .opah-drawer-go-live-switch { background: #d4d4d8; }
body.light-mode .opah-drawer-go-live-knob { background: #fff; }
body.light-mode .opah-drawer-go-live.is-live .opah-drawer-go-live-label { color: #19E332; }
body.light-mode .opah-drawer-go-live.is-live .opah-drawer-go-live-switch { background: #19E332; }

/* ---- Portfolio thumbnail grid: parent sizing so tiles never collapse ---- */
/* Sizing comes from the wrapping anchor, not the inner image. This way the
   grid cell stays the right shape while the image is loading, has been
   removed by the error handler (opahHandlePortfolioImgError), or is briefly
   hidden. Keeps the heading + grid in lock-step (no orphan headings). */
.portfolio-grid > a,
.portfolio-link,
.portfolio-project-thumb,
.expanded-portfolio-grid > a {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
}
body.light-mode .portfolio-grid > a,
body.light-mode .portfolio-link,
body.light-mode .portfolio-project-thumb,
body.light-mode .expanded-portfolio-grid > a {
    background: #f4f4f5;
}

/* Play icon badge on embed-backed portfolio tiles */
.portfolio-embed-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
    padding-left: 2px;
    backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE STRENGTH CARD (Task 111)
   Shared component used on talent dashboard, account, signup review.
   Built on the --opah-* design tokens (see :root above).
   ═══════════════════════════════════════════════════════════ */
.opah-strength-card {
    background: var(--opah-surface);
    border: 1px solid var(--opah-border);
    border-radius: var(--opah-radius-lg);
    padding: 20px 22px;
    color: var(--opah-text);
    font-family: 'Aileron', system-ui, -apple-system, sans-serif;
    margin-bottom: 20px;
    box-shadow: var(--opah-shadow-sm);
}
.opah-strength-card[hidden] { display: none; }
.opah-strength-card.is-loading .opah-strength-body { opacity: 0.55; }

.opah-strength-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.opah-strength-head-text {
    flex: 1 1 200px;
    min-width: 0;
}
.opah-strength-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--opah-accent);
    margin: 0 0 6px;
}
.opah-strength-headline {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--opah-text);
}
.opah-strength-subhead {
    margin: 0;
    font-size: 13px;
    color: var(--opah-text-dim);
    line-height: 1.5;
}

.opah-strength-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.opah-strength-ring svg {
    transform: rotate(-90deg);
    overflow: visible;
}
.opah-strength-ring-track {
    fill: none;
    stroke: var(--opah-border);
    stroke-width: 6;
}
.opah-strength-ring-fill {
    fill: none;
    stroke: var(--opah-accent);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}
.opah-strength-ring.low .opah-strength-ring-fill { stroke: var(--opah-status-error); }
.opah-strength-ring.mid .opah-strength-ring-fill { stroke: var(--opah-status-warn); }
.opah-strength-ring-text {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--opah-text);
    letter-spacing: -0.5px;
    line-height: 1;
}
.opah-strength-ring-text small {
    font-size: 9px;
    font-weight: 600;
    color: var(--opah-text-muted);
    margin-left: 1px;
}

/* Top-missing preview (always visible when score < 100) */
.opah-strength-preview {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.opah-strength-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--opah-surface-2);
    border: 1px solid var(--opah-border);
    border-radius: var(--opah-radius-md);
}
.opah-strength-preview-bullet {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--opah-status-warn);
    margin-top: 8px;
}
.opah-strength-preview-item.missing .opah-strength-preview-bullet {
    background: var(--opah-status-error);
}
.opah-strength-preview-item.partial .opah-strength-preview-bullet {
    background: var(--opah-status-warn);
}
.opah-strength-preview-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.opah-strength-preview-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--opah-text);
    line-height: 1.3;
}
.opah-strength-preview-impact {
    font-size: 12px;
    font-weight: 400;
    color: var(--opah-text-dim);
    line-height: 1.4;
}
.opah-strength-preview-fix {
    font-size: 12px;
    font-weight: 700;
    color: var(--opah-accent);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--opah-radius-sm);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
.opah-strength-preview-fix:hover { background: var(--opah-accent-soft); }

.opah-strength-toggle {
    background: transparent;
    border: 1px solid var(--opah-border);
    color: var(--opah-text-dim);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--opah-radius-sm);
    cursor: pointer;
    min-height: 36px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.opah-strength-toggle:hover {
    border-color: var(--opah-text-faint);
    color: var(--opah-text);
}
.opah-strength-toggle:focus-visible {
    outline: 2px solid var(--opah-accent);
    outline-offset: 2px;
    box-shadow: var(--opah-focus-glow);
}
.opah-strength-toggle svg { transition: transform 0.2s ease; }
.opah-strength-card.is-open .opah-strength-toggle svg { transform: rotate(180deg); }

.opah-strength-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 10px;
}
.opah-strength-card.is-open .opah-strength-list { display: flex; }

.opah-strength-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--opah-surface-2);
    border: 1px solid var(--opah-border);
    border-radius: var(--opah-radius-md);
}
.opah-strength-item-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: var(--opah-border);
    color: var(--opah-text-dim);
}
.opah-strength-item.done .opah-strength-item-icon {
    background: var(--opah-status-success-soft);
    color: var(--opah-accent);
}
.opah-strength-item.partial .opah-strength-item-icon {
    background: var(--opah-status-warn-soft);
    color: var(--opah-status-warn);
}
.opah-strength-item.missing .opah-strength-item-icon {
    background: var(--opah-status-error-soft);
    color: var(--opah-status-error);
}
.opah-strength-item-body { flex: 1; min-width: 0; }
.opah-strength-item-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--opah-text);
}
.opah-strength-item-weight {
    font-size: 11px;
    font-weight: 600;
    color: var(--opah-text-muted);
    background: var(--opah-surface);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--opah-border);
}
.opah-strength-item-impact {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--opah-text-dim);
    line-height: 1.5;
}
.opah-strength-item-detail {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--opah-status-warn);
    line-height: 1.5;
}
.opah-strength-item-fix {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 8px 14px;
    min-height: 36px;
    background: var(--opah-accent);
    color: var(--opah-bg);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border-radius: var(--opah-radius-sm);
}
.opah-strength-item-fix:hover { background: var(--opah-accent-hover); }
.opah-strength-item.done .opah-strength-item-fix {
    background: transparent;
    border: 1px solid var(--opah-border);
    color: var(--opah-text-dim);
}
.opah-strength-error {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--opah-status-error);
}

/* Mobile: ≥44px tap targets, larger preview spacing */
@media (max-width: 640px) {
    .opah-strength-card { padding: 18px; }
    .opah-strength-toggle { min-height: 44px; padding: 10px 16px; }
    .opah-strength-item-fix { min-height: 44px; padding: 10px 16px; }
    .opah-strength-preview-fix { min-height: 44px; padding: 10px 14px; }
    .opah-strength-score { font-size: 24px; }
    .opah-strength-item-label { font-size: 14px; }
    .opah-strength-preview-item { padding: 12px; }
}

/* Light mode overrides — only the colors that aren't already token-driven */
body.light-mode .opah-strength-card {
    background: var(--opah-light-surface);
    border-color: var(--border, var(--opah-light-border));
    color: var(--text, var(--opah-light-text));
    box-shadow: var(--opah-shadow-sm-light);
}
body.light-mode .opah-strength-headline { color: var(--text, var(--opah-light-text)); }
body.light-mode .opah-strength-subhead { color: var(--text-muted, var(--opah-text-faint)); }
body.light-mode .opah-strength-ring-track { stroke: var(--border, var(--opah-light-border)); }
body.light-mode .opah-strength-toggle {
    border-color: var(--border, var(--opah-light-border));
    color: var(--text-muted, var(--opah-text-faint));
}
body.light-mode .opah-strength-toggle:hover {
    border-color: var(--opah-text-muted);
    color: var(--text, var(--opah-light-text));
}
body.light-mode .opah-strength-preview-item,
body.light-mode .opah-strength-item {
    background: var(--card-alt, var(--opah-surface-2));
    border-color: var(--border, var(--opah-light-border));
}
body.light-mode .opah-strength-preview-label,
body.light-mode .opah-strength-item-label { color: var(--text, var(--opah-light-text)); }
body.light-mode .opah-strength-item-impact,
body.light-mode .opah-strength-preview-impact { color: var(--text-muted, var(--opah-text-faint)); }
body.light-mode .opah-strength-item-weight {
    background: var(--opah-light-surface);
    border-color: var(--border, var(--opah-light-border));
    color: var(--opah-text-muted);
}
body.light-mode .opah-strength-ring-text { color: var(--text, var(--opah-light-text)); }
body.light-mode .opah-strength-ring-text small { color: var(--opah-text-muted); }

/* ── Go Live counter + popover ─────────────────────────────────────── */

/* Reserve enough horizontal space on the desktop toggle that switching
   between "GO LIVE" and "Live for 00:01:23 · 3" never causes layout
   shift in the talent nav. Also lift min-height to satisfy the 44px
   tap-target requirement on touch devices. */
.go-live-toggle {
    min-height: 44px;
    padding: 4px 6px;
}
.go-live-label {
    min-width: 9.5em;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.opah-drawer-go-live {
    min-height: 44px;
}
.opah-drawer-go-live-label {
    font-variant-numeric: tabular-nums;
}

/* Eyes-on-you stat shown next to the running counter. */
.opah-go-live-eyes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #19E332;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
}
.opah-go-live-eyes svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Anchor + popover. Anchor wraps the toggle so the popover positions
   relative to it. The popover is not a child of the nav so it can
   never be clipped by overflow:hidden on sticky parents. */
.opah-go-live-popover-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9990;
    display: none;
}
.opah-go-live-popover-backdrop.open { display: block; }

.opah-go-live-popover {
    position: fixed;
    z-index: 9991;
    min-width: 264px;
    max-width: calc(100vw - 24px);
    background: #0e0e10;
    color: #fafafa;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    padding: 16px;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}
.opah-go-live-popover.open { display: block; }

.opah-go-live-popover-header {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: #19E332;
    margin-bottom: 10px;
}
.opah-go-live-popover-header .opah-now-dot {
    width: 8px; height: 8px;
}
.opah-go-live-popover-counter {
    font-size: 22px; font-weight: 700;
    color: #fafafa;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}
.opah-go-live-popover-since {
    font-size: 11px;
    color: #a1a1aa;
    margin-bottom: 14px;
}

.opah-go-live-popover-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 14px;
}
.opah-go-live-popover-stat {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 8px 10px;
}
.opah-go-live-popover-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a1a1aa;
    margin-bottom: 4px;
}
.opah-go-live-popover-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #fafafa;
    font-variant-numeric: tabular-nums;
}

.opah-go-live-popover-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #71717a;
    margin: 12px 0 6px;
}

.opah-go-live-popover-stop {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    margin-top: 8px;
    background: transparent;
    color: #fafafa;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.opah-go-live-popover-stop:hover {
    border-color: #ef4444;
    color: #ef4444;
}

body.light-mode .opah-go-live-popover {
    background: #ffffff;
    color: #18181b;
    border-color: #e4e4e7;
}
body.light-mode .opah-go-live-popover-counter,
body.light-mode .opah-go-live-popover-stat-value { color: #18181b; }
body.light-mode .opah-go-live-popover-stat { background: #f4f4f5; }
body.light-mode .opah-go-live-popover-stop {
    color: #18181b;
    border-color: #e4e4e7;
}
body.light-mode .opah-go-live-popover-stop:hover { border-color: #ef4444; color: #ef4444; }

@media (max-width: 640px) {
    .opah-go-live-popover {
        position: fixed;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: 12px !important;
        min-width: 0;
        width: auto;
    }
}

/* ─── Profile Strength "Fix this" deep-link affordances ──────────────────── */
/* Pulse highlight applied to whichever element the focus handler scrolls to.
   Reusable across pages — works on settings fields, portfolio cards, the
   "New Project" button, etc. The dashboard also defines its own scoped
   variant for .settings-field; this is the page-agnostic baseline. */
@keyframes opahFixFlashShared {
    0%   { box-shadow: 0 0 0 0 rgba(25, 227, 50, 0); }
    30%  { box-shadow: 0 0 0 6px rgba(25, 227, 50, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(25, 227, 50, 0); }
}
.opah-fix-flash {
    border-radius: 10px;
    outline: 2px solid rgba(25, 227, 50, 0.55);
    outline-offset: 6px;
    animation: opahFixFlashShared 1.6s ease-out 1;
}

/* ─── Logo dark/light mode swap ──────────────────────────────────────────── */
.logo-light-mode { display: none; }
body.light-mode .logo-light-mode { display: inline-block; }
body.light-mode .logo-dark-mode { display: none; }
