/*
Theme Name: Xila
Description: Event Centric Live Update Theme for Xila Plugin
Version: 1.0.1
Text Domain: xila-theme
File Location: /wp-content/themes/xila/style.css
*/

/* --------- RESET --------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:14px;line-height:1.6;color:#1e293b;background:#f1f5f9;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:#3b82f6;text-decoration:none}
a:hover{color:#2563eb}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,textarea,select{font-family:inherit;font-size:14px}

/* --------- LAYOUT --------- */
.xila-page-wrapper{min-height:100vh;display:flex;flex-direction:column}

/* ── REPLACE existing .xila-layout with this ── */
.xila-layout {
    display: grid;
    grid-template-columns: 220px 1fr 360px;
    grid-template-areas: "left center right";
    gap: 0 8px;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 6px 8px 24px;
    align-items: start;
    flex: 1;
}
 
/* Tablet: hide left sidebar, show center + right */
@media (max-width: 1100px) {
    .xila-layout {
        grid-template-columns: 1fr 240px;
        grid-template-areas: "center right";
    }
    .xila-sidebar-left { display: none !important; }
}
 
/* Mobile: single column, hide both sidebars */
@media (max-width: 768px) {
    .xila-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "center";
        padding: 0 0 16px;
        gap: 0;
    }
    .xila-sidebar-left,
    .xila-sidebar-right { display: none !important; }
}
 
/* Right sidebar height */
.xila-sidebar-right {
    grid-area: right;
    position: sticky;
    top: 56px;
    max-height: calc(100vh - 64px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
 
/* Remove old article panel from right sidebar (no longer needed) */
.xila-rsidebar-article,
.xila-rsidebar-placeholder,
.xila-rsidebar-wrap {
    display: none !important;
}
 

/* --------- SIDEBARS --------- */
.xila-sidebar-left{grid-area:left;position:sticky;top:56px;max-height:calc(100vh - 64px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#e2e8f0 transparent}
.xila-sidebar-right{grid-area:right;position:sticky;top:56px;max-height:calc(100vh - 64px);overflow:hidden;display:flex;flex-direction:column}
.xila-main-feed{grid-area:center;min-width:0}

/* --------- HEADER --------- */
.xila-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid #e2e8f0;height:56px;display:flex;align-items:center}
.xila-header-inner{display:flex;align-items:center;width:100%;max-width:1400px;margin:0 auto;padding:0 12px;gap:10px}

.xila-mobile-menu-btn{display:none;width:36px;height:36px;align-items:center;justify-content:center;border-radius:8px;color:#475569;font-size:18px;flex-shrink:0;order:-1}
@media(max-width:768px){.xila-mobile-menu-btn{display:flex}}

.xila-logo{font-size:20px;font-weight:800;color:#1e293b;white-space:nowrap;text-decoration:none;letter-spacing:-0.5px;flex-shrink:0}
.xila-logo span{color:#3b82f6}

.xila-header-nav{display:flex;align-items:center;gap:2px;flex:1;overflow-x:auto;scrollbar-width:none;padding:0 4px}
.xila-header-nav::-webkit-scrollbar{display:none}
@media(max-width:768px){.xila-header-nav{display:none}}
.xila-header-nav a{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500;color:#475569;white-space:nowrap;transition:background .15s,color .15s}
.xila-header-nav a:hover,.xila-header-nav a.is-active{background:#eff6ff;color:#3b82f6}

.xila-header-right{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}

/* --------- Notification --------- */
.xila-notif-wrapper{position:relative}
.xila-notif-bell{position:relative;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f1f5f9;color:#475569;font-size:16px;cursor:pointer;text-decoration:none;transition:background .15s}
.xila-notif-bell:hover{background:#e2e8f0;color:#1e293b}
.xila-notif-count{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1}

/* --------- Notification Hover Dropdown --------- */
.xila-notif-dropdown{display:none;position:absolute;top:calc(100% + 1px);right:0;width:320px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.12);z-index:9999;overflow:hidden}
.xila-notif-wrapper:hover .xila-notif-dropdown{display:block}
.xila-notif-dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f1f5f9;background:#fafbfc}
.xila-notif-dropdown-title{font-size:13px;font-weight:700;color:#1e293b}
.xila-notif-dropdown-all{font-size:12px;color:#3b82f6;font-weight:600}
.xila-notif-dropdown-all:hover{color:#2563eb}
.xila-notif-dropdown-body{max-height:340px;overflow-y:auto}
.xila-notif-dropdown-loading{padding:20px;text-align:center;font-size:13px;color:#94a3b8}
.xila-notif-dropdown-empty{padding:24px;text-align:center;font-size:13px;color:#94a3b8}
.xila-notif-dropdown-empty-icon{font-size:24px;margin-bottom:8px;opacity:.5}
.xila-notif-drop-item{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border-bottom:1px solid #f8fafc;transition:background .12s;cursor:pointer;text-decoration:none}
.xila-notif-drop-item:last-child{border-bottom:none}
.xila-notif-drop-item:hover{background:#f8fafc}
.xila-notif-drop-item.is-new{border-left:3px solid #3b82f6;padding-left:11px}
.xila-notif-drop-item.is-new .xila-notif-drop-title{font-weight:700;color:#1e293b}
.xila-notif-drop-badge{font-size:18px;flex-shrink:0;margin-top:1px}
.xila-notif-drop-content{flex:1;min-width:0}
.xila-notif-drop-title{font-size:13px;color:#374151;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xila-notif-drop-meta{display:flex;align-items:center;gap:6px;margin-top:4px}
.xila-notif-drop-type{font-size:11px;color:#64748b;background:#f1f5f9;padding:1px 6px;border-radius:4px}
.xila-notif-drop-time{font-size:11px;color:#94a3b8}
.xila-notif-drop-unread-dot{width:7px;height:7px;background:#3b82f6;border-radius:50%;flex-shrink:0;margin-top:4px}

.xila-user-menu{position:relative}
.xila-user-btn{display:flex;align-items:center;gap:5px;padding:5px 10px 5px 5px;background:#f1f5f9;border:none;border-radius:24px;cursor:pointer;transition:background .15s}
.xila-user-btn:hover{background:#e2e8f0}
.xila-user-avatar{width:28px;height:28px;border-radius:50%;background:#3b82f6;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700;flex-shrink:0}

.xila-user-dropdown{display:none;position:absolute;top:calc(100% + 6px);right:0;min-width:160px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.1);padding:6px 0;z-index:9999}
.xila-user-menu.open .xila-user-dropdown{display:block}
.xila-user-dropdown a{display:block;padding:9px 16px;font-size:13px;color:#374151;transition:background .12s}
.xila-user-dropdown a:hover{background:#f8fafc}
.xila-user-dropdown .xila-logout-link{color:#ef4444}
.xila-user-dropdown-divider{height:1px;background:#f1f5f9;margin:4px 0}

.xila-login-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;background:#3b82f6;color:#fff!important;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:background .15s;white-space:nowrap}
.xila-login-btn:hover{background:#2563eb;color:#fff!important}

/* Plugin Language Switcher (xila-front.css already has its own styles, we just ensure no conflict) */
.xila-lang-switcher{position:relative;display:inline-block}
.xila-lang-toggle{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;font-size:12px;font-weight:600;color:#475569;cursor:pointer}
.xila-lang-toggle:hover{background:#e2e8f0}
.xila-lang-dropdown.is-open{display:block!important}

/*  ARCHIVE SUBMENU — inside archive card */
.xila-archive-submenu{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none;padding:12px 0 4px;flex-wrap:nowrap;border-top:1px solid #f1f5f9;margin-top:12px}
.xila-archive-submenu::-webkit-scrollbar{display:none}
.xila-archive-submenu a{display:inline-flex;align-items:center;padding:5px 14px;border-radius:20px;font-size:13px;font-weight:500;color:#475569;white-space:nowrap;transition:all .15s;border:1px solid #e2e8f0;background:#f8fafc}
.xila-archive-submenu a:hover{background:#eff6ff;border-color:#bfdbfe;color:#3b82f6}
.xila-archive-submenu a.active{background:#3b82f6;border-color:#3b82f6;color:#fff}

/* --------- FEED CARD --------- */
.xila-feed{display:flex;flex-direction:column;gap:8px}
.xila-card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:14px 16px;transition:box-shadow .2s,border-color .2s}
.xila-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.07);border-color:#bfdbfe}
.xila-card--parent{border-left:3px solid #3b82f6}
.xila-card--child{border-left:3px solid #10b981}

.xila-card-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.xila-card-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1}
.xila-card-time{font-size:11px;color:#94a3b8;white-space:nowrap}

.xila-card-org{font-size:12px;color:#2563eb;font-weight:600;padding:2px 8px;background:#eff6ff;border-radius:20px;transition:background .15s;text-decoration:none}
.xila-card-org:hover{background:#dbeafe}
.xila-card-tag{display:inline-flex;align-items:center;padding:2px 8px;background:#f0fdf4;border-radius:20px;font-size:11px;color:#16a34a;font-weight:500;text-decoration:none;transition:background .15s}
.xila-card-tag:hover{background:#dcfce7}

.xila-card-title{font-size:15px;font-weight:700;color:#1e293b;line-height:1.4;margin-bottom:6px}
.xila-title-link{color:inherit;text-decoration:none}
.xila-title-link:hover{color:#3b82f6}
.xila-card-shorts{font-size:13px;color:#475569;line-height:1.6;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.xila-card-tab-links{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap}
.xila-card-tab-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;border:1.5px solid #e2e8f0;color:#64748b;background:#f8fafc;cursor:pointer;transition:all .15s}
.xila-card-tab-btn:hover{border-color:#3b82f6;color:#3b82f6;background:#eff6ff}
.xila-tab-count{background:#e2e8f0;color:#64748b;font-size:10px;padding:0 5px;border-radius:10px;font-weight:700;min-width:18px;text-align:center}
.xila-card-tab-btn:hover .xila-tab-count{background:rgba(59,130,246,.15);color:#3b82f6}

.xila-card-footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.xila-card-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-wrap:wrap}

.xila-status-badge{padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600}
.xila-status-badge--upcoming{background:#fef3c7;color:#d97706}
.xila-status-badge--active{background:#dcfce7;color:#16a34a}
.xila-status-badge--closed{background:#fee2e2;color:#dc2626}
.xila-status-badge--archived{background:#f1f5f9;color:#64748b}

.xila-trust-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600}
.xila-trust-verified{background:#dcfce7;color:#16a34a}
.xila-trust-official{background:#eff6ff;color:#2563eb}
.xila-trust-awaiting{background:#fef3c7;color:#d97706}
.xila-trust-user_submitted{background:#f1f5f9;color:#64748b}

.xila-action-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:8px;font-size:12px;font-weight:500;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;cursor:pointer;transition:all .15s;text-decoration:none}
.xila-action-btn:hover{background:#eff6ff;border-color:#bfdbfe;color:#3b82f6}

.xila-read-more-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;background:#3b82f6;color:#fff;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;border:none;transition:background .15s}
.xila-read-more-btn:hover{background:#2563eb}

.xila-open-new-tab{margin-left:auto;font-size:11px;color:#94a3b8;text-decoration:none}
.xila-open-new-tab:hover{color:#3b82f6}

/* --------- RIGHT SIDEBAR --------- */
.xila-rsidebar-wrap{position:relative;display:flex;flex-direction:column;height:calc(100vh - 64px);background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden}
.xila-rsidebar-placeholder {
    display:flex;
    flex-direction:column;
    height:100%;
    color:#94a3b8;
    text-align:center;
    gap:12px
}

.xila-rsidebar-article{display:none;flex-direction:column;height:100%}
.xila-rsidebar-article.is-open{display:flex}
.xila-rsidebar-article-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:#fff;flex-shrink:0}
.xila-rsidebar-article-title{font-size:13px;font-weight:700;line-height:1.3;flex:1;margin-right:8px}
.xila-rsidebar-close-btn{width:26px;height:26px;background:rgba(255,255,255,.2);border:none;border-radius:6px;color:#fff;font-size:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.xila-rsidebar-close-btn:hover{background:rgba(255,255,255,.3)}
.xila-rsidebar-tabs{display:flex;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}
.xila-rsidebar-tab{flex:1;padding:10px 8px;font-size:12px;font-weight:600;color:#64748b;background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;gap:4px;transition:all .15s}
.xila-rsidebar-tab:hover{color:#3b82f6}
.xila-rsidebar-tab.is-active{color:#3b82f6;border-bottom-color:#3b82f6;background:#fff}
.xila-rsidebar-article-body{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin; margin-top: 10px;scrollbar-color:#e2e8f0 transparent}
.xila-rsidebar-panel{display:none;padding:14px}
.xila-rsidebar-panel.is-active{display:block}

/* --------- SINGLE ARTICLE TABS --------- */
.xila-single-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.xila-single-tab{display:inline-flex;align-items:center;gap:5px;padding:7px 16px;border-radius:8px;font-size:13px;font-weight:600;border:1.5px solid #e2e8f0;color:#64748b;background:#f8fafc;cursor:pointer;transition:all .15s}
.xila-single-tab:hover{border-color:#3b82f6;color:#3b82f6;background:#eff6ff}
.xila-single-tab.is-active{border-color:#3b82f6;color:#fff;background:#3b82f6}
.xila-single-panel{display:none}
.xila-single-panel.is-active{display:block}

/* --------- MOBILE POPUP --------- */
.xila-mobile-popup{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.5);align-items:flex-end}
.xila-mobile-popup.is-open{display:flex}
.xila-mobile-popup-inner{background:#fff;border-radius:20px 20px 0 0;width:100%;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;animation:slideUp .25s ease}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.xila-mobile-popup-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:#fff;flex-shrink:0}
.xila-mobile-popup-title{font-size:13px;font-weight:700;line-height:1.3;flex:1;margin-right:10px}
.xila-mobile-popup-close{width:26px;height:26px;background:rgba(255,255,255,.2);border:none;border-radius:6px;color:#fff;font-size:16px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.xila-mobile-popup-tabs{display:flex;border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0}
.xila-mobile-popup-tab{flex:1;padding:10px 8px;font-size:12px;font-weight:600;color:#64748b;background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;display:flex;align-items:center;justify-content:center;gap:4px;transition:all .15s}
.xila-mobile-popup-tab.is-active{color:#3b82f6;border-bottom-color:#3b82f6;background:#fff}
.xila-mobile-popup-body{flex:1;overflow-y:auto;padding:14px}

/* --------- LEFT SIDEBAR --------- */
.xila-left-sidebar{background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden}
.xila-left-nav-section-title{padding:10px 14px 4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#94a3b8}
.xila-left-nav-item{display:flex;align-items:center;gap:10px;padding:9px 14px;color:#374151;font-size:13px;font-weight:500;transition:background .15s,color .15s;border-bottom:1px solid #f8fafc;text-decoration:none}
.xila-left-nav-item:hover{background:#f8fafc;color:#3b82f6}
.xila-left-nav-item.is-active{background:#eff6ff;color:#3b82f6;font-weight:600}
.xila-left-nav-icon{font-size:15px;flex-shrink:0}
.xila-divider{height:1px;background:#f1f5f9;margin:4px 0}

/* --------- MOBILE DRAWER --------- */
.xila-mobile-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9998}
.xila-mobile-drawer-overlay.is-open{display:block}
.xila-mobile-drawer{position:fixed;top:0;left:-280px;width:280px;height:100%;background:#fff;z-index:9999;transition:left .25s ease;overflow-y:auto;box-shadow:4px 0 24px rgba(0,0,0,.15)}
.xila-mobile-drawer.is-open{left:0}
.xila-mobile-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f1f5f9;position:sticky;top:0;background:#fff;z-index:1}
.xila-mobile-drawer-logo{font-size:18px;font-weight:800;color:#1e293b}
.xila-mobile-drawer-logo span{color:#3b82f6}
.xila-drawer-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:18px;color:#64748b;cursor:pointer}

/* --------- ARCHIVE HEADER --------- */
.xila-archive-header{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:16px 18px;margin-bottom:10px}
.xila-archive-hero{display:flex;align-items:flex-start;gap:14px}
.xila-archive-logo{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;background:#f1f5f9;border:1px solid #e2e8f0}
.xila-archive-info{flex:1;min-width:0}
.xila-archive-name{font-size:18px;font-weight:800;color:#0f172a;margin-bottom:4px}
.xila-archive-about{font-size:13px;color:#64748b;line-height:1.5;margin-top:6px}

/* --------- ARTICLE --------- */
.xila-article{background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden;margin-bottom:10px}
.xila-article-header{padding:16px 20px;border-bottom:1px solid #f1f5f9}
.xila-article-title{font-size:20px;font-weight:800;color:#0f172a;line-height:1.3;margin:10px 0}
.xila-article-meta-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.xila-article-body{padding:16px 20px}
.xila-article-content{font-size:14px;line-height:1.8;color:#374151}
.xila-article-content h2,.xila-article-content h3{font-weight:700;color:#1e293b;margin:18px 0 8px}
.xila-article-content p{margin-bottom:12px}
.xila-article-content table{width:100%;border-collapse:collapse;margin:14px 0;font-size:13px}
.xila-article-content table th,.xila-article-content table td{padding:7px 10px;border:1px solid #e2e8f0}
.xila-article-content table th{background:#f8fafc;font-weight:600}
.xila-article-inline{font-size:14px}
.xila-article-meta-bar .xila-card-org,.xila-article-meta-bar .xila-card-tag{font-size:12px}

/* Dates Box */
.xila-dates-box{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:14px;margin:16px 0}
.xila-dates-box-title{font-size:13px;font-weight:700;color:#92400e;margin-bottom:8px}
.xila-dates-table{width:100%;font-size:13px}
.xila-dates-table td{padding:4px 0;color:#374151}
.xila-dates-table td:first-child{color:#64748b;width:55%;font-weight:500}

/* Links Box */
.xila-links-box{background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;padding:14px;margin:16px 0}
.xila-links-box-title{font-size:13px;font-weight:700;color:#0c4a6e;margin-bottom:8px}
.xila-link-item{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid #e0f2fe;font-size:13px}
.xila-link-item:last-child{border-bottom:none}
.xila-link-item a{color:#3b82f6;font-weight:500}

/* --------- LOCKED / UPDATES --------- */
.xila-updates-locked{text-align:center;padding:32px 20px;background:#f8fafc;border-radius:12px;border:2px dashed #e2e8f0;margin:20px 0}
.xila-updates-locked-icon{font-size:28px;margin-bottom:12px}
.xila-updates-locked p{font-size:13px;color:#64748b;margin-bottom:12px;line-height:1.6}
.xila-updates-locked-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#3b82f6;color:#fff;border-radius:8px;font-size:13px;font-weight:600;border:none;cursor:pointer;transition:background .15s}
.xila-updates-locked-btn:hover{background:#2563eb}

/* --------- VIRTUAL PAGE --------- */
.xila-virtual-page{background:#fff;border-radius:12px;border:1px solid #e2e8f0;padding:20px}
.xila-virtual-page-title{font-size:18px;font-weight:800;color:#1e293b;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.xila-notif-list .xila-notification-item{padding:12px 0;border-bottom:1px solid #f1f5f9;display:flex;align-items:flex-start;gap:10px;cursor:pointer;transition:background .15s}
.xila-notification-item.is-new{border-left:3px solid #3b82f6;padding-left:8px}
.xila-notification-item.is-seen{opacity:.7}

/* --------- CLASSIC LAYOUT --------- */
.xila-classic-page{max-width:1100px;margin:0 auto;padding:14px 12px}
.xila-classic-header{background:linear-gradient(135deg,#1e40af 0%,#3b82f6 100%);color:#fff;border-radius:12px;padding:20px 24px;margin-bottom:14px;text-align:center}
.xila-classic-main-title{font-size:20px;font-weight:800;margin-bottom:4px}
.xila-classic-subtitle{font-size:13px;opacity:.8}

.xila-classic-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:10px;overflow:hidden}
.xila-classic-section-title{background:#1e40af;color:#fff;padding:9px 14px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:space-between}
.xila-classic-section-title a{color:#93c5fd;font-size:11px;font-weight:500}

.xila-classic-item{display:flex;align-items:center;gap:7px;padding:7px 14px;border-bottom:1px solid #f8fafc;font-size:13px;transition:background .1s;flex-wrap:nowrap}
.xila-classic-item:last-child{border-bottom:none}
.xila-classic-item:hover{background:#f8fafc}
.xila-classic-item-dot{width:5px;height:5px;background:#3b82f6;border-radius:50%;flex-shrink:0}
.xila-classic-item a{color:#1e293b;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xila-classic-item a:hover{color:#3b82f6}
.xila-classic-item-date{font-size:11px;color:#94a3b8;white-space:nowrap;flex-shrink:0}
.xila-classic-new-badge{font-size:9px;font-weight:700;padding:1px 5px;border-radius:4px;background:#dcfce7;color:#15803d;flex-shrink:0;white-space:nowrap}
.xila-classic-new-badge--active{background:#fee2e2;color:#dc2626}
.xila-classic-status-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.xila-classic-empty{padding:12px 14px;font-size:13px;color:#94a3b8}

.xila-classic-orgs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px}
.xila-classic-org-chip{display:inline-flex;padding:5px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;font-size:12px;font-weight:600;color:#2563eb;transition:all .15s}
.xila-classic-org-chip:hover{background:#dbeafe}

/* --------- UTILITIES --------- */
.xila-load-more{display:flex;align-items:center;justify-content:center;padding:20px}
.xila-loader{width:28px;height:28px;border:3px solid #e2e8f0;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite;display:block;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.xila-no-more{text-align:center;padding:14px;font-size:13px;color:#94a3b8}
.xila-empty-state{text-align:center;padding:32px 16px;color:#94a3b8;font-size:13px}
.xila-empty-state-icon{font-size:32px;margin-bottom:8px;opacity:.5}

/* --------- FOOTER --------- */
.xila-footer{background:#fff;border-top:1px solid #e2e8f0;padding:16px;text-align:center;font-size:13px;color:#94a3b8}

::-webkit-scrollbar{width:4px;height:4px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#cbd5e1}

/* --------- TIMELINE — Compact (Full Article bottom, title+time only) --------- */
.xila-timeline { margin-top: 16px; }

.xila-timeline-compact {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fafbfc;
    margin-top: 20px;
}

.xila-timeline-compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.xila-timeline-compact-icon { font-size: 14px; line-height: 1; }

.xila-timeline-compact-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.xila-timeline-compact-count {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 1px 8px;
    border-radius: 20px;
}

.xila-timeline-compact-list { padding: 6px 0; }

.xila-tl-compact-entry {
    display: flex;
    align-items: flex-start;
    padding: 0 12px;
    transition: background .15s;
    cursor: pointer;
}

.xila-tl-compact-entry:hover { background: #f0f9ff; }

.xila-tl-compact-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18px;
    flex-shrink: 0;
    padding-top: 7px;
}

.xila-tl-compact-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px currentColor;
    transition: transform .2s;
    flex-shrink: 0;
}

.xila-tl-compact-entry:hover .xila-tl-compact-dot { transform: scale(1.5); }

.xila-tl-compact-line {
    width: 2px;
    flex: 1;
    min-height: 10px;
    background: #e2e8f0;
    margin: 3px 0;
}

.xila-tl-compact-body {
    flex: 1;
    padding: 5px 0 5px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.xila-tl-compact-entry.is-last .xila-tl-compact-body { border-bottom: none; }

.xila-tl-compact-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 2px;
}

.xila-tl-compact-entry:hover .xila-tl-compact-title { color: #2563eb; }

.xila-tl-compact-time {
    font-size: 10.5px;
    color: #94a3b8;
}


/* --------- XILU — Live Updates Full Mode
   (Sidebar AJAX + Single-page Updates panel + Popup)
------------------ */

/* Sidebar panel: zero padding so our cards touch the edges cleanly */
.xila-rsidebar-panel { padding: 10px; border-top: none !important; }

/* Individual entry row */
.xilu-entry {
    display: flex;
    gap: 0;
    padding: 0 14px 0 10px;
    position: relative;
    scroll-margin-top: 56px;
}

/* Vertical line + dot */
.xilu-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 22px;
    padding-top: 3px;
}

.xilu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    z-index: 1;
    transition: transform .2s;
}

.xilu-entry:hover .xilu-dot { transform: scale(1.35); }

.xilu-connector {
    width: 2px;
    flex: 1;
    min-height: 16px;
    background: linear-gradient(to bottom, #cbd5e1, #e2e8f0);
    margin-top: 4px;
}

/* Card */
.xilu-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 11px 13px 9px;
    margin: 0 0 10px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s, border-color .2s;
    min-width: 0;
}

.xilu-entry:hover .xilu-card {
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    border-color: #bfdbfe;
}

/* Top row */
.xilu-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 7px;
}

.xilu-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

/* Time */
.xilu-time {
    font-size: 10.5px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Badges */
.xilu-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
}

.xilu-badge--type     { background: #eef2ff; color: #4f46e5; text-transform: uppercase; letter-spacing: .3px; }
.xilu-badge--verified { background: #dcfce7; color: #16a34a; }
.xilu-badge--official { background: #fef3c7; color: #92400e; }
.xilu-badge--silent   { background: #f8fafc; color: #94a3b8; }

.xilu-badge--status   { background: #f1f5f9; color: #64748b; }
.xilu-s-active        { background: #dcfce7 !important; color: #16a34a !important; }
.xilu-s-upcoming      { background: #dbeafe !important; color: #1d4ed8 !important; }
.xilu-s-closed        { background: #fee2e2 !important; color: #dc2626 !important; }
.xilu-s-result        { background: #f3e8ff !important; color: #7c3aed !important; }
.xilu-s-interview     { background: #fef9c3 !important; color: #a16207 !important; }
.xilu-s-suspended     { background: #f1f5f9 !important; color: #64748b !important; }

/* Title */
.xilu-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin: 0 0 5px;
}

/* Short summary */
.xilu-shorts {
    font-size: 12px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 7px;
}

/* Full content */
.xilu-content {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin: 6px 0 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.xilu-content p          { margin: 0 0 7px; }
.xilu-content p:last-child { margin-bottom: 0; }
.xilu-content ul,
.xilu-content ol         { margin: 0 0 7px 16px; }
.xilu-content li         { margin-bottom: 3px; }
.xilu-content a          { color: #3b82f6; text-decoration: underline; }

/* Meta sections (Dates / Links / PDFs) */
.xilu-section {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px dashed #e2e8f0;
}

.xilu-section-hd {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 7px;
}

/* Dates table */
.xilu-dates {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.xilu-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    font-size: 11px;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
}

.xilu-date-row:last-child { border-bottom: none; }
.xilu-date-row span  { color: #64748b; font-weight: 500; flex: 1; }
.xilu-date-row strong { color: #1e293b; white-space: nowrap; }

/* Link / PDF buttons */
.xilu-links { display: flex; flex-wrap: wrap; gap: 5px; }

.xilu-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 9px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .15s;
    line-height: 1.5;
}

.xilu-link-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    text-decoration: none;
}

.xilu-link-btn--pdf            { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.xilu-link-btn--pdf:hover      { background: #15803d; color: #fff; border-color: #15803d; }

/* Footer actions */
.xilu-footer {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Highlight (scroll-to target) */
.xilu-entry--hl .xilu-card {
    border-color: #3b82f6;
    animation: xiluHl 2.5s ease-out forwards;
}

@keyframes xiluHl {
    0%   { box-shadow: 0 0 0 3px rgba(59,130,246,.35); }
    70%  { box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
    100% { box-shadow: 0 1px 4px rgba(0,0,0,.04); }
}

/* Empty / Locked (dedup) */
.xila-empty-state       { text-align: center; padding: 28px 16px; color: #94a3b8; font-size: 13px; }
.xila-empty-state-icon  { font-size: 30px; margin-bottom: 8px; opacity: .5; }

.xila-updates-locked    { text-align: center; padding: 28px 20px; background: #f8fafc; border: 2px dashed #e2e8f0; border-radius: 10px; margin: 12px; }
.xila-updates-locked-icon { font-size: 26px; margin-bottom: 10px; }
.xila-updates-locked p  { font-size: 13px; color: #64748b; margin-bottom: 12px; line-height: 1.6; }
.xila-updates-locked-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #3b82f6; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; }
.xila-updates-locked-btn:hover { background: #2563eb; }

/* Sidebar panel gray line fix */
.xila-rsidebar-panel { border-top: none !important; }

/* ---------
   VIRTUAL PAGES — Following / Saved / Notifications
   World-class modern design
--------- */

/* Page Header */
.xila-vp-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 60%, #60a5fa 100%);
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}
.xila-vp-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.xila-vp-header-info h2 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}
.xila-vp-header-info p {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin: 0;
}
.xila-vp-count-badge {
    margin-left: auto;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Filter/Tab Bar */
.xila-vp-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    width: fit-content;
}
.xila-vp-tab {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .15s;
    border: none;
    background: none;
}
.xila-vp-tab.is-active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── FOLLOWING LIST ── */
.xila-followings {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.xila-followings__group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}
.xila-followings__group h3 {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 10px 14px 8px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
}
.xila-followings__group ul {
    padding: 6px 0;
}
.xila-followings__group li {
    border-bottom: 1px solid #f8fafc;
}
.xila-followings__group li:last-child {
    border-bottom: none;
}
.xila-followings__group li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    transition: background .12s;
    text-decoration: none;
}
.xila-followings__group li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}
.xila-followings__group li a:hover {
    background: #f0f9ff;
    color: #2563eb;
}
.xila-followings__group li a:hover::before {
    background: #2563eb;
}

/* ── SAVED LIST ── */
.xila-saved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.xila-saved-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all .15s;
    cursor: pointer;
}
.xila-saved-item:hover {
    border-color: #bfdbfe;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,.08);
}
.xila-saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}
/* Update badge */
.xila-saved-item:has(.xila-saved-badge:contains("Update")) .xila-saved-badge,
.xila-saved-badge:not(:empty) {
    background: #eff6ff;
    color: #2563eb;
}
.xila-saved-item a {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    text-decoration: none;
    flex: 1;
}
.xila-saved-item:hover a {
    color: #2563eb;
}

/* ── NOTIFICATIONS LIST ── */
.xila-notifications {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.xila-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
    cursor: pointer;
    text-decoration: none;
}
.xila-notification-item:last-child {
    border-bottom: none;
}
.xila-notification-item:hover {
    background: #f8fafc;
}
.xila-notification-item.is-new {
    border-left: 3px solid #3b82f6;
    padding-left: 13px;
    background: #f0f9ff;
}
.xila-notification-item.is-new:hover {
    background: #e0f2fe;
}
.xila-notification-item.is-seen {
    opacity: .75;
}
.xila-notif-badge {
   /* width: 38px;
    height: 38px; 
    border-radius: 10px;
    background: #eff6ff;
    font-size: 16px;
    flex-shrink: 0;
    */
    display: flex;
    align-items: center;
    justify-content: center;

}
.xila-notification-item.is-new .xila-notif-badge {
    background: #dbeafe;
}
.xila-notif-content {
    flex: 1;
    min-width: 0;
}
.xila-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
}
.xila-notif-title:hover {
    color: #2563eb;
}
.xila-notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xila-notif-type-chip {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}
.xila-notif-time {
    font-size: 11px;
    color: #94a3b8;
}
.xila-notif-unread-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    margin-left: auto;
    box-shadow: 0 0 0 2px #dbeafe;
}

/* Mark all read button */
.xila-vp-mark-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 12px;
}
.xila-vp-mark-all-btn:hover {
    background: #e0f2fe;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Empty state (override) */
.xila-followings + .xila-empty-state,
p.xila-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 13px;
}


/* ── Notification Tabs ── */
.xila-notif-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
}
.xila-notif-tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    white-space: nowrap;
}
.xila-notif-tab-btn:hover { color: #1e293b; }
.xila-notif-tab-btn.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.xila-notif-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 17px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
}
.xila-notif-panel { display: none; }
.xila-notif-panel.is-active { display: block; }


/* ── Notification Tabs ── */
.xila-notif-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
}
.xila-notif-tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    white-space: nowrap;
}
.xila-notif-tab-btn:hover { color: #1e293b; }
.xila-notif-tab-btn.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.xila-notif-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 17px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
}
.xila-notif-panel { display: none; }
.xila-notif-panel.is-active { display: block; }



/* --------- NOTIFICATIONS PAGE — 3 Tabs --------- */
.xila-notif-page-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
}
.xila-notif-page-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.xila-notif-page-tab-btn:hover { color: #4f46e5; }
.xila-notif-page-tab-btn.is-active { color: #4f46e5; border-bottom-color: #4f46e5; }

.xila-notif-page-tab-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.xila-notif-page-panel { display: none; }
.xila-notif-page-panel.is-active { display: block; }

.xila-notif-page-empty {
    padding: 32px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
}

/* --------- NOTIFICATION DROPDOWN — 3 Tabs --------- */
.xila-notif-drop-tabs {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 6px;
    background: #fafbfc;
}
.xila-notif-drop-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: none;
    background: none;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .12s, border-color .12s;
    white-space: nowrap;
}
.xila-notif-drop-tab-btn:hover { color: #4f46e5; }
.xila-notif-drop-tab-btn.is-active { color: #4f46e5; border-bottom-color: #4f46e5; }

.xila-notif-drop-tab-count {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 14px;
    text-align: center;
}

.xila-notif-drop-panel { display: none; }
.xila-notif-drop-panel.is-active { display: block; }


/* ---------------------------------------------
   FEED VIEW MODES — Card View & List View
--------------------------------------------- */

/* ── List View ── */
.xila-feed--list .xila-card {
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: none;
    transition: background .12s, border-color .12s;
    overflow: hidden;
}
.xila-feed--list .xila-card:hover {
    background: #f8fbff;
    border-color: #bfdbfe;
    box-shadow: none;
}

/* Hide everything except title row in list view */
.xila-feed--list .xila-card-header,
.xila-feed--list .xila-card-shorts,
.xila-feed--list .xila-card-tab-links,
.xila-feed--list .xila-card-footer {
    display: none !important;
}

/* List View: Title row = the whole card */
.xila-feed--list .xila-card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

/* List View: rebuild card as a single list row */
.xila-feed--list .xila-card {
    display: flex;
    align-items: stretch;
    gap: 0;
}
/* Left color strip */
.xila-feed--list .xila-card::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    background: #3b82f6;
    border-radius: 0;
    display: block;
    align-self: stretch;
}
.xila-feed--list .xila-card--child::before { background: #10b981; }

/* Inner wrapper for title + badge */
.xila-feed--list .xila-card-title {
    flex: 1;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xila-feed--list .xila-title-link {
    flex: 1;
    color: #1e293b;
    text-decoration: none;
}
.xila-feed--list .xila-title-link:hover { color: #2563eb; }

/* Event type badge inside list row */
.xila-feed--list .xila-list-badge {
    display: inline-flex !important;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

/* Gap between list items */
.xila-feed--list {
    gap: 4px;
}



/* =============== Dinesh New Code for Single Event template ============================ */
/* ═══════════════════════════════════════════════════════════════
   SINGLE EVENT — New Layout (MockUp Based Style)
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --sp-blue:      #1a6fd4;
    --sp-blue-lt:   #e8f2fd;
    --sp-blue-dk:   #0d4d9a;
    --sp-teal:      #0ea472;
    --sp-teal-lt:   #e0f5ee;
    --sp-teal-dk:   #076b4a;
    --sp-amber:     #d4820a;
    --sp-amber-lt:  #fef3e0;
    --sp-coral:     #d94f30;
    --sp-coral-lt:  #fceee9;
    --sp-purple:    #6c47d4;
    --sp-purple-lt: #f0ecfd;
    --sp-purple-dk: #3d2880;
    --sp-red:       #c9312b;
    --sp-red-lt:    #fde8e8;
    --sp-bg:        #f5f7fa;
    --sp-surface:   #ffffff;
    --sp-surface2:  #f8f9fb;
    --sp-border:    #e4e8ef;
    --sp-border2:   #d0d7e3;
    --sp-t1:        #111827;
    --sp-t2:        #4b5563;
    --sp-t3:        #9ca3af;
    --sp-shadow:    0 1px 4px rgba(0,0,0,0.07),0 4px 16px rgba(0,0,0,0.05);
    --sp-radius:    12px;
    --sp-radius-sm: 8px;
}

/* ── PAGE LAYOUT: left sidebar + content ── */
.sp-page-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

/* Tablet: hide left sidebar */
@media (max-width: 1024px) {
    .sp-page-wrap { grid-template-columns: 1fr; }
    .sp-site-sidebar { display: none !important; }
}

.sp-site-sidebar {
    background: var(--sp-surface);
    border-right: 1px solid var(--sp-border);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sp-border) transparent;
}

.sp-content-wrap {
    padding: 20px 22px;
    min-width: 0;
    background: var(--sp-bg);
}

@media (max-width: 768px) { .sp-content-wrap { padding: 12px 12px; } }

/* ── 2-COLUMN CONTENT GRID ── */
.sp-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}

@media (max-width: 1024px) { .sp-content-grid { grid-template-columns: 1fr 280px; } }
@media (max-width: 860px)  { .sp-content-grid { grid-template-columns: 1fr; gap: 14px; } .sp-content-side { display: none; } }

.sp-content-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp-content-side  { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ── ARTICLE HEADER ── */
.sp-art-header {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 18px 20px 0;
    box-shadow: var(--sp-shadow);
    position: relative;
    overflow: hidden;
}
.sp-art-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sp-blue), var(--sp-teal));
}

/* Badge row */
.sp-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; align-items: center; }
.sp-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .15s;
}
.sp-badge:hover { opacity: .8; }
.sp-badge--blue    { background: var(--sp-blue-lt);   color: var(--sp-blue-dk); }
.sp-badge--teal    { background: var(--sp-teal-lt);   color: var(--sp-teal-dk); }
.sp-badge--neutral { background: var(--sp-surface2);  color: var(--sp-t2); border: 1px solid var(--sp-border2); }
.sp-badge--live {
    background: var(--sp-red-lt);
    color: var(--sp-red);
    display: inline-flex; align-items: center; gap: 5px;
}
.sp-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sp-red);
    animation: spLivePulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes spLivePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* Title */
.sp-art-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--sp-t1);
    margin-bottom: 13px;
    letter-spacing: -0.3px;
}
@media (max-width: 600px) { .sp-art-title { font-size: 18px; } }

/* Actions */
.sp-art-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sp-border);
    margin-bottom: 10px;
}

/* Meta row */
.sp-art-meta-row { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 0; font-size: 12px; color: var(--sp-t3); margin-bottom: 14px; }
.sp-art-meta-item { display: flex; align-items: center; gap: 5px; }

/* ── Section Anchor Nav ── */
.sp-sec-nav {
    display: flex;
    border-top: 1px solid var(--sp-border);
    margin: 0 -20px;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 56px;
    background: var(--sp-surface);
    z-index: 80;
    transition: box-shadow .2s;
}
.sp-sec-nav::-webkit-scrollbar { display: none; }
.sp-sec-nav--shadow { box-shadow: 0 4px 12px rgba(0,0,0,.07); }

.sp-sec-nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sp-t2);
    cursor: pointer;
    border-right: 1px solid var(--sp-border);
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: all .15s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.sp-sec-nav-item:last-child { border-right: none; }
.sp-sec-nav-item:hover:not(.sp-sec-nav-item--active) { background: var(--sp-bg); color: var(--sp-t1); }
.sp-sec-nav-item--active {
    color: var(--sp-blue);
    background: var(--sp-blue-lt);
    border-bottom-color: var(--sp-blue);
    font-weight: 700;
}

.sp-nav-badge {
    font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 8px; line-height: 1.6;
}
.sp-nav-badge--red    { background: var(--sp-red-lt);    color: var(--sp-red); }
.sp-nav-badge--purple { background: var(--sp-purple-lt); color: var(--sp-purple-dk); }

/* ── Cards ── */
.sp-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}
.sp-card--np { padding: 0; }
.sp-card-body { padding: 16px 18px; }

/* ── Section Bar Headers ── */
.sp-sec-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}
.sp-sec-bar--teal  { background: linear-gradient(135deg,var(--sp-teal-lt) 0%,#f0fdf8 100%); border-bottom: 1px solid #b6e8d5; }
.sp-sec-bar--purple{ background: linear-gradient(135deg,var(--sp-purple-lt) 0%,#f5f2ff 100%); border-bottom: 1px solid #cdc4f5; }

.sp-sec-bar-left {}
.sp-sec-bar-title {
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 3px;
}
.sp-sec-bar--teal   .sp-sec-bar-title { color: var(--sp-teal-dk); }
.sp-sec-bar--purple .sp-sec-bar-title { color: var(--sp-purple-dk); }
.sp-sec-bar-note { font-size: 11px; font-weight: 400; opacity: .7; }
.sp-sec-bar-sub { font-size: 11.5px; color: var(--sp-t2); line-height: 1.4; }
.sp-sec-bar--teal   .sp-sec-bar-sub { color: #4a9e7a; }
.sp-sec-bar--purple .sp-sec-bar-sub { color: #5a3eb0; }

.sp-count-pill {
    font-size: 11px; font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    white-space: nowrap; flex-shrink: 0; margin-top: 2px;
    background: #b6e8d5; color: var(--sp-teal-dk);
}
.sp-count-pill--purple { background: #cdc4f5; color: var(--sp-purple-dk); }

/* ── Meta Chips (status/action/competition/dates) ── */
.sp-meta-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 14px 18px 0;
    border-bottom: 1px solid var(--sp-border);
    padding-bottom: 14px;
}
.sp-meta-chip {
    background: var(--sp-surface2);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    padding: 8px 11px;
}
.sp-meta-chip-lbl { font-size: 10px; color: var(--sp-t3); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.sp-meta-chip-val { font-size: 12.5px; font-weight: 700; color: var(--sp-t1); display: flex; align-items: center; gap: 5px; }
.sp-mcv--blue { color: var(--sp-blue); }
.sp-mcv--teal { color: var(--sp-teal); }
.sp-mcv--red  { color: var(--sp-coral); }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── Display Dates Strip ── */
.sp-dates-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    padding: 14px 18px 0;
    border-bottom: 1px solid var(--sp-border);
    padding-bottom: 14px;
}
.sp-date-chip {
    background: var(--sp-surface2);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    padding: 8px 11px;
    text-align: center;
}
.sp-date-chip-lbl { font-size: 10px; color: var(--sp-t3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.sp-date-chip-val { font-size: 12.5px; font-weight: 700; color: var(--sp-t1); }

/* ── Article Content Body ── */
.sp-content-body {
    padding: 16px 18px;
    font-size: 14px; color: var(--sp-t1); line-height: 1.8;
}
.sp-content-body p  { margin-bottom: 10px; }
.sp-content-body h2,.sp-content-body h3 { font-weight: 700; color: var(--sp-t1); margin: 16px 0 8px; }
.sp-content-body ul,.sp-content-body ol { padding-left: 20px; margin-bottom: 10px; }
.sp-content-body li { margin-bottom: 4px; }
.sp-content-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.sp-content-body table th,.sp-content-body table td { padding: 7px 10px; border: 1px solid var(--sp-border); }
.sp-content-body table th { background: var(--sp-surface2); font-weight: 600; }

/* ── Links Section ── */
.sp-links-section { padding: 14px 18px 0; border-top: 1px solid var(--sp-border); margin-top: 0; padding-bottom: 4px; }
.sp-links-section-title { font-size: 11px; font-weight: 700; color: var(--sp-t3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.sp-links-strip { border: 1px solid var(--sp-border); border-radius: var(--sp-radius-sm); overflow: hidden; margin-bottom: 14px; }

.sp-link-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--sp-border);
    text-decoration: none; color: inherit;
    transition: background .12s;
}
.sp-link-row:last-child { border-bottom: none; }
.sp-link-row:hover { background: var(--sp-blue-lt); }

.sp-link-icon {
    width: 28px; height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sp-link-icon--ext { background: var(--sp-blue-lt);  color: var(--sp-blue); }
.sp-link-icon--pdf { background: var(--sp-coral-lt); color: var(--sp-coral); }
.sp-link-text { flex: 1; font-size: 12px; font-weight: 600; color: var(--sp-t1); }
.sp-link-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.sp-link-tag--ext { background: var(--sp-surface2); color: var(--sp-t3); border: 1px solid var(--sp-border); }
.sp-link-tag--pdf { background: var(--sp-coral-lt); color: var(--sp-coral); }

/* ── LOCKED STATE ── */
.sp-locked-state {
    text-align: center; padding: 32px 20px;
    background: var(--sp-surface2);
    border-radius: var(--sp-radius-sm);
    border: 2px dashed var(--sp-border2);
}
.sp-locked-icon  { font-size: 30px; margin-bottom: 10px; }
.sp-locked-title { font-size: 15px; font-weight: 700; color: var(--sp-t1); margin-bottom: 8px; }
.sp-locked-desc  { font-size: 13px; color: var(--sp-t2); line-height: 1.6; margin-bottom: 16px; }
.sp-locked-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; background: var(--sp-blue); color: #fff;
    border-radius: var(--sp-radius-sm); font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; font-family: inherit; transition: background .15s;
}
.sp-locked-btn:hover { background: var(--sp-blue-dk); }

/* ── TIMELINE ── */
.sp-timeline { position: relative; padding-left: 28px; }
.sp-timeline::before {
    content: ''; position: absolute;
    left: 9px; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--sp-teal) 0%, #b6e8d5 100%);
    border-radius: 2px;
}
.sp-tl-item { position: relative; margin-bottom: 10px; cursor: pointer; }
.sp-tl-item:last-child { margin-bottom: 0; }

.sp-tl-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 3px solid var(--sp-surface);
    box-shadow: 0 0 0 2px currentColor;
    position: absolute; left: -28px; top: 10px;
    z-index: 1; transition: transform .15s;
}
.sp-tl-item:hover .sp-tl-dot { transform: scale(1.2); }

.sp-tl-card {
    background: var(--sp-surface2);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.sp-tl-item:hover .sp-tl-card { border-color: var(--sp-teal); box-shadow: 0 2px 12px rgba(14,164,114,.1); }
.sp-tl-item--open .sp-tl-card { border-color: var(--sp-teal); }

.sp-tl-head { display: flex; align-items: flex-start; padding: 10px 12px; gap: 8px; }
.sp-tl-head-left { flex: 1; min-width: 0; }
.sp-tl-time  { font-size: 10px; color: var(--sp-t3); font-weight: 600; margin-bottom: 3px; }
.sp-tl-title { font-size: 12.5px; font-weight: 600; color: var(--sp-t1); line-height: 1.4; }
.sp-tl-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sp-tl-badge {
    font-size: 10px; font-weight: 600; padding: 1px 6px;
    border-radius: 20px; background: var(--sp-surface2);
    border: 1px solid var(--sp-border); color: var(--sp-t2);
}
.sp-tl-badge--type     { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; text-transform: uppercase; letter-spacing: .3px; }
.sp-tl-badge--active   { background: var(--sp-teal-lt); color: var(--sp-teal-dk); border-color: #b6e8d5; }
.sp-tl-badge--upcoming { background: var(--sp-blue-lt);  color: var(--sp-blue-dk); border-color: #bfdbfe; }
.sp-tl-badge--closed   { background: var(--sp-coral-lt); color: var(--sp-coral);   border-color: #fca5a5; }
.sp-tl-badge--result   { background: var(--sp-purple-lt);color: var(--sp-purple);  border-color: #cdc4f5; }
.sp-tl-badge--verified { background: var(--sp-teal-lt);  color: var(--sp-teal-dk); border-color: #b6e8d5; }
.sp-tl-badge--official { background: var(--sp-amber-lt); color: var(--sp-amber);   border-color: #f5d080; }
.sp-tl-badge--silent   { background: var(--sp-surface2); color: var(--sp-t3); }

.sp-tl-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sp-tl-chevron {
    font-size: 11px; color: var(--sp-t3); flex-shrink: 0;
    transition: transform .2s; margin-top: 2px;
}
.sp-tl-item--open .sp-tl-chevron { transform: rotate(180deg); }

.sp-tl-body {
    display: none;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--sp-border);
    background: var(--sp-surface);
    animation: spSlideDown .2s ease;
}
.sp-tl-item--open .sp-tl-body { display: block; }
@keyframes spSlideDown { from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none} }

.sp-tl-content { font-size: 12.5px; color: var(--sp-t2); line-height: 1.65; margin-bottom: 10px; }
.sp-tl-content p { margin-bottom: 6px; }

.sp-tl-meta-block { margin-top: 10px; }
.sp-tl-meta-lbl {
    font-size: 10px; font-weight: 700; color: var(--sp-t3);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.sp-tl-dates { border: 1px solid var(--sp-border); border-radius: 6px; overflow: hidden; background: var(--sp-surface2); }
.sp-tl-date-row {
    display: flex; justify-content: space-between;
    padding: 5px 10px; font-size: 11.5px;
    border-bottom: 1px solid var(--sp-border);
    gap: 8px;
}
.sp-tl-date-row:last-child { border-bottom: none; }
.sp-tl-date-row span  { color: var(--sp-t2); font-weight: 500; flex: 1; }
.sp-tl-date-row strong { color: var(--sp-t1); white-space: nowrap; }

.sp-tl-link-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-tl-link-btn {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600;
    color: var(--sp-blue);
    background: var(--sp-blue-lt);
    border: 1px solid #bfdbfe;
    padding: 3px 9px; border-radius: 20px;
    text-decoration: none; transition: all .15s;
}
.sp-tl-link-btn:hover { background: var(--sp-blue); color: #fff; border-color: var(--sp-blue); }
.sp-tl-link-btn--pdf  { color: var(--sp-teal); background: var(--sp-teal-lt); border-color: #b6e8d5; }
.sp-tl-link-btn--pdf:hover { background: var(--sp-teal); color: #fff; border-color: var(--sp-teal); }

/* ── EMPTY STATE ── */
.sp-empty-state { text-align: center; padding: 28px 16px; color: var(--sp-t3); font-size: 13px; }
.sp-empty-icon  { font-size: 28px; margin-bottom: 8px; opacity: .5; }

/* ── FORUM CARD ── */
.sp-forum-card { border-radius: var(--sp-radius); overflow: hidden; border: 1px solid #b5d4f4; box-shadow: var(--sp-shadow); }
.sp-forum-inner {
    background: linear-gradient(135deg, #deeefb 0%, #e6f8f2 100%);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.sp-forum-icon-wrap {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(26,111,212,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.sp-forum-text { flex: 1; min-width: 0; }
.sp-forum-title { font-size: 14px; font-weight: 700; color: var(--sp-blue-dk); margin-bottom: 3px; }
.sp-forum-sub   { font-size: 12px; color: #3a6cb0; line-height: 1.45; }
.sp-forum-btn {
    padding: 9px 18px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    background: var(--sp-blue); color: #fff;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background .15s;
}
.sp-forum-btn:hover { background: var(--sp-blue-dk); color: #fff; }

/* ── TABS ── */
.sp-tab-bar-wrap {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--sp-border);
    background: var(--sp-surface2);
    padding-right: 14px;
}
.sp-tab-bar { display: flex; }
.sp-tab-btn {
    padding: 10px 14px; font-size: 12px; font-weight: 700;
    color: var(--sp-t3); cursor: pointer;
    border: none; background: none;
    border-bottom: 2.5px solid transparent;
    transition: all .15s; font-family: inherit; white-space: nowrap;
}
.sp-tab-btn:hover:not(.sp-tab-btn--on) { color: var(--sp-t1); }
.sp-tab-btn--on { color: var(--sp-blue); border-bottom-color: var(--sp-blue); }

.sp-tab-pane     { display: none; }
.sp-tab-pane--on { display: block; }

/* ── Art List (Related / Latest / Trending) ── */
.sp-art-list { display: flex; flex-direction: column; }
.sp-art-list-item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--sp-border);
    text-decoration: none; color: inherit;
    transition: background .12s;
    animation: spArtFadeIn .3s ease both;
}
.sp-art-list-item:nth-child(1){animation-delay:.04s}
.sp-art-list-item:nth-child(2){animation-delay:.08s}
.sp-art-list-item:nth-child(3){animation-delay:.12s}
.sp-art-list-item:nth-child(4){animation-delay:.16s}
.sp-art-list-item:nth-child(5){animation-delay:.20s}
@keyframes spArtFadeIn { from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none} }
.sp-art-list-item:last-child { border-bottom: none; }
.sp-art-list-item:hover { background: var(--sp-bg); }
.sp-art-list-item:hover .sp-art-arrow { background: var(--sp-blue-lt); border-color: var(--sp-blue); color: var(--sp-blue); transform: translateX(2px); }

.sp-art-arrow {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--sp-surface2); border: 1px solid var(--sp-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
    transition: all .15s; color: var(--sp-t3); font-size: 13px;
}

.sp-art-list-body { flex: 1; min-width: 0; }
.sp-art-list-title { font-size: 12.5px; font-weight: 600; color: var(--sp-t1); line-height: 1.45; margin-bottom: 4px; }
.sp-art-list-item:hover .sp-art-list-title { color: var(--sp-blue); }

.sp-art-list-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sp-art-ts { font-size: 10.5px; color: var(--sp-t3); margin-left: auto; white-space: nowrap; }

.sp-list-badge {
    font-size: 10px; font-weight: 600;
    padding: 1px 6px; border-radius: 8px;
    background: var(--sp-surface2); color: var(--sp-t2);
    border: 1px solid var(--sp-border);
}
.sp-list-badge--blue { background: var(--sp-blue-lt); color: var(--sp-blue-dk); border-color: #bfdbfe; }
.sp-list-badge--teal { background: var(--sp-teal-lt); color: var(--sp-teal-dk); border-color: #b6e8d5; }

/* ── WIDGET CARDS ── */
.sp-widget-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}
.sp-widget-hd {
    padding: 11px 15px 9px;
    font-size: 11px; font-weight: 700;
    color: var(--sp-t2); text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid var(--sp-border);
    background: var(--sp-surface2);
}
.sp-widget-body { padding: 10px 15px; }
.sp-widget-body--list { padding: 6px 15px; }

/* Key dates */
.sp-kd-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--sp-border); font-size: 12px; }
.sp-kd-item:last-child { border-bottom: none; }
.sp-kd-lbl { color: var(--sp-t2); font-weight: 500; }
.sp-kd-val { font-weight: 700; color: var(--sp-t1); }
.sp-kd--teal { color: var(--sp-teal); }
.sp-kd--red  { color: var(--sp-coral); }

/* Apply button */
.sp-widget-footer { padding: 0 15px 13px; }
.sp-apply-btn {
    display: block; width: 100%; text-align: center;
    padding: 9px; background: var(--sp-blue); color: #fff;
    border-radius: var(--sp-radius-sm); font-size: 12px; font-weight: 700;
    text-decoration: none; transition: background .15s;
}
.sp-apply-btn:hover { background: var(--sp-blue-dk); color: #fff; }

/* Share buttons */
.sp-share-row { display: flex; gap: 7px; }
.sp-share-btn {
    flex: 1; text-align: center; padding: 8px 0;
    border-radius: var(--sp-radius-sm); font-size: 11.5px; font-weight: 700;
    cursor: pointer; border: none; font-family: inherit;
    transition: opacity .15s, transform .1s;
}
.sp-share-btn:hover { opacity: .85; transform: translateY(-1px); }
.sp-share-btn--wa   { background: #25D366; color: #fff; }
.sp-share-btn--tg   { background: #2CA5E0; color: #fff; }
.sp-share-btn--copy { background: var(--sp-surface2); border: 1px solid var(--sp-border2); color: var(--sp-t2); }

/* Trending / Also-from widget items */
.sp-w-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--sp-border);
    text-decoration: none; color: inherit; transition: color .12s;
}
.sp-w-item:last-child { border-bottom: none; }
.sp-w-item:hover .sp-w-title { color: var(--sp-blue); }
.sp-w-num {
    font-size: 16px; font-weight: 800;
    color: var(--sp-border2); line-height: 1;
    width: 24px; flex-shrink: 0;
}
.sp-w-title { font-size: 12px; font-weight: 500; color: var(--sp-t1); line-height: 1.4; }
.sp-w-ts    { font-size: 10px; color: var(--sp-t3); margin-top: 2px; }

/* ── PlayBook inline wrapper ── */
.sp-card .xila-single-playbook-inline {
    border: none;
    border-radius: 0;
}

/* ═══════════════════════════════════════
   404 PAGE
═══════════════════════════════════════ */
/* 404 card — xila-main-feed के अंदर center होगा */
.xila-main-feed .xila-404-card {
    max-width: 880px;
    margin: 0px auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 48px 32px;
    text-align: center;
}

/* Mobile पर sidebars hide */
@media (max-width: 768px) {
    .xila-404-card {
        padding: 32px 16px;
        margin: 16px auto;
    }

    .xila-404-code {
        font-size: 80px;
    }

    .xila-404-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xila-404-search {
        flex-direction: column;
    }
}


.xila-404-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 48px 32px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

/* Visual */
.xila-404-visual {
    position: relative;
    margin-bottom: 8px;
}

.xila-404-code {
    font-size: 120px;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    letter-spacing: -4px;
    position: relative;
    z-index: 0;
}

.xila-404-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.xila-404-svg {
    width: 120px;
    height: 72px;
}

/* Text */
.xila-404-heading {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.xila-404-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Search */
.xila-404-search {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto 20px;
}

.xila-404-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}

.xila-404-search-input:focus {
    border-color: #3b82f6;
    background: #fff;
}

.xila-404-search-btn {
    padding: 10px 18px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.xila-404-search-btn:hover {
    background: #2563eb;
}

/* Home button */
.xila-404-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 32px;
    transition: background 0.2s;
}

.xila-404-home-btn:hover {
    background: #0f172a;
    color: #fff;
}

/* Popular sections */
.xila-404-popular {
    margin-bottom: 32px;
    text-align: left;
}

.xila-404-popular-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.xila-404-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.xila-404-popular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.xila-404-popular-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.xila-404-popular-icon {
    font-size: 24px;
}

.xila-404-popular-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* Recent posts */
.xila-404-recent {
    text-align: left;
}

.xila-404-recent-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.xila-404-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xila-404-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.xila-404-recent-dot {
    color: #3b82f6;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.xila-404-recent-item a {
    color: #334155;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
}

.xila-404-recent-item a:hover {
    color: #3b82f6;
}

/* Mobile */
@media (max-width: 768px) {
    .xila-404-wrap {
        flex-direction: column;
        padding: 16px;
    }

    .xila-404-wrap .xila-sidebar-left,
    .xila-404-wrap .xila-sidebar-right {
        display: none;
    }

    .xila-404-card {
        padding: 32px 20px;
    }

    .xila-404-code {
        font-size: 80px;
    }

    .xila-404-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xila-404-search {
        flex-direction: column;
    }
}




/* ══════════════════════════════════════════════════════════════════
   FILE: /wp-content/themes/xila/assets/css/sidebar-right.css
   या style.css के अंत में ADD करें (नीचे paste करें)

   ACTION: नीचे का पूरा CSS block अपनी CSS file के END में ADD करें।
   पुराने notification dropdown styles को REPLACE नहीं करना,
   बस नीचे append करें — ये नए .xnd- prefix वाले classes हैं।
══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   XND — Notification Dropdown System
   Tab-based: Topic / Update / Guide / Community
═══════════════════════════════════════ */

/* ── Wrapper & Bell ── */
.xila-notif-wrapper { position: relative; }

.xila-notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.xila-notif-bell:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
}
.xila-notif-bell svg { display: block; }

.xila-notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown Panel ── */
.xnd-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    z-index: 9999;
    overflow: hidden;
    animation: xndSlideIn .18s cubic-bezier(.16,.68,.44,1);
    transform-origin: top right;
}

@keyframes xndSlideIn {
    from { opacity: 0; transform: scale(.96) translateY(-6px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.xila-notif-wrapper:hover .xnd-dropdown,
.xnd-dropdown.is-open { display: flex; flex-direction: column; }

/* ── Dropdown Header ── */
.xnd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #fafbfc, #fff);
    flex-shrink: 0;
}
.xnd-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
}
.xnd-header-icon { font-size: 15px; }
.xnd-header-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.2px;
}
.xnd-header-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}
.xnd-view-all {
    font-size: 11.5px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    padding: 4px 8px;
    background: #eff6ff;
    border-radius: 6px;
    transition: background .12s;
}
.xnd-view-all:hover { background: #dbeafe; color: #2563eb; }

/* ── Body ── */
.xnd-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ── Tab Bar ── */
.xnd-tab-bar {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.xnd-tab-bar::-webkit-scrollbar { display: none; }

.xnd-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 7px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    position: relative;
    white-space: nowrap;
    min-width: 0;
}
.xnd-tab-btn:hover { background: #f1f5f9; }
.xnd-tab-btn.is-active {
    border-bottom-color: var(--tab-color);
    background: #fff;
}
.xnd-tab-icon { font-size: 14px; line-height: 1; }
.xnd-tab-text {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.xnd-tab-btn.is-active .xnd-tab-text { color: var(--tab-color); }
.xnd-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Panels ── */
.xnd-panels {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.xnd-panels::-webkit-scrollbar { width: 3px; }
.xnd-panels::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

.xnd-panel { display: none; }
.xnd-panel.is-active { display: block; }

/* ── Notification Item ── */
.xnd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    cursor: pointer;
    position: relative;
}
.xnd-item:last-child { border-bottom: none; }
.xnd-item:hover { background: #f8fafc; }

.xnd-item.is-new {
    background: #fafeff;
}
.xnd-item.is-new:hover { background: #f0f9ff; }
.xnd-item.is-seen { opacity: .72; }

.xnd-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    opacity: .5;
}
.xnd-item.is-new .xnd-item-dot { opacity: 1; }

.xnd-item-body { flex: 1; min-width: 0; }
.xnd-item-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.xnd-item.is-new .xnd-item-title { font-weight: 700; color: #1e293b; }

.xnd-item-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.xnd-item-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
}
.xnd-item-time {
    font-size: 10.5px;
    color: #94a3b8;
}
.xnd-unread-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 2px #dbeafe;
}

/* ── Panel Empty ── */
.xnd-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    color: #94a3b8;
    font-size: 12px;
    gap: 6px;
}
.xnd-panel-empty-icon { font-size: 24px; opacity: .4; }
.xnd-panel-empty p { margin: 0; }

/* ── See more ── */
.xnd-see-more-count {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* ── Loading skeleton ── */
.xnd-loading { padding: 4px 0; }
.xnd-skel-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
    margin-bottom: 6px;
}
.xnd-skel-tab {
    flex: 1;
    height: 40px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: xndSkelShimmer 1.4s infinite;
    margin: 4px 3px;
    border-radius: 6px;
}
.xnd-skel-item {
    height: 52px;
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: xndSkelShimmer 1.4s infinite;
    margin: 0 14px 1px;
    border-radius: 6px;
}
.xnd-skel-item--short { height: 44px; }
@keyframes xndSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Footer ── */
.xnd-footer {
    border-top: 1px solid #f1f5f9;
    padding: 9px 16px;
    background: #fafbfc;
    flex-shrink: 0;
}
.xnd-footer-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    padding: 5px 0;
    border-radius: 6px;
    transition: background .12s;
}
.xnd-footer-link:hover { background: #eff6ff; color: #2563eb; }

/* ── Empty global state ── */
.xnd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    color: #94a3b8;
    font-size: 13px;
    gap: 8px;
    text-align: center;
}
.xnd-empty-icon { font-size: 28px; opacity: .4; }
.xnd-empty p { margin: 0; }

/* ═══════════════════════════════════════
   NOTIFICATIONS FULL PAGE — Tab System
   (?view=notifications)
   Updated styles for 4-tab layout
═══════════════════════════════════════ */

/* Notifications page wrapper */
.xila-notif-page { }

/* Mark all button */
.xila-vp-mark-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 14px;
    font-family: inherit;
}
.xila-vp-mark-all-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* 4-Tab Navigation */
.xila-notif-page-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.xila-notif-page-tabs::-webkit-scrollbar { display: none; }

.xila-notif-page-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    font-family: inherit;
}
.xila-notif-page-tab-btn:hover { color: #1e293b; background: #f8fafc; }
.xila-notif-page-tab-btn.is-active { color: #3b82f6; border-bottom-color: #3b82f6; }

.xila-notif-page-tab-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.6;
}

.xila-notif-page-panel { display: none; }
.xila-notif-page-panel.is-active { display: block; }

/* Notification items on full page */
.xila-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.xila-notification-item:last-child { border-bottom: none; }
.xila-notification-item:hover { background: #f8fafc; padding-left: 4px; }

.xila-notification-item.is-new {
    border-left: 3px solid #3b82f6;
    padding-left: 10px;
    background: #f0f9ff;
}
.xila-notification-item.is-new:hover { background: #e0f2fe; }
.xila-notification-item.is-seen { opacity: .72; }

.xila-notif-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

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

.xila-notif-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
}
.xila-notif-title:hover { color: #2563eb; }
.xila-notification-item.is-seen .xila-notif-title { font-weight: 500; color: #374151; }

.xila-notif-meta { display: flex; align-items: center; gap: 6px; }
.xila-notif-time { font-size: 11.5px; color: #94a3b8; }

.xila-notif-unread-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    margin-left: auto;
    box-shadow: 0 0 0 2.5px #dbeafe;
}

/* Empty panel state */
.xila-notif-page-empty {
    padding: 36px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.xila-notif-page-empty .empty-icon { font-size: 28px; opacity: .45; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .xnd-dropdown {
        position: fixed;
        top: 56px;
        right: 8px;
        left: 8px;
        width: auto;
        border-radius: 12px;
    }

    .xila-notif-page-tab-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}


/* ══════════════════════════════════════════════════════════════════
   FILE: /wp-content/themes/xila/assets/css/sidebar-right.css
   (या जहाँ भी आपकी main CSS है)

   ACTION: File के END में यह CSS ADD करें।
   (File 3 के बाद — यह Notification FULL PAGE के styles हैं)
══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   XNP — Notifications Full Page
   (?view=notifications)
═══════════════════════════════════════ */

/* Page Header */
.xnp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.xnp-page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.xnp-page-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid #fcd34d;
}
.xnp-page-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2px;
    letter-spacing: -.3px;
}
.xnp-page-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.xnp-unread-pill {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Type Legend */
.xnp-type-legend {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.xnp-legend-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 11.5px;
}
.xnp-legend-icon { font-size: 14px; }
.xnp-legend-label { font-weight: 700; font-size: 11px; }

/* Notification full page tab improvements */
.xila-notif-page-tabs {
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
    padding: 4px 4px 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    gap: 2px;
}
.xila-notif-page-tab-btn {
    border-radius: 8px 8px 0 0;
    padding: 9px 14px;
}
.xila-notif-page-tab-btn.is-active {
    background: #fff;
    box-shadow: 0 -1px 3px rgba(0,0,0,.04);
}

/* Panel wrapper */
#xila-notif-page-wrap .xila-notif-page {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    padding: 2px 0 4px;
}

/* Make notification items inside page look better */
#xila-notif-page-wrap .xila-notification-item {
    padding: 13px 18px;
    border-left: 3px solid transparent;
    margin: 0;
    border-radius: 0;
    transition: background .12s, padding-left .12s;
}
#xila-notif-page-wrap .xila-notification-item:hover {
    background: #f8fafc;
    padding-left: 21px;
}
#xila-notif-page-wrap .xila-notification-item.is-new {
    border-left-color: #3b82f6;
    background: #f0f9ff;
    padding-left: 15px;
}
#xila-notif-page-wrap .xila-notification-item.is-new:hover {
    background: #e0f2fe;
    padding-left: 18px;
}

/* Notif badge in full page — color by type */
#xila-notif-page-wrap .xila-notif-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* Page panel empty state */
#xila-notif-page-wrap .xila-notif-page-empty {
    margin: 8px 12px;
    padding: 28px 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .xnp-type-legend { gap: 5px; }
    .xnp-legend-chip { padding: 4px 8px; font-size: 11px; }
    .xnp-page-icon   { width: 38px; height: 38px; font-size: 18px; }
    .xnp-page-title  { font-size: 16px; }

    .xila-notif-page-tabs { padding: 3px 3px 0; overflow-x: auto; }
    .xila-notif-page-tab-btn { padding: 8px 10px; font-size: 12px; }

    #xila-notif-page-wrap .xila-notification-item { padding: 11px 14px; }
    #xila-notif-page-wrap .xila-notification-item.is-new { padding-left: 11px; }
}



/* ══════════════════════════════════════════════════════════════════
   FILE: /wp-content/themes/xila/assets/css/sidebar-right.css
   या style.css के अंत में ADD करें (नीचे paste करें)

   ACTION: नीचे का पूरा CSS block अपनी CSS file के END में ADD करें।
   पुराने notification dropdown styles को REPLACE नहीं करना,
   बस नीचे append करें — ये नए .xnd- prefix वाले classes हैं।
══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   XND — Notification Dropdown System
   Tab-based: Topic / Update / Guide / Community
═══════════════════════════════════════ */

/* ── Wrapper & Bell ── */
.xila-notif-wrapper { position: relative; }

.xila-notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.xila-notif-bell:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
}
.xila-notif-bell svg { display: block; }

.xila-notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
    line-height: 1;
    pointer-events: none;
}

/* ── Dropdown Panel ── */
.xnd-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    z-index: 9999;
    overflow: hidden;
    animation: xndSlideIn .18s cubic-bezier(.16,.68,.44,1);
    transform-origin: top right;
}

/* Invisible bridge — cursor gap में से गुज़रते वक्त hover maintain रहे */
.xnd-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

@keyframes xndSlideIn {
    from { opacity: 0; transform: scale(.96) translateY(-6px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.xila-notif-wrapper:hover .xnd-dropdown,
.xnd-dropdown.is-open { display: flex; flex-direction: column; }

/* ── Dropdown Header ── */
.xnd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #fafbfc, #fff);
    flex-shrink: 0;
}
.xnd-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
}
.xnd-header-icon { font-size: 15px; }
.xnd-header-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.2px;
}
.xnd-header-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}
.xnd-view-all {
    font-size: 11.5px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    padding: 4px 8px;
    background: #eff6ff;
    border-radius: 6px;
    transition: background .12s;
}
.xnd-view-all:hover { background: #dbeafe; color: #2563eb; }

/* ── Body ── */
.xnd-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* ── Tab Bar ── */
.xnd-tab-bar {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.xnd-tab-bar::-webkit-scrollbar { display: none; }

.xnd-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 7px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    position: relative;
    white-space: nowrap;
    min-width: 0;
}
.xnd-tab-btn:hover { background: #f1f5f9; }
.xnd-tab-btn.is-active {
    border-bottom-color: var(--tab-color);
    background: #fff;
}
.xnd-tab-icon { font-size: 14px; line-height: 1; }
.xnd-tab-text {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.xnd-tab-btn.is-active .xnd-tab-text { color: var(--tab-color); }
.xnd-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Panels ── */
.xnd-panels {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.xnd-panels::-webkit-scrollbar { width: 3px; }
.xnd-panels::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

.xnd-panel { display: none; }
.xnd-panel.is-active { display: block; }

/* ── Notification Item ── */
.xnd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    cursor: pointer;
    position: relative;
}
.xnd-item:last-child { border-bottom: none; }
.xnd-item:hover { background: #f8fafc; }

.xnd-item.is-new {
    background: #fafeff;
}
.xnd-item.is-new:hover { background: #f0f9ff; }
.xnd-item.is-seen { opacity: .72; }

.xnd-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    opacity: .5;
}
.xnd-item.is-new .xnd-item-dot { opacity: 1; }

.xnd-item-body { flex: 1; min-width: 0; }
.xnd-item-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.xnd-item.is-new .xnd-item-title { font-weight: 700; color: #1e293b; }

.xnd-item-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.xnd-item-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
}
.xnd-item-time {
    font-size: 10.5px;
    color: #94a3b8;
}
.xnd-unread-dot {
    width: 7px;
    height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 2px #dbeafe;
}

/* ── Panel Empty ── */
.xnd-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    color: #94a3b8;
    font-size: 12px;
    gap: 6px;
}
.xnd-panel-empty-icon { font-size: 24px; opacity: .4; }
.xnd-panel-empty p { margin: 0; }

/* ── See more ── */
.xnd-see-more-count {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* ── Loading skeleton ── */
.xnd-loading { padding: 4px 0; }
.xnd-skel-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
    margin-bottom: 6px;
}
.xnd-skel-tab {
    flex: 1;
    height: 40px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: xndSkelShimmer 1.4s infinite;
    margin: 4px 3px;
    border-radius: 6px;
}
.xnd-skel-item {
    height: 52px;
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: xndSkelShimmer 1.4s infinite;
    margin: 0 14px 1px;
    border-radius: 6px;
}
.xnd-skel-item--short { height: 44px; }
@keyframes xndSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Footer ── */
.xnd-footer {
    border-top: 1px solid #f1f5f9;
    padding: 9px 16px;
    background: #fafbfc;
    flex-shrink: 0;
}
.xnd-footer-link {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    padding: 5px 0;
    border-radius: 6px;
    transition: background .12s;
}
.xnd-footer-link:hover { background: #eff6ff; color: #2563eb; }

/* ── Empty global state ── */
.xnd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    color: #94a3b8;
    font-size: 13px;
    gap: 8px;
    text-align: center;
}
.xnd-empty-icon { font-size: 28px; opacity: .4; }
.xnd-empty p { margin: 0; }

/* ═══════════════════════════════════════
   NOTIFICATIONS FULL PAGE — Tab System
   (?view=notifications)
   Updated styles for 4-tab layout
═══════════════════════════════════════ */

/* Notifications page wrapper */
.xila-notif-page { }

/* Mark all button */
.xila-vp-mark-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    cursor: pointer;
    transition: all .15s;
    margin-bottom: 14px;
    font-family: inherit;
}
.xila-vp-mark-all-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* 4-Tab Navigation */
.xila-notif-page-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.xila-notif-page-tabs::-webkit-scrollbar { display: none; }

.xila-notif-page-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    font-family: inherit;
}
.xila-notif-page-tab-btn:hover { color: #1e293b; background: #f8fafc; }
.xila-notif-page-tab-btn.is-active { color: #3b82f6; border-bottom-color: #3b82f6; }

.xila-notif-page-tab-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.6;
}

.xila-notif-page-panel { display: none; }
.xila-notif-page-panel.is-active { display: block; }

/* Notification items on full page */
.xila-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.xila-notification-item:last-child { border-bottom: none; }
.xila-notification-item:hover { background: #f8fafc; padding-left: 4px; }

.xila-notification-item.is-new {
    border-left: 3px solid #3b82f6;
    padding-left: 10px;
    background: #f0f9ff;
}
.xila-notification-item.is-new:hover { background: #e0f2fe; }
.xila-notification-item.is-seen { opacity: .72; }

.xila-notif-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

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

.xila-notif-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
}
.xila-notif-title:hover { color: #2563eb; }
.xila-notification-item.is-seen .xila-notif-title { font-weight: 500; color: #374151; }

.xila-notif-meta { display: flex; align-items: center; gap: 6px; }
.xila-notif-time { font-size: 11.5px; color: #94a3b8; }

.xila-notif-unread-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    margin-left: auto;
    box-shadow: 0 0 0 2.5px #dbeafe;
}

/* Empty panel state */
.xila-notif-page-empty {
    padding: 36px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.xila-notif-page-empty .empty-icon { font-size: 28px; opacity: .45; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .xnd-dropdown {
        position: fixed;
        top: 56px;
        right: 8px;
        left: 8px;
        width: auto;
        border-radius: 12px;
    }

    .xila-notif-page-tab-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}