/* ==========================================================================
   ULTRA-PREMIUM GLASSY DASHBOARD - SINGLE VIEWPORT - NO SCROLL
   Matches Login v7 & GlassyOtp frosted glass aesthetic exactly
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ======================== DESIGN TOKENS ======================== */
:root {
  --gd-font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --gd-font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Neon & Accent Highlights from Login v7 & Glassy OTP */
  --neon-lime: #ffd600;
  --neon-lime-bright: #fff04d;
  --neon-lime-glow: rgba(255, 214, 0, 0.48);
  --circuit-orange: #ff8c00;
  --circuit-gold: #ffaa00;

  --gd-gold: #ffd600;
  --gd-gold-bright: #fff04d;
  --gd-gold-glow: rgba(255, 214, 0, 0.45);
  --gd-amber: #ff8c00;
  --gd-blue: #4f46e5;
  --gd-blue-light: #6366f1;
  --gd-cyan: #06b6d4;
  --gd-cyan-glow: rgba(6, 182, 212, 0.35);
  --gd-emerald: #10b981;
  --gd-rose: #f43f5e;
  --gd-purple: #8b5cf6;

  /* Transitions */
  --gd-transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --gd-transition-fast: all 0.15s ease;
}

/* ======================== DARK THEME (Login v7 Cyber-Glass) ======================== */
.glassy-dashboard-container.theme-dark {
  --gd-glass-console-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(20, 20, 28, 0.45) 40%,
    rgba(10, 10, 14, 0.68) 100%
  );
  --gd-glass-card-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(22, 22, 30, 0.42) 50%,
    rgba(12, 12, 18, 0.58) 100%
  );
  --gd-glass-elevated-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(26, 28, 38, 0.55) 50%,
    rgba(14, 15, 22, 0.72) 100%
  );
  --gd-glass-subtle-bg: rgba(255, 255, 255, 0.035);
  --gd-glass-border: rgba(255, 255, 255, 0.14);
  --gd-glass-border-bright: rgba(255, 255, 255, 0.30);
  --gd-text-primary: #ffffff;
  --gd-text-secondary: rgba(255, 255, 255, 0.72);
  --gd-text-muted: rgba(255, 255, 255, 0.42);
  --gd-shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.55), 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  --gd-shadow-console: 0 30px 70px rgba(0, 0, 0, 0.80), 0 12px 30px rgba(0, 0, 0, 0.50), 0 0 40px rgba(255, 140, 0, 0.10);
  --gd-badge-bg: rgba(255, 255, 255, 0.06);
  --gd-input-bg: rgba(14, 14, 20, 0.50);
}

/* ======================== LIGHT THEME (Frosted Crystal) ======================== */
.glassy-dashboard-container.theme-light {
  --gd-glass-console-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.80) 0%,
    rgba(240, 243, 250, 0.68) 100%
  );
  --gd-glass-card-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(245, 247, 255, 0.72) 100%
  );
  --gd-glass-elevated-bg: rgba(255, 255, 255, 0.92);
  --gd-glass-subtle-bg: rgba(235, 240, 252, 0.65);
  --gd-glass-border: rgba(255, 255, 255, 0.70);
  --gd-glass-border-bright: rgba(255, 255, 255, 0.95);
  --gd-text-primary: #0f172a;
  --gd-text-secondary: #475569;
  --gd-text-muted: #94a3b8;
  --gd-shadow-card: 0 10px 24px -4px rgba(79, 70, 229, 0.08), 0 3px 10px -2px rgba(0, 0, 0, 0.03);
  --gd-shadow-console: 0 25px 60px rgba(79, 70, 229, 0.14), 0 10px 24px rgba(0, 0, 0, 0.05);
  --gd-badge-bg: rgba(0, 0, 0, 0.035);
  --gd-input-bg: rgba(255, 255, 255, 0.80);
}

/* ==========================================================================
   MAIN CONTAINER - 100% VIEWPORT FIT - ZERO SCROLL
   ========================================================================== */
.glassy-dashboard-container {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  position: relative;
  background: transparent !important;
  font-family: var(--gd-font-main);
  color: var(--gd-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(32px, 4vw, 64px) 14px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ======================== AMBIENT CYBER ORBS ======================== */
.gd-ambient-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.60;
  animation: gdOrbDrift 20s ease-in-out infinite alternate;
}

.gd-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 5%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.30) 0%, rgba(79, 70, 229, 0) 70%);
}

.gd-orb-2 {
  width: 460px;
  height: 460px;
  bottom: 0;
  right: 8%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.24) 0%, rgba(255, 140, 0, 0) 70%);
  animation-delay: -7s;
}

.gd-orb-3 {
  width: 340px;
  height: 340px;
  top: 35%;
  left: 45%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, rgba(6, 182, 212, 0) 70%);
  animation-delay: -12s;
}

@keyframes gdOrbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.04); }
  100% { transform: translate(-25px, 35px) scale(0.97); }
}

/* ==========================================================================
   THE GRAND GLASS CONSOLE WINDOW - MATCHES LOGIN V7 FROSTED GLASS
   ========================================================================== */
.gd-glass-console {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1380px;
  height: 100%;
  max-height: calc(100vh - 60px);
  border-radius: 26px;
  /* DEEP GLASS BLUR - matching Login v7 exactly */
  backdrop-filter: blur(40px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.06);
  background: var(--gd-glass-console-bg);
  border: 1px solid var(--gd-glass-border);
  box-shadow: var(--gd-shadow-console),
              inset 0 1px 1px rgba(255, 255, 255, 0.35),
              inset 0 -1px 1px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-sizing: border-box;
}

/* Specular Top Edge Reflection from Login v7 */
.gd-glass-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 25%,
    rgba(255, 214, 0, 0.45) 50%,
    rgba(255, 255, 255, 0.65) 75%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 40;
}

/* Corner Chamfer Glow Accents from Login v7 */
.gd-corner-chip {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 25;
  border: 1.5px solid rgba(255, 214, 0, 0.35);
  box-shadow: 0 0 12px var(--gd-gold-glow);
}

.gd-chip-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 26px; }
.gd-chip-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 26px; }
.gd-chip-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 26px; }
.gd-chip-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 26px; }

/* ==========================================================================
   LEFT CURVED NAVIGATION DOCK - ANIMATED ICONS WITH HOVER GLOW
   ========================================================================== */
.gd-dock-rail {
  width: 68px;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gd-dock-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(3px 0 16px rgba(79, 70, 229, 0.40));
  z-index: 1;
}

.gd-dock-icons-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* ===== DOCK ICON ITEMS WITH ANIMATED HOVER GLOW ===== */
.gd-dock-icon-item {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HOVER GLOW EFFECT - Icons change color + neon glow on hover */
.gd-dock-icon-item:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
          drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  background: rgba(255, 255, 255, 0.08);
}

/* Active state - each icon type gets unique neon glow */
.gd-dock-icon-item.active {
  color: var(--gd-gold);
  filter: drop-shadow(0 0 8px var(--gd-gold-glow))
          drop-shadow(0 0 16px rgba(255, 214, 0, 0.3));
  transform: translateY(-2px);
}

/* Active Grid Item - White Box */
.gd-dock-icon-item.active-white-box {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #ffffff !important;
  color: #4f46e5 !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20),
              0 0 20px rgba(99, 102, 241, 0.25),
              inset 0 1px 1px rgba(255, 255, 255, 0.95);
  transform: none;
  filter: none;
}

.gd-dock-icon-item.active-white-box:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25),
              0 0 28px rgba(99, 102, 241, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.95);
  filter: none;
}

/* Green PRO Badge */
.gd-dock-green-pro-badge {
  position: absolute;
  top: 0;
  right: -9px;
  background: #4ade80;
  color: #064e3b;
  font-size: 7px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(74, 222, 128, 0.4);
  letter-spacing: 0.3px;
}

/* Yellow Unread Dot */
.gd-dock-yellow-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
  animation: gdPulse 2s infinite;
}

/* Green Active Dot */
.gd-dock-green-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: gdPulse 2s infinite 0.5s;
}

/* ==========================================================================
   MAIN VIEWPORT - NO SCROLL - FLEX COLUMN FIT
   ========================================================================== */
.gd-main-viewport {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
}

/* ==========================================================================
   ROW 1: TOP ACTION BAR
   ========================================================================== */
.gd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 14px;
  /* Glass card effect matching Login v7 */
  background: var(--gd-glass-card-bg);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--gd-glass-border);
  box-shadow: var(--gd-shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  height: 38px;
  box-sizing: border-box;
}

/* Left Tabs */
.gd-top-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
}

.gd-tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gd-text-muted);
  font-family: var(--gd-font-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gd-transition-smooth);
}

.gd-tab-btn:hover {
  color: var(--gd-text-primary);
  background: var(--gd-glass-subtle-bg);
}

.gd-tab-btn.active {
  color: var(--gd-text-primary);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--gd-glass-border-bright);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.30);
}

.gd-tab-btn.active .tab-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gd-gold);
  box-shadow: 0 0 8px var(--gd-gold);
}

/* Center Search Bar */
.gd-search-wrapper {
  position: relative;
  flex: 0 1 260px;
  min-width: 140px;
}

.gd-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gd-text-muted);
  pointer-events: none;
}

.gd-search-input {
  width: 100%;
  padding: 5px 30px 5px 28px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 10px;
  color: var(--gd-text-primary);
  font-family: var(--gd-font-main);
  font-size: 11px;
  outline: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--gd-transition-smooth);
  box-sizing: border-box;
}

.gd-search-input:focus {
  border-color: rgba(255, 214, 0, 0.60);
  box-shadow: 0 0 14px rgba(255, 214, 0, 0.22);
}

.gd-search-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
  color: var(--gd-text-muted);
  font-family: monospace;
}

/* Right Controls */
.gd-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Theme Switcher Pill */
.gd-theme-toggle {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 10px;
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  gap: 1px;
}

.gd-theme-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--gd-text-muted);
  cursor: pointer;
  transition: var(--gd-transition-fast);
}

.gd-theme-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gd-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Icon Buttons */
.gd-icon-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  color: var(--gd-text-muted);
  cursor: pointer;
  transition: var(--gd-transition-smooth);
}

.gd-icon-btn:hover {
  color: var(--gd-text-primary);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.gd-notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

/* Export Button */
.gd-export-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  color: var(--gd-text-primary);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gd-transition-smooth);
}

.gd-export-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translateY(-1px);
}

.gd-xls-tag {
  font-size: 8px;
  background: rgba(99, 102, 241, 0.20);
  color: #818cf8;
  padding: 1px 3px;
  border-radius: 3px;
}

/* Primary "Add new board" Button */
.gd-primary-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1f1f2a, #0e0f15);
  color: #ffffff;
  border: 1px solid rgba(255, 214, 0, 0.40);
  font-family: var(--gd-font-main);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.40), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transition: var(--gd-transition-smooth);
}

.gd-primary-btn:hover {
  border-color: var(--gd-gold);
  box-shadow: 0 5px 16px var(--gd-gold-glow), inset 0 1px 1px rgba(255, 255, 255, 0.40);
  transform: translateY(-1px);
}

/* ==========================================================================
   ROW 2: HERO GREETING & 4 QUICK CARDS - COMPACT
   ========================================================================== */
.gd-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 56px;
  max-height: 62px;
  box-sizing: border-box;
}

.gd-hero-greeting {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gd-hero-hello {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--gd-font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--gd-text-primary);
  line-height: 1.1;
  margin-bottom: 1px;
}

.gd-hero-bubble-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.30);
  font-size: 10px;
}

.gd-hero-subtitle-heading {
  font-family: var(--gd-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gd-text-primary);
  margin-bottom: 1px;
}

.gd-hero-desc {
  font-size: 10px;
  color: var(--gd-text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4 Quick Cards */
.gd-hero-cards-deck {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 100%;
}

.gd-quick-card {
  position: relative;
  /* GLASS CARD - matching Login v7 frosted glass */
  background: var(--gd-glass-card-bg);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--gd-glass-border);
  border-radius: 13px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--gd-shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.20);
  cursor: pointer;
  transition: var(--gd-transition-smooth);
  box-sizing: border-box;
}

.gd-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 0, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.60),
              0 0 18px rgba(255, 214, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.gd-quick-card.highlighted {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(20, 20, 26, 0.55));
  border-color: rgba(255, 214, 0, 0.40);
  box-shadow: 0 10px 26px -4px rgba(255, 214, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.30);
}

/* Dashed Add Card */
.gd-quick-card.dashed-add {
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background: var(--gd-glass-subtle-bg);
  justify-content: center;
}

.gd-quick-card.dashed-add:hover {
  border-color: var(--gd-gold);
  background: rgba(255, 214, 0, 0.05);
}

.gd-add-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.45);
}

.gd-quick-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gd-gold);
  flex-shrink: 0;
}

.gd-quick-card-title {
  font-family: var(--gd-font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--gd-text-primary);
  line-height: 1.15;
}

.gd-quick-card-caption {
  font-size: 9px;
  color: var(--gd-text-muted);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   ROW 3: THREE-COLUMN GRID - FILL REMAINING SPACE
   ========================================================================== */
.gd-grid-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1fr;
  gap: 8px;
  box-sizing: border-box;
}

.gd-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
}

/* ======================== GENERAL GLASS CARD ======================== */
.gd-card {
  position: relative;
  /* DEEP GLASS matching Login v7 OTP card */
  background: var(--gd-glass-card-bg);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--gd-glass-border);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: var(--gd-shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Card Header */
.gd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.gd-card-title {
  font-family: var(--gd-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gd-text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.gd-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gd-text-action {
  font-size: 10px;
  font-weight: 600;
  color: var(--gd-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--gd-transition-fast);
  display: flex;
  align-items: center;
  gap: 3px;
}

.gd-text-action:hover {
  color: var(--gd-gold);
}

/* ==========================================================================
   WIDGET: NOTIFICATIONS
   ========================================================================== */
.gd-card-notifs {
  flex: 0 0 auto;
  max-height: 150px;
}

.gd-notif-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.gd-notif-item {
  /* Glass sub-card */
  background: var(--gd-glass-subtle-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 10px;
  padding: 6px 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gd-notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.gd-notif-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gd-text-primary);
}

.gd-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gd-emerald);
  box-shadow: 0 0 8px var(--gd-emerald);
  animation: gdPulse 2s infinite;
}

@keyframes gdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.gd-item-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gd-text-muted);
}

.gd-micro-btn {
  background: transparent;
  border: none;
  color: var(--gd-text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--gd-transition-fast);
}

.gd-micro-btn:hover {
  color: var(--gd-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.gd-notif-desc {
  font-size: 10px;
  color: var(--gd-text-secondary);
  line-height: 1.25;
  margin-bottom: 3px;
}

.gd-notif-snippet {
  font-size: 9px;
  color: var(--gd-text-muted);
  font-style: italic;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-notif-meta-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gd-meta-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 500;
  color: var(--gd-text-muted);
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  padding: 1px 5px;
  border-radius: 5px;
}

.gd-empty-notif {
  font-size: 10px;
  color: var(--gd-text-muted);
  text-align: center;
  padding: 6px 0;
}

/* ==========================================================================
   WIDGET: TODAY TASKS
   ========================================================================== */
.gd-card-tasks {
  flex: 1;
  min-height: 0;
}

.gd-avatar-stack {
  display: flex;
  align-items: center;
}

.gd-stack-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gd-glass-border);
  margin-left: -5px;
  background: #2a2d3d;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gd-stack-avatar:first-child { margin-left: 0; }
.gd-stack-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gd-stack-more { background: #6366f1; }

.gd-task-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Custom scrollbar for glass aesthetic */
.gd-task-list::-webkit-scrollbar,
.gd-notif-stack::-webkit-scrollbar,
.gd-timeline-block::-webkit-scrollbar {
  width: 3px;
}

.gd-task-list::-webkit-scrollbar-track,
.gd-notif-stack::-webkit-scrollbar-track,
.gd-timeline-block::-webkit-scrollbar-track {
  background: transparent;
}

.gd-task-list::-webkit-scrollbar-thumb,
.gd-notif-stack::-webkit-scrollbar-thumb,
.gd-timeline-block::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.gd-task-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 7px;
  background: var(--gd-glass-subtle-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 10px;
  transition: var(--gd-transition-smooth);
}

.gd-task-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 214, 0, 0.20);
}

.gd-task-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gd-task-left-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gd-task-title { font-size: 10.5px; font-weight: 600; color: var(--gd-text-primary); }
.gd-task-date { font-size: 9px; color: var(--gd-text-muted); }

.gd-task-duration-pill {
  font-size: 9px;
  font-weight: 600;
  color: var(--gd-text-secondary);
  background: var(--gd-badge-bg);
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--gd-glass-border);
}

/* Progress Bar */
.gd-progress-wrapper { display: flex; align-items: center; gap: 6px; }
.gd-progress-val { font-size: 10px; font-weight: 700; color: var(--gd-text-primary); min-width: 24px; }

.gd-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
}

.gd-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
  transition: width 0.6s ease;
}

.gd-progress-fill.gold {
  background: linear-gradient(90deg, #ffd600, #ff8c00);
  box-shadow: 0 0 6px var(--gd-gold-glow);
}

.gd-progress-fill.emerald {
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.gd-task-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 9px;
  color: var(--gd-text-muted);
}

.gd-meta-counter { display: flex; align-items: center; gap: 2px; }

/* ==========================================================================
   WIDGET: ASSIGNMENTS
   ========================================================================== */
.gd-card-assign {
  flex: 1;
  min-height: 0;
}

.gd-filter-tags-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.gd-filter-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--gd-glass-border);
  background: var(--gd-badge-bg);
  color: var(--gd-text-muted);
  cursor: pointer;
  transition: var(--gd-transition-fast);
}

.gd-filter-tag.active {
  background: rgba(99, 102, 241, 0.20);
  border-color: rgba(99, 102, 241, 0.50);
  color: #818cf8;
}

.gd-featured-assignment {
  /* Glass elevated card */
  background: var(--gd-glass-elevated-bg);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--gd-glass-border);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--gd-shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.gd-assign-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.gd-assign-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gd-text-primary);
}

.gd-priority-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 5px;
  background: rgba(244, 63, 94, 0.14);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.30);
  text-transform: uppercase;
}

.gd-assign-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gd-tag-pill {
  font-size: 9px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.30);
}

.gd-assignee-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--gd-text-secondary);
}

.gd-assignee-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--gd-glass-border);
  overflow: hidden;
}

.gd-assignee-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gd-add-assign-btn {
  width: 100%;
  padding: 6px;
  border-radius: 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  background: var(--gd-glass-subtle-bg);
  color: var(--gd-text-secondary);
  font-family: var(--gd-font-main);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--gd-transition-smooth);
  flex-shrink: 0;
}

.gd-add-assign-btn:hover {
  border-color: var(--gd-gold);
  color: var(--gd-text-primary);
  background: rgba(255, 214, 0, 0.04);
}

/* ==========================================================================
   WIDGET: GO PREMIUM BANNER
   ========================================================================== */
.gd-premium-card {
  position: relative;
  border-radius: 16px;
  padding: 10px 12px;
  /* Premium gradient glass */
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 50%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 30px -6px rgba(79, 70, 229, 0.50),
              0 0 20px rgba(99, 102, 241, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.40);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.gd-premium-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.gd-premium-gift-wrap { margin-bottom: 3px; display: flex; align-items: center; justify-content: center; }
.gd-premium-title { font-family: var(--gd-font-heading); font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.gd-premium-desc { font-size: 9.5px; line-height: 1.3; opacity: 0.88; margin-bottom: 6px; max-width: 180px; }

.gd-premium-btn {
  padding: 5px 12px;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--gd-font-main);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.40);
  transition: var(--gd-transition-smooth);
}

.gd-premium-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

/* ==========================================================================
   WIDGET: CALENDAR TIMELINE
   ========================================================================== */
.gd-card-cal {
  flex: 0 0 auto;
  max-height: 170px;
}

.gd-calendar-days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  margin-bottom: 6px;
}

.gd-cal-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--gd-transition-fast);
}

.gd-cal-day-name { font-size: 8px; color: var(--gd-text-muted); font-weight: 600; }

.gd-cal-day-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gd-text-primary);
}

.gd-cal-day-cell:hover .gd-cal-day-num { background: rgba(255, 255, 255, 0.08); }

.gd-cal-day-cell.active .gd-cal-day-num {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.55);
}

.gd-timeline-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.gd-timeline-divider {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  color: var(--gd-text-muted);
}

.gd-timeline-line { flex: 1; border-bottom: 1px dashed var(--gd-glass-border); }

.gd-timeline-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  border-radius: 9px;
  background: var(--gd-glass-subtle-bg);
  border: 1px solid var(--gd-glass-border);
}

.gd-timeline-event-left { display: flex; align-items: center; gap: 6px; }

.gd-timeline-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gd-badge-bg);
  border: 1px solid var(--gd-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.gd-timeline-event-title { font-size: 10px; font-weight: 600; color: var(--gd-text-primary); }
.gd-timeline-event-sub { font-size: 9px; color: var(--gd-text-muted); }

/* ==========================================================================
   WIDGET: METRIC RINGS
   ========================================================================== */
.gd-card-rings {
  flex: 0 0 auto;
  padding: 6px 8px;
}

.gd-rings-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gd-ring-card {
  /* Glass sub-card */
  background: var(--gd-glass-subtle-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 11px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gd-ring-svg-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
}

.gd-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gd-ring-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gd-font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--gd-text-primary);
}

.gd-ring-label { font-size: 7px; font-weight: 800; letter-spacing: 0.3px; color: var(--gd-text-muted); text-transform: uppercase; margin-bottom: 1px; }
.gd-ring-category { font-family: var(--gd-font-heading); font-size: 10px; font-weight: 700; color: var(--gd-text-primary); margin-bottom: 1px; }
.gd-ring-caption { font-size: 8px; color: var(--gd-text-secondary); line-height: 1.15; margin-bottom: 3px; }

.gd-ring-check-btn {
  padding: 2px 7px;
  border-radius: 12px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.40);
}

/* ==========================================================================
   WIDGET: BOARD MEETING
   ========================================================================== */
.gd-board-card {
  flex: 1;
  min-height: 0;
}

.gd-meeting-time-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 3px;
}

.gd-blue-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}

.gd-meeting-desc {
  font-size: 10px;
  color: var(--gd-text-secondary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.gd-meeting-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
}

.gd-outline-btn {
  padding: 3px 8px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--gd-glass-border);
  color: var(--gd-text-secondary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gd-transition-smooth);
}

.gd-outline-btn:hover {
  color: var(--gd-text-primary);
  border-color: rgba(255, 255, 255, 0.30);
}

.gd-accent-solid-btn {
  padding: 3px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.40);
  transition: var(--gd-transition-smooth);
}

.gd-accent-solid-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.55);
}

/* ==========================================================================
   MODAL: ADD NEW ASSIGNMENT
   ========================================================================== */
.gd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gd-modal-box {
  width: 100%;
  max-width: 420px;
  /* Glass modal matching Login v7 card */
  background: var(--gd-glass-elevated-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--gd-glass-border-bright);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--gd-shadow-console),
              inset 0 1px 1px rgba(255, 255, 255, 0.30);
  position: relative;
  color: var(--gd-text-primary);
}

.gd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gd-modal-title {
  font-family: var(--gd-font-heading);
  font-size: 16px;
  font-weight: 800;
}

.gd-modal-form { display: flex; flex-direction: column; gap: 10px; }
.gd-form-group { display: flex; flex-direction: column; gap: 3px; }
.gd-form-label { font-size: 10px; font-weight: 700; color: var(--gd-text-secondary); }

.gd-form-input,
.gd-form-select {
  width: 100%;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--gd-text-primary);
  font-family: var(--gd-font-main);
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}

.gd-form-input:focus,
.gd-form-select:focus {
  border-color: var(--gd-gold);
  box-shadow: 0 0 10px var(--gd-gold-glow);
}

.gd-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

/* ==========================================================================
   INTERACTIVE DOCK VIEWS (MESSAGES, CALENDAR, NOTES, ANALYTICS, PROFILE, NOTIFS)
   ========================================================================== */

/* Universal View Transition Container */
.gd-view-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: gdFadeScaleIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gdFadeScaleIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   VIEW: MESSAGES & CHAT
   ========================================================================== */
.gd-messages-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.gd-chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}

.gd-chat-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 11px;
}

.gd-chat-search input {
  background: transparent;
  border: none;
  color: var(--gd-text-primary);
  font-family: inherit;
  font-size: 11px;
  width: 100%;
  outline: none;
}

.gd-threads-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
}

.gd-thread-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 11px;
  background: var(--gd-glass-subtle-bg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--gd-transition-fast);
  text-align: left;
  position: relative;
}

.gd-thread-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gd-glass-border);
}

.gd-thread-item.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.gd-thread-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.gd-thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gd-glass-border-bright);
}

.gd-status-dot-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #08080a;
}

.gd-thread-content {
  flex: 1;
  min-width: 0;
}

.gd-thread-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.gd-thread-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gd-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-thread-time {
  font-size: 9.5px;
  color: var(--gd-text-muted);
}

.gd-thread-snippet {
  font-size: 10.5px;
  color: var(--gd-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-chat-main-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.gd-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--gd-glass-border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.gd-chat-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gd-chat-messages-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gd-chat-bubble {
  max-width: 68%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.4;
  position: relative;
  box-sizing: border-box;
}

.gd-bubble-incoming {
  align-self: flex-start;
  background: var(--gd-glass-card-bg);
  border: 1px solid var(--gd-glass-border);
  color: var(--gd-text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gd-bubble-outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.75) 0%, rgba(99, 102, 241, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.gd-bubble-meta {
  font-size: 9px;
  opacity: 0.65;
  margin-top: 3px;
  display: flex;
  justify-content: flex-end;
}

.gd-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--gd-glass-border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.gd-chat-input {
  flex: 1;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: var(--gd-text-primary);
  outline: none;
  font-family: inherit;
}

.gd-chat-input:focus {
  border-color: var(--gd-gold);
  box-shadow: 0 0 12px var(--gd-gold-glow);
}

.gd-chat-send-btn {
  background: linear-gradient(135deg, #ffd600 0%, #ffaa00 100%);
  border: none;
  color: #08080a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--gd-transition-smooth);
  box-shadow: 0 0 14px rgba(255, 214, 0, 0.4);
  flex-shrink: 0;
}

.gd-chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 214, 0, 0.65);
}

/* ==========================================================================
   VIEW: CALENDAR & TIMELINE
   ========================================================================== */
.gd-calendar-full-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.gd-cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gd-month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.gd-weekday-head {
  font-size: 10px;
  font-weight: 700;
  color: var(--gd-text-muted);
  text-align: center;
  padding-bottom: 4px;
}

.gd-month-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--gd-glass-subtle-bg);
  border: 1px solid transparent;
  color: var(--gd-text-primary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--gd-transition-fast);
  position: relative;
}

.gd-month-day-cell:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gd-glass-border-bright);
}

.gd-month-day-cell.active {
  background: linear-gradient(135deg, #ffd600 0%, #ffaa00 100%);
  color: #08080a;
  font-weight: 700;
  box-shadow: 0 0 14px var(--gd-gold-glow);
}

.gd-day-event-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6366f1;
  position: absolute;
  bottom: 3px;
}

.gd-agenda-timeline {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
}

.gd-agenda-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--gd-glass-card-bg);
  border: 1px solid var(--gd-glass-border);
  transition: var(--gd-transition-smooth);
}

.gd-agenda-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(3px);
}

/* ==========================================================================
   VIEW: NOTES & EDITOR WORKSPACE
   ========================================================================== */
.gd-notes-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.gd-note-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.gd-note-textarea {
  flex: 1;
  background: var(--gd-input-bg);
  border: 1px solid var(--gd-glass-border);
  border-radius: 11px;
  padding: 10px;
  color: var(--gd-text-primary);
  font-family: inherit;
  font-size: 11.5px;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.gd-note-textarea:focus {
  border-color: var(--gd-gold);
  box-shadow: 0 0 12px var(--gd-gold-glow);
}

.gd-notes-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding-right: 4px;
  align-content: start;
}

.gd-note-item-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gd-glass-card-bg);
  border: 1px solid var(--gd-glass-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--gd-transition-smooth);
}

.gd-note-item-card:hover {
  border-color: var(--gd-glass-border-bright);
  transform: translateY(-2px);
  box-shadow: var(--gd-shadow-card);
}

/* ==========================================================================
   VIEW: ANALYTICS & PERFORMANCE
   ========================================================================== */
.gd-analytics-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
}

.gd-metrics-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gd-kpi-card {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gd-glass-card-bg);
  border: 1px solid var(--gd-glass-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gd-kpi-value {
  font-family: var(--gd-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--gd-text-primary);
}

.gd-analytics-charts-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   VIEW: PROFILE & SECURITY
   ========================================================================== */
.gd-profile-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
}

.gd-profile-badge-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--gd-glass-card-bg);
  border: 1px solid var(--gd-glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* ==========================================================================
   VIEW: NOTIFICATIONS CENTER
   ========================================================================== */
.gd-notifs-center-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
}

.gd-notifs-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

/* ==========================================================================
   VIEW: WORKFLOWS & INTEGRATIONS
   ========================================================================== */
.gd-grid-showcase {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
}

