/* Premium Modern Glassmorphism Styling for GCP Roles & APIs Planner */

/* Custom CSS Variables & Tokens */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-header: 'Space Grotesk', sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Premium Color System */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-glass: rgba(17, 24, 39, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-teal: #10b981;
  --accent-teal-glow: rgba(16, 185, 129, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-orange: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.35);
  --accent-red: #ef4444;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --sidebar-width: 280px;
  --top-header-height: 70px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Layout Structure */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 45%);
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--accent-blue-glow));
}

.logo-text {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-weight: 400;
  color: var(--accent-blue);
  -webkit-text-fill-color: initial;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.1);
}

.nav-divider {
  height: 1px;
  background-color: var(--border-glass);
  margin: 12px 4px;
}

.cart-nav-item {
  position: relative;
}

.cart-badge {
  position: absolute;
  right: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: var(--transition-smooth);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-teal-glow);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Top Bar Header */
.top-header {
  height: var(--top-header-height);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 5;
}

.header-search-wrapper {
  position: relative;
  width: 380px;
}

.search-bar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

#global-search {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 10px 16px 10px 40px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

#global-search:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.quick-stats {
  display: flex;
  gap: 20px;
}

.quick-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  text-shadow: 0 0 10px var(--accent-blue-glow);
}

/* Tab Views Container */
.tab-views-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.tab-view {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* View Headers */
.view-header {
  margin-bottom: 28px;
}

.view-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.view-title {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.view-description {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 750px;
  line-height: 1.5;
}

/* Filters and Search Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 12px var(--accent-blue-glow);
}

.search-filter-wrapper {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.04);
}

/* Grids of API Cards */
.api-grid, .role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Beautiful Premium Card Design */
.gcp-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.gcp-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.02);
}

/* Subtle card glowing background effect */
.gcp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.card-top {
  position: relative;
  z-index: 1;
}

.card-category-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-id-code {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.card-body-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 16px 0;
}

/* Collapsible list of bullet functions */
.card-bullet-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-bullets-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.card-bullets-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-size: 10px;
}

.card-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.card-learn-more-link {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.card-learn-more-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Action Buttons */
.action-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass-hover);
}

.btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-success {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: white;
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 0 15px var(--accent-teal-glow);
}

.btn-outline {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
  color: white;
}

/* Service API Selector Grid & Service Cards */
.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.service-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08);
}

.service-card.active {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(17, 24, 39, 0.7) 100%);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.service-card-icon {
  font-size: 32px;
}

.service-card-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.service-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Service Dependencies Panel */
.service-dependencies-panel {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 10px;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

.dependencies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.dep-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dep-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dep-title {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.dep-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.dependencies-body-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.dep-apis-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Timeline API Item */
.dep-api-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.dep-api-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-glass-hover);
}

.dep-api-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dep-api-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.dep-api-id {
  font-family: var(--font-code);
  font-size: 11.5px;
  color: var(--accent-blue);
}

/* Sidebar Info Card Inside Panels */
.dep-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card-premium {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.8) 0%, rgba(10, 14, 26, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.info-card-premium .card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.info-card-title {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  margin-bottom: 12px;
}

.info-card-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* CLI Code Blocks */
.code-block-wrapper {
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px;
  position: relative;
}

.code-block-wrapper pre {
  margin: 0;
  overflow-x: auto;
  padding-right: 40px;
}

.code-block-wrapper code {
  font-family: var(--font-code);
  font-size: 11.5px;
  color: #c7d2fe;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-code-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.architect-tip-box {
  background: rgba(245, 158, 11, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.tip-icon {
  font-size: 18px;
}

.tip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 4px;
}

.tip-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Service IAM Roles Persona Grid */
.service-role-personas-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.persona-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
}

.persona-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-glass-hover);
}

.persona-badge {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.persona-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.persona-role-id {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--accent-blue);
  margin: 6px 0 12px 0;
  display: block;
}

.persona-purpose {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Billing IAM Planner View */
.billing-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.billing-concept-card {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.4) 0%, rgba(10, 14, 26, 0.6) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.billing-concept-card h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.billing-concept-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.billing-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Plan Export Cart Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.cart-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-box {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cart-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.cart-box-header h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.clear-section-btn {
  background: transparent;
  border: none;
  color: var(--accent-red);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clear-section-btn:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: white;
}

.cart-item-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.btn-remove-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-remove-cart:hover {
  color: var(--accent-red);
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px 0;
}

/* Sidebar Cart Export Styling */
.export-sidebar-card {
  background: var(--bg-glass);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 32px;
}

.export-sidebar-card h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.export-sidebar-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tab-pill-selectors {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 30px;
}

.pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn.active {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
}

.export-snippet-block {
  display: none;
}

.export-snippet-block.active {
  display: block;
}

.export-snippet-block .sub-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blueprint-summary-stats {
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.blueprint-summary-stats h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.b-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.b-label {
  color: var(--text-secondary);
}

#b-stat-apis, #b-stat-roles {
  font-weight: 700;
  color: white;
}

.export-actions-row {
  margin-top: 10px;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* Toast Notifications Overlay */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15), 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.removing {
  animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dependencies-body-layout, .cart-layout {
    grid-template-columns: 1fr;
  }
  .dep-sidebar-panel, .cart-right {
    position: static;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .nav-item {
    padding: 8px 12px;
    white-space: nowrap;
    width: auto;
  }
  .nav-item:hover {
    transform: none;
  }
  .top-header {
    padding: 16px;
  }
  .tab-views-container {
    padding: 16px;
  }
  .billing-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* Catalog Sync Desk Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: var(--transition-smooth);
}

.modal-content {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.05);
  max-width: 650px;
  width: 90%;
  padding: 28px;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.sync-status-icon {
  font-size: 28px;
}

.sync-status-meta h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.sync-status-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Dynamic statuses */
.sync-status-indicator.running {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.03);
}
.sync-status-indicator.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}
.sync-status-indicator.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.03);
}

/* Terminal component inside the modal */
.sync-terminal-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.terminal-title-bar {
  background: #0f1322;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot.red { background-color: #ef4444; }
.term-dot.yellow { background-color: #f59e0b; }
.term-dot.green { background-color: #10b981; }

.term-label {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 10px;
}

.sync-terminal-wrapper .terminal-body {
  background: #04060b;
  padding: 16px;
  height: 180px;
  overflow-y: auto;
}

.sync-terminal-wrapper code {
  font-family: var(--font-code);
  font-size: 11.5px;
  color: #a5b4fc;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  margin-top: 20px;
}

