/* ============================================
   MyAlwaysOn — Complete Stylesheet
   PART 1: Base, header, buttons, forms, auth, avatars, footer
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    background: #ffffff;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #0F1419;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0F1419;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }

:root {
    --white: #ffffff;
    --off-white: #F7F9F9;
    --gray-50: #F7F9F9;
    --gray-100: #EFF3F4;
    --gray-200: #E1E8ED;
    --gray-300: #C0C8D6;
    --gray-400: #9AA4B8;
    --gray-500: #6B7A90;
    --gray-600: #536471;
    --gray-700: #4A5568;
    --gray-800: #1A202C;
    --gray-900: #0F1419;

    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-hover: #4338CA;

    --red: #EF4444;
    --orange: #F97316;
    --green: #10B981;
    --yellow: #F59E0B;
    --purple: #7C3AED;

    --gradient-brand: linear-gradient(135deg, #4F46E5, #7C3AED);
    --gradient-warm: linear-gradient(135deg, #EF4444, #F97316);
    --gradient-gold: linear-gradient(135deg, #F59E0B, #F97316);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --header-height: 60px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================
   MAIN LAYOUT — Sticky footer
   ============================================ */
.main-container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    padding-bottom: calc(24px + var(--safe-bottom));
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #EFF3F4;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0F1419;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #4F46E5;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.header-brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-name {
    display: inline !important;
    white-space: nowrap;
    font-weight: 700;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #536471;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #F7F9F9;
    color: #0F1419;
}

.nav-link.active {
    background: #EEF2FF;
    color: #4F46E5;
    font-weight: 600;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    min-width: 16px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #4F46E5;
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: #4338CA;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: #ffffff;
    color: #4A5568;
    border-color: #E1E8ED;
}

.btn-secondary:hover {
    background: #F7F9F9;
    border-color: #C0C8D6;
}

.btn-ghost {
    background: transparent;
    color: #536471;
}

.btn-ghost:hover {
    background: #F7F9F9;
    color: #0F1419;
}

.btn-sm {
    padding: 7px 13px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    min-width: 14px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #536471;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #E1E8ED;
    border-radius: 6px;
    color: #0F1419;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder { color: #9AA4B8; }

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #F7F9F9;
}

.form-hint {
    font-size: 12px;
    color: #9AA4B8;
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 14px;
    padding: 40px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { font-size: 2.5rem; margin-bottom: 12px; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: #536471; }
.auth-form { margin-bottom: 20px; }
.auth-footer { text-align: center; font-size: 14px; color: #536471; }
.auth-footer a { color: #4F46E5; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================
   AVATARS — Hard-locked sizes
   ============================================ */
.avatar-sm,
.signal-avatar,
.signal-avatar-lg,
.comment-avatar,
.profile-avatar-lg,
[class*="avatar"] {
    overflow: hidden !important;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm img,
.signal-avatar img,
.signal-avatar-lg img,
.comment-avatar img,
.profile-avatar-lg img,
[class*="avatar"] img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    border-radius: inherit;
}

.avatar-sm {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.avatar-sm:hover { transform: scale(1.05); }

.signal-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.signal-avatar-lg {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
}

.comment-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.profile-avatar-lg {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    animation: toastIn 0.3s ease, toastOut 0.3s 3s ease forwards;
    pointer-events: all;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-width: 90vw;
    text-align: center;
}

.toast-success { background: #10B981; color: white; }
.toast-info { background: #4F46E5; color: white; }
.toast-error { background: #EF4444; color: white; }

@keyframes toastIn {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-8px); opacity: 0; }
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    padding: 12px 20px;
    margin: 16px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
.flash-error { background: #FEF2F2; border: 1px solid #FECACA; color: #EF4444; }
.flash-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.flash-info { background: #EEF2FF; border: 1px solid #C7D2FE; color: #3730A3; }

/* ============================================
   FOOTER — Sticky to bottom
   ============================================ */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #0F1419;
    color: #8B98A5;
    padding: 48px 24px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0));
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 32px;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .brand-mark {
    font-size: 20px;
    color: #7C3AED;
    line-height: 1;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #8B98A5;
    max-width: 280px;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #C0C8D6;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: #8B98A5;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover { color: #ffffff; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6B7A90;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #6B7A90;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-bottom-links a:hover { color: #C0C8D6; }

/* ============================================
   SIGNAL CARDS
   ============================================ */
.signal-card {
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.signal-card:hover {
    background: #F7F9F9;
    border-color: #E1E8ED;
}

.signal-username {
    font-weight: 600;
    font-size: 15px;
    color: #0F1419;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.signal-anon-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4F46E5;
    font-weight: 600;
    line-height: 1.4;
}

.signal-meta {
    font-size: 13px;
    color: #536471;
    margin-top: 2px;
}

.signal-body-text {
    font-size: 15px;
    line-height: 1.55;
    color: #4A5568;
    word-break: break-word;
}

/* ---------- Signal Action Row ---------- */
.signal-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 13px;
    color: #536471;
    padding-top: 12px;
    border-top: 1px solid #EFF3F4;
    margin-top: 12px;
}

.signal-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    line-height: 1;
}

.signal-action:hover { color: #0F1419; }

.signal-action[data-resonated="true"],
.signal-action.resonated { color: #EF4444; }

.action-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    min-width: 14px;
    font-weight: 500;
}

.action-count {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* ---------- Velocity Badges ---------- */
.velocity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.velocity-badge.viral {
    background: #FEF2F2;
    color: #EF4444;
}

.velocity-badge.rising {
    background: #FFFBEB;
    color: #F59E0B;
}

/* ---------- Back Link ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536471;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s ease;
}

.back-link:hover { color: #0F1419; }

/* ============================================
   FREQUENCY CHIPS
   ============================================ */
.freq-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #E1E8ED;
    color: #536471;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.chip:hover {
    background: #F7F9F9;
    border-color: #C0C8D6;
    color: #0F1419;
}

.chip.chip-active {
    background: #EEF2FF;
    border-color: #4F46E5;
    color: #4F46E5;
}

.chip-symbol {
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
}

.chip-group {
    display: inline-flex;
    align-items: stretch;
}

.chip-group .chip {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.chip-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #E1E8ED;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #9AA4B8;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-follow-btn:hover {
    color: #4F46E5;
    background: #F7F9F9;
}

/* ============================================
   COMPOSER & GIFT MODALS
   ============================================ */
.composer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.composer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.composer-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #EFF3F4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(10px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.composer-overlay.open .composer-modal {
    transform: translateY(0);
}

.composer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F7F9F9;
    border: none;
    color: #536471;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.composer-close:hover {
    background: #EFF3F4;
    color: #0F1419;
}

.composer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0F1419;
}

.composer-subtitle {
    font-size: 14px;
    color: #536471;
    margin-bottom: 16px;
}

.composer-textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    border: 1.5px solid #E1E8ED;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: #0F1419;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.composer-textarea:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.composer-textarea::placeholder { color: #9AA4B8; }

.composer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: #9AA4B8;
    min-height: 18px;
}

.composer-detected {
    color: #4F46E5;
    font-weight: 600;
}

.composer-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0;
    min-height: 28px;
}

.composer-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #EEF2FF;
    color: #4F46E5;
}

.composer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #EFF3F4;
}

.composer-anon {
    border: 1px solid #E1E8ED;
    color: #536471;
}

.composer-anon.active {
    background: #EEF2FF;
    border-color: #4F46E5;
    color: #4F46E5;
    font-weight: 700;
}

.composer-anon:hover { border-color: #C0C8D6; }
.composer-anon.active:hover { border-color: #4F46E5; }

.gift-amt {
    min-width: 52px;
    padding: 7px 14px;
    font-weight: 600;
}

/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #EFF3F4;
    z-index: 200;
    align-items: center;
    justify-content: space-around;
}

.mbb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: #8B98A5;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 0;
}

.mbb-item:hover,
.mbb-item.active { color: #4F46E5; }

.mbb-icon {
    font-size: 20px;
    line-height: 1;
    display: block;
    font-weight: 500;
}

.mbb-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.mbb-item.active .mbb-label { font-weight: 700; }

.mbb-compose {
    flex: 0 0 auto;
    width: 60px;
}

.mbb-compose .mbb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    font-size: 24px;
    font-weight: 400;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}

.mbb-compose:hover .mbb-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
}

.mbb-compose:active .mbb-icon { transform: scale(0.95); }

/* ============================================
   OFFLINE BANNER
   ============================================ */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #F59E0B;
    color: #000;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.offline-banner.show { display: block; }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ============================================
   RESPONSIVE — 768px (Tablet + Mobile)
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        padding: 0 14px;
        height: 56px;
        gap: 10px;
    }

    .header-nav { display: none; }

    .brand-name {
        display: inline !important;
        font-size: 1rem;
    }

    .brand-mark { font-size: 20px; }

    .btn-label { display: none; }

    .btn-compose,
    .btn-logout {
        padding: 8px 10px;
        gap: 0;
    }

    .mobile-bottom-bar { display: flex; }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
    }

    .main-container {
        padding: 20px 16px;
        padding-bottom: calc(24px + 60px + env(safe-area-inset-bottom, 0));
    }

    .signal-card {
        padding: 16px;
        border-radius: 10px;
    }

    .signal-body-text { font-size: 15px; }

    .composer-modal {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .auth-card { padding: 32px 24px; }

    /* Footer: extra bottom padding to clear the bottom bar */
    .site-footer {
        padding: 40px 20px 24px;
        padding-bottom: calc(24px + 60px + env(safe-area-inset-bottom, 0));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-desc { max-width: 100%; }
}

/* ============================================
   RESPONSIVE — 480px (Phone)
   ============================================ */
@media (max-width: 480px) {
    .site-header {
        padding: 0 12px;
        height: 52px;
        gap: 8px;
    }

    .brand-name {
        display: inline !important;
        font-size: 0.9rem;
    }

    .brand-mark { font-size: 18px; }

    .avatar-sm {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px;
    }

    .signal-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px;
    }

    .signal-avatar-lg {
        width: 42px !important;
        height: 42px !important;
        font-size: 15px;
    }

    .comment-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px;
    }

    .signal-username { font-size: 14px; }
    .signal-meta { font-size: 12px; }

    .signal-body-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .signal-actions {
        gap: 16px;
        font-size: 12px;
    }

    .action-symbol { font-size: 15px; }
    .action-count { font-size: 12px; }

    .btn-compose,
    .btn-logout { padding: 7px 9px; }

    .btn-icon { font-size: 15px; }

    .mbb-icon { font-size: 19px; }

    .mbb-compose .mbb-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .mbb-label { font-size: 9.5px; }

    .chip {
        padding: 6px 11px;
        font-size: 12px;
    }

    .flash { margin: 12px 16px; }

    .auth-card {
        padding: 28px 20px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .toast {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* Footer: single column on phones */
    .site-footer {
        padding: 32px 16px 20px;
        padding-bottom: calc(20px + 60px + env(safe-area-inset-bottom, 0));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-brand { font-size: 1rem; }
    .footer-heading { margin-bottom: 10px; }
    .footer-links { gap: 8px; }

    .footer-bottom {
        font-size: 11px;
    }

    .footer-bottom-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE — 360px (Very small phones)
   ============================================ */
@media (max-width: 360px) {
    .brand-name { font-size: 0.85rem; }
    .brand-mark { font-size: 16px; }
    .site-header { padding: 0 10px; }

    .signal-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SMOOTH INTERACTIONS
   ============================================ */
.nav-link,
.mbb-item,
.btn,
.chip,
.signal-action,
.signal-card,
.signal-avatar,
.avatar-sm {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C0C8D6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9AA4B8; }

/* ============================================
   PRESERVED SECTIONS (kept from earlier versions)
   ============================================ */

/* Landing page hero responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem !important; }
    .hero-subtitle { font-size: 0.9rem !important; }
    .social-proof { gap: 16px; }
    .social-stat .stat-num { font-size: 1.2rem; }
    .phone-input-group { flex-wrap: wrap; }
    .submit-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem !important; }
    .social-stat .stat-num { font-size: 1rem; }
    .trust-item { font-size: 0.65rem; }
}

/* Admin dashboard responsive */
@media (max-width: 768px) {
    .radar-container { height: 260px; }
}

@media (max-width: 480px) {
    .radar-container { height: 220px; }
}

/* ============================================
   AVATAR DISPLAY IN ALL CONTEXTS
   ============================================ */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 14px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ============================================
   TOGGLE SWITCHES (Settings page)
   ============================================ */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 16px;
}

.toggle-info { flex: 1; min-width: 0; }
.toggle-label { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.toggle-desc { font-size: 13px; color: #536471; line-height: 1.4; }

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #C0C8D6;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #4F46E5;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================
   DANGER ZONE
   ============================================ */
.danger-zone {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.03);
}

.danger-zone-title {
    font-weight: 700;
    color: #EF4444;
    font-size: 14px;
    margin-bottom: 8px;
}

.danger-zone-desc {
    font-size: 13px;
    color: #536471;
    margin-bottom: 16px;
    line-height: 1.5;
}


/* ============================================
   EMBED PREVIEW CARD (Radar/Feed cards)
   ============================================ */
.embed-preview-card {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EFF3F4;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.embed-preview-card:hover {
    border-color: #C0C8D6;
    transform: translateY(-1px);
}

.embed-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #0F1419;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-play-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease;
}

.embed-preview-card:hover .embed-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.embed-play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0F1419;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
    padding-left: 4px;
}

.embed-preview-card:hover .embed-play-button {
    transform: scale(1.1);
}

.embed-provider-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.embed-no-thumb {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF) !important;
    border: 2px dashed #C7D2FE;
}

.embed-no-thumb .embed-play-button {
    background: #4F46E5;
    color: white;
}

.embed-no-thumb-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #4A5568;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ============================================
   EMBED PLAYER (Signal detail page)
   ============================================ */
.embed-player-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EFF3F4;
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.embed-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Spotify/SoundCloud: shorter height */
.embed-player-container[data-provider="spotify"],
.embed-player-container[data-provider="soundcloud"] {
    aspect-ratio: auto;
    height: 152px;
    background: transparent;
    border: none;
}

.embed-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: #536471;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.embed-source-link:hover {
    color: #4F46E5;
}

/* Mobile: smaller play button */
@media (max-width: 480px) {
    .embed-play-button {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .embed-provider-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ============================================
   SIGNAL IMAGE — Card thumbnails
   ============================================ */
.signal-image-wrap {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EFF3F4;
    background: #F7F9F9;
    display: block;
    text-decoration: none: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.signal-image-wrap:hover {
    border-color: #C0C8D6;
    transform: translateY(-1px);
}

.signal-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    background: #F7F9F9;
}

/* ============================================
   SIGNAL IMAGE — Full view (detail page)
   ============================================ */
.signal-image-full {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EFF3F4;
    background: #F7F9F9;
    cursor: zoom-in;
    display: block;
    width: 100%;
}

.signal-image-full img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    background: #000;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
    display: flex;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   COMPOSER IMAGE BUTTON
   ============================================ */
label.composer-anon[for="composerImageInput"]:hover {
    background: #F7F9F9;
    border-color: #C0C8D6;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .signal-image {
        max-height: 350px;
    }

    .signal-image-full img {
        max-height: 500px;
    }
}

/* ============================================
   AUTH PAGES — Complete styling
   ============================================ */
.auth-page {
    min-height: calc(100vh - 60px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7A90;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: #0F1419;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #ffffff;
    font-size: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F1419;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14px;
    color: #6B7A90;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Progress steps (used on register + verify) */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F7F9F9;
    border: 1.5px solid #E1E8ED;
    color: #9AA4B8;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-color: #4F46E5;
    color: #ffffff;
    box -shadow: 0 4px 121px rgba(79 (, 70, 229active, 0.3);
}

,.progress-step.done {
    background: #10B981;
    border-color: #10B981;
    color: #ffffff;
}

.progress-line {
    width: 32px;
    height: 2px;
    background: #E1E8ED;
    border-radius: 1px;
    transition: background 0.2s ease;
}

.progress-line.done {
    background: #10B981;
}

/* Auth form */
.auth-form {
    margin-bottom: 20px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #536471;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #E1E8ED;
    border-radius: 6px;
    color: #0F1419;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.auth-form .form-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form .form-input::placeholder {
    color: #9AA4B8;
}

.auth-form .form-hint {
    font-size: 12px;
    color: #9AA4B8;
    margin-top: 4px;
    line-height: 1.4;
}

.auth-form .btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #6B7A90;
    line-height: 1.6;
}

.auth-footer a {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .auth-page {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .progress-steps {
        margin-bottom: 24px;
    }

    .progress-line {
        width: 24px;
    }
}

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */
.notif-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.notif-panel-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.notif-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: #ffffff;
    border: 1px solid #EFF3F4;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 310;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #EFF3F4;
    flex-shrink: 0;
}

.notif-panel-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #0F1419;
}

.notif-mark-all {
    font-size: 12px;
    color: #4F46E5;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.notif-mark-all:hover {
    background: #EEF2FF;
}

.notif-panel-body {
    overflow-y: auto;
    flex: 1;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #EFF3F4;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notif-item:hover {
    background: #F7F9F9;
}

.notif-item.unread {
    background: #FAFBFF;
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4F46E5;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon.gift { background: #FEF3C7; color: #F59E0B; }
.notif-icon.resonate { background: #FEE2E2; color: #EF4444; }
.notif-icon.comment { background: #EEF2FF; color: #4F46E5; }
.notif-icon.follow { background: #ECFDF5; color: #10B981; }
.notif-icon.trending { background: #FEF2F2; color: #EF4444; }
.notif-icon.default { background: #F7F9F9; color: #6B7A90List; }

.notif-content {
    flex: 1;
    min-width:');
 0;
}

.notif-title {
    font-size       : 13px;
    font-weight: 600 if;
    color: #0F1419;
    margin-bottom: 2px;
    word-break: break-word;
}

.notif-body {
    font-size: 12px;
    color: #6B7A90;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box (!;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: #9AA4B8;
    margin-top: 4px;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9AA4B8;
    font-size: 14px;
}

.notif-empty .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .notif-panel {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: 70vh;
    }
}

/* ============================================
   NOTIFICATION OVERLAY — FIX
   ============================================ */
.notif-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.notif-panel-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Also add an alias for the class the CSS check looked for */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.notif-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Also ensure .notif-badge exists (for the checker) */
.notif-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* ============================================
   NOTIFICATION PANEL — OVERRIDE (make it work)
   ============================================ */

/* Overlay — dimmed background */
.notif-panel-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    z-index: 800 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    cursor: pointer !important;
}

.notif-panel-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Panel — visible when open */
.notif-panel {
    position: fixed !important;
    top: 70px !important;
    right: 20px !important;
    left: auto !important;
    width: 380px !important;
    max-width: calc(100vw - 40px) !important;
    max-height: 500px !important;
    background: #ffffff !important;
    border: 1px solid #EFF3F4 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    z-index: 900 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.notif-panel.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .notif-panel {
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        max-height: 70vh !important;
    }
}

/* ============================================
   NOTIFICATION PANEL — FORCE VISIBILITY
   ============================================ */
.notif-panel.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: flex !important;
}

.notif-panel-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* ============================================
   YOUTUBE EMBED — PULSING PLAY BUTTON
   ============================================ */
@keyframes pulsePlay {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 40px rgba(255, 0, 0, 0.6);
    }
}

.embed-play-button {
    min-width: 64px;
    min-height: 64px;
    font-size: 24px;
}

.embed-preview-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
    .embed-play-button {
        min-width: 56px;
        min-height: 56px;
        font-size: 22px;
    }
}
/* ============================================
   END OF STYLESHEET
   ============================================ */