/* Notifications: profile-bar bell + panel (vasNotificationBell), the shared
   list (vasNotificationList) and the full page (notifications.html). */

:root {
     --vn-surface: #ffffff;
     --vn-surface-2: #f6f7f9;
     --vn-hover: #f3f4f7;
     --vn-unread: #fffaf0;
     --vn-border: rgba(15, 32, 56, 0.08);
     --vn-text: #142a4a;
     --vn-text-2: #5a6a80;
     --vn-muted: #8994a4;
     --vn-accent: #ffbc38;
     --vn-accent-ink: #8a5a00;
     --vn-accent-soft: rgba(255, 188, 56, 0.16);
     --vn-shadow: 0 12px 40px rgba(15, 32, 56, 0.14), 0 2px 6px rgba(15, 32, 56, 0.06);
     --vn-skeleton: #eceef2;

     --vn-in: #12a150;
     --vn-in-soft: rgba(18, 161, 80, 0.12);
     --vn-out: #2f6bff;
     --vn-out-soft: rgba(47, 107, 255, 0.10);
     --vn-alert: #e5484d;
     --vn-alert-soft: rgba(229, 72, 77, 0.12);
     --vn-security: #7c5cff;
     --vn-security-soft: rgba(124, 92, 255, 0.12);
}

body.dark {
     --vn-surface: #1f1f1f;
     --vn-surface-2: #171717;
     --vn-hover: #262626;
     --vn-unread: #262217;
     --vn-border: rgba(255, 255, 255, 0.08);
     --vn-text: #f1f5f9;
     --vn-text-2: #cbd5e1;
     --vn-muted: #94a3b8;
     --vn-accent-ink: #ffbc38;
     --vn-accent-soft: rgba(255, 188, 56, 0.14);
     --vn-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
     --vn-skeleton: #2a2a2a;

     --vn-in: #3dd68c;
     --vn-in-soft: rgba(61, 214, 140, 0.14);
     --vn-out: #7aa2ff;
     --vn-out-soft: rgba(122, 162, 255, 0.14);
     --vn-alert: #ff6369;
     --vn-alert-soft: rgba(255, 99, 105, 0.14);
     --vn-security: #a593ff;
     --vn-security-soft: rgba(165, 147, 255, 0.14);
}

.vn-sr {
     position: absolute;
     width: 1px;
     height: 1px;
     overflow: hidden;
     clip: rect(0 0 0 0);
     white-space: nowrap;
}

/* ---------- Shared controls ---------- */

.vn-btn {
     font: inherit;
     font-size: 13px;
     font-weight: 600;
     border-radius: 8px;
     cursor: pointer;
     transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
     white-space: nowrap;
}

.vn-btn:disabled {
     opacity: 0.45;
     cursor: default;
}

.vn-btn--link {
     background: none;
     border: none;
     padding: 6px 8px;
     margin-right: -8px;
     color: var(--vn-accent-ink);
}

.vn-btn--link:not(:disabled):hover {
     background: var(--vn-accent-soft);
}

.vn-btn--ghost {
     background: var(--vn-surface);
     border: 1px solid var(--vn-border);
     padding: 9px 14px;
     color: var(--vn-text);
}

.vn-btn--ghost:not(:disabled):hover {
     background: var(--vn-hover);
}

.vn-btn:focus-visible,
.vn-tab:focus-visible,
.vnl-item:focus-visible,
.vnb-trigger:focus-visible,
.vnb-foot:focus-visible {
     outline: 2px solid var(--vn-accent);
     outline-offset: 2px;
}

.vn-pill {
     display: inline-flex;
     align-items: center;
     height: 20px;
     padding: 0 8px;
     margin-left: 8px;
     border-radius: 999px;
     background: var(--vn-accent-soft);
     color: var(--vn-accent-ink);
     font-size: 11px;
     font-weight: 700;
     vertical-align: middle;
}

.vn-tabs {
     display: inline-flex;
     gap: 2px;
     padding: 3px;
     border-radius: 10px;
     background: var(--vn-surface-2);
     border: 1px solid var(--vn-border);
}

.vn-tab {
     font: inherit;
     font-size: 13px;
     font-weight: 600;
     padding: 6px 14px;
     border: none;
     border-radius: 7px;
     background: none;
     color: var(--vn-muted);
     cursor: pointer;
     transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.vn-tab:hover {
     color: var(--vn-text);
}

.vn-tab.is-active {
     background: var(--vn-surface);
     color: var(--vn-text);
     box-shadow: 0 1px 3px rgba(15, 32, 56, 0.12);
}

body.dark .vn-tab.is-active {
     background: #2e2e2e;
     box-shadow: none;
}

/* ---------- Bell + panel ---------- */

.vnb {
     position: relative;
}

.vnb-trigger {
     border: none;
     padding: 0;
     cursor: pointer;
     color: #142a4a;
     transition: background-color 0.15s ease;
}

.vnb-trigger:hover,
.vnb--open .vnb-trigger {
     background: #e7e8ec;
}

body.dark .vnb-trigger:hover,
body.dark .vnb--open .vnb-trigger {
     background: #262626;
}

.vnb-bell {
     width: 19px;
     height: 19px;
     display: block;
}

.vnb-badge {
     position: absolute;
     top: -3px;
     right: -3px;
     min-width: 18px;
     height: 18px;
     padding: 0 5px;
     box-sizing: border-box;
     border-radius: 999px;
     background: var(--vn-alert);
     color: #fff;
     font-size: 10px;
     font-weight: 700;
     line-height: 18px;
     text-align: center;
     box-shadow: 0 0 0 2px var(--vn-surface);
     animation: vnPop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark .vnb-badge {
     box-shadow: 0 0 0 2px #121212;
}

.vnb-panel {
     position: absolute;
     top: calc(100% + 10px);
     right: 0;
     z-index: 30;
     width: 384px;
     max-height: min(560px, calc(100vh - 96px));
     display: flex;
     flex-direction: column;
     background: var(--vn-surface);
     border: 1px solid var(--vn-border);
     border-radius: 14px;
     box-shadow: var(--vn-shadow);
     overflow: hidden;
     transform-origin: top right;
     animation: vnPanelIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
     text-align: left;
}

.vnb-head {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     padding: 16px 18px 12px;
}

.vnb-title {
     font-size: 16px;
     font-weight: 700;
     color: var(--vn-text);
     letter-spacing: -0.01em;
}

.vnb-panel .vn-tabs {
     margin: 0 18px 8px;
     align-self: flex-start;
}

.vnb-scroll {
     flex: 1;
     min-height: 0;
     overflow-y: auto;
     overscroll-behavior: contain;
     border-top: 1px solid var(--vn-border);
}

.vnb-foot {
     display: block;
     padding: 12px;
     text-align: center;
     font-size: 13px;
     font-weight: 600;
     color: var(--vn-text);
     border-top: 1px solid var(--vn-border);
     cursor: pointer;
     text-decoration: none;
     transition: background-color 0.15s ease;
}

.vnb-foot:hover {
     background: var(--vn-hover);
}

@media (max-width: 600px) {
     .vnb-panel {
          position: fixed;
          top: 64px;
          left: 12px;
          right: 12px;
          width: auto;
          max-height: calc(100vh - 88px);
     }
}

/* ---------- List ---------- */

.vnl-group-label {
     margin: 0;
     padding: 14px 18px 6px;
     font-size: 11px;
     font-weight: 700;
     letter-spacing: 0.06em;
     text-transform: uppercase;
     color: var(--vn-muted);
}

.vnl-items {
     list-style: none;
     margin: 0;
     padding: 0 8px 4px;
}

.vnl-item {
     position: relative;
     display: flex;
     align-items: flex-start;
     gap: 12px;
     width: 100%;
     padding: 12px 30px 12px 10px;
     border: none;
     border-radius: 10px;
     background: none;
     font: inherit;
     text-align: left;
     cursor: default;
     transition: background-color 0.15s ease;
     animation: vnFade 0.25s ease both;
}

.vnl-item:hover {
     background: var(--vn-hover);
}

.vnl-item.is-unread {
     background: var(--vn-unread);
     cursor: pointer;
}

.vnl-item.is-unread:hover {
     background: var(--vn-hover);
}

.vnl-icon {
     flex-shrink: 0;
     width: 36px;
     height: 36px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: var(--vn-accent-soft);
     color: var(--vn-accent-ink);
}

.vnl-icon svg {
     width: 17px;
     height: 17px;
}

.vnl-icon--in {
     background: var(--vn-in-soft);
     color: var(--vn-in);
}

.vnl-icon--out {
     background: var(--vn-out-soft);
     color: var(--vn-out);
}

.vnl-icon--alert {
     background: var(--vn-alert-soft);
     color: var(--vn-alert);
}

.vnl-icon--security {
     background: var(--vn-security-soft);
     color: var(--vn-security);
}

.vnl-body {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
     gap: 4px;
}

.vnl-title {
     font-size: 13.5px;
     line-height: 1.45;
     color: var(--vn-text-2);
     overflow-wrap: anywhere;
}

.vnl-item.is-unread .vnl-title {
     color: var(--vn-text);
     font-weight: 600;
}

.vnl--compact .vnl-title {
     display: -webkit-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
}

.vnl-meta {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 4px 8px;
     font-size: 12px;
     color: var(--vn-muted);
     font-variant-numeric: tabular-nums;
}

.vnl-label {
     padding: 1px 7px;
     border-radius: 6px;
     background: var(--vn-surface-2);
     border: 1px solid var(--vn-border);
     font-size: 11px;
     font-weight: 600;
     color: var(--vn-text-2);
}

.vnl-dot {
     position: absolute;
     top: 50%;
     right: 12px;
     width: 8px;
     height: 8px;
     margin-top: -4px;
     border-radius: 50%;
     background: var(--vn-accent);
     box-shadow: 0 0 0 3px var(--vn-accent-soft);
}

/* Empty / error */
.vnl-empty {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     padding: 44px 24px 48px;
     gap: 6px;
}

.vnl-empty-art {
     width: 52px;
     height: 52px;
     margin-bottom: 8px;
     border-radius: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: var(--vn-accent-soft);
     color: var(--vn-accent-ink);
}

.vnl-empty-art--error {
     background: var(--vn-alert-soft);
     color: var(--vn-alert);
}

.vnl-empty-art svg {
     width: 24px;
     height: 24px;
}

.vnl-empty-title {
     font-size: 15px;
     font-weight: 700;
     color: var(--vn-text);
}

.vnl-empty-sub {
     max-width: 260px;
     font-size: 13px;
     line-height: 1.5;
     color: var(--vn-muted);
}

.vnl-empty .vn-btn {
     margin-top: 12px;
}

/* Skeleton */
.vnl-skeleton {
     padding: 10px 18px;
}

.vnl-skeleton-row {
     display: flex;
     gap: 12px;
     padding: 10px 0;
}

.vnl-skeleton-icon,
.vnl-skeleton-lines span {
     background: var(--vn-skeleton);
     animation: vnPulse 1.2s ease-in-out infinite;
}

.vnl-skeleton-icon {
     flex-shrink: 0;
     width: 36px;
     height: 36px;
     border-radius: 10px;
}

.vnl-skeleton-lines {
     flex: 1;
     display: flex;
     flex-direction: column;
     gap: 8px;
     padding-top: 3px;
}

.vnl-skeleton-lines span {
     height: 10px;
     border-radius: 5px;
}

.vnl-skeleton-lines span:last-child {
     width: 40%;
}

/* ---------- Full page ---------- */

.vnp {
     width: 100%;
     max-width: 680px;
     margin: 0 auto;
     padding-bottom: 48px;
     animation: vnFade 0.3s ease both;
}

.vnp-head {
     display: flex;
     align-items: flex-end;
     justify-content: space-between;
     gap: 16px;
     margin-bottom: 20px;
}

.vnp-title {
     margin: 0;
     font-size: 24px;
     font-weight: 700;
     letter-spacing: -0.02em;
     color: var(--vn-text);
}

.vnp-sub {
     margin: 4px 0 0;
     font-size: 14px;
     color: var(--vn-muted);
}

.vnp-tabs {
     margin-bottom: 16px;
}

.vnp-card {
     background: var(--vn-surface);
     border: 1px solid var(--vn-border);
     border-radius: 14px;
     overflow: hidden;
     padding-bottom: 6px;
}

@media (max-width: 600px) {
     .vnp-head {
          flex-direction: column;
          align-items: flex-start;
     }
}

/* ---------- Motion ---------- */

@keyframes vnPanelIn {
     from {
          opacity: 0;
          transform: translateY(-6px) scale(0.98);
     }

     to {
          opacity: 1;
          transform: none;
     }
}

@keyframes vnFade {
     from {
          opacity: 0;
     }

     to {
          opacity: 1;
     }
}

@keyframes vnPop {
     from {
          transform: scale(0.4);
     }

     to {
          transform: scale(1);
     }
}

@keyframes vnPulse {
     50% {
          opacity: 0.5;
     }
}

@media (prefers-reduced-motion: reduce) {

     .vnb-panel,
     .vnb-badge,
     .vnl-item,
     .vnp,
     .vnl-skeleton-icon,
     .vnl-skeleton-lines span {
          animation: none;
     }
}
