
/* ===================================================
   RevDevy — Minecraft Server Developer Portfolio
   Modern Gaming & Voxel Tech Theme
=================================================== */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.4);
  
  --mc-emerald: #10b981;
  --mc-diamond: #00d2ff;
  --mc-gold: #f59e0b;
  --mc-redstone: #ef4444;
  --mc-purpur: #a855f7;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);
  --glow-diamond: 0 0 25px rgba(0, 210, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(0, 210, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
}

.bg-pixel-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===================================================
   Navbar
=================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  height: 76px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
}

.mc-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mc-emerald), var(--mc-diamond));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--glow-emerald);
}

.brand-title span {
  color: var(--mc-emerald);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--mc-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--mc-emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--mc-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================================
   Hero Section
=================================================== */
.hero-section {
  padding: 150px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.mc-gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #00d2ff 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

/* MC Server Live Card */
.mc-server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-emerald);
  position: relative;
}

.mc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.mc-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.mc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tps-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-emerald);
  box-shadow: 0 0 10px var(--mc-emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.mc-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.mc-spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.mc-motd-box {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.mc-motd-box .c-gold { color: #f59e0b; }
.mc-motd-box .c-aqua { color: #38bdf8; }
.mc-motd-box .c-green { color: #34d399; }

.copy-ip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-ip-bar:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--mc-emerald);
}

.ip-text {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #34d399;
}

/* ===================================================
   Stats Ribbon
=================================================== */
.stats-ribbon {
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ribbon-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mc-emerald);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.ribbon-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===================================================
   Sections
=================================================== */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mc-emerald);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

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

/* ===================================================
   Services Grid
=================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-emerald);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-emerald);
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.service-card:nth-child(2) .service-icon {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--mc-diamond);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--mc-gold);
}

.service-card:nth-child(4) .service-icon {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--mc-purpur);
}

.service-card:nth-child(5) .service-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--mc-redstone);
}

.service-card:nth-child(6) .service-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.service-h {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.service-points i {
  color: var(--mc-emerald);
  font-size: 0.85rem;
}

/* ===================================================
   Portfolio / Game Modes Showcase
=================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all 0.3s;
}

.portfolio-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.port-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  margin-bottom: 12px;
}

.port-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.port-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.port-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ===================================================
   Skills / Stack
=================================================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}

.stack-item:hover {
  border-color: var(--mc-emerald);
  transform: scale(1.03);
}

.stack-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--mc-emerald);
}

.stack-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===================================================
   Pricing / Packages
=================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
  position: relative;
}

.pricing-head {
  margin-bottom: 24px;
}

.price-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--mc-emerald);
  font-family: var(--font-mono);
}

/* ===================================================
   Contact Form & Info
=================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-emerald);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--mc-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 24px;
  background: #06090e;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
}


/* ========================================================
   REVDEVY 2.5 EXTENDED MINECRAFT FEATURES & TOOLS STYLES
   ======================================================== */

/* 1. Calculator Section */
.calc-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.calc-group {
    margin-bottom: 22px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calc-label-row label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--mc-emerald-light);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.calc-range {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    outline: none;
    accent-color: var(--mc-emerald);
    cursor: pointer;
}

.calc-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.calc-select {
    width: 100%;
    background: rgba(10, 15, 29, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.calc-select:focus {
    border-color: var(--mc-emerald);
}

.calc-results-card {
    background: rgba(10, 15, 29, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.calc-res-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-res-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-guarantee {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--mc-emerald);
    color: var(--mc-emerald-light);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
}

.calc-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.calc-metric-box {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
}

.calc-metric-box.highlight {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
}

.metric-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-val {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.metric-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.calc-flags-box {
    background: #060910;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}

.flags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.btn-copy-flags {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-flags:hover {
    background: var(--mc-emerald);
    color: #022c22;
}

.flags-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #94a3b8;
    background: transparent;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 90px;
    overflow-y: auto;
}

.btn-calc-order {
    margin-top: auto;
    width: 100%;
}

/* 2. Tools & Tabs */
.tools-tab-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-tab-btn {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tool-tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(16, 185, 129, 0.4);
}

.tool-tab-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--mc-emerald);
    color: var(--mc-emerald-light);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.tool-content-pane {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.tool-content-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 3. Server Ping Tool */
.ping-input-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ping-input-group {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.ping-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.ping-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
}

.ping-input:focus {
    border-color: var(--mc-emerald);
}

.ping-port-input {
    width: 100px;
    padding: 12px;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    text-align: center;
}

.ping-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.preset-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-chip:hover {
    color: var(--mc-emerald-light);
    border-color: var(--mc-emerald);
    background: rgba(16, 185, 129, 0.1);
}

/* Authentic MC Multiplayer Server List Entry */
.mc-ping-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #080b12;
    border: 2px solid #1a2233;
    border-radius: 10px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.mc-ping-icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    image-rendering: pixelated;
    background: #111827;
}

.mc-ping-center {
    flex: 1;
    min-width: 0;
}

.mc-ping-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.mc-ping-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.mc-ping-ver {
    font-size: 0.75rem;
    color: #94a3b8;
}

.mc-ping-motd {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #e2e8f0;
    white-space: pre-line;
    word-break: break-word;
}

.mc-ping-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.mc-ping-latency-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mc-ping-ms {
    font-size: 0.78rem;
    color: #34d399;
}

.mc-ping-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.mc-ping-bars .bar {
    width: 3px;
    background: #334155;
    border-radius: 1px;
}

.mc-ping-bars .bar.b1 { height: 3px; }
.mc-ping-bars .bar.b2 { height: 6px; }
.mc-ping-bars .bar.b3 { height: 9px; }
.mc-ping-bars .bar.b4 { height: 12px; }
.mc-ping-bars .bar.b5 { height: 15px; }

.mc-ping-bars .bar.active {
    background: #10b981;
}

.mc-ping-players {
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 4. LuckPerms Builder */
.lp-builder-grid, .paper-opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lp-presets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lp-presets-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lp-output-card, .paper-output-card {
    background: #080b12;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.lp-output-card .flags-code, .paper-output-card .flags-code {
    max-height: 280px;
    color: #38bdf8;
}

/* 5. YAML Linter */
.linter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.linter-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.linter-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--mc-emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.linter-status-tag.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.linter-textarea {
    width: 100%;
    background: #080b12;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 12px;
    outline: none;
    line-height: 1.5;
    resize: vertical;
}

.linter-textarea:focus {
    border-color: var(--mc-emerald);
}

.linter-report {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.report-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.report-item.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.report-item.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.report-item.info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

/* 6. Testimonials Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    gap: 4px;
}

.review-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mc-emerald);
    color: #022c22;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.author-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.author-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 7. FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: rgba(16, 185, 129, 0.5);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--mc-emerald-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: rgba(10, 15, 29, 0.6);
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 20px 18px 20px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .calc-container, .linter-grid, .lp-builder-grid, .paper-opt-grid {
        grid-template-columns: 1fr;
    }
}
