/* ==========================================================================
   MacBrew — Modern Dark Mode & Glassmorphism Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0a0d14;
  --bg-card: rgba(18, 22, 33, 0.75);
  --bg-card-hover: rgba(28, 34, 50, 0.85);
  --bg-card-selected: rgba(20, 36, 60, 0.9);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(56, 189, 248, 0.25);

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Outfit', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-backdrop: blur(16px) saturate(180%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.1) rotate(-5deg);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
  transition: var(--transition-fast);
}

.search-container input {
  width: 100%;
  padding: 0.65rem 2.6rem 0.65rem 2.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-normal);
}

.search-container input::placeholder {
  color: var(--text-subtle);
}

.search-container input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px var(--border-glow);
}

.search-container input:focus + .search-icon {
  color: var(--accent-cyan);
}

.clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.clear-btn:hover {
  color: var(--text-main);
}

/* Header Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions .btn,
.header-actions .lang-switcher {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
}

.lang-switcher {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.lang-switcher:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Hero & Presets
   ========================================================================== */

.hero-section {
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.hero-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-header h1 span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.8rem auto;
}

/* Presets Pills */
.presets-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(18, 26, 43, 0.75) 0%, rgba(30, 41, 65, 0.65) 100%);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  max-width: 1120px;
  width: fit-content;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.presets-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  margin-right: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.presets-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.preset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

@media (max-width: 768px) {
  .presets-wrapper {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 0.65rem 1rem;
    width: 100%;
  }
  .presets-pills {
    flex-wrap: wrap;
  }
}

.preset-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.preset-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff !important;
  border-color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   Catalog Grid & Categories
   ========================================================================== */

.catalog-container {
  padding-top: 1.5rem;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.category-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.category-icon {
  font-size: 1.3rem;
}

.select-all-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.select-all-btn:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* App Card */
.app-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.app-card.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-active);
  box-shadow: 0 0 16px var(--border-glow);
}

.app-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  transition: var(--transition-fast);
}

.app-card:hover .app-icon-wrapper {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.app-icon-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.app-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.app-icon-text {
  font-size: 1.4rem;
}

.app-icon-fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.app-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-type-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.type-cask {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}

.type-formula {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.type-mas {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.app-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* Custom Checkbox */
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: var(--transition-fast);
  background: transparent;
}

.app-card:hover .checkbox-custom {
  border-color: rgba(255, 255, 255, 0.4);
}

.app-card.selected .checkbox-custom {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.checkbox-custom svg {
  width: 14px;
  height: 14px;
  color: #0a0d14;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-fast);
}

.app-card.selected .checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Floating Bottom Bar
   ========================================================================== */

.floating-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}

.floating-bar.hidden {
  transform: translateY(120%);
  opacity: 0;
}

.floating-bar-content {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 20, 32, 0.92);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--border-glow);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-lg);
}

.selection-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.badge-count {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #0a0d14;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.summary-text {
  display: flex;
  flex-direction: column;
}

.summary-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.summary-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Export Modal & Tabs
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: #0f1422;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-close-btn, .close-modal-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  padding: 0;
  transition: var(--transition-fast);
}

.modal-close-btn:hover, .close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.close-modal-btn:hover {
  color: var(--text-main);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}

.tab-btn {
  padding: 0.85rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

/* Tab Contents */
.tab-content {
  display: none;
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tab-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Code Container */
.code-box {
  position: relative;
  background: #06080e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1rem 1.25rem;
  max-height: 320px;
  overflow: auto;
}

.code-box pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-code-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Script Options Checkboxes */
.script-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.option-checkbox input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Desktop App Dragging & Top Margin for Window Traffic Lights
   ========================================================================== */

body.is-desktop-app .navbar {
  padding-top: 2.4rem;
  -webkit-app-region: drag;
  user-select: none;
}

body.is-desktop-app .navbar-content {
  -webkit-app-region: drag;
}

body.is-desktop-app .brand,
body.is-desktop-app .header-actions,
body.is-desktop-app button,
body.is-desktop-app a,
body.is-desktop-app input {
  -webkit-app-region: no-drag;
}

html.is-desktop-app .web-only-btn,
body.is-desktop-app .web-only-btn,
html.is-desktop-app #install-app-btn,
body.is-desktop-app #install-app-btn {
  display: none !important;
}

/* Install Desktop App Modal (Web Only) */
.install-app-modal-card {
  max-width: 580px;
}

.install-app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.install-app-header-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.install-app-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.install-option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-normal);
}

.install-option-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
}

.install-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.install-option-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.install-option-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.install-option-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.direct-dmg-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.install-gatekeeper-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.install-gatekeeper-tip code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--accent-amber);
}

.terminal-panel {
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  overflow: hidden;
  max-height: 220px;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-controls {
  display: flex;
  gap: 0.4rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.terminal-output {
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  margin: 0;
  max-height: 170px;
  background: transparent;
}

.btn-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.curl-tip {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Ultra-Premium Dedicated Share Modal Styling
   ========================================================================== */

.share-modal-card {
  max-width: 540px;
  width: 92%;
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 26, 43, 0.96) 0%, rgba(12, 18, 30, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
}

body.light .share-modal-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 20px rgba(2, 132, 199, 0.1);
}

.share-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light .share-header {
  border-bottom-color: #e2e8f0;
}

.share-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
  flex-shrink: 0;
}

.share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.share-apps-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

body.light .share-apps-preview {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.share-preview-header {
  margin-bottom: 0.5rem;
}

.share-preview-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.share-apps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 100px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.share-app-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-main);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.share-tag-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.share-tag-svg,
.share-tag-svg-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-tag-svg svg,
.share-tag-svg-fallback svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.share-tag-fallback {
  font-size: 0.9rem;
  line-height: 1;
}

body.light .share-app-tag {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.share-tag-empty {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-style: italic;
}

.share-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.share-input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.share-input-wrapper input {
  flex: 1;
  background: rgba(6, 8, 14, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 500;
}

body.light .share-input-wrapper input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
}

.share-copy-btn {
  height: auto;
  padding: 0 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-color: #0284c7;
  color: #ffffff;
}

/* Social Grid Cards */
.share-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .share-social-grid {
    grid-template-columns: 1fr;
  }
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.social-card:hover {
  transform: translateY(-2px);
}

.twitter-card {
  background: #000000;
  border-color: #333333;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.twitter-card:hover {
  background: #111111;
  border-color: #555555;
}

.whatsapp-card {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-card:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  color: #25D366;
}

.cmd-card {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.cmd-card:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #a5b4fc;
}

body.light .whatsapp-card {
  background: #e6f9ed;
  border-color: #25D366;
  color: #128C7E;
}

body.light .cmd-card {
  background: #eef2ff;
  border-color: #818cf8;
  color: #4f46e5;
}

.curl-tip code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-active);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--border-glow);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-icon {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* ==========================================================================
   Universal Homebrew Search & Custom Packages
   ========================================================================== */

.search-top-banner {
  margin-bottom: -1rem;
}

.search-top-banner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.universal-search-card {
  background: rgba(18, 22, 33, 0.75);
  backdrop-filter: var(--glass-backdrop);
  border: 1px dashed var(--border-active);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.universal-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.universal-icon {
  font-size: 1.6rem;
}

.universal-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.universal-card-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.universal-search-card code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.brew-api-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border-active);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.api-results-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.api-result-card {
  border-color: rgba(56, 189, 248, 0.3);
}

.add-api-pkg-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  align-self: center;
}

.custom-add-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.custom-add-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.custom-input-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.custom-input-group input {
  flex: 1;
  min-width: 220px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.custom-input-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--border-glow);
}

/* ==========================================================================
   Bottom Search Callout Section
   ========================================================================== */

.bottom-search-callout {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.callout-glass-card {
  background: linear-gradient(135deg, rgba(18, 26, 43, 0.85) 0%, rgba(30, 41, 65, 0.75) 100%);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.callout-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.callout-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid var(--border-active);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-text-group h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.callout-text-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.callout-text-group code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.callout-action-group {
  min-width: 300px;
}

.callout-search-inline {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.callout-search-inline input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.callout-search-inline input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--border-glow);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 4rem 0;
  background: rgba(10, 13, 20, 0.95);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.search-highlight {
  animation: pulseGlow 1.2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 5px var(--accent-cyan);
  }
  to {
    box-shadow: 0 0 25px var(--accent-cyan), 0 0 10px var(--accent-indigo);
  }
}

/* ==========================================================================
   Fixed Floating Bottom-Right Theme Switcher Button
   ========================================================================== */

.floating-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 26, 43, 0.85);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(56, 189, 248, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease;
}

.floating-theme-toggle:hover {
  transform: scale(1.12) rotate(8deg);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Light Mode Theme Overrides & High Contrast Enhancements
   ========================================================================== */

html.light, body.light, [data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-selected: #f0f9ff;

  --border-color: #cbd5e1;
  --border-active: #0284c7;
  --border-glow: rgba(2, 132, 199, 0.2);

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;

  --glass-backdrop: blur(16px) saturate(160%);
}

body.light {
  background-color: #f8fafc;
  color: #0f172a;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(79, 70, 229, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.04) 0%, transparent 60%);
}

body.light .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

/* High-Contrast MacBrew Logo in Light Mode */
body.light .brand-name {
  background: linear-gradient(135deg, #0f172a 40%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f172a;
}

body.light .brand-icon {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

body.light .brand-tag {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.35);
  font-weight: 700;
}

body.light .floating-theme-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: #cbd5e1;
  color: #0284c7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body.light .floating-theme-toggle:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #2563eb;
  transform: scale(1.12) rotate(-8deg);
}

body.light .search-container input,
body.light .callout-search-inline input,
body.light .custom-input-group input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.light .search-container input::placeholder,
body.light .callout-search-inline input::placeholder,
body.light .custom-input-group input::placeholder {
  color: #94a3b8;
}

body.light .search-container input:focus,
body.light .callout-search-inline input:focus,
body.light .custom-input-group input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.25);
}

body.light .search-icon,
body.light .clear-btn {
  color: #64748b;
}

body.light .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

body.light .btn-outline {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light .btn-outline:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

body.light .hero-header h1 {
  color: #0f172a;
}

body.light .hero-header p {
  color: #475569;
}

body.light .presets-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body.light .presets-label {
  color: #0284c7;
  font-weight: 700;
}

body.light .preset-pill {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

body.light .preset-pill:hover {
  background: #ffffff;
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

body.light .preset-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  border-color: #0284c7;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

body.light .category-title {
  color: #0f172a;
}

body.light .select-all-btn {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

body.light .select-all-btn:hover {
  background: rgba(2, 132, 199, 0.16);
}

body.light .app-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.light .app-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.14);
}

body.light .app-card.selected {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18);
}

body.light .app-name {
  color: #0f172a;
}

body.light .app-desc {
  color: #475569;
}

body.light .app-type-badge.type-cask {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

body.light .app-type-badge.type-formula {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

body.light .checkbox-custom {
  border-color: #cbd5e1;
  background: #ffffff;
}

body.light .app-card.selected .checkbox-custom {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

body.light .modal-card,
body.light .floating-bar-content,
body.light .callout-glass-card,
body.light .universal-search-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

body.light .callout-text-group h3,
body.light .universal-card-header h3 {
  color: #0f172a;
}

body.light .callout-text-group p,
body.light .universal-card-header p {
  color: #475569;
}

body.light #summary-title {
  color: #0f172a;
}

body.light #summary-subtitle {
  color: #475569;
}

body.light .modal-title {
  color: #0f172a;
}

body.light .modal-subtitle {
  color: #475569;
}

body.light .tab-btn {
  color: #64748b;
  border-color: transparent;
}

body.light .tab-btn:hover {
  color: #0f172a;
}

body.light .tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

body.light .tab-desc {
  color: #334155;
}

body.light .option-checkbox {
  color: #334155;
}

body.light .code-box pre {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #1e293b;
}

body.light .app-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

body.light .footer-links a {
  color: #475569;
}

body.light .footer-links a:hover {
  color: #0284c7;
}

body.light .toast {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 15px rgba(2, 132, 199, 0.15);
}

body.light .toast-icon {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}
