:root {
  --bg-color: #0d1117;
  --panel-bg: rgba(22, 27, 34, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --accent-color: #58a6ff;
  --accent-hover: #79c0ff;
  --success-color: #3fb950;
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Gradients */
.background-gradients {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-color);
  animation: float 20s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--success-color);
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.accent {
  background: linear-gradient(135deg, var(--accent-color), #bc8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Glassmorphism Cards */
.card {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

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

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge.success {
  background: rgba(63, 185, 80, 0.2);
  color: var(--success-color);
}

/* Inputs & Outputs */
.input-wrapper, .output-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

textarea {
  width: 100%;
  flex-grow: 1;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus {
  border-color: var(--accent-color);
}

.json-viewer {
  width: 100%;
  flex-grow: 1;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: auto;
}

/* Buttons */
.actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 166, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* Loading state */
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

 / *   J S O N   T r e e   U I   * / 
 . j s o n - n o d e   {   m a r g i n - l e f t :   0 ;   } 
 . j s o n - c h i l d r e n   {   m a r g i n - l e f t :   1 . 2 r e m ;   b o r d e r - l e f t :   1 p x   d a s h e d   v a r ( - - b o r d e r - c o l o r ) ;   p a d d i n g - l e f t :   0 . 8 r e m ;   } 
 . j s o n - s u m m a r y   {   c u r s o r :   p o i n t e r ;   c o l o r :   v a r ( - - t e x t - m u t e d ) ;   l i s t - s t y l e :   n o n e ;   d i s p l a y :   i n l i n e - b l o c k ;   f o n t - w e i g h t :   7 0 0 ;   u s e r - s e l e c t :   n o n e ;   } 
 . j s o n - s u m m a r y : : - w e b k i t - d e t a i l s - m a r k e r   {   d i s p l a y :   n o n e ;   } 
 . j s o n - s u m m a r y : : b e f o r e   {   c o n t e n t :   ' ¶%' ;   f o n t - s i z e :   0 . 7 e m ;   d i s p l a y :   i n l i n e - b l o c k ;   w i d t h :   1 . 2 r e m ;   t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;   c o l o r :   v a r ( - - a c c e n t - c o l o r ) ;   } 
 . j s o n - n o d e [ o p e n ]   >   . j s o n - s u m m a r y : : b e f o r e   {   t r a n s f o r m :   r o t a t e ( 9 0 d e g ) ;   } 
 . j s o n - i t e m   {   m a r g i n - t o p :   0 . 2 r e m ;   } 
 . j s o n - k e y   {   c o l o r :   # b c 8 c f f ;   f o n t - w e i g h t :   6 0 0 ;   } 
 . j s o n - s t r i n g   {   c o l o r :   # 7 9 c 0 f f ;   } 
 . j s o n - n u m b e r   {   c o l o r :   # f f 7 b 7 2 ;   } 
 . j s o n - b o o l e a n   {   c o l o r :   # f f 7 b 7 2 ;   f o n t - w e i g h t :   b o l d ;   } 
 . j s o n - n u l l   {   c o l o r :   v a r ( - - t e x t - m u t e d ) ;   f o n t - s t y l e :   i t a l i c ;   } 
  
 