/* ==========================================================================
   LCE (lowkey-chopped-elite) - Modern Rounded shadcn/ui Purple Theme
   Tokens: Obsidian Violet background, Rich Purple accents (#8b5cf6),
   Inter typography, rounded-xl components, and translucent glass.
   ========================================================================== */

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

:root {
  --background: 265 32% 4.5%;         /* #090710 obsidian deep violet */
  --foreground: 260 10% 98%;          /* #faf8ff */
  
  --card: 265 26% 7.5%;               /* #100c1e deep violet card */
  --card-foreground: 260 10% 98%;
  
  --popover: 265 26% 7.5%;
  --popover-foreground: 260 10% 98%;
  
  --primary: 267 88% 66%;             /* #8b5cf6 electric violet */
  --primary-hover: 267 88% 72%;       /* #a78bfa */
  --primary-foreground: 0 0% 100%;
  
  --secondary: 265 20% 13%;           /* #1b152d */
  --secondary-foreground: 260 10% 96%;
  
  --muted: 265 18% 13%;               /* #1a1529 */
  --muted-foreground: 265 14% 66%;    /* #a69db8 */
  
  --accent: 265 32% 17%;              /* #261942 */
  --accent-foreground: 265 90% 88%;
  
  --destructive: 0 62.8% 30.6%;       /* #7f1d1d */
  --destructive-foreground: 0 0% 98%;
  
  --border: 265 20% 15.5%;            /* #241d36 subtle violet border */
  --input: 265 20% 15.5%;
  --ring: 267 88% 66%;                /* #8b5cf6 */
  
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --glass-bg: rgba(14, 10, 26, 0.76);
  --glass-border: rgba(168, 85, 247, 0.16);
  --glass-glow: 0 0 25px rgba(139, 92, 246, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* App Viewport Container */
#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  background-color: hsl(var(--background));
}

/* ==========================================================================
   SHADCN FLOATING NAVBAR (Pill, Frosted Glass, Dark Zinc)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: 48px;
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  max-width: 92vw;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 16px;
  height: 16px;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  text-transform: lowercase;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1.2;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .brand-subtitle {
    display: none !important;
  }
}

/* Nav Tiles */
.nav-tiles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tile-btn {
  background: transparent;
  border: 1px solid transparent;
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tile-btn:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.nav-tile-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* shadcn rounded buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-radius: 8px;
}
.btn-ghost:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.btn-outline {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
}
.btn-outline:hover {
  background: hsl(var(--secondary));
  border-color: rgba(168, 85, 247, 0.25);
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  background: hsl(var(--primary-hover));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}

.btn-destructive {
  background: hsl(var(--destructive));
  color: #fff;
  border-radius: 10px;
}
.btn-destructive:hover {
  opacity: 0.9;
}

.badge-subtle {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   VIEWPORT & VIEW MANAGEMENT (Strict Specificity - Zero Collisions)
   ========================================================================== */
.main-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.view-section {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.view-section.active {
  display: flex !important;
}

/* ==========================================================================
   VIEW: HOME / SEARCH (Minimalist Purple Glass Hero)
   ========================================================================== */
#view-home.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 86px 20px 80px;
  overflow-y: auto !important;
}

.home-container {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: lowercase;
  line-height: 1.1;
  margin: 0;
  padding: 0;
}

.home-subtitle {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* shadcn command style search box */
.command-box {
  width: 100%;
  position: relative;
}

.command-bar {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(139, 92, 246, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-bar:focus-within {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 14px 34px rgba(0, 0, 0, 0.55);
}

.command-engine-select {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  font-weight: 500;
  padding: 4px;
  cursor: pointer;
  outline: none;
}
.command-engine-select option {
  background: #181328;
  color: #fff;
}

.command-sep {
  width: 1px;
  height: 20px;
  background: hsl(var(--border));
  margin: 0 10px;
}

.command-input {
  flex: 1;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 14px;
  outline: none;
  padding: 6px 4px;
}
.command-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.command-shortcut {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 6px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  margin-right: 8px;
}

/* Autocomplete Menu */
.autocomplete-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.autocomplete-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: hsl(var(--muted-foreground));
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}
.autocomplete-row:hover {
  background: rgba(139, 92, 246, 0.15);
  color: hsl(var(--foreground));
}
.autocomplete-row svg {
  width: 14px;
  height: 14px;
  color: #c084fc;
}

/* Quick App Cards */
.quick-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: hsl(var(--foreground));
}

.app-card:hover {
  background: hsl(var(--secondary));
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 18px rgba(139, 92, 246, 0.15);
}

.app-card svg {
  width: 22px;
  height: 22px;
  color: #d8b4fe;
}

.app-card span {
  font-size: 12.5px;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ==========================================================================
   VIEW: BROWSER VIEW (Multi-Tab Proxy)
   ========================================================================== */
#view-browser.active {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-top: 72px;
}

.browser-header {
  background: hsl(var(--card));
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Tab Strip */
.tab-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid hsl(var(--border));
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 500;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.tab-item:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.tab-item.active {
  background: hsl(var(--background));
  color: #e9d5ff;
  border-color: var(--glass-border);
  box-shadow: 0 1px 0 hsl(var(--background));
}

.tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.tab-close:hover {
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.1);
}

.tab-add-btn {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 6px;
}
.tab-add-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

/* Browser Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
}

.url-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  transition: border-color 0.15s ease;
}

.url-input-wrap:focus-within {
  border-color: rgba(168, 85, 247, 0.4);
}

.url-input-wrap svg {
  width: 14px;
  height: 14px;
  color: #c084fc;
}

.url-field {
  flex: 1;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 13px;
  outline: none;
}

.browser-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* Proxy Error Banner */
.proxy-error-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #7f1d1d;
  color: #fafafa;
  border: 1px solid #b91c1c;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* ==========================================================================
   VIEW: GAMES & APPS GRIDS (Rounded shadcn Cards)
   ========================================================================== */
#view-games.active,
#view-apps.active,
#view-settings.active {
  display: flex !important;
  flex-direction: column;
  padding: 84px 36px 80px;
  overflow-y: auto !important;
  gap: 22px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.page-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.page-header p {
  font-size: 13.5px;
  color: hsl(var(--muted-foreground));
  margin-top: 3px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-pill {
  background: hsl(var(--card));
  border: 1px solid var(--glass-border);
  color: hsl(var(--muted-foreground));
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: hsl(var(--foreground));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item:hover {
  background: hsl(var(--secondary));
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.12);
}

.card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

.card-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.card-info h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.card-info p {
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
  margin-top: 3px;
  line-height: 1.45;
}

/* ==========================================================================
   VIEW: AI CHAT (Clean use.ai Inspired Interface)
   ========================================================================== */
/* ==========================================================================
   VIEW: AI CHAT (Authentic ChatGPT Interface - Zero Overlap Grid)
   ========================================================================== */
#view-assistant.active {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  grid-template-rows: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  background-color: #09090b !important;
  box-sizing: border-box !important;
}

#view-assistant.sidebar-collapsed {
  grid-template-columns: 0 1fr !important;
}

/* Sidebar */
.chatgpt-sidebar {
  grid-column: 1;
  width: 260px;
  height: 100%;
  max-height: 100vh;
  background: #111113;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 72px 10px 14px 10px;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#view-assistant.sidebar-collapsed .chatgpt-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-right: none !important;
  overflow: hidden !important;
}

.chatgpt-sidebar-top {
  padding-bottom: 6px;
}

.chatgpt-new-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #ececec;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chatgpt-new-btn:hover {
  background: #212121;
  border-color: rgba(255, 255, 255, 0.22);
}

.chatgpt-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.chatgpt-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #b4b4b4;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.chatgpt-nav-item svg {
  width: 16px;
  height: 16px;
  color: #8e8e8e;
  flex-shrink: 0;
}

.chatgpt-nav-item:hover {
  background: #212121;
  color: #ececec;
}

.chatgpt-nav-item:hover svg {
  color: #ececec;
}

.chatgpt-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 10px 4px;
}

.chatgpt-pill-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-left: auto;
}

.chatgpt-recents-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 2px;
}

.chatgpt-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #b4b4b4;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.chatgpt-recent-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.chatgpt-recent-item:hover {
  background: #212121;
  color: #ececec;
}

.chatgpt-recent-item.active {
  background: #212121;
  color: #fff;
  font-weight: 500;
}

.chatgpt-recent-delete {
  opacity: 0;
  font-size: 14px;
  padding: 0 4px;
  color: #8e8e8e;
  cursor: pointer;
  transition: opacity 0.1s ease;
}

.chatgpt-recent-item:hover .chatgpt-recent-delete {
  opacity: 1;
}

.chatgpt-recent-delete:hover {
  color: #ef4444;
}

.chatgpt-sidebar-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chatgpt-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatgpt-user-card:hover {
  background: #212121;
}

.chatgpt-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #15803d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatgpt-avatar-circle.mini {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
}

.chatgpt-user-meta {
  display: flex;
  flex-direction: column;
}

.chatgpt-username {
  font-size: 12.5px;
  font-weight: 600;
  color: #ececec;
  line-height: 1.2;
}

.chatgpt-usertier {
  font-size: 11px;
  color: #8e8e8e;
}

.chatgpt-offer-btn {
  margin-left: auto;
  background: #2f2f2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ececec;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
}

.chatgpt-offer-btn:hover {
  background: #3a3a3a;
  color: #fff;
}

/* Main Canvas */
.chatgpt-main-stage {
  grid-column: 2;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #09090b;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.chatgpt-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-top: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  z-index: 10;
  background: transparent;
}

.chatgpt-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatgpt-toggle-btn {
  background: transparent;
  border: none;
  color: #b4b4b4;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.chatgpt-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.chatgpt-toggle-btn:hover {
  color: #fff;
  background: #212121;
}

.chatgpt-topbar-logo {
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.chatgpt-mode-switcher {
  display: flex;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  margin-left: 8px;
}

.chatgpt-mode-tab {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatgpt-mode-tab:hover {
  color: #fafafa;
}

.chatgpt-mode-tab.active {
  background: #27272a;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.chatgpt-mode-tab[data-mode="work"].active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.25) 100%);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.chatgpt-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatgpt-topbar-plugin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chatgpt-topbar-plugin-pill:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
}

.chatgpt-topbar-plugin-pill svg {
  width: 13px;
  height: 13px;
}

/* Chat & Work Stage Views */
#chatgpt-chat-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

#chatgpt-work-view {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  padding: 24px 32px 60px;
  gap: 20px;
  box-sizing: border-box;
}

#chatgpt-work-view.active {
  display: flex !important;
}

/* Messages Scroll Area */
.chatgpt-messages-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.chatgpt-messages-scroll:empty {
  display: none !important;
}

/* Hero Center Screen (Vertically Centered in Empty View) */
.chatgpt-hero-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 24px;
  text-align: center;
}

.chatgpt-hero-greeting {
  font-size: 32px;
  font-weight: 600;
  color: #ececec;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Docked Composer */
.chatgpt-composer-dock {
  width: 100%;
  padding: 10px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.chatgpt-composer-box {
  width: 100%;
  max-width: 760px;
  background: #212121;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.15s ease;
}

.chatgpt-composer-box:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
}

.chatgpt-attachments-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatgpt-attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2f2f2f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #ececec;
}

.chatgpt-attachment-chip img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

.chatgpt-chip-remove {
  cursor: pointer;
  opacity: 0.6;
  margin-left: 4px;
}

.chatgpt-chip-remove:hover {
  opacity: 1;
}

.chatgpt-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatgpt-attach-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.chatgpt-attach-circle:hover {
  background: #2f2f2f;
  border-color: rgba(255, 255, 255, 0.35);
}

.chatgpt-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #ececec;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 160px;
  font-family: inherit;
  padding: 4px 0;
}

.chatgpt-input-field::placeholder {
  color: #8e8e8e;
}

.chatgpt-composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chatgpt-action-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 9999px;
  color: #b4b4b4;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chatgpt-action-pill:hover,
.chatgpt-action-pill.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.chatgpt-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #b4b4b4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

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

.chatgpt-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chatgpt-send-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2f2f2f;
  color: #ececec;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chatgpt-send-circle.active {
  background: #fff;
  color: #000;
}

.chatgpt-send-circle svg {
  width: 15px;
  height: 15px;
}

.chatgpt-send-circle:hover {
  transform: scale(1.05);
}

/* Quick Action Pills */
.chatgpt-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chatgpt-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b4b4b4;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chatgpt-quick-btn svg {
  width: 15px;
  height: 15px;
  color: #8e8e8e;
}

.chatgpt-quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Chat Messages */
.chat-msg {
  max-width: 82%;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.65;
}

.chat-msg.user {
  align-self: flex-end;
  background: #2f2f2f;
  color: #fff;
  padding: 10px 18px;
  border-bottom-right-radius: 4px;
}

.chat-msg.assistant {
  align-self: flex-start;
  background: transparent;
  color: #ececec;
  padding: 4px 0;
  width: 100%;
  max-width: 100%;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #b4b4b4;
  margin-bottom: 8px;
}

.chat-msg-header svg {
  width: 15px;
  height: 15px;
  color: #10a37f;
}

.chat-msg-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #ececec;
}

.chat-msg-body p {
  margin-bottom: 12px;
}

.chat-msg-body pre {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  margin: 14px 0;
  position: relative;
}

.chat-msg-body code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.chat-msg-body pre code {
  background: transparent;
  padding: 0;
}

.chat-typing-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #ececec;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   VIEW: SETTINGS
   ========================================================================== */
.settings-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.settings-card p {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.disguise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.disguise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
  transition: all 0.15s ease;
}

.disguise-item:hover,
.disguise-item.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-color: rgba(168, 85, 247, 0.4);
}

.disguise-item img {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   MODAL GAME PLAYER (Rounded Glass)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #09090b;
  display: none;
  flex-direction: column;
  z-index: 900;
  border-top: 1px solid var(--glass-border);
}

.modal-header {
  min-height: 58px;
  background: #100f14;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  gap: 16px;
}

.game-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-viewer-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-viewer-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff;
}

.game-viewer-btn.close-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.game-viewer-btn.close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #000000;
}

/* ==========================================================================
   AGENT WORKSPACE (+ Work Mode)
   ========================================================================== */
.agent-work-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.agent-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(24, 24, 27, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.agent-hero-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fafafa;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.agent-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 8px;
  border-radius: 9999px;
}

.agent-hero-text p {
  font-size: 13.5px;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.5;
}

.agent-mission-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-mission-input {
  width: 100%;
  min-height: 85px;
  background: #121214;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fafafa;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.agent-mission-input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.agent-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.agent-template-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.agent-template-tag:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #e4e4e7;
  border-color: rgba(168, 85, 247, 0.3);
}

.agent-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.agent-run-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.15s ease;
}

.agent-run-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
}

.agent-run-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Agent Progress Stepper */
.agent-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.agent-step-item {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.agent-step-item.running {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.agent-step-item.completed {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}

.agent-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
}

.agent-step-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

.agent-step-item.running .agent-step-status {
  background: rgba(139, 92, 246, 0.25);
  color: #d8b4fe;
}

.agent-step-item.completed .agent-step-status {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

/* Agent Live Terminal Output */
.agent-console-card {
  background: #121214;
  border: 1px solid #27272a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.agent-console-header {
  height: 42px;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: #a1a1aa;
}

.agent-console-dots {
  display: flex;
  gap: 6px;
}

.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.agent-dot.red { background: #ef4444; }
.agent-dot.yellow { background: #eab308; }
.agent-dot.green { background: #22c55e; }

.agent-console-body {
  padding: 18px 20px;
  max-height: 420px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #d4d4d8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modal styles for Images & Plugins */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ai-modal-overlay.active {
  display: flex !important;
}

.ai-modal-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.ai-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.12s ease;
}

.ai-modal-close:hover {
  background: #27272a;
  color: #fff;
}

.ai-modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Image Studio Styles */
.image-studio-preview {
  width: 100%;
  min-height: 280px;
  background: #121214;
  border: 1px dashed #27272a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-studio-preview img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 10px;
}

.image-studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.image-studio-thumb {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #27272a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.image-studio-thumb:hover {
  border-color: rgba(168, 85, 247, 0.6);
  transform: scale(1.03);
}

/* Plugins Manager Cards */
.plugin-item-card {
  background: #121214;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease;
}

.plugin-item-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

.plugin-item-info {
  display: flex;
  gap: 12px;
}

.plugin-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plugin-icon-box svg {
  width: 18px;
  height: 18px;
}

.plugin-item-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 4px 0;
}

.plugin-item-text p {
  font-size: 12.5px;
  color: #a1a1aa;
  margin: 0;
  line-height: 1.4;
}

/* Custom Toggle Switch */
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #27272a;
  transition: .2s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: #8b5cf6;
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}
