/* ==========================================
   EDIVIC SaaS Premium Editor Dashboard Styles
   ========================================== */

:root {
    --primary-dark: #0f172a;               /* Primary slate dark */
    --secondary-dark: #1e293b;             /* Slate card background */
    --gold: #f59e0b;                       /* Premium focus gold */
    --gold-hover: #d97706;                 /* Gold shade hover */
    --bg-light: #f8fafc;                   /* Light slate gray backdrop */
    --text-primary: #1e293b;               /* Deep slate text */
    --text-muted: #64748b;                 /* Muted slate text */
    --border-light: rgba(241, 245, 249, 0.9);
    --border-dark: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
}

/* Base resets & theme styles */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.15s ease;
}

body{
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Premium Dark Mode state triggered via body .dark-mode */
body.dark-theme {
    background: #090d16;
    color: #f1f5f9;
    --bg-light: #090d16;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
}

body.dark-theme .dashboard-card,
body.dark-theme .stat-card,
body.dark-theme .project-box,
body.dark-theme .activity-box,
body.dark-theme .rule-box,
body.dark-theme .client-card,
body.dark-theme .profile-box,
body.dark-theme .profile-dropdown-card,
body.dark-theme .notif-dropdown-quick {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .saas-header {
    background: rgba(17, 24, 39, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .topbar h1,
body.dark-theme .section-title h2,
body.dark-theme .project-box h3,
body.dark-theme .stat-card h2,
body.dark-theme .rule-box h3,
body.dark-theme .activity-box h3 {
    color: #ffffff !important;
}

body.dark-theme .circle::before {
    background: #111827 !important;
}

body.dark-theme .bookmark-tabs button {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-theme .alert-box {
    background: rgba(245, 158, 11, 0.04) !important;
    border-color: var(--gold) !important;
}

/* Sticky top navigation header */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.saas-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    gap: 20px;
}

/* Left Brand info */
.nav-logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

body.dark-theme .logo-brand {
    color: #ffffff;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
}

/* Horizontal center navigation menu */
.saas-nav-menu {
    display: flex;
    align-items: center;
}

.nav-links-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-item i {
    font-size: 0.95rem;
}

.nav-link-item:hover {
    color: var(--gold);
    background: rgba(245, 158, 11, 0.06);
}

.nav-link-item.active {
    color: #fff;
    background: var(--primary-dark);
}

body.dark-theme .nav-link-item.active {
    background: #fff;
    color: var(--primary-dark);
}

/* Right Nav Actions */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Modern pill search bar */
.nav-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-bar input {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(0,0,0,0);
    padding: 10px 16px 10px 42px;
    border-radius: 50px;
    font-size: 0.85rem;
    outline: none;
    width: 240px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

body.dark-theme .nav-search-bar input {
    background: rgba(255, 255, 255, 0.05);
}

.nav-search-bar input:focus {
    width: 290px;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

body.dark-theme .nav-search-bar input:focus {
    background: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Action button items */
.nav-action-btn {
    border: none;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

body.dark-theme .nav-action-btn {
    background: rgba(255, 255, 255, 0.05);
}

.nav-action-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Pulse indicator badge */
.pulse-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid #fff;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Notification Dropdown Quick box */
.notification-dropdown-wrapper {
    position: relative;
}

.notif-dropdown-quick {
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 15px;
    z-index: 1050;
    animation: slideDownFade 0.25s ease;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 700;
    font-size: 0.9rem;
}

.notif-dropdown-header a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
}

.notif-dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-item-quick {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-text {
    flex-grow: 1;
}

.notif-p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Profile Trigger Dropdown */
.header-profile-dropdown-container {
    position: relative;
}

.header-profile-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.header-profile-trigger:hover {
    background: rgba(15, 23, 42, 0.04);
}

body.dark-theme .header-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.chevron-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.header-profile-trigger:focus .chevron-icon {
    transform: rotate(180deg);
}

/* User dropdown card list */
.profile-dropdown-card {
    position: absolute;
    right: 0;
    top: 55px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
    width: 230px;
    padding: 15px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: slideDownFade 0.25s ease;
}

.dropdown-user-info {
    padding-bottom: 12px;
}

.dropdown-user-info h4 {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.dropdown-user-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.dropdown-divider {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin: 8px 0;
}

body.dark-theme .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dropdown-links {
    list-style: none;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-links a:hover {
    background: rgba(245, 158, 11, 0.08);
    color: var(--gold);
    padding-left: 16px;
}

.dropdown-logout-btn {
    border: none;
    background: #fee2e2;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 11px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.dropdown-logout-btn:hover {
    background: #fecaca;
    color: #dc2626;
}

/* Mobile Toggle Hamburger button */
.mobile-toggle-btn {
    display: none;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

/* HELPER TRANSITIONS */
.hidden {
    display: none !important;
}

@keyframes slideDownFade {
    0% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}


/* ==========================================
   MAIN DASHBOARD CONTENT SCROLLING AREA
   ========================================== */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 40px;
    flex-grow: 1;
}

/* TOPBAR HEADER BANNER */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e293b 100%);
    padding: 35px 40px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.topbar::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    right: -100px;
    bottom: -100px;
    pointer-events: none;
}

.topbar h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    margin-bottom: 6px;
}

.topbar p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.profile-box {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none !important;
}

.profile-box img{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
}


/* ALERT BOX ADVISORY */
.alert-box {
    background: #fffdf5;
    border-left: 5px solid var(--gold);
    padding: 24px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 35px;
    border: 1px solid rgba(245, 158, 11, 0.08);
}

.alert-icon {
    width: 52px;
    height: 52px;
    background: var(--gold);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}


/* STATS GRID & CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.25);
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.stat-card:hover::before {
    background: var(--gold);
}

.stat-card h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}


/* DASHBOARD CARDS & BOXES */
.dashboard-card {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    padding-bottom: 12px;
}

body.dark-theme .section-title {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.section-title h2 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 750;
    margin: 0;
    letter-spacing: -0.3px;
}

.view-all-btn {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

body.dark-theme .view-all-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.view-all-btn:hover {
    background: var(--gold);
    color: #0f172a;
}


/* PROJECTS CONCIERGE BOXES */
.project-box {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: all 0.2s;
}

.project-box:hover {
    transform: scale(1.006);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 158, 11, 0.2);
}

.project-box h3 {
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.project-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-box button {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

body.dark-theme .project-box button {
    background: var(--gold);
    color: #111827;
}

.project-box button:hover {
    background: var(--gold);
    color: var(--primary-dark);
}

.progress,
.review,
.completed{
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.progress{
    background: #e0f2fe;
    color: #0369a1;
}

.review{
    background: #fef3c7;
    color: #b45309;
}

.completed{
    background: #dcfce7;
    color: #15803d;
}


/* ANALYTICS */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.circle-chart{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.circle{
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0% 96%, #e2e8f0 96% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.circle::before{
    content: "";
    width: 106px;
    height: 106px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.circle h2,
.circle p{
    position: relative;
    z-index: 2;
    text-align: center;
}

.circle h2{
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
}


/* ACTIVITIES & TICKETS */
.activity-box {
    background: #f8fafc;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 12px;
    border-left: 4px solid rgba(15, 23, 42, 0.08);
}

body.dark-theme .activity-box {
    border-left-color: rgba(255, 255, 255, 0.15);
}

.activity-box h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 5px;
}

.activity-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}


/* THEMED BOOKMARKS ROW */
.bookmark-tabs button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookmark-tabs button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


/* ==========================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================== */

@media (max-width: 1120px) {
    .saas-nav-menu {
        display: none; /* Hide top nav links behind hamburger */
    }

    .saas-nav-menu.mobile-open {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 999;
    }

    body.dark-theme .saas-nav-menu.mobile-open {
        background: #111827;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-links-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-link-item {
        padding: 12px 16px;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .nav-search-bar {
        display: none; /* Hide search bar of right actions on smaller tabs */
    }
}

@media(max-width: 900px){
    .analytics-grid{
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px;
    }
}

@media(max-width: 768px){
    .topbar{
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
    }

    .project-box{
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .saas-nav-container {
        padding: 10px 20px;
    }
}


/* EDIVIC final dashboard logo + profile initial fallback */
.dashboard-logo-img, .saas-header .logo-img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
.avatar-initial, .header-avatar.avatar-initial {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #f59e0b);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
}
.client-profile-box .avatar-initial, .profile-box .avatar-initial {
  width: 64px;
  height: 64px;
  min-width: 64px;
  font-size: 1.35rem;
}

/* Editor subscription access card */
.editor-subscription-panel{
  margin: 22px 0 24px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  box-shadow: 0 20px 50px rgba(15,23,42,.16);
  border:1px solid rgba(255,255,255,.14);
}
.editor-subscription-panel.subscription-active{
  background: linear-gradient(135deg,#064e3b,#0f766e);
}
.editor-subscription-panel.subscription-needed{
  background: linear-gradient(135deg,#111827,#7c2d12);
}
.editor-subscription-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fef3c7;font-weight:800;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;
}
.editor-subscription-copy h2{margin:12px 0 6px;font-size:1.55rem;font-weight:900;color:#fff;}
.editor-subscription-copy p{margin:0;color:rgba(255,255,255,.82);line-height:1.55;max-width:780px;}
.editor-subscription-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.editor-subscription-meta span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.12);font-weight:800;color:#fff;}
.editor-subscription-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.editor-subscription-btn,.editor-subscription-secondary{
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  padding:12px 16px;border-radius:14px;text-decoration:none;font-weight:900;
}
.editor-subscription-btn{background:#fbbf24;color:#111827;box-shadow:0 10px 24px rgba(251,191,36,.24);}
.editor-subscription-secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.16);}
@media(max-width:780px){.editor-subscription-panel{flex-direction:column;align-items:flex-start}.editor-subscription-actions{justify-content:flex-start}.editor-subscription-btn,.editor-subscription-secondary{width:100%;justify-content:center}}

/* EDIVIC strict subscription dashboard workflow */
.editor-subscription-panel.subscription-active{
    border:1px solid rgba(34,197,94,.22);
    background:linear-gradient(135deg, rgba(240,253,244,.98), rgba(255,255,255,.98));
    box-shadow:0 18px 45px rgba(22,163,74,.10);
}
.editor-subscription-panel.subscription-needed{
    border:1px solid rgba(251,191,36,.28);
    background:linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
}
.editor-subscription-panel.subscription-active #editor-subscription-title{color:#166534;}
.editor-subscription-panel.subscription-needed #editor-subscription-title{color:#92400e;}
.editor-subscription-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;}
.editor-subscription-meta > span{
    display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
    background:#f8fafc;border:1px solid rgba(148,163,184,.25);font-weight:800;color:#334155;font-size:.88rem;
}
.subscription-history-wrap{width:100%;margin-top:18px;background:#fff;border:1px solid rgba(148,163,184,.22);border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.06);}
.subscription-history-wrap h3{margin:0 0 12px;color:#0f172a;font-size:1rem;display:flex;align-items:center;gap:8px;}
.subscription-history-scroll{overflow-x:auto;}
.subscription-history-table{width:100%;border-collapse:collapse;min-width:620px;}
.subscription-history-table th,.subscription-history-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e2e8f0;font-size:.9rem;}
.subscription-history-table th{text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-size:.75rem;}
.subscription-history-table code{background:#f1f5f9;border-radius:8px;padding:4px 7px;font-size:.8rem;color:#334155;}
.sub-status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:900;font-size:.78rem;text-transform:uppercase;}
.subscription-history-empty{width:100%;margin-top:14px;padding:14px;border-radius:14px;background:#f8fafc;border:1px dashed #cbd5e1;color:#64748b;font-weight:700;}
@media(max-width:700px){.editor-subscription-actions{width:100%;}.editor-subscription-actions a{width:100%;justify-content:center;}.subscription-history-wrap{padding:12px;}}


/* =====================================================
   EDIVIC EDITOR DASHBOARD BROWSE BRIEFS MINI ARROW
===================================================== */
.editor-browse-briefs-attention {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.editor-mini-browse-arrow {
    width: 23px;
    height: 23px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FEBD69;
    color: #232F3E;
    font-size: 11px;
    box-shadow: 0 8px 18px rgba(254,189,105,0.32);
    animation: edivicBrowseBriefsMiniArrow 1.1s ease-in-out infinite;
    flex: 0 0 auto;
}

.editor-browse-briefs-target {
    position: relative;
}

.footer-mini-arrow {
    display:inline-block;
    margin-left:5px;
    color:#FEBD69;
    font-weight:900;
    animation: edivicBrowseBriefsMiniArrowText 1.1s ease-in-out infinite;
}

@keyframes edivicBrowseBriefsMiniArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes edivicBrowseBriefsMiniArrowText {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@media(max-width: 768px) {
    .editor-browse-briefs-attention {
        width: 100%;
        justify-content: center;
    }
}


/* EDIVIC BROWSE BRIEFS ARROW RED DOWN-TO-UP UPDATE */
.editor-browse-briefs-attention {
    position: relative;
    padding-bottom: 34px;
}

.editor-browse-briefs-target {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.24) !important;
    box-shadow: 0 14px 30px rgba(220,38,38,0.32) !important;
}

.editor-mini-browse-arrow {
    position: absolute !important;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 34px !important;
    height: 34px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff;
    font-size: 15px !important;
    box-shadow: 0 14px 30px rgba(220,38,38,0.4) !important;
    animation: edivicBrowseBriefsArrowDownUpRed 0.95s ease-in-out infinite !important;
}

.footer-mini-arrow {
    color:#dc2626 !important;
    font-size: 1.1rem;
    animation: edivicFooterArrowPulseRed 0.95s ease-in-out infinite !important;
}

@keyframes edivicBrowseBriefsArrowDownUpRed {
    0%, 100% { transform: translateX(-50%) translateY(8px) scale(1); opacity: 0.82; }
    50% { transform: translateX(-50%) translateY(-5px) scale(1.1); opacity: 1; }
}

@keyframes edivicFooterArrowPulseRed {
    0%, 100% { transform: translateY(3px); opacity: 0.82; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@media(max-width: 768px) {
    .editor-browse-briefs-attention {
        padding-bottom: 36px;
    }
}


/* EDIVIC ₹1 subscription ad banner */
.edivic-offer-ad-banner{margin:18px auto 22px;max-width:1120px;border-radius:24px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff7ed,#fff1f2 55%,#eff6ff);border:1px solid #fed7aa;box-shadow:0 20px 50px rgba(249,115,22,.14)}
.edivic-offer-ad-banner .offer-badge{background:#ef4444;color:#fff;border-radius:999px;padding:9px 14px;font-size:13px;font-weight:900;white-space:nowrap;box-shadow:0 10px 20px rgba(239,68,68,.22)}
.edivic-offer-ad-banner .offer-copy{flex:1}
.edivic-offer-ad-banner h2{margin:0 0 6px;color:#1e293b;font-size:28px;font-weight:950}
.edivic-offer-ad-banner h2 span{text-decoration:line-through;text-decoration-thickness:3px;text-decoration-color:#ef4444;color:#94a3b8;font-size:.75em}
.edivic-offer-ad-banner p{margin:0;color:#7c2d12;font-weight:800;line-height:1.55}
.edivic-offer-ad-banner .offer-cta{display:inline-flex;align-items:center;gap:9px;padding:13px 18px;border-radius:16px;background:#232F3E;color:#fff;text-decoration:none;font-weight:950;box-shadow:0 16px 28px rgba(35,47,62,.2);white-space:nowrap}
@media(max-width:760px){.edivic-offer-ad-banner{margin:12px 12px 18px;flex-direction:column;align-items:flex-start;padding:18px}.edivic-offer-ad-banner h2{font-size:23px}.edivic-offer-ad-banner .offer-cta{width:100%;justify-content:center}}
