:root {
  --lb-bg-color: #0f172a; /* Slate 900 */
  --lb-text-color: #f8fafc; /* Slate 50 */
  --lb-accent-primary: #10b981; /* Emerald 500 */
  --lb-accent-secondary: #0ea5e9; /* Sky 500 */
  --lb-glass-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
  --lb-glass-border: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--lb-bg-color);
  color: var(--lb-text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  position: relative;
}

/* Background Effect (Ambient Glow) */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: -20vw;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--lb-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--lb-glass-border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-glass-border);
}

/* Buttons */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--lb-accent-primary), var(--lb-accent-secondary));
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lb-glass-border);
  color: var(--lb-text-color);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-img {
  width: 100%;
  max-width: 800px;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--lb-glass-border);
}

.icon-logo {
  width: 100px;
  height: 100px;
  border-radius: 20%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid var(--lb-glass-border);
}

/* Language Switcher */
.lang-switch {
  cursor: pointer;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px;
}
.lang-switch span {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.lang-switch span.active {
  background: var(--lb-accent-primary);
  color: #fff;
}

/* Language Display Control */
html[lang="ja"] .en-only { display: none !important; }
html[lang="en"] .ja-only { display: none !important; }

/* Custom Badge */
.badge-mod {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--lb-accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: normal;
  padding: 0.4rem 0.6rem;
}

/* Tables */
.table-glass {
  --bs-table-bg: transparent;
  --bs-table-color: var(--lb-text-color);
  color: var(--lb-text-color);
}
.table-glass td, .table-glass th {
  border-bottom: 1px solid var(--lb-glass-border);
  padding: 1rem;
}

/* Accordion Customization */
.accordion-item {
  background-color: var(--lb-glass-bg);
  border: 1px solid var(--lb-glass-border);
  backdrop-filter: blur(12px);
}
.accordion-button {
  background-color: transparent;
  color: var(--lb-text-color);
}
.accordion-button:not(.collapsed) {
  background-color: rgba(255,255,255,0.05);
  color: var(--lb-accent-primary);
  box-shadow: inset 0 -1px 0 var(--lb-glass-border);
}
.accordion-button::after {
  filter: invert(1);
}

/* Inline Code Customization */
code {
  color: #facc15 !important; /* Yellow 400 */
}
