/* ==========================================================================
   HERITAGE PULSE — EDITORIAL WORKFLOW & CONTENT OPERATIONS DASHBOARD
   Design System: Royal Heritage Theme with Dark & Light Mode Support
   ========================================================================== */:root {
  /* ==========================================================================
     DARK THEME: INSET BLUE / NAVY PALETTE + LOGO YELLOW ACCENTS
     ========================================================================== */
  --bg-main: #0a1128;
  --bg-card: #131f3f;
  --bg-card-hover: #1a2b56;
  --bg-card-subtle: #0f1830;
  --bg-sidebar: #091024;
  --bg-header: #091024;
  --border-color: #1e315e;
  --border-focus: #f59e0b;
  
  /* Brand Heritage & Logo Yellow Accents */
  --saffron: #f59e0b;
  --saffron-dark: #d97706;
  --saffron-glow: transparent;
  --crimson: #dc2626;
  --crimson-light: #ef4444;
  --crimson-glow: transparent;
  --teal: #16a34a;
  --teal-bright: #22c55e;
  --indigo: #3b82f6;
  --indigo-bright: #60a5fa;
  --purple: #8b5cf6;
  --blue: #2563eb;

  /* Typography Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-inverse: #0a1128;

  /* Stage Colors */
  --stage-topic: #64748b;
  --stage-assigned: #3b82f6;
  --stage-writing: #8b5cf6;
  --stage-images: #f97316;
  --stage-submitted: #f59e0b;
  --stage-review: #60a5fa;
  --stage-changes: #ef4444;
  --stage-approved: #14b8a6;
  --stage-final: #3b82f6;
  --stage-ready: #22c55e;
  --stage-published: #16a34a;

  /* Fonts */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
  --font-editorial: Georgia, Cambria, 'Times New Roman', Times, serif;

  /* Shadows & Radii - Clean Flat Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.35);
  --shadow-glow: none;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

/* ==========================================================================
   LIGHT THEME: Clean Canvas & Cards + DARK HEADER ONLY
   ========================================================================== */
body.theme-light {
  /* Clean Light Body Surfaces */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-subtle: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-header: #0f172a; /* Dark Header in Light Mode */
  --border-color: #e2e8f0;
  --border-focus: #f59e0b;
  
  /* Brand Logo Yellow Accents */
  --saffron: #f59e0b;
  --saffron-dark: #d97706;
  --saffron-glow: transparent;
  --crimson: #dc2626;
  --crimson-light: #ef4444;
  --crimson-glow: transparent;
  --teal: #16a34a;
  --teal-bright: #15803d;
  --indigo: #2563eb;
  --indigo-bright: #1d4ed8;
  --purple: #7c3aed;
  --blue: #2563eb;

  /* Typography Hierarchy */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  /* Stage Colors */
  --stage-topic: #64748b;
  --stage-assigned: #2563eb;
  --stage-writing: #7c3aed;
  --stage-images: #ea580c;
  --stage-submitted: #d97706;
  --stage-review: #2563eb;
  --stage-changes: #dc2626;
  --stage-approved: #0f766e;
  --stage-final: #1d4ed8;
  --stage-ready: #16a34a;
  --stage-published: #15803d;

  /* Subtle Clean Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow: none;
}

/* ==========================================================================
   LIGHT THEME: CLEAN GOOGLE LIGHT HEADER STYLING
   ========================================================================== */

body.theme-light .app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

body.theme-light .sidebar-toggle {
  color: #475569 !important;
}

body.theme-light .sidebar-toggle:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .app-header .brand-title {
  color: #0f172a !important;
}

body.theme-light .app-header .brand-tag {
  color: #d97706 !important;
}

body.theme-light .header-search {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-light .header-search input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.theme-light .header-search input:focus {
  background: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

body.theme-light .header-search input::placeholder {
  color: #64748b !important;
}

body.theme-light .header-search .search-icon {
  color: #64748b !important;
}

body.theme-light .theme-toggle-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #b45309 !important;
}

body.theme-light .theme-toggle-btn:hover {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

body.theme-light .icon-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .icon-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .role-pill-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .realtime-status-pill {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .role-badge-indicator {
  background: #f59e0b !important;
  color: #000000 !important;
  font-weight: 700;
}
body.theme-light .role-caret {
  color: #94a3b8 !important;
}

body.theme-light .header-create-btn {
  background: #f59e0b !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 1px solid #d97706 !important;
}
body.theme-light .header-create-btn:hover {
  background: #fbbf24 !important;
  color: #000000 !important;
}

body.theme-light .realtime-status-pill {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

/* Light Theme Sidebar */
body.theme-light .app-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: none;
}

body.theme-light .sidebar-nav .nav-link {
  color: #475569;
  border-radius: 6px;
  font-weight: 500;
  border-left: none !important;
}

body.theme-light .sidebar-nav .nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-light .sidebar-nav .nav-link.active {
  background: #fef3c7 !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  border-left: 3px solid #f59e0b !important;
}

body.theme-light .sidebar-nav .nav-link.active i {
  color: #d97706 !important;
}

body.theme-light .sidebar-profile-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.theme-light .hero-greeting-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%) !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08) !important;
}

body.theme-light .hero-greeting-title {
  color: #0f172a !important;
}

body.theme-light .hero-greeting-sub {
  color: #64748b !important;
}

body.theme-light .hero-live-clock-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.06) !important;
}

body.theme-light .hero-live-date-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body.theme-light .hero-live-clock {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #b45309 !important;
  box-shadow: none !important;
}

body.theme-light .hero-user-badge {
  color: #64748b !important;
}

body.theme-light .hero-perspective-pill {
  background: #fff7ed !important;
  border-color: #ffedd5 !important;
  color: #c2410c !important;
}

body.theme-light .workflow-engine-pill {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

body.theme-light .bottlenecks-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%) !important;
  border: 1px solid #fecdd3 !important;
  border-left: 4px solid #dc2626 !important;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.06) !important;
}

body.theme-light .bottlenecks-card h3 {
  color: #991b1b !important;
}

body.theme-light .bottlenecks-subtext {
  color: #64748b !important;
}

body.theme-light .bottleneck-item-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .bottleneck-item-card:hover {
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .kpi-card:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.1) !important;
}

body.theme-light .data-table {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}

body.theme-light .data-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .data-table tbody tr:hover {
  background: #f8fafc !important;
}

body.theme-light .card-panel,
body.theme-light .stat-card,
body.theme-light .workflow-card,
body.theme-light .kpi-metric-card,
body.theme-light .review-item-card,
body.theme-light .today-task-card-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .stat-card:hover,
body.theme-light .workflow-card:hover,
body.theme-light .today-task-card-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .stage-col {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .stage-col-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .form-control,
body.theme-light .filter-select,
body.theme-light .search-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .form-control:focus,
body.theme-light .filter-select:focus,
body.theme-light .search-input:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

body.theme-light .filter-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

body.theme-light .modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.theme-light .writer-kickoff-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .writer-kickoff-banner {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .writer-kickoff-banner h3 {
  color: #0f172a !important;
}

body.theme-light .writer-kickoff-banner p {
  color: #64748b !important;
}

body.theme-light .writer-kickoff-task-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .rich-article-editor {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .rich-article-editor h2,
body.theme-light .rich-article-editor h3,
body.theme-light .rich-article-editor h4 {
  color: #0f172a !important;
}

body.theme-light .rich-article-editor p,
body.theme-light .rich-article-editor li {
  color: #334155 !important;
}

body.theme-light .rich-article-editor blockquote {
  background: #fef3c7 !important;
  border-left: 3px solid #f59e0b !important;
  color: #78350f !important;
}

body.theme-light .editor-toolbar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

body.theme-light .toolbar-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.theme-light .toolbar-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .toolbar-btn.active {
  background: #f59e0b !important;
  color: #000000 !important;
  border-color: #d97706 !important;
  font-weight: 700;
}

body.theme-light .btn-outline-light {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.theme-light .btn-outline-light:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.theme-light .btn-secondary {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Primary buttons are LOGO YELLOW */
body.theme-light .btn-primary {
  background: #f59e0b !important;
  border-color: #d97706 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.theme-light .btn-primary:hover {
  background: #fbbf24 !important;
  border-color: #f59e0b !important;
  color: #000000 !important;
}

body.theme-light .btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

body.theme-light .btn-success:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

body.theme-light .btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

body.theme-light .btn-danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

body.theme-light .date-context-badge {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

body.theme-light .role-dropdown,
body.theme-light .notif-dropdown,
body.theme-light .fontsize-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .role-user-item:hover,
body.theme-light .notif-item:hover,
body.theme-light .fontsize-item-btn:hover {
  background: #f8fafc !important;
}

body.theme-light .notif-item.unread {
  background: #fef3c7 !important;
}

/* ==========================================================================
   COMPREHENSIVE LIGHT THEME OVERRIDES (HEADER, WORKSPACE, CARDS, ICONS, PANELS)
   ========================================================================== */
body.theme-light .app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .app-header .logo-text,
body.theme-light .app-header h1,
body.theme-light .app-header h2,
body.theme-light .app-header span {
  color: #0f172a !important;
}

body.theme-light .header-search-input {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .header-search-input::placeholder {
  color: #64748b !important;
}

body.theme-light .header-btn,
body.theme-light .icon-btn-ghost {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .header-btn:hover,
body.theme-light .icon-btn-ghost:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Light Theme Editor Workspace Canvas Background */
body.theme-light .main-content,
body.theme-light .app-main {
  background-color: #f1f5f9 !important;
}

body.theme-light .view-header {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
}

body.theme-light .editorial-workspace {
  background-color: #f1f5f9 !important;
  padding: 16px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .workspace-main-editor,
body.theme-light .workspace-left-meta,
body.theme-light .workspace-right-status {
  background-color: transparent !important;
}

body.theme-light .workspace-left-meta .card-panel,
body.theme-light .workspace-right-status .card-panel,
body.theme-light .workspace-main-editor .card-panel,
body.theme-light .workspace-main-editor > div {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  border-radius: 10px !important;
  color: #0f172a !important;
}

body.theme-light .workspace-left-meta label,
body.theme-light .workspace-right-status label,
body.theme-light .workspace-left-meta div,
body.theme-light .workspace-right-status div,
body.theme-light .workspace-right-status span {
  color: #334155 !important;
}

body.theme-light .meta-pill,
body.theme-light .status-pill,
body.theme-light .badge-outline {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .editor-toolbar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

body.theme-light .editor-toolbar button,
body.theme-light .editor-toolbar select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

body.theme-light .editor-toolbar button:hover,
body.theme-light .editor-toolbar select:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light .rich-article-editor {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

body.theme-light .rich-article-editor h1,
body.theme-light .rich-article-editor h2,
body.theme-light .rich-article-editor h3,
body.theme-light .rich-article-editor h4 {
  color: #0f172a !important;
}

body.theme-light .rich-article-editor p,
body.theme-light .rich-article-editor li,
body.theme-light .rich-article-editor td {
  color: #334155 !important;
}

body.theme-light .timeline-item-title,
body.theme-light .timeline-step-label {
  color: #1e293b !important;
}

body.theme-light .timeline-step-label.active {
  color: #2563eb !important;
  font-weight: 800 !important;
}

body.theme-light select.form-control,
body.theme-light input.form-control,
body.theme-light textarea.form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light select.form-control option {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.theme-light .header-kickoff-btn {
  background: #f59e0b;
  border: 1px solid #d97706;
  color: #000000;
  font-weight: 700;
}

body.theme-light .header-kickoff-btn:hover {
  background: #fbbf24;
  color: #000000;
}

body.theme-light .topic-templates-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .template-pill-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

body.theme-light .template-pill-btn:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

body.theme-light .kickoff-stage-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .kickoff-stage-card.selected {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}

body.theme-light .cat-badge {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

/* Status Badges */
body.theme-light .status-pill.status-urgent,
body.theme-light .status-pill.status-overdue {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecdd3 !important;
}

body.theme-light .status-pill.status-approved,
body.theme-light .status-pill.status-published {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

body.theme-light .status-pill.status-review {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
}

body.theme-light .status-pill.status-writing {
  background: #faf5ff !important;
  color: #6b21a8 !important;
  border: 1px solid #e9d5ff !important;
}

body.theme-light .status-pill.status-changes {
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

body.theme-light .sources-management-section,
body.theme-light .image-management-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .image-dropzone {
  background: #ffffff !important;
  border: 2px dashed #cbd5e1 !important;
}

body.theme-light .image-dropzone:hover {
  border-color: #f59e0b !important;
  background: #fef3c7 !important;
}

body.theme-light .image-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .comment-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .nav-section-title {
  color: #64748b !important;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-ui);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* App Layout Grid */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-main);
}

/* Top Urgent Banner */
.urgent-banner {
  background: #dc2626;
  color: #fff;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideDown 0.3s ease;
}
.urgent-banner.hidden { display: none; }
.banner-content { display: flex; align-items: center; gap: 12px; }
.banner-icon { font-size: 1.1rem; color: #fef08a; }
.banner-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0.8; }
.banner-close:hover { opacity: 1; }

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

/* App Header */
.app-header {
  height: 68px;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 900;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.sidebar-toggle:hover {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.25));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo-img:hover {
  transform: scale(1.04);
}

body.theme-light .brand-logo-img {
  content: url('/images/logo-light.png') !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--saffron-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Global Search */
.header-search {
  flex: 0 1 420px;
  position: relative;
  margin: 0 20px;
}
.header-search input {
  width: 100%;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 16px 0 42px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}
.header-search input:focus {
  outline: none;
  border-color: var(--saffron);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.search-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}
.search-dropdown.hidden { display: none; }
.search-result-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}
.search-result-item:hover {
  background: var(--bg-card-subtle);
}

/* Header Right Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button (Light / Dark) */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--saffron);
  background: var(--bg-card-hover);
  transform: rotate(15deg);
}

/* Realtime Live Sync Status Indicator in Header */
.realtime-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: default;
  transition: var(--transition-fast);
}

.realtime-status-pill:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

body.theme-light .realtime-status-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Blinking Red Dot before LIVE SYNC */
.live-pulse-dot,
.red-live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 8px #ef4444;
  animation: liveRedBlink 1.1s ease-in-out infinite alternate;
}

.live-pulse-dot::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.35);
  animation: liveRedGlow 1.1s ease-in-out infinite alternate;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1.5px solid #ef4444;
  animation: liveRedRipple 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes liveRedBlink {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.6);
  }
  100% {
    opacity: 0.25;
    transform: scale(0.8);
    box-shadow: 0 0 2px rgba(239, 68, 68, 0.2);
  }
}

@keyframes liveRedGlow {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes liveRedRipple {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.sync-status-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.05em;
}

body.theme-light .sync-status-text {
  color: #059669;
}

.date-context-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Role Switcher */
.role-switcher-dropdown {
  position: relative;
}
.role-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 12px 5px 6px;
  border-radius: 24px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.role-pill-btn:hover {
  border-color: var(--saffron);
  background: var(--bg-card-hover);
}
.role-badge-indicator {
  background: #f59e0b;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.user-display-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.role-caret {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.role-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 280px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.role-menu.hidden { display: none; }
.role-menu-header {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 10px 4px;
  letter-spacing: 0.05em;
}
.role-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.role-menu-item:hover {
  background: var(--bg-card-subtle);
}
.role-menu-item strong { display: block; font-size: 0.86rem; color: var(--text-primary); }
.role-menu-item small { color: var(--text-muted); font-size: 0.76rem; }

/* Notifications Dropdown */
.notification-wrapper {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}
.notif-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 480px;
  display: flex;
  flex-direction: column;
}
.notif-dropdown.hidden { display: none; }
.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.85rem;
}
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  gap: 12px;
}
.notif-item:hover { background: var(--bg-card-subtle); }
.notif-item.unread { border-left: 3px solid var(--saffron); background: rgba(245, 158, 11, 0.05); }
.notif-item-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-item-msg { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }
.notif-item-time { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }

/* App Body (Sidebar + Content) */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width var(--transition-normal), background-color 0.25s ease;
  flex-shrink: 0;
  height: calc(100vh - 68px);
  position: sticky;
  top: 68px;
  overflow-y: auto;
}
.app-sidebar.collapsed {
  width: 72px;
}
.app-sidebar.collapsed .brand-sub,
.app-sidebar.collapsed .nav-section-title,
.app-sidebar.collapsed .nav-link span,
.app-sidebar.collapsed .profile-info,
.app-sidebar.collapsed .sidebar-footer button span {
  display: none;
}
.app-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px 0;
}
.app-sidebar.collapsed .nav-badge {
  position: absolute;
  top: 4px;
  right: 10px;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}
.nav-link:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
}
.nav-link.active {
  background: var(--bg-card-subtle);
  color: var(--border-focus);
  font-weight: 600;
  border-left: 3px solid var(--border-focus);
}
.nav-icon {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}
.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}
.active-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-name { font-size: 0.86rem; font-weight: 600; color: var(--text-primary); }
.profile-role { font-size: 0.74rem; color: var(--saffron-dark); }

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 8px 14px 14px;
  overflow-y: auto;
  height: calc(100vh - 68px);
  background: var(--bg-main);
  transition: background-color 0.25s ease;
}

/* Page Header Components */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
/* View Header Modern Enhancements */
.modern-view-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.view-title-with-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.view-title-with-pill h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.workflow-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--saffron-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.view-title-group p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 5px;
}
.view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* POP ANIMATIONS & PENDING BOTTLENECK SPOTLIGHT */
.bottlenecks-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 5px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 15px rgba(239, 68, 68, 0.1);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.bottlenecks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.bottlenecks-subtext {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@keyframes popIn {
  0% { transform: scale(0.97); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bottleneck-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
  animation: popPulse 2s infinite;
}

@keyframes popPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bottlenecks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.bottleneck-item-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.bottleneck-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--saffron);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.bottleneck-urgent {
  border-left: 4px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.12);
}
.bottleneck-declined {
  border-left: 4px solid #dc2626 !important;
  background: rgba(220, 38, 38, 0.08) !important;
}
.bottleneck-final {
  border-left: 4px solid var(--purple) !important;
}
.bottleneck-review {
  border-left: 4px solid var(--indigo) !important;
}
.bottleneck-changes {
  border-left: 4px solid var(--crimson) !important;
}

.bottleneck-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottleneck-item-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   📊 TOP KPI METRICS GRID (MODERN EXECUTIVE CARDS)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 158, 11, 0.1);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color, var(--saffron));
  opacity: 0.85;
}

.kpi-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kpi-card:hover .kpi-icon-bubble {
  transform: scale(1.1);
}

.kpi-body {
  flex: 1;
  min-width: 0;
}

.kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3px 0 2px;
  line-height: 1.1;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card-alert {
  border-color: rgba(239, 68, 68, 0.35);
}
.kpi-card-alert .kpi-value {
  color: #ef4444;
}

.heart-pulse-icon {
  animation: heartBeat 1.8s infinite;
  display: inline-block;
}

/* Section Cards & Panels */
.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}
.card-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.card-panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-topic { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.3); }
.status-assigned { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-writing { background: rgba(168, 85, 247, 0.15); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-images { background: rgba(249, 115, 22, 0.15); color: #ea580c; border: 1px solid rgba(249, 115, 22, 0.3); }
.status-submitted { background: rgba(234, 179, 8, 0.18); color: #ca8a04; border: 1px solid rgba(234, 179, 8, 0.4); }
.status-review { background: rgba(99, 102, 241, 0.15); color: #4f46e5; border: 1px solid rgba(99, 102, 241, 0.3); }
.status-changes { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-approved { background: rgba(13, 148, 136, 0.15); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.3); }
.status-final { background: rgba(30, 58, 138, 0.15); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-ready { background: rgba(5, 150, 105, 0.15); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }
.status-published { background: rgba(22, 163, 74, 0.2); color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.4); }
.status-overdue { background: rgba(220, 38, 38, 0.2); color: #dc2626; border: 1px solid #dc2626; animation: popPulse 2s infinite; }

/* Category Badges */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Priority Badges */
.priority-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}
.priority-urgent { background: rgba(220, 38, 38, 0.2); color: #dc2626; border: 1px solid rgba(239,68,68,0.4); }
.priority-high { background: rgba(245, 158, 11, 0.2); color: #d97706; border: 1px solid rgba(245,158,11,0.4); }
.priority-medium { background: rgba(59, 130, 246, 0.2); color: #2563eb; border: 1px solid rgba(59,130,246,0.4); }
.priority-low { background: rgba(148, 163, 184, 0.2); color: #64748b; border: 1px solid rgba(148,163,184,0.4); }

/* Progress Bar Visualizer */
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--bg-card-subtle);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #2563eb;
  transition: width 0.4s ease;
}
.progress-percent-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
}

/* Tables & High Density Lists */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
.data-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: var(--bg-card-hover);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Table Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-select, .filter-input {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}
.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--saffron);
}

/* Avatars */
.avatar, .avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}
.bg-purple { background: #7c3aed; color: #fff; }
.bg-blue { background: #2563eb; color: #fff; }
.bg-indigo { background: #4f46e5; color: #fff; }
.bg-green { background: #16a34a; color: #fff; }
.bg-saffron { background: #d97706; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background: #f59e0b;
  color: #000000;
  border: 1px solid #d97706;
  font-weight: 700;
}
.btn-primary:hover {
  background: #fbbf24;
  border-color: #f59e0b;
  color: #000000;
  box-shadow: none;
}
.btn-secondary {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}
.btn-outline-light {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.btn-outline-light:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-card-subtle);
}
.btn-danger {
  background: var(--crimson);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-success {
  background: var(--teal-bright);
  color: #000;
  font-weight: 700;
}
.btn-success:hover {
  background: #34d399;
}
.btn-indigo {
  background: var(--indigo);
  color: #fff;
}
.btn-indigo:hover {
  background: var(--indigo-bright);
}
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-xs { padding: 3px 8px; font-size: 0.72rem; }
.btn-icon { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 6px; border-radius: var(--radius-sm); }
.btn-icon:hover { color: var(--text-primary); background: var(--bg-card-subtle); }
.btn-text { background: none; border: none; color: var(--saffron-dark); cursor: pointer; }
.btn-outline-danger {
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

body.theme-light .btn-outline-danger {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

body.theme-light .btn-outline-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.w-100 { width: 100%; }

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end !important; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: end !important; }
.form-label { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.required { color: var(--crimson-light); }

/* Kanban Board Layout */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 240px);
}
.kanban-column {
  flex: 0 0 310px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.kanban-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.kanban-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kanban-col-count {
  font-size: 0.72rem;
  background: var(--bg-card-subtle);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-secondary);
}
.kanban-card-list {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kanban Cards */
.kanban-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
}
.kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kanban-card-id {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}
.kanban-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.kanban-card-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* EDITORIAL WORKSPACE (CONTENT DETAIL PAGE - 3 COLUMNS) */
.editorial-workspace {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 20px;
  align-items: start;
}

.workspace-left-meta, .workspace-right-workflow {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.workspace-center-editor {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Article Title & Subtitle */
.article-title-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-editorial);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-title-input:focus {
  outline: none;
}
.article-subtitle-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.article-subtitle-input:focus {
  outline: none;
}

/* WYSIWYG Editor Toolbar */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  position: sticky;
  top: 68px;
  z-index: 50;
}
.toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.toolbar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.toolbar-btn.active {
  background: var(--saffron);
  color: #000;
  font-weight: 800;
  border-color: var(--saffron-dark);
}
.toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 4px;
}
.editor-stats {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* WYSIWYG Content Editable Area */
.rich-article-editor {
  width: 100%;
  min-height: 480px;
  background: var(--bg-card);
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.85;
  font-family: Georgia, 'Times New Roman', serif;
  padding: 14px 10px;
  outline: none;
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}
.theme-dark .rich-article-editor,
.theme-dark .rich-article-editor p,
.theme-dark .rich-article-editor h2,
.theme-dark .rich-article-editor h3,
.theme-dark .rich-article-editor li,
.theme-dark .rich-article-editor div {
  color: #ffffff !important;
}
.theme-light .rich-article-editor,
.theme-light .rich-article-editor p,
.theme-light .rich-article-editor h2,
.theme-light .rich-article-editor h3,
.theme-light .rich-article-editor li,
.theme-light .rich-article-editor div {
  color: #0f172a !important;
}
.rich-article-editor:focus {
  border-color: transparent;
}
.rich-article-editor h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 24px 0 12px;
  font-weight: 700;
}
.rich-article-editor h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 20px 0 10px;
  font-weight: 700;
}
.rich-article-editor blockquote {
  font-family: var(--font-editorial);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--saffron-dark) !important;
  border-left: 4px solid var(--saffron);
  padding: 10px 20px;
  margin: 20px 0;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 6px 6px 0;
}
.rich-article-editor p {
  margin-bottom: 16px;
}
.rich-article-editor ul, .rich-article-editor ol {
  margin: 14px 0 14px 24px;
}
.rich-article-editor a {
  color: var(--indigo-bright) !important;
  text-decoration: underline;
}

/* NEWS SOURCES & CITATIONS SECTION */
.sources-management-section {
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.source-tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.source-tag-name {
  font-weight: 700;
  color: var(--text-primary);
}
.source-tag-url {
  font-size: 0.75rem;
  color: var(--indigo-bright);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dedicated Image Manager */
.image-management-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.image-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(0,0,0,0.02);
  margin-bottom: 16px;
}
.image-dropzone:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.05);
}
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.image-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.image-card.is-featured {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.image-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.image-card-info {
  padding: 8px 10px;
}
.image-caption-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.74rem;
  padding: 4px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.image-credit-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-badge-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--saffron);
  color: #000;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Workflow Stage Stepper Timeline */
.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 24px;
  margin: 16px 0;
}
.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}
.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-step-bullet {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-dim);
}
.timeline-step.completed .timeline-step-bullet {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.timeline-step.current .timeline-step-bullet {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.timeline-step-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.timeline-step.current .timeline-step-title {
  color: #2563eb;
  font-weight: 700;
}
.timeline-step-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Comments & Editor Notes Thread */
.comments-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.comment-bubble {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.comment-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.comment-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Presets for Editor comments */
.comment-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.preset-tag-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
}
.preset-tag-btn:hover {
  border-color: var(--indigo-bright);
  color: var(--text-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  padding: 32px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  position: relative;
}
.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.modal-lg { max-width: 880px !important; }
.modal-xl { max-width: 1020px !important; }
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-card);
  z-index: 10;
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.modal-close:hover { 
  color: var(--crimson-light);
  background: rgba(225, 29, 72, 0.1);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--saffron) transparent;
}
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--saffron);
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-card-subtle);
  flex-shrink: 0;
  z-index: 10;
}

/* Approved Content & Media Distribution Package Modal */
.pkg-top-stats-bar {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
body.theme-light .pkg-top-stats-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}
#pkg-article-text-area {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
body.theme-light #pkg-article-text-area {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Grammarly Pro In-Editor Floating Widget & Underlines */
.grammarly-floating-badge {
  position: absolute;
  bottom: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid #10b981;
  border-radius: 24px;
  padding: 4px 10px 4px 6px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  user-select: none;
}
.grammarly-floating-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.grammarly-circle-ring {
  position: relative;
  width: 28px;
  height: 28px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grammarly-g-logo {
  color: #000;
  font-weight: 900;
  font-family: sans-serif;
  font-size: 0.95rem;
  line-height: 1;
}
.grammarly-issue-pill {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--bg-card);
}
.grammarly-score-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #10b981;
}
body.theme-light .grammarly-floating-badge {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

/* In-Editor Underlines */
.grammarly-underline-spelling {
  text-decoration: underline wavy #ef4444 2px;
  text-underline-offset: 4px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 2px;
}
.grammarly-underline-repetition {
  text-decoration: underline wavy #f59e0b 2px;
  text-underline-offset: 4px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 2px;
}
.grammarly-underline-grammar {
  text-decoration: underline wavy #3b82f6 2px;
  text-underline-offset: 4px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 2px;
}

/* LIVE READER PREVIEW STYLES */
.reader-modal-body {
  background: #0d1117;
  color: #e6edf3;
  padding: 40px 60px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}
.reader-masthead {
  text-align: center;
  border-bottom: 2px solid #30363d;
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.reader-masthead h2 {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: #f59e0b;
}
.reader-article-category {
  color: #f59e0b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.reader-headline {
  font-family: var(--font-editorial);
  font-size: 2.4rem;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}
.reader-deck {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #8b949e;
  margin-bottom: 24px;
}
.reader-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: #8b949e;
}
.reader-hero-image-wrap {
  margin-bottom: 30px;
}
.reader-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
}
.reader-image-caption {
  font-size: 0.82rem;
  color: #8b949e;
  font-style: italic;
  margin-top: 8px;
  border-left: 2px solid #f59e0b;
  padding-left: 10px;
}
.reader-body-copy {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
  line-height: 1.85;
  color: #d0d7de;
}
.reader-body-copy h2, .reader-body-copy h3 {
  font-family: var(--font-display);
  color: #ffffff;
  margin: 32px 0 16px;
}
.reader-body-copy blockquote {
  font-family: var(--font-editorial);
  font-size: 1.35rem;
  font-style: italic;
  color: #fed7aa;
  border-left: 4px solid #f59e0b;
  padding: 12px 24px;
  margin: 28px 0;
  background: rgba(245, 158, 11, 0.05);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}
.toast.toast-success { border-left: 4px solid var(--teal-bright); }
.toast.toast-error { border-left: 4px solid var(--crimson-light); }
.toast.toast-info { border-left: 4px solid var(--saffron); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Spinner */
.view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: var(--text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   🌟 EXECUTIVE HERO GREETING BANNER (LUXURY GLASSMORPHISM)
   ========================================================================== */
.hero-greeting-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-greeting-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-greeting-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.hero-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar-pill {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-size: 1.45rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-text-content {
  flex: 1;
  min-width: 0;
}

.hero-greeting-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hero-perspective-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--saffron-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-live-indicator {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-greeting-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.hero-name-highlight {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-greeting-icon {
  font-size: 1.5rem;
  animation: waveEmoji 2.5s infinite ease-in-out;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes waveEmoji {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-10deg); }
}

.hero-greeting-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tasks-btn {
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  font-weight: 700;
  gap: 8px;
}

.hero-report-btn, .hero-new-btn {
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.hero-report-btn:hover, .hero-new-btn:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.1);
  color: var(--saffron-dark);
  transform: translateY(-1px);
}

.hero-greeting-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hero-live-clock-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-live-date-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
}

.hero-live-clock {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.hero-user-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   🖼️ SIDE-BY-SIDE PORTRAIT HERO & SHOWCASE LAYOUTS
   ========================================================================== */
.hero-portrait-split-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .hero-portrait-split-row {
    grid-template-columns: 1fr;
  }
}

.hero-portrait-card {
  margin-bottom: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.hero-portrait-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-portrait-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: auto;
}

body.theme-light .hero-portrait-bottom {
  border-top-color: #fde68a;
}

.hero-portrait-clock {
  padding: 6px 12px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}

.hero-portrait-clock .hero-live-clock {
  font-size: 1.05rem !important;
  padding: 4px 10px !important;
}

.bottlenecks-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-around;
}

.showcase-portrait-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .showcase-portrait-split-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-portrait-card {
  margin-bottom: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.writer-champions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.hall-of-fame-portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

@media (max-width: 640px) {
  .hall-of-fame-portrait-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Utility for Hidden Elements */
.hidden {
  display: none !important;
}

/* Color & Text Highlighter Toolbar */
.color-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.color-palette-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-width: 170px;
}
.color-palette-menu.hidden {
  display: none !important;
}
.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch-btn:hover {
  transform: scale(1.15);
  border-color: #fff;
}

/* Font Size Selector */
.fontsize-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}
.fontsize-item-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--saffron-dark);
}
.fontsize-item-btn.active {
  background: rgba(245, 158, 11, 0.25);
  color: var(--saffron-dark);
  font-weight: 700;
}
.font-px-badge {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-card-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Today My Tasks Hero Button & Popup Modal */
.hero-tasks-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.15s ease;
}
.hero-tasks-btn:hover {
  transform: none;
  box-shadow: none;
}
.badge-urgent-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.today-tasks-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.today-filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.today-filter-tab:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--text-primary);
  border-color: var(--saffron);
}
.today-filter-tab.active {
  background: var(--saffron);
  color: #000;
  border-color: var(--saffron);
  font-weight: 700;
}

.today-task-card-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.today-task-card-item:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.08);
  transform: translateX(4px);
}
.today-task-card-item.is-urgent {
  border-left: 5px solid #ef4444;
  background: rgba(239, 68, 68, 0.06);
}
.today-task-card-item.is-urgent:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* QUICK TOPIC ASSIGNMENT (INSTANT KICKOFF) POPUP STYLES */
.modal-badge-kickoff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--saffron);
  color: var(--saffron-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.topic-templates-wrap {
  margin-bottom: 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}
.topic-templates-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topic-category-filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0;
  max-width: 100%;
}
.cat-tab-btn {
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.cat-tab-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--saffron);
  color: var(--text-primary);
}
.cat-tab-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #000;
  font-weight: 700;
}

.kickoff-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}
.kickoff-stage-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.kickoff-stage-card:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.08);
}
.kickoff-stage-card.selected {
  border-color: #2563eb;
  background: var(--bg-card-subtle);
  box-shadow: 0 0 0 1px #2563eb;
}
.kickoff-stage-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--saffron);
}

.kickoff-submit-btn {
  background: #f59e0b !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border: 1px solid #d97706 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}
.kickoff-submit-btn:hover {
  background: #fbbf24 !important;
  border-color: #f59e0b !important;
  color: #000000 !important;
}

.header-kickoff-btn {
  background: #f59e0b;
  border: 1px solid #d97706;
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header-kickoff-btn:hover {
  background: #fbbf24;
  color: #000000;
  box-shadow: none;
}

/* WRITER NEW TASK INSTANT KICKOFF MODAL */
.writer-kickoff-card {
  max-width: 540px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  animation: modalPopIn 0.25s ease-out;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.writer-kickoff-banner {
  background: var(--bg-card-subtle);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.kickoff-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: none;
  border: none;
}

.writer-kickoff-task-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

/* Text Highlighter Pop Backgrounds (Google Docs Style) */
.rich-article-editor mark, .rich-article-editor .hl-pop, mark.hl-pop {
  padding: 2px 6px;
  border-radius: 4px;
  display: inline;
  font-weight: 500;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: inherit;
}
.hl-yellow, mark.hl-yellow, .rich-article-editor mark.hl-yellow { background-color: #fef08a !important; color: #000000 !important; }
.hl-saffron, mark.hl-saffron, .rich-article-editor mark.hl-saffron { background-color: #fed7aa !important; color: #000000 !important; }
.hl-cyan, mark.hl-cyan, .rich-article-editor mark.hl-cyan { background-color: #a5f3fc !important; color: #000000 !important; }
.hl-mint, mark.hl-mint, .rich-article-editor mark.hl-mint { background-color: #a7f3d0 !important; color: #000000 !important; }
.hl-coral, mark.hl-coral, .rich-article-editor mark.hl-coral { background-color: #fecdd3 !important; color: #000000 !important; }
.hl-purple, mark.hl-purple, .rich-article-editor mark.hl-purple { background-color: #e9d5ff !important; color: #000000 !important; }

/* Text Color Classes */
.tc-gold { color: #f59e0b !important; }
.tc-crimson { color: #ef4444 !important; }
.tc-blue { color: #3b82f6 !important; }
.tc-emerald { color: #10b981 !important; }
.tc-purple { color: #a855f7 !important; }
.tc-white { color: #ffffff !important; }

/* Google Docs-Style Version History & Time Travel Modal */
.gdocs-version-modal-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 620px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gdocs-version-sidebar {
  border-right: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  display: flex;
  flex-direction: column;
}
.gdocs-version-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gdocs-version-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gdocs-version-item {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.gdocs-version-item:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.05);
}
.gdocs-version-item.active {
  border-color: #2563eb;
  background: var(--bg-card-subtle);
  box-shadow: 0 0 0 1px #2563eb;
}
.gdocs-version-item-time {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.gdocs-version-item-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gdocs-version-stage-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gdocs-version-preview-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gdocs-version-preview-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}
.gdocs-version-preview-body {
  flex: 1;
  padding: 24px 30px;
  overflow-y: auto;
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1rem;
}
.gdocs-version-preview-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--saffron-dark);
}
.gdocs-version-preview-body p {
  margin-bottom: 14px;
}

/* Responsive Media Queries */
@media (max-width: 1280px) {
  .hide-on-laptop {
    display: none !important;
  }
  .header-search {
    flex: 0 1 280px;
    margin: 0 10px;
  }
  .header-right {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .editorial-workspace {
    grid-template-columns: 1fr 320px;
  }
  .workspace-left-meta {
    grid-column: span 2;
    position: static;
    max-height: none;
  }
  .hide-on-tablet {
    display: none !important;
  }
  .sync-status-text {
    display: none !important;
  }
  .realtime-status-pill {
    padding: 6px 8px;
  }
}

@media (max-width: 992px) {
  .header-search {
    flex: 0 1 180px;
    margin: 0 6px;
  }
  .header-search input {
    height: 36px;
    font-size: 0.82rem;
    padding-left: 36px;
  }
  .search-icon {
    left: 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .editorial-workspace {
    grid-template-columns: 1fr;
  }
  .workspace-left-meta, .workspace-right-workflow {
    position: static;
    max-height: none;
  }
  .app-sidebar {
    position: fixed;
    left: -260px;
    z-index: 1000;
    transition: left 0.25s ease;
  }
  .app-sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
  .header-search { 
    display: none !important; 
  }
  .hide-on-small-tablet {
    display: none !important;
  }
  .app-header {
    padding: 0 16px;
    gap: 8px;
  }
  .header-left {
    gap: 10px;
  }
  .header-right {
    gap: 8px;
  }
  .brand-logo-img {
    height: 36px;
    max-width: 130px;
  }
  .role-pill-btn {
    padding: 4px 8px 4px 6px;
    gap: 6px;
  }
  .reader-modal-body { padding: 24px 20px; }
  .reader-headline { font-size: 1.8rem; }
  .hero-greeting-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-greeting-right { align-items: flex-start; }
  .gdocs-version-modal-layout { grid-template-columns: 1fr; height: auto; }
}

@media (max-width: 600px) {
  .hide-mobile { display: none !important; }
  .app-header {
    height: 58px;
    padding: 0 12px;
    gap: 6px;
  }
  .header-left {
    gap: 8px;
  }
  .sidebar-toggle {
    padding: 6px;
    font-size: 1.1rem;
  }
  .brand-logo-img {
    height: 30px;
    max-width: 105px;
  }
  .header-right {
    gap: 6px;
  }
  .header-create-btn {
    padding: 6px 10px;
    height: 34px;
    font-size: 0.82rem;
  }
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .notification-wrapper .btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .realtime-status-pill {
    padding: 6px;
    border-radius: 50%;
  }
  .role-pill-btn {
    padding: 4px 6px;
  }
  .role-badge-indicator {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .role-menu {
    width: 240px;
    right: -10px;
  }
  .notif-dropdown {
    width: 280px;
    right: -30px;
  }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .main-content { padding: 14px; }
  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .view-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .view-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 380px) {
  .app-header {
    padding: 0 8px;
    gap: 4px;
  }
  .brand-logo-img {
    height: 26px;
    max-width: 90px;
  }
  .header-right {
    gap: 4px;
  }
}

/* ==========================================================================
   AI CONTENT INTELLIGENCE MONITOR — Admin & Dr. Tejaswini Suite
   ========================================================================== */

.ai-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.ai-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.06);
}
.ai-tab-btn.active {
  color: #a855f7;
  border-bottom-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  font-weight: 700;
}
.ai-tab-panel { animation: fadeInUp 0.25s ease forwards; }
.ai-tab-panel.hidden { display: none !important; }

#admin-intel-nav-section .nav-section-title {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(168,85,247,0.06));
  border-left: 2px solid #7c3aed;
  padding: 6px 12px;
  margin: 4px 8px;
  border-radius: 0 6px 6px 0;
}
#admin-intel-nav-section .nav-link {
  background: rgba(124,58,237,0.04);
  margin-left: 8px;
  border-radius: 0 6px 6px 0;
}
#admin-intel-nav-section .nav-link:hover,
#admin-intel-nav-section .nav-link.active {
  background: rgba(124,58,237,0.15);
  color: #c084fc;
}

.notif-item a.btn-xs {
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.notif-item a.btn-xs:hover {
  transform: scale(1.04);
}

.w-100 { width: 100%; }
.mt-2  { margin-top: 8px; }
.flex-1 { flex: 1; }
.text-purple { color: #a855f7; }

@keyframes adminPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(168,85,247,0); }
}
#admin-intel-nav-section .nav-badge { animation: adminPulse 2s infinite; }

/* AI Red Pulse Warning for > 40% AI usage */
@keyframes aiRedPulse {
  0%, 100% { color: #ef4444; text-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { color: #f87171; text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
}

/* ==========================================================================
   APPLE-STYLE ANIMATED EDITORIAL CONTENT CALENDAR
   ========================================================================== */

.cal-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin: 16px 0;
  position: relative;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}
.cal-nav-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--saffron);
  color: var(--saffron);
  transform: scale(1.08);
}
.cal-nav-btn:active {
  transform: scale(0.94);
}

/* Apple-style Month/Year Picker Button */
.cal-month-display {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cal-month-display:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--saffron);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.cal-today-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-today-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Apple iOS Segmented Control View Switcher */
.cal-view-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-left: auto;
}
.cal-view-btn {
  padding: 5px 16px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cal-view-btn.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: -4px;
}

/* Apple-style Animated Datepicker Popup Modal */
.cal-datepicker-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  z-index: 100;
  background: rgba(19, 31, 63, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
  width: 320px;
  transform-origin: top left;
}

.cal-picker-open {
  animation: applePickerPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cal-picker-closing {
  animation: applePickerPopOut 0.2s ease forwards;
}

@keyframes applePickerPopIn {
  from { opacity: 0; transform: scale(0.85) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes applePickerPopOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.9) translateY(-6px); }
}

.cal-datepicker-title {
  padding: 14px 16px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-datepicker-wheels {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  height: 180px;
}

.cal-wheel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cal-wheel-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 6px;
}

.cal-wheel {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 30px 0;
  scrollbar-width: thin;
}

.cal-wheel-item {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.cal-wheel-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.cal-wheel-item.selected {
  color: var(--saffron);
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 6px;
}

/* Calendar Grid Wrapper & Transitions */
.cal-grid-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 520px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}

.cal-slide-left-out { animation: calSlideLeftOut 0.22s ease forwards; }
.cal-slide-left-in  { animation: calSlideLeftIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.cal-slide-right-out { animation: calSlideRightOut 0.22s ease forwards; }
.cal-slide-right-in  { animation: calSlideRightIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes calSlideLeftOut {
  to { opacity: 0; transform: translateX(-35px) scale(0.98); }
}
@keyframes calSlideLeftIn {
  from { opacity: 0; transform: translateX(35px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes calSlideRightOut {
  to { opacity: 0; transform: translateX(35px) scale(0.98); }
}
@keyframes calSlideRightIn {
  from { opacity: 0; transform: translateX(-35px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Month Grid */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-month-header-cell {
  text-align: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
}

.cal-month-cell {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cal-month-cell:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.cal-month-cell-empty {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}
.cal-month-cell.cal-today {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.06);
}
.cal-month-cell.cal-selected {
  border-color: var(--indigo-bright);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.cal-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cal-day-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.cal-day-num.cal-today-num {
  color: #000;
  background: var(--saffron);
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 900;
}
.cal-dot-row {
  display: flex;
  gap: 3px;
}
.cal-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-cell-tasks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cal-task-chip {
  background: rgba(15, 24, 48, 0.9);
  border-left: 3px solid #f59e0b;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}
.cal-task-chip:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fff;
}

/* Week Grid */
.cal-week-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
}
.cal-week-timecol {
  background: var(--bg-card-subtle);
}
.cal-week-day-header {
  background: var(--bg-card);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.cal-week-day-header:hover {
  background: var(--bg-card-hover);
}
.cal-week-day-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}
.cal-week-day-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0;
}
.cal-week-time-label {
  background: var(--bg-card-subtle);
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 8px 6px;
  text-align: right;
  font-family: monospace;
}
.cal-week-slot {
  background: var(--bg-card);
  min-height: 44px;
  padding: 2px;
}
.cal-week-slot.cal-today-slot {
  background: rgba(245, 158, 11, 0.03);
}
.cal-week-event {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Day View */
.cal-day-view {
  padding: 12px;
}
.cal-day-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.cal-day-event-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-day-event-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

/* Day Detail Panel Slide Up */
.cal-day-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
}
@keyframes calDetailSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.cal-detail-card {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-detail-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Apple Calendar Manual Precision Filter Toolbar */
.cal-filter-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: none;
  animation: calDetailSlideUp 0.25s ease forwards;
}

.cal-filter-toolbar.active {
  display: block;
}

.cal-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 8px;
}

.cal-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cal-filter-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Apple Calendar 12-Month Year Grid */
.cal-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 4px 0;
}

.cal-year-month-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cal-year-month-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cal-year-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-year-month-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.cal-year-month-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-main);
  padding: 2px 7px;
  border-radius: 10px;
}

.cal-year-month-badge.has-items {
  background: rgba(245, 158, 11, 0.15);
  color: var(--saffron-dark);
}

.cal-year-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.cal-year-mini-dow {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim);
  padding: 2px 0;
}

.cal-year-mini-cell {
  font-size: 0.65rem;
  padding: 3px 0;
  border-radius: 3px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cal-year-mini-cell.empty {
  visibility: hidden;
}

.cal-year-mini-cell.today {
  background: var(--saffron);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
}

.cal-year-mini-cell.active {
  background: rgba(99, 102, 241, 0.25);
  color: var(--indigo-bright);
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.cal-year-mini-cell.active:hover {
  background: var(--indigo-bright);
  color: #fff;
}

/* ==========================================================================
   GOOGLE DRIVE STYLE CONTENT VAULT & FOLDERS DATA STYLES
   ========================================================================== */

/* Floating Right Sidebar Dock Button */
.floating-right-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
}

.floating-drive-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(24, 38, 77, 0.95), rgba(15, 23, 48, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-right: none;
  padding: 10px 14px 10px 12px;
  border-radius: 24px 0 0 24px;
  color: var(--text-primary);
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-drive-btn:hover {
  background: linear-gradient(135deg, rgba(30, 48, 98, 0.98), rgba(20, 31, 65, 1));
  border-color: var(--saffron);
  transform: translateX(-4px);
  box-shadow: -6px 6px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.35);
}

body.theme-light .floating-drive-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(217, 119, 6, 0.5);
  color: #0f172a;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
}

.dock-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.dock-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dock-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.dock-sub {
  font-size: 0.65rem;
  color: var(--saffron-dark);
  font-weight: 600;
}

.dock-badge {
  background: var(--saffron);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Vault Calendar & Date/Year Navigator Bar */
.vault-calendar-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-cal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.vault-cal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.vault-date-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.vault-year-strip, .vault-month-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vault-strip-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 65px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vault-pill-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.vault-pill-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--saffron);
}

.vault-pill-btn.active {
  background: var(--saffron);
  color: #000;
  font-weight: 800;
  border-color: var(--saffron);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.vault-month-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.vault-month-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--indigo-bright);
}

.vault-month-pill.active {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 800;
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Drive Stats Grid */
.drive-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.drive-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.drive-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.drive-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--saffron);
}

.drive-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.bg-saffron-subtle { background: rgba(245, 158, 11, 0.15); }
.bg-indigo-subtle { background: rgba(59, 130, 246, 0.15); }
.bg-green-subtle { background: rgba(16, 185, 129, 0.15); }
.bg-purple-subtle { background: rgba(139, 92, 246, 0.15); }

.drive-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.drive-stat-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Drive Main Panel */
.drive-main-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.drive-toolbar {
  padding: 14px 18px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.drive-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.drive-search-box input {
  width: 100%;
  padding: 8px 32px 8px 34px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s;
}

.drive-search-box input:focus {
  border-color: var(--saffron);
}

.drive-search-box .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

.drive-grouping-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-main);
  padding: 3px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.group-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.group-btn.active {
  background: var(--saffron);
  color: #000;
  font-weight: 700;
}

.group-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.drive-layout-toggle {
  display: flex;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.layout-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.layout-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Breadcrumb Bar */
.drive-breadcrumb-bar {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

body.theme-light .drive-breadcrumb-bar {
  background: #f1f5f9;
}

.drive-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.breadcrumb-item.btn-link {
  background: none;
  border: none;
  color: var(--indigo-bright);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.breadcrumb-item.btn-link:hover {
  background: rgba(59, 130, 246, 0.1);
  text-decoration: underline;
}

.breadcrumb-item.current {
  font-weight: 700;
  color: var(--text-primary);
}

.breadcrumb-sep {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.drive-breadcrumb-actions {
  display: flex;
  gap: 8px;
}

/* Drive Content Container */
.drive-content-container {
  padding: 20px;
  min-height: 400px;
}

.drive-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.drive-empty-state .empty-icon {
  font-size: 3rem;
  color: var(--saffron);
  opacity: 0.5;
  margin-bottom: 12px;
}

.drive-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Grid Views */
.drive-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.drive-folder-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drive-folder-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.folder-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.folder-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.folder-items-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

.folder-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.folder-card-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Article Folder Cards */
.drive-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.drive-article-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.drive-article-card:hover {
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-cover {
  position: relative;
  height: 130px;
  background: #000;
  overflow: hidden;
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s;
}

.drive-article-card:hover .article-card-cover img {
  transform: scale(1.04);
}

.article-card-badge-row {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-chip {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drive-files-summary-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.summary-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-card-footer {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 6px;
}

/* Article Folder Detailed Inside View */
.article-folder-detail-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-folder-header-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.folder-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.folder-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.folder-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-files-group {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.group-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drive-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.drive-file-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drive-file-card:hover {
  border-color: var(--saffron);
  transform: translateY(-2px);
}

.file-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.file-icon-box {
  font-size: 1.4rem;
}

.file-size-badge {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}

.file-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin-bottom: 12px;
}

.file-card-actions {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Images Grid in Folder View */
.drive-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.drive-image-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drive-image-card:hover {
  border-color: var(--teal-bright);
  transform: translateY(-2px);
}

.image-card-thumb {
  position: relative;
  height: 120px;
  background: #000;
}

.image-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--saffron);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.image-card-info {
  padding: 10px;
}

.image-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-caption {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.image-credit {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.image-card-footer {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 6px;
}

/* List Table Row Styles */
.drive-folder-row, .drive-article-row {
  cursor: pointer;
}

.drive-folder-row:hover, .drive-article-row:hover {
  background: var(--bg-card-hover) !important;
}

.folder-list-icon {
  font-size: 1.1rem;
}

.article-folder-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-folder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   GOOGLE DRIVE RIGHT-CLICK CONTEXT MENU
   ========================================================================== */

.drive-context-menu {
  position: fixed;
  z-index: 10000;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(12px);
  animation: contextMenuPop 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes contextMenuPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.context-menu-item:hover {
  background: var(--bg-card-hover);
  color: var(--saffron);
  transform: translateX(2px);
}

.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.context-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 6px;
}

/* ==========================================================================
   GOOGLE DRIVE SHARING & PERMISSIONS MODAL
   ========================================================================== */

.share-collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  max-height: 240px;
  overflow-y: auto;
}

.share-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.share-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-top: 14px;
}

.share-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: monospace;
  outline: none;
}

/* ==========================================================================
   RECYCLE BIN & RESTORE ANIMATIONS
   ========================================================================== */

.trash-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.trash-restore-row {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trash-restore-row.restoring {
  animation: flyBackRestore 0.6s ease forwards;
}

@keyframes flyBackRestore {
  0% { transform: scale(1); opacity: 1; background: rgba(16, 185, 129, 0.2); }
  50% { transform: translateY(-20px) scale(0.95); opacity: 0.7; }
  100% { transform: translateY(-60px) scale(0.8); opacity: 0; }
}

/* ==========================================================================
   CIRCULAR DISK SYNC PROGRESS POPUP ANIMATION
   ========================================================================== */

.sync-modal-card {
  max-width: 440px !important;
  padding: 32px 28px !important;
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15) !important;
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  animation: modalScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.sync-animation-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sync-progress-ring {
  transform: rotate(-90deg);
}

.sync-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.sync-ring-progress {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 364.42;
  stroke-dashoffset: 364.42;
  transition: stroke-dashoffset 0.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.sync-ring-progress.complete {
  stroke: #10b981;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
}

.sync-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sync-icon-spin {
  font-size: 1.8rem;
  margin-bottom: 2px;
  animation: syncRotate 1.5s linear infinite;
  display: inline-block;
  transition: all 0.3s ease;
}

.sync-icon-spin.complete {
  animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  color: #10b981 !important;
}

@keyframes syncRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes checkPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.sync-percent-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sync-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sync-modal-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 20px;
  transition: color 0.3s;
}

.sync-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sync-step-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.sync-step-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--saffron);
  color: var(--saffron-dark);
}

.sync-step-pill.complete {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

/* ==========================================================================
   ⭐ CHIEF EDITOR 5-STAR RATING & HEART REACTIONS (DARK & LIGHT THEME)
   ========================================================================== */

/* Rating Badge Pill */
.editor-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.76rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  vertical-align: middle;
}

.star-filled {
  color: #fbbf24 !important;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  font-family: inherit;
  letter-spacing: 1px;
}

.star-empty {
  color: rgba(255, 255, 255, 0.25) !important;
  font-family: inherit;
  letter-spacing: 1px;
}

.heart-badge {
  color: #ef4444 !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Light Theme overrides */
body.theme-light .star-filled {
  color: #d97706 !important;
  text-shadow: 0 1px 2px rgba(217, 119, 6, 0.2) !important;
}

body.theme-light .star-empty {
  color: #cbd5e1 !important;
}

body.theme-light .heart-badge {
  color: #dc2626 !important;
  text-shadow: none !important;
}

/* Header Star Rating Bar in Content Detail */
.header-rating-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.theme-light .header-rating-bar {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.08);
}

/* Interactive Star Selector */
.star-btn {
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.star-btn:hover {
  transform: scale(1.3);
}

.star-btn.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

body.theme-light .star-btn {
  color: #cbd5e1;
}

body.theme-light .star-btn.active {
  color: #d97706;
  text-shadow: 0 1px 2px rgba(217, 119, 6, 0.2);
}

/* ==========================================================================
   👑 CHIEF EDITOR DR. TEJASWINI MA'AM'S 5-STAR HALL OF FAME SHOWCASE
   ========================================================================== */
.hall-of-fame-showcase {
  padding: 22px 26px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(245, 158, 11, 0.08) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.08);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

body.theme-light .hall-of-fame-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #fff1f2 100%);
  border: 1px solid #fde68a;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.08);
}

.hall-of-fame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.hall-of-fame-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hall-of-fame-crown-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  animation: crownFloat 3s ease-in-out infinite alternate;
}

@keyframes crownFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-3px) rotate(4deg); }
}

.hall-of-fame-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hall-of-fame-count-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--saffron-dark);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 3px 10px;
  border-radius: 12px;
}

.hall-of-fame-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 3px 0 0;
}

.hall-of-fame-all-btn {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--saffron-dark);
  font-weight: 700;
  padding: 5px 12px;
  gap: 6px;
  transition: all 0.2s ease;
}
.hall-of-fame-all-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--saffron);
  transform: translateX(2px);
}

.hall-of-fame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.hall-of-fame-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hall-of-fame-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hall-of-fame-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.2);
}

.hall-of-fame-card:hover::before {
  opacity: 1;
}

body.theme-light .hall-of-fame-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.theme-light .hall-of-fame-card:hover {
  border-color: #d97706;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.14);
}

.hof-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hof-cat-badge {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  padding: 3px 8px;
  font-weight: 700;
  border-radius: 4px;
}

body.theme-light .hof-cat-badge {
  background: #f8fafc;
}

.hof-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hof-stars {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.hof-heart {
  font-size: 1.1rem;
  animation: heartBeat 1.8s infinite;
  display: inline-block;
}

.hof-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hof-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
}

body.theme-light .hof-card-footer {
  border-top-color: #f1f5f9;
}

.hof-writer-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hof-avatar {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
  font-weight: 800;
}

.hof-writer-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.hof-open-link {
  color: var(--saffron-dark);
  font-weight: 700;
  font-size: 0.74rem;
  transition: transform 0.2s ease;
}

.hall-of-fame-card:hover .hof-open-link {
  transform: translateX(3px);
}

/* ==========================================================================
   🏆 MONTHLY 5-STAR QUALITY LEADERBOARD & COMPLETED EDITING
   ========================================================================== */
.monthly-leaderboard-showcase {
  padding: 24px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(245, 158, 11, 0.07) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.08);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

body.theme-light .monthly-leaderboard-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 60%, #f0fdf4 100%);
  border: 1px solid #fde68a;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.08);
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.leaderboard-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.leaderboard-trophy-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.leaderboard-main-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.leaderboard-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 3px 0 0;
}

.quality-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quality-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quality-chip.chip-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
body.theme-light .quality-chip.chip-gold {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.quality-chip.chip-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
body.theme-light .quality-chip.chip-green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.quality-chip.chip-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}
body.theme-light .quality-chip.chip-red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.writer-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.writer-champion-card {
  padding: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.writer-champion-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.2);
}

.rank-1-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.rank-2-card {
  border-color: rgba(148, 163, 184, 0.4);
}

.rank-3-card {
  border-color: rgba(217, 119, 6, 0.35);
}

body.theme-light .writer-champion-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.theme-light .rank-1-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #f59e0b;
}

body.theme-light .writer-champion-card:hover {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.14);
}

.writer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.writer-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.writer-champion-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.writer-champion-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.writer-champion-role {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.rank-pill-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rank-pill-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.rank-pill-badge.rank-2 {
  background: #64748b;
  color: #fff;
}
body.theme-light .rank-pill-badge.rank-2 {
  background: #e2e8f0;
  color: #334155;
}

.rank-pill-badge.rank-3 {
  background: #b45309;
  color: #fff;
}
body.theme-light .rank-pill-badge.rank-3 {
  background: #ffedd5;
  color: #9a3412;
}

.writer-metric-statbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-light .writer-metric-statbox {
  background: #fffdf5;
  border: 1px solid #fef3c7;
}

.statbox-col {
  display: flex;
  flex-direction: column;
}

.statbox-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.statbox-val {
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.statbox-num-gold {
  color: #fbbf24;
}
body.theme-light .statbox-num-gold {
  color: #d97706;
}

.statbox-subtext {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.writer-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  margin-top: auto;
}

body.theme-light .writer-card-bottom {
  border-top-color: #f1f5f9;
}

.writer-favorites-pill {
  color: var(--text-secondary);
  font-weight: 600;
}

.writer-stories-btn {
  padding: 4px 10px;
  font-size: 0.74rem;
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--saffron-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.writer-stories-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--saffron);
  transform: translateX(2px);
}

/* ==========================================================================
   🍱 FRAMER-STYLE COLORFUL MATTE BENTO HERO GRID (12-CARD MODULAR SYSTEM)
   ========================================================================== */

.framer-bento-wrapper {
  margin-bottom: 8px;
}

/* Outer Enclosure Frame */
.framer-bento-shell {
  background: #0d0e12;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  position: relative;
}

body.theme-light .framer-bento-shell {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -10px rgba(100, 116, 139, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Universal Inner Bento Tile Base */
.fb-tile {
  border-radius: 12px;
  padding: 9px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.fb-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* Section Tag Label */
.fb-tag {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a1a1aa;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.theme-light .fb-tag {
  color: #64748b;
}

/* Circular Action Arrow Button (↗) */
.fb-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fb-arrow-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #ffffff;
  transform: scale(1.08) rotate(45deg);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

body.theme-light .fb-arrow-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.theme-light .fb-arrow-btn:hover {
  background: var(--saffron);
  color: #ffffff;
}

/* ── 1. TILE 1: GREETING & LEAD BIO WITH BIG LIVE TIMER BOX ── */
.fb-tile-greeting {
  grid-column: span 5;
  min-height: 165px;
  background: linear-gradient(135deg, rgba(38, 26, 14, 0.95) 0%, rgba(20, 22, 28, 0.98) 60%, rgba(30, 20, 14, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fb-tile-greeting:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

body.theme-light .fb-tile-greeting {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-color: #fde68a;
}

.fb-greeting-top-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fb-greeting-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

body.theme-light .fb-greeting-title {
  color: #0f172a;
}

/* Full-Width Left-to-Right Big Rotating Indian Heritage Quote */
.fb-greeting-quote-prominent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.35;
  color: #f8fafc;
  margin: 18px 0 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fb-quote-fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.fb-quote-fade-in {
  opacity: 1;
  transform: translateY(0);
}

body.theme-light .fb-greeting-quote-prominent {
  color: #0f172a;
}

.fb-greeting-quote-text {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.01em;
  display: block;
  width: 100%;
}

body.theme-light .fb-greeting-quote-text {
  color: #0f172a;
  text-shadow: none;
}

.fb-greeting-quote-author {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

body.theme-light .fb-greeting-quote-author {
  color: #b45309;
}

/* Clean Borderless Digital Timer (No box, no border) */
.fb-clean-timer {
  text-align: right;
  flex-shrink: 0;
  padding: 2px 0 0 8px;
}

.fb-clean-timer-digits {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

body.theme-light .fb-clean-timer-digits {
  color: #b45309;
  text-shadow: none;
}

.fb-clean-timer-date {
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

body.theme-light .fb-clean-timer-date {
  color: #64748b;
}

/* BIG DIGITAL LIVE TIMER SIDE BOX */
.fb-big-timer-box {
  background: linear-gradient(145deg, rgba(20, 15, 8, 0.95) 0%, rgba(10, 10, 14, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.15) inset;
  flex-shrink: 0;
  min-width: 130px;
}

body.theme-light .fb-big-timer-box {
  background: #ffffff;
  border-color: #fde68a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.fb-big-timer-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.fb-big-timer-digits {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  line-height: 1.15;
}

body.theme-light .fb-big-timer-digits {
  color: #0f172a;
  text-shadow: none;
}

.fb-big-timer-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

body.theme-light .fb-big-timer-date {
  color: #64748b;
}

.fb-greeting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-size: 0.74rem;
  margin-top: auto;
}

body.theme-light .fb-greeting-footer {
  border-top-color: #fde68a;
}

/* ── GREETING CARD FOOTER & METRICS THEMED STYLES ── */
.fb-greeting-tag {
  color: #fbbf24;
}
body.theme-light .fb-greeting-tag {
  color: #b45309;
}

.fb-live-status-text {
  color: #10b981;
}
body.theme-light .fb-live-status-text {
  color: #059669;
}

.fb-due-today-text {
  color: #60a5fa;
}
body.theme-light .fb-due-today-text {
  color: #2563eb;
}

.fb-in-review-text {
  color: #c084fc;
}
body.theme-light .fb-in-review-text {
  color: #7c3aed;
}

.fb-today-tasks-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  cursor: pointer;
}
body.theme-light .fb-today-tasks-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

/* ── 2. TILE 2: 2ND BOX AFTER QUOTE BOX (SINGLE BOX FILL, CRIMSON RED) ── */
.fb-tile-overdue-alert {
  grid-column: span 2;
  padding: 13px 15px;
  background: linear-gradient(145deg, rgba(62, 10, 16, 0.95) 0%, rgba(28, 6, 10, 0.98) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.22), inset 0 0 15px rgba(239, 68, 68, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fb-tile-overdue-alert:hover {
  border-color: #ef4444;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.38);
  transform: translateY(-2px);
}

body.theme-light .fb-tile-overdue-alert {
  background: linear-gradient(145deg, #fff5f5 0%, #fee2e2 100%);
  border-color: #f87171;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.14);
}

.fb-overdue-tag {
  color: #f87171;
}
body.theme-light .fb-overdue-tag {
  color: #dc2626;
  font-weight: 800;
}

.fb-overdue-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
body.theme-light .fb-overdue-badge {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.fb-overdue-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.theme-light .fb-overdue-title {
  color: #7f1d1d;
}

.fb-overdue-sub {
  font-size: 0.68rem;
  color: #fca5a5;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.theme-light .fb-overdue-sub {
  color: #991b1b;
}

.fb-overdue-status {
  color: #f87171;
  font-weight: 700;
}
body.theme-light .fb-overdue-status {
  color: #dc2626;
}

.fb-overdue-desc {
  font-size: 0.68rem;
  color: #e2e8f0;
  line-height: 1.35;
  margin-top: 4px;
  opacity: 0.9;
}
body.theme-light .fb-overdue-desc {
  color: #4b5563;
  opacity: 1;
}

.fb-overdue-footer {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.theme-light .fb-overdue-footer {
  border-top-color: #fca5a5;
}

.fb-overdue-footer-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fca5a5;
}
body.theme-light .fb-overdue-footer-text {
  color: #991b1b;
}

.fb-overdue-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}
body.theme-light .fb-overdue-btn {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* ── 3. TILE 3: 3RD BOX (SINGLE BOX FILL, CHIEF EDITOR 5-STAR STORY) ── */
.fb-tile-story-card,
.fb-tile-mockup-story {
  grid-column: span 2;
  padding: 13px 15px;
  background: linear-gradient(145deg, rgba(34, 22, 16, 0.95) 0%, rgba(20, 16, 24, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.12), inset 0 0 15px rgba(245, 158, 11, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fb-tile-story-card:hover,
.fb-tile-mockup-story:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

body.theme-light .fb-tile-story-card,
body.theme-light .fb-tile-mockup-story {
  background: linear-gradient(145deg, #fffdfa 0%, #fef3c7 100%);
  border-color: #fcd34d;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}

.fb-story-tag {
  color: #fbbf24;
}
body.theme-light .fb-story-tag {
  color: #b45309;
  font-weight: 800;
}

.fb-story-star-badge {
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}
body.theme-light .fb-story-star-badge {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.fb-story-cat-badge {
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
body.theme-light .fb-story-cat-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.fb-story-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.theme-light .fb-story-title {
  color: #0f172a;
}

.fb-story-author {
  font-size: 0.68rem;
  color: #cbd5e1;
  margin-top: 4px;
}
body.theme-light .fb-story-author {
  color: #475569;
}

.fb-story-footer {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.theme-light .fb-story-footer {
  border-top-color: #fde68a;
}

.fb-story-footer-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}
body.theme-light .fb-story-footer-text {
  color: #78350f;
}

.fb-story-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}
body.theme-light .fb-story-btn {
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.fb-single-box-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── 4. TILE 4: 6 SQUIRCLE ACTION BUTTONS (INDIGO / MULTI-ACCENT) ── */
.fb-tile-squircles {
  grid-column: span 3;
  padding: 16px;
  background: linear-gradient(145deg, rgba(22, 24, 38, 0.95) 0%, rgba(16, 17, 24, 0.98) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: center;
}

.fb-tile-squircles:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

body.theme-light .fb-tile-squircles {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.fb-squircle-btn {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.48rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.fb-squircle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sq-color, var(--saffron));
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.theme-light .fb-squircle-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-light .fb-squircle-btn:hover {
  background: #ffffff;
  border-color: var(--sq-color, var(--saffron));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme-light .fb-squircle-btn[data-action="tasks"] { color: #d97706 !important; --sq-color: #d97706; }
body.theme-light .fb-squircle-btn[data-action="report"] { color: #0284c7 !important; --sq-color: #0284c7; }
body.theme-light .fb-squircle-btn[data-action="trash"] { color: #dc2626 !important; --sq-color: #dc2626; }
body.theme-light .fb-squircle-btn[data-action="tracker"] { color: #4f46e5 !important; --sq-color: #4f46e5; }
body.theme-light .fb-squircle-btn[data-action="vault"] { color: #e11d48 !important; --sq-color: #e11d48; }
body.theme-light .fb-squircle-btn[data-action="reviews"] { color: #9333ea !important; --sq-color: #9333ea; }

.fb-squircle-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 6px #ef4444;
}

/* ── 5. TILE 5: AVATAR / PORTRAIT CARD (GOLDEN ACCENT) ── */
.fb-tile-avatar {
  grid-column: span 2;
  padding: 0;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}

.fb-tile-avatar:hover {
  border-color: var(--saffron);
}

.fb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.fb-tile-avatar:hover .fb-avatar-img {
  transform: scale(1.06);
}

.fb-avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  color: #ffffff;
}

/* ── 6. TILE 6: ABOUT / MISSION (DEEP NAVY & BLUE GLOW) ── */
.fb-tile-about {
  grid-column: span 4;
  min-height: 150px;
  background: linear-gradient(145deg, rgba(16, 25, 42, 0.95) 0%, rgba(14, 18, 28, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fb-tile-about:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

body.theme-light .fb-tile-about {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
}

.fb-about-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 6px 0 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.theme-light .fb-about-quote {
  color: #0f172a;
  text-shadow: none;
}

.fb-tile-about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.fb-tile-recent-post {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(16, 185, 129, 0.06);
}

.fb-tile-recent-post:hover {
  border-color: rgba(16, 185, 129, 0.75) !important;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25), inset 0 0 24px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.fb-tile-recent-post:hover img {
  transform: scale(1.05);
}

body.theme-light .fb-tile-recent-post {
  background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%) !important;
  border-color: #86efac !important;
}

body.theme-light .fb-tile-recent-post .fb-about-quote {
  color: #064e3b !important;
}

/* ── ULTRA-PREMIUM RECENT POST SHOWCASE & GLASS CONTROLS ── */
.fb-post-slider-body {
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-post-slider-body.slide-out {
  opacity: 0;
  transform: translateY(6px);
}

.fb-post-slider-body.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Glass Slider Navigation Controls */
.fb-slider-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 3px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.theme-light .fb-slider-nav-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.fb-slider-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-slider-btn:hover {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

body.theme-light .fb-slider-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

body.theme-light .fb-slider-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.fb-slider-counter {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: #34d399;
  padding: 0 4px;
  letter-spacing: 0.04em;
}

body.theme-light .fb-slider-counter {
  color: #059669;
}

/* Editorial Story Typography & Meta Chips */
.fb-recent-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 2px 0 4px 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-light .fb-recent-title {
  color: #0f172a;
  text-shadow: none;
}

.fb-recent-subtext {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.42;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-light .fb-recent-subtext {
  color: #475569;
}

.fb-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 600;
  color: #e2e8f0;
}

body.theme-light .fb-meta-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.fb-approval-stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.12) 100%);
  color: #fbbf24;
  border: 1.2px solid rgba(245, 158, 11, 0.45);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.theme-light .fb-approval-stamp-pill {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  border-color: #fde68a;
  box-shadow: none;
}

/* ── DAILY MOTIVATION QUOTE BOX (IN GREETING CARD) ── */
.fb-quote-box {
  background: linear-gradient(145deg, rgba(20, 15, 8, 0.95) 0%, rgba(12, 12, 16, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 12px;
  padding: 8px 12px;
  max-width: 215px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(245, 158, 11, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

body.theme-light .fb-quote-box {
  background: #ffffff;
  border-color: #fde68a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.fb-quote-tag {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.fb-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.34;
  color: #f1f5f9;
  margin: 1px 0;
}

body.theme-light .fb-quote-text {
  color: #334155;
}

.fb-quote-author {
  font-size: 0.56rem;
  color: #94a3b8;
  font-weight: 700;
  text-align: right;
  margin-top: 1px;
}

body.theme-light .fb-quote-author {
  color: #d97706;
}

/* ── 7. TILE 7: EDITORIAL KANBAN WORKFLOW (FULL-BOX FILL) ── */
.fb-tile-laptop {
  grid-column: span 3;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(28, 18, 46, 0.95) 0%, rgba(16, 16, 30, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  min-height: 150px;
}

.fb-tile-laptop:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

body.theme-light .fb-tile-laptop {
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 100%);
  border-color: #e9d5ff;
}

/* Full-box interactive Mini-Kanban Grid */
.fb-kanban-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 5px;
}

.fb-kanban-col-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: all 0.2s ease;
}

.fb-kanban-col-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--col-color, var(--saffron));
  transform: translateY(-1px);
}

body.theme-light .fb-kanban-col-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.fb-kanban-col-title {
  font-size: 0.54rem;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-kanban-col-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--col-color, #ffffff);
}

.fb-kanban-prog-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

/* ── 8. TILE 8: AUGUST 5-STAR QUALITY LEADERBOARD (POSTER DESIGN - STATIC) ── */
.fb-tile-leaderboard {
  grid-column: span 3;
  min-height: 165px;
  padding: 12px 14px;
  background: radial-gradient(circle at 90% 10%, rgba(163, 230, 53, 0.28) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.22) 0%, transparent 50%),
              linear-gradient(155deg, #072317 0%, #04140d 100%);
  border: 1.5px solid rgba(132, 204, 22, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(132, 204, 22, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.fb-tile-leaderboard:hover {
  border-color: #a3e635;
  box-shadow: 0 10px 30px rgba(132, 204, 22, 0.25);
}

body.theme-light .fb-tile-leaderboard {
  background: radial-gradient(circle at 90% 10%, rgba(163, 230, 53, 0.2) 0%, transparent 45%),
              linear-gradient(155deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
}

/* Floating Asterisks / Sparkles */
.fb-poster-sparkle {
  position: absolute;
  font-size: 1.15rem;
  color: #a3e635;
  opacity: 0.65;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #a3e635);
  animation: fbSparkleFloat 4s ease-in-out infinite alternate;
}

@keyframes fbSparkleFloat {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-3px) rotate(15deg) scale(1.08); }
}

/* Top Meta Header */
.fb-poster-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.theme-light .fb-poster-top-bar {
  color: #15803d;
}

/* Serif Editorial Headline */
.fb-poster-headline {
  font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  line-height: 1.22;
  margin: 4px 0 6px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.015em;
}

body.theme-light .fb-poster-headline {
  color: #064e3b;
  text-shadow: none;
}

/* Center Trophy Visual Layout */
.fb-poster-center-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 6px;
  align-items: center;
  margin: 3px 0 5px 0;
}

.fb-poster-quote-left,
.fb-poster-quote-right {
  font-size: 0.55rem;
  line-height: 1.35;
  color: #e2e8f0;
  font-weight: 500;
  opacity: 0.92;
}

body.theme-light .fb-poster-quote-left,
body.theme-light .fb-poster-quote-right {
  color: #334155;
}

.fb-poster-trophy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fb-poster-trophy-container::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32) 0%, rgba(163, 230, 53, 0.15) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: fbTrophyAura 3s ease-in-out infinite alternate;
}

@keyframes fbTrophyAura {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.fb-poster-trophy-img {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(251, 191, 36, 0.4));
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-tile-leaderboard:hover .fb-poster-trophy-img {
  transform: scale(1.1) translateY(-3px);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

/* Bottom Profile Strip */
.fb-poster-winner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(132, 204, 22, 0.25);
  border-radius: 10px;
  padding: 4px 8px;
}

body.theme-light .fb-poster-winner-strip {
  background: #ffffff;
  border-color: #86efac;
}

.fb-poster-winner-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-poster-winner-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid #a3e635;
  object-fit: cover;
}

.fb-poster-winner-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
}

body.theme-light .fb-poster-winner-name {
  color: #0f172a;
}

.fb-poster-winner-role {
  font-size: 0.54rem;
  color: #86efac;
  font-weight: 600;
}

body.theme-light .fb-poster-winner-role {
  color: #16a34a;
}


/* ── 9. TILE 9: EDITORIAL OPERATIONS & DAILY PRODUCTION (CYAN / TEAL GLOW) ── */
.fb-tile-operations {
  grid-column: span 5;
  min-height: 145px;
  padding: 13px 15px;
  background: linear-gradient(145deg, rgba(14, 28, 38, 0.95) 0%, rgba(12, 18, 28, 0.98) 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.fb-tile-operations:hover {
  border-color: rgba(14, 165, 233, 0.5);
}

body.theme-light .fb-tile-operations {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
}

/* Logged-in Creator Badge in Operations Card */
.fb-logged-creator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 700;
}

body.theme-light .fb-logged-creator-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Topic Creator Pill in Editorial Queue Table */
.fb-topic-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

body.theme-light .fb-topic-creator-pill {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.fb-ops-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

body.theme-light .fb-ops-title {
  color: #0f172a;
}

.fb-ops-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

body.theme-light .fb-ops-sub {
  color: #64748b;
}

.fb-input-group-pill {
  display: flex;
  align-items: center;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 3px 3px 3px 12px;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.fb-input-group-pill:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

body.theme-light .fb-input-group-pill {
  background: #ffffff;
  border-color: #cbd5e1;
}

.fb-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.78rem;
  color: #ffffff;
}

body.theme-light .fb-input-field {
  color: #0f172a;
}

.fb-input-field::placeholder {
  color: #64748b;
}

.fb-subscribe-btn {
  background: linear-gradient(135deg, var(--saffron) 0%, #d97706 100%);
  border: none;
  border-radius: 9px;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fb-subscribe-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* ── 10. TILE 10: HERITAGE CATEGORIES / STACK (EMERALD GLOW) ── */
.fb-tile-stack {
  grid-column: span 3;
  min-height: 145px;
  padding: 13px 15px;
  background: linear-gradient(145deg, rgba(14, 28, 20, 0.95) 0%, rgba(12, 20, 16, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.fb-tile-stack:hover {
  border-color: rgba(16, 185, 129, 0.45);
}

body.theme-light .fb-tile-stack {
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #a7f3d0;
}

.fb-stack-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

body.theme-light .fb-stack-title {
  color: #0f172a;
}

.fb-stack-squircles {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.fb-category-squircle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-category-squircle:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--cat-color, var(--saffron));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

body.theme-light .fb-category-squircle {
  background: #ffffff;
  border-color: #e2e8f0;
}

/* ── 11. TILE 11: THEME SWITCH (GOLDEN OBSIDIAN) ── */
.fb-tile-theme {
  grid-column: span 1;
  min-height: 170px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(28, 22, 14, 0.95) 0%, rgba(18, 16, 20, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-tile-theme:hover {
  border-color: var(--saffron);
}

body.theme-light .fb-tile-theme {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fde68a;
}

.fb-theme-switch-pill {
  width: 44px;
  height: 74px;
  background: #090a0d;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.theme-light .fb-theme-switch-pill {
  background: #e2e8f0;
  border-color: #f59e0b;
}

.fb-theme-switch-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .fb-theme-switch-thumb {
  background: #ffffff;
  color: #d97706;
}

/* ── 12. TILE 12: DR. TEJASWINI MA'AM'S HALL OF FAME (ROYAL PURPLE & MAGENTA) ── */
.fb-tile-hall-of-fame {
  grid-column: span 3;
  min-height: 170px;
  background: linear-gradient(145deg, rgba(34, 18, 46, 0.95) 0%, rgba(18, 14, 28, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.32);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.fb-tile-hall-of-fame:hover {
  border-color: #c084fc;
}

body.theme-light .fb-tile-hall-of-fame {
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 100%);
  border-color: #e9d5ff;
}

.fb-hof-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

body.theme-light .fb-hof-headline {
  color: #0f172a;
}

.fb-copy-btn {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(147, 51, 234, 0.35) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 12px;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: fit-content;
}

.fb-copy-btn:hover {
  background: rgba(168, 85, 247, 0.4);
  border-color: #c084fc;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

body.theme-light .fb-copy-btn {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7e22ce;
}

body.theme-light .fb-copy-btn:hover {
  background: #e9d5ff;
  color: #6b21a8;
}

/* ── SMOOTH ANIMATED WORKFLOW STAGE MARQUEE & GLIMPSE CHIPS ── */
.bento-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.bento-marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: bentoScrollMarquee 38s linear infinite;
  will-change: transform;
}

.bento-marquee-wrapper:hover .bento-marquee-track {
  animation-play-state: paused;
}

@keyframes bentoScrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.bento-stage-glimpse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e4e4e7;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.bento-stage-glimpse:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--stage-color, var(--saffron));
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

body.theme-light .bento-stage-glimpse {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-light .bento-stage-glimpse:hover {
  border-color: var(--stage-color, var(--saffron));
  color: #0f172a;
}

.bento-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-color, var(--saffron));
  box-shadow: 0 0 8px var(--stage-color, var(--saffron));
}

.bento-stage-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--stage-color, #fbbf24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .bento-stage-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.bento-stage-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--stage-color, var(--saffron));
  color: #ffffff;
}

/* ── RESPONSIVE BREAKPOINTS FOR BENTO SHELL ── */
@media (max-width: 1200px) {
  .fb-tile-greeting { grid-column: span 6; }
  .fb-tile-mockup-ops { grid-column: span 3; }
  .fb-tile-mockup-story { grid-column: span 3; }
  .fb-tile-squircles { grid-column: span 6; }
  .fb-tile-avatar { grid-column: span 3; }
  .fb-tile-about { grid-column: span 5; }
  .fb-tile-laptop { grid-column: span 4; }
  .fb-tile-leaderboard { grid-column: span 6; }
  .fb-tile-operations { grid-column: span 6; }
  .fb-tile-stack { grid-column: span 4; }
  .fb-tile-theme { grid-column: span 2; }
  .fb-tile-hall-of-fame { grid-column: span 6; }
}

@media (max-width: 768px) {
  .framer-bento-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }
  .fb-tile {
    grid-column: span 1 !important;
  }
  .fb-greeting-top-split {
    flex-direction: column;
  }
  .fb-big-timer-box {
    width: 100%;
    margin-top: 10px;
  }
}

/* 10-Second Time-Bomb File Deletion Modal */
.timebomb-modal-card {
  max-width: 480px;
  background: #0f172a;
  border: 2px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3), 0 0 80px rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.theme-light .timebomb-modal-card {
  background: #ffffff;
  border-color: #fca5a5;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.18);
}

.timebomb-top-header {
  margin-bottom: 16px;
}

.timebomb-icon-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.16);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
}

.timebomb-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

body.theme-light .timebomb-title {
  color: #0f172a;
}

.timebomb-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

body.theme-light .timebomb-desc {
  color: #64748b;
}

.timebomb-counter-section {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.timebomb-digits-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1b4b 0%, #31102b 100%);
  border: 3px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: bombPulse 1s ease-in-out infinite;
}

body.theme-light .timebomb-digits-circle {
  background: #fef2f2;
  color: #dc2626;
}

#timebomb-seconds-left {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  color: #ef4444;
}

.timebomb-sec-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

@keyframes bombPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 35px rgba(239, 68, 68, 0.75); }
}

.timebomb-fuse-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

body.theme-light .timebomb-fuse-track {
  background: #f1f5f9;
}

.timebomb-fuse-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 6px;
  transition: width 1s linear;
  box-shadow: 0 0 10px #ef4444;
}

.timebomb-target-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  margin: 14px 0 18px;
}

body.theme-light .timebomb-target-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.timebomb-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-timebomb-cancel {
  flex: 1;
  padding: 11px 16px;
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid #10b981;
  color: #10b981;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-timebomb-cancel:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-timebomb-delete {
  padding: 11px 18px;
  background: #ef4444;
  border: 1.5px solid #ef4444;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-timebomb-delete:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

/* Restricted Recycle Bin Modal */
.restricted-modal-card {
  max-width: 460px;
  background: #0f172a;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 26px;
}

body.theme-light .restricted-modal-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.restricted-shield-glow {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}

.restricted-contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0 6px;
  text-align: left;
}

body.theme-light .restricted-contact-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.restricted-admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* STREAMLINED VAULT SIMPLE CALENDAR NAVIGATOR */
.vault-simple-nav-bar {
  background: var(--bg-card, #131722);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.theme-light .vault-simple-nav-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vault-simple-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vault-simple-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 10px;
  border-radius: 20px;
}

.vault-simple-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 10px;
}

body.theme-light .vault-simple-filter-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.vault-simple-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.vault-simple-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
}

body.theme-light .vault-simple-select {
  color: #0f172a;
}

.vault-simple-select option {
  background: #181c2b;
  color: #ffffff;
}

body.theme-light .vault-simple-select option {
  background: #ffffff;
  color: #0f172a;
}

.vault-simple-date-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: monospace;
}

body.theme-light .vault-simple-date-input {
  color: #0f172a;
}

.vault-simple-nav-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-simple-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

body.theme-light .vault-simple-stat-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.btn-vault-open {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-vault-open:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #f59e0b !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
  color: #fbbf24 !important;
}

body.theme-light .btn-vault-open {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
}

body.theme-light .btn-vault-open:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   ACTION BUTTON HORIZONTAL ALIGNMENT & PADDING FIX
   ========================================================================== */
.col-action-cell {
  white-space: nowrap !important;
  min-width: 180px !important;
  width: 180px !important;
}

.action-btn-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.action-btn-group .btn {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* ==========================================================================
   AUTOMATIC CALENDAR PICKER INPUT STYLES
   ========================================================================== */
input[type="date"],
input[type="datetime-local"] {
  cursor: pointer !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  padding: 3px;
  border-radius: 4px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.theme-dark input[type="date"]::-webkit-calendar-picker-indicator,
body.theme-dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(350deg) !important;
  opacity: 0.9 !important;
}

body.theme-light input[type="date"]::-webkit-calendar-picker-indicator,
body.theme-light input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) !important;
  opacity: 0.85 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1 !important;
  transform: scale(1.15);
}

/* ==========================================================================
   COLLAPSED SIDEBAR FLOATING TOOLTIPS (ICON HOVER TOOLTIPS)
   ========================================================================== */
.app-sidebar.collapsed {
  overflow: visible !important;
}

.app-sidebar.collapsed .sidebar-nav {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.app-sidebar.collapsed .nav-link {
  position: relative !important;
  overflow: visible !important;
}

.app-sidebar.collapsed .nav-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.05s ease, transform 0.05s ease, visibility 0.05s ease !important;
  z-index: 99999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-sidebar.collapsed .nav-link[data-tooltip]::before {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  border-width: 5px 7px 5px 0;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.05s ease, transform 0.05s ease, visibility 0.05s ease !important;
  z-index: 99999;
}

.app-sidebar.collapsed .nav-link[data-tooltip]:hover::after,
.app-sidebar.collapsed .nav-link[data-tooltip]:hover::before {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) translateX(0px) !important;
}

/* Light Theme Tooltip Arrow & Card Override */
body.theme-light .app-sidebar.collapsed .nav-link[data-tooltip]::after {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

body.theme-light .app-sidebar.collapsed .nav-link[data-tooltip]::before {
  border-color: transparent #0f172a transparent transparent !important;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN STYLES
   ========================================================================== */
.login-page-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #070d1e 0%, #0f1836 50%, #091026 100%);
  padding: 24px;
}

body.theme-light .login-page-container {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
}

.login-card-wrapper {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-logo-ring {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.login-brand-img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.login-tab-bar {
  display: flex;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.login-tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.login-tab-btn.active {
  background: var(--saffron);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.login-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.login-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-login {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-login label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input-login {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input-login:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input-login {
  padding-right: 44px;
}

.btn-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  font-size: 0.95rem;
}

.btn-login-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: var(--transition-fast);
  margin-top: 8px;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.demo-accounts-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.demo-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.demo-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.demo-pill:hover {
  border-color: var(--saffron);
  background: rgba(245, 158, 11, 0.08);
}

.demo-pill strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.demo-pill small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.avatar-tiny {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.login-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   🌟 CIRCULAR WORKFLOW PROGRESS POPUP MODAL STYLES
   ========================================================================== */
.sync-modal-card {
  max-width: 440px !important;
  padding: 32px 24px !important;
  background: var(--bg-card, #111827) !important;
  border: 1px solid var(--saffron, #f59e0b) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.25) !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sync-animation-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sync-progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.sync-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.sync-ring-progress {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 364.42;
  stroke-dashoffset: 364.42;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.sync-ring-progress.complete {
  stroke: #10b981 !important;
}

.sync-ring-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sync-icon-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sync-percent-text {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary, #ffffff);
}

.sync-modal-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 6px;
}

.sync-modal-status {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 18px;
  line-height: 1.4;
}

.sync-steps-indicator {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.sync-step-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim, #64748b);
  transition: all 0.2s ease;
}

.sync-step-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.sync-step-pill.complete {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

/* ==========================================================================
   MODERN DRIVER.JS GUIDED TOUR OVERRIDES (HERITAGE PULSE THEME)
   ========================================================================== */
.driver-popover {
  background: #111827 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.15) !important;
  color: #f8fafc !important;
  padding: 18px 22px !important;
  max-width: 350px !important;
  backdrop-filter: blur(12px) !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
}

.driver-popover-title {
  font-family: var(--font-display, 'Outfit', sans-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #f59e0b !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em !important;
}

.driver-popover-description {
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  color: #cbd5e1 !important;
  margin-bottom: 16px !important;
}

.driver-popover-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.driver-popover-progress-text {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
}

.driver-popover-footer button {
  background: var(--bg-card, #1e293b) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-shadow: none !important;
}

.driver-popover-footer button:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.driver-popover-navigation-btns {
  display: flex !important;
  gap: 6px !important;
}

.driver-popover-next-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.driver-popover-next-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45) !important;
}

.driver-popover-close-btn {
  color: #94a3b8 !important;
}

.driver-popover-close-btn:hover {
  color: #f8fafc !important;
}

.driver-popover-arrow {
  border-color: #111827 !important;
}






