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

:root {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --border-glass: rgba(255, 255, 255, 0.1);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-pink: #ec4899;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --card-radius: 16px;
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

header {
  padding: 2rem 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.logo-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  letter-spacing: 1px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-panic {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-panic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

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

main {
  max-width: 1200px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card 1: Mascot & CEO Advice */
.col-mascot {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 900px) {
  .col-mascot { grid-column: span 12; }
}

.mascot-img-wrapper {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
  margin-bottom: 1rem;
  position: relative;
}

.mascot-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.mascot-img-wrapper:hover img {
  transform: scale(1.04);
}

.speech-bubble {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--accent-purple);
  border-radius: 12px;
  padding: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #e9d5ff;
  margin-bottom: 1.25rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}

/* Card 2: Excuse Generator */
.col-excuse {
  grid-column: span 8;
}

@media (max-width: 900px) {
  .col-excuse { grid-column: span 12; }
}

.excuse-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--accent-cyan);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  color: #a5f3fc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  position: relative;
}

.excuse-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.excuse-controls button {
  flex: 1;
}

/* Card 3: ROI Counter */
.col-roi {
  grid-column: span 6;
}

@media (max-width: 768px) {
  .col-roi { grid-column: span 12; }
}

.roi-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roi-inputs label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.roi-inputs input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  width: 100px;
  font-family: 'JetBrains Mono', monospace;
}

.roi-display {
  text-align: center;
  padding: 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
}

.roi-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  color: #34d399;
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.roi-subtitle {
  font-size: 0.85rem;
  color: #a7f3d0;
  margin-top: 0.4rem;
}

/* Card 4: Soundboard & Quick Tools */
.col-tools {
  grid-column: span 6;
}

@media (max-width: 768px) {
  .col-tools { grid-column: span 12; }
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sound-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.8rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sound-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1e293b;
  color: #f8fafc;
  border-left: 4px solid var(--accent-cyan);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  animation: slideIn 0.3s forwards;
}

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

/* Boss Mode Overlay (Fake Dashboard) */
#boss-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0d1117;
  color: #c9d1d9;
  z-index: 100000;
  font-family: 'JetBrains Mono', monospace;
  padding: 1.5rem;
  overflow: hidden;
}

.boss-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #30363d;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.boss-widget {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.85rem;
}

.boss-log {
  grid-column: span 3;
  height: 220px;
  background: #000;
  border: 1px solid #30363d;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #3fb950;
  overflow-y: auto;
  border-radius: 6px;
}

/* Fake Update Screen Overlay */
#update-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0066cc;
  color: white;
  z-index: 100001;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
