:root {
  --bg-primary: #0e1118;
  --bg-card: #121520;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(192, 250, 30, 0.3);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  
  --primary-color: #c0fa1e;
  --primary-hover: #a8e010;
  --primary-gradient: #c0fa1e;
  
  --secret-text: #c0fa1e;
  
  --success-color: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --success-border: rgba(16, 185, 129, 0.2);
  
  --error-color: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
  --error-border: rgba(239, 68, 68, 0.2);
  
  --warning-color: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.05);
  --warning-border-left: #f59e0b;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Effects */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.009;
}

.sphere-1 {
  top: -10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  animation: float-1 25s infinite alternate ease-in-out;
}

.sphere-2 {
  bottom: -10%;
  right: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #84cc16 0%, transparent 70%);
  animation: float-2 20s infinite alternate ease-in-out;
}

@keyframes float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -40px) scale(1.05); }
}

/* App Container */
.container {
  width: 100%;
  max-width: 580px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Logo & Branding */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  user-select: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(192, 250, 30, 0.15));
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.accent-text {
  color: #a1a1aa;
  font-weight: 400;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

/* Card Component */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 36px 40px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card.active {
  display: flex;
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge System */
.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.success-badge {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-color);
}

.error-badge {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-color);
}

/* Headings & Text */
h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.card-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #52525b;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Button UI */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #0e1118;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 4px;
}

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

.btn-accent {
  background: var(--primary-color);
  color: #0e1118;
  border-color: var(--primary-color);
}

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

/* Loading Spinner */
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

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

/* Secret Box Layout */
.secret-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

@media (min-width: 480px) {
  .secret-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.secret-box pre {
  overflow-x: auto;
  flex-grow: 1;
  width: 100%;
}

.secret-box code {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--secret-text);
  word-break: break-all;
  white-space: pre-wrap;
}

/* Actions panel */
.secret-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

@media (min-width: 480px) {
  .secret-actions {
    width: auto;
  }
}

/* Dropdown styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #161a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.dropdown-item:hover {
  background: rgba(192, 250, 30, 0.15);
  color: var(--primary-color);
}

.ext-desc {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
}

/* Warning Banner */
.warning-banner {
  background: var(--warning-bg);
  border: none;
  border-left: 3px solid var(--warning-border-left);
  color: #fbbf24;
  border-radius: 4px;
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
}

/* Divider & Promo */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

.promo-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Footer elements */
.app-footer {
  font-size: 13px;
  color: #4b5563;
  margin-top: 36px;
}

.app-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 32px;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1), 
              opacity 0.2s ease;
  transform: translateY(40px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
