/* -------------------------------------------------------------
   AiContab Suite Hub - Premium Design System
   Designed by Antigravity (Google DeepMind Team)
   ------------------------------------------------------------- */

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

:root {
  /* Dark Theme Tokens (Default) */
  --bg-color: #070913;
  --bg-gradient: radial-gradient(circle at top right, #111432 0%, #070913 60%, #030409 100%);
  --card-bg: rgba(13, 17, 34, 0.65);
  --card-hover-border: rgba(99, 102, 241, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Brand Palettes */
  --primary: #6366f1; /* Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary: #c084fc; /* Purple */
  --accent: #10b981; /* Emerald Green */
  --accent-rgb: 16, 185, 129;
  --warning: #fbbf24; /* Amber */
  --danger: #ef4444; /* Red */
  
  --shadow-color: rgba(0, 0, 0, 0.6);
  --glass-blur: blur(16px);
  
  /* Layout */
  --radius-lg: 1.5rem;
  --radius-md: 0.85rem;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Tokens Override */
body.light-theme {
  --bg-color: #f4f6fa;
  --bg-gradient: radial-gradient(circle at top right, #e0e7ff 0%, #f4f6fa 60%, #e8ecf4 100%);
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-hover-border: rgba(99, 102, 241, 0.4);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.07);
  --shadow-color: rgba(99, 102, 241, 0.08);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, background-image 0.5s ease, color 0.3s ease;
  position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* Canvas Background for Particle System */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

body.light-theme #particles-canvas {
  opacity: 0.35;
}

/* App Layout Container */
.app-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Header Component */
.main-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(var(--bg-color), 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite linear;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

body.light-theme .logo-text {
  background: linear-gradient(to right, #0f172a, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border-color);
  padding-left: 0.5rem;
  -webkit-text-fill-color: initial;
}

/* Control Panel Tools */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero Section */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

body.light-theme .hero-tag {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #a5b4fc 10%, #6366f1 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .hero-title span {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.6;
}

/* Grid Container */
.grid-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 3;
}

/* Premium Card Design */
.suite-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px var(--shadow-color);
  transition: var(--transition-smooth);
  height: 100%;
  min-height: 480px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.suite-card:nth-child(1) { animation-delay: 0.1s; }
.suite-card:nth-child(2) { animation-delay: 0.2s; }
.suite-card:nth-child(3) { animation-delay: 0.3s; }

.suite-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.suite-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.15);
}

body.light-theme .suite-card:hover {
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.12), 0 0 20px rgba(99, 102, 241, 0.05);
}

.suite-card:hover::before {
  opacity: 1;
}

/* Card Header elements */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.card-icon-wrapper {
  width: 58px;
  height: 58px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.suite-card:hover .card-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.card-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.card-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.card-badge.badge-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

.card-badge.badge-beta {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--warning);
}

/* Card Body elements */
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Card Footer elements */
.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-stack-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
}

.card-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Outfit', sans-serif;
}

.card-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.card-btn:hover {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.25);
}

body.light-theme .card-btn:hover {
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
}

.card-btn:hover svg {
  transform: translateX(4px);
}

/* Glow Card Style for Primary Application */
.suite-card.highlighted {
  border-color: rgba(99, 102, 241, 0.25);
}

.suite-card.highlighted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.card-btn.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
}

.card-btn.btn-glow:hover {
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  color: white;
  box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.5);
}

/* Card Disabled State */
.suite-card.disabled {
  opacity: 0.65;
}

.suite-card.disabled:hover {
  transform: none;
  border-color: var(--border-color);
  box-shadow: 0 15px 35px -5px var(--shadow-color);
}

.suite-card.disabled:hover::before {
  opacity: 0;
}

.card-btn.btn-disabled {
  background: rgba(255, 255, 255, 0.01) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  cursor: not-allowed;
}

.card-btn.btn-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.card-btn.btn-disabled svg {
  display: none;
}

/* Footer Section */
.main-footer {
  margin-top: auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary);
}

/* -------------------------------------------------------------
   Premium Modal / Config Box Style
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 520px;
  background: #0f1326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body.light-theme .modal-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.modal-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

/* Modal Form inputs */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

body.light-theme .form-input {
  background: #f8fafc;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-icon-left {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

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

/* Form Action Buttons */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.modal-btn {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

.modal-btn.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.modal-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.modal-btn.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
}

.modal-btn.btn-primary:hover {
  background: var(--primary-hover, #4f46e5);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

/* Toast Notification Styling */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: right bottom;
}

.toast svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.88rem;
  font-weight: 500;
}

/* Embedded App Viewer */
.app-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  padding: 1.25rem;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-viewer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.app-viewer-shell {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f1326;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .app-viewer-shell {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.app-viewer-overlay.active .app-viewer-shell {
  transform: translateY(0) scale(1);
}

.app-viewer-toolbar {
  min-height: 58px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.app-viewer-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.app-viewer-heading h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-viewer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55);
  flex-shrink: 0;
}

#app-viewer-frame {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

/* Animations */
@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  100% { transform: translate(130%, 130%) rotate(45deg); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 1.25rem 1.5rem;
  }
  .hero-container {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }
  .suite-card {
    padding: 2rem;
    min-height: auto;
  }
  .modal-container {
    padding: 1.75rem;
  }
  .app-viewer-overlay {
    padding: 0.75rem;
  }
  .app-viewer-shell {
    border-radius: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-text span {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .toast {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    min-width: auto;
  }
}

/* -------------------------------------------------------------
   Admin Dashboard & Table Styles
   ------------------------------------------------------------- */
.admin-dashboard-container {
  max-width: 900px !important;
  width: 95% !important;
  background: #0f1326;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

body.light-theme .admin-dashboard-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.admin-dashboard-content {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  flex: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

body.light-theme .kpi-card {
  background: #f8fafc;
}

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

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.trend-up {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.trend-down {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--danger);
}

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

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.table-container {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

body.light-theme .table-container {
  background: rgba(0, 0, 0, 0.01);
}

.table-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1rem 0.85rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.data-table td {
  color: var(--text-main);
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: var(--accent) !important;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
  color: var(--warning) !important;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: var(--danger) !important;
}

.btn-table-action {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

body.light-theme .btn-table-action {
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary);
}

.btn-table-action:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

