:root {
  --bg-start: #d9edff;
  --bg-mid: #c9f0f5;
  --bg-end: #c5f8d8;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.6);
  --card-shadow: rgba(0, 45, 85, 0.2);
  --text-primary: #0c2a37;
  --text-secondary: rgba(12, 42, 55, 0.7);
  --accent: #3aa0a4;
  --accent-soft: rgba(58, 160, 164, 0.12);
  --hover-highlight: linear-gradient(90deg, rgba(58, 160, 164, 0.16), rgba(197, 248, 216, 0.38));
  --table-border: rgba(12, 42, 55, 0.12);
  --table-divider: rgba(12, 42, 55, 0.06);
  --badge-bg: rgba(58, 160, 164, 0.16);
  --badge-border: rgba(58, 160, 164, 0.32);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 6rem);
}

main {
  position: relative;
  width: min(1100px, 100%);
  background: var(--card-bg);
  border-radius: 28px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 80px -40px var(--card-shadow), 0 12px 40px -24px rgba(10, 64, 102, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  overflow: visible;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.phpinfo-modern {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: transparent;
  overflow: visible;
}

.phpinfo-modern__surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.2) 100%);

}


.phpinfo-intro {
  width: min(100%, 680px);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.85rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 64px -42px rgba(10, 64, 102, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  justify-items: center;
  text-align: center;
}

.phpinfo-intro__brand {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  justify-items: center;
}

.phpinfo-intro__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.phpinfo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 38px -28px rgba(10, 64, 102, 0.4);
}

.phpinfo-logo {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

.phpinfo-logo--php {
  width: clamp(140px, 26vw, 210px);
  height: clamp(82px, 15vw, 120px);
  border-radius: 52% / 65%;
  background: radial-gradient(120% 140% at 18% 20%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(135deg, #b7c2ff 0%, #5661ad 38%, #393f7d 100%);
  box-shadow: 0 28px 64px -40px rgba(10, 64, 102, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.25);
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
}

.phpinfo-logo--php[data-has-image="true"] {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px -32px rgba(10, 64, 102, 0.5);
  border-radius: 26px;
}

.phpinfo-logo__image {
  display: block;
  max-width: clamp(120px, 24vw, 200px);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(10, 64, 102, 0.35));
}

.phpinfo-logo__placeholder {
  font-size: clamp(2.15rem, 6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: #f9f9ff;
}

.phpinfo-zend {
  width: min(100%, 720px);
  margin: clamp(2rem, 4vw, 3rem) auto clamp(1.5rem, 3vw, 2.75rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 24px;
  border: 1px solid rgba(58, 160, 164, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 54px -36px rgba(10, 64, 102, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.8rem);
  text-align: center;
}

.phpinfo-zend__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.2rem);
}

.phpinfo-zend__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.phpinfo-zend__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phpinfo-zend__logo {
  display: block;
  width: clamp(140px, 22vw, 220px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(10, 64, 102, 0.25));
}

.phpinfo-zend__body {
  width: 100%;
}

.phpinfo-zend__text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.phpinfo-modern__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      280px 280px at var(--pointer-x, 50%) var(--pointer-y, 50%),
      rgba(255, 255, 255, 0.6),
      transparent 70%
    );
  opacity: var(--pointer-opacity, 0);
  transition: opacity 240ms ease;
  pointer-events: none;
  will-change: opacity;
  mix-blend-mode: screen;
}

.phpinfo-modern[data-pointer-active="true"] .phpinfo-modern__surface::before {
  opacity: 0.6;
}

.phpinfo-modern--light-glow .phpinfo-modern__surface::before {
  mix-blend-mode: normal;
  background: radial-gradient(
      220px 220px at var(--pointer-x, 50%) var(--pointer-y, 50%),
      rgba(255, 255, 255, 0.35),
      transparent 70%
    );
}

.phpinfo-modern--light-glow[data-pointer-active="true"] .phpinfo-modern__surface::before {
  opacity: 0.45;
}

.phpinfo-modern table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--table-border);
  box-shadow: 0 18px 40px -32px rgba(12, 42, 55, 0.4);
  border-radius: 18px;
}

.phpinfo-modern table caption {
  caption-side: top;
  text-align: left;
  padding: 1.25rem clamp(1.25rem, 2vw, 1.75rem) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.phpinfo-modern table th,
.phpinfo-modern table td {
  padding: 0.85rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--table-divider);
  vertical-align: top;
  font-size: 0.95rem;
}

.phpinfo-modern table th {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.phpinfo-modern table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.phpinfo-modern table td:first-child:not(:last-child) {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  min-width: clamp(160px, 24%, 240px);
}

.phpinfo-modern table tbody tr {
  transition: background 180ms ease, transform 180ms ease;
}

.phpinfo-modern table tbody tr.is-hovered,
.phpinfo-modern table tbody tr:hover {
  background: var(--hover-highlight);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 12px 32px -24px rgba(12, 42, 55, 0.45);
}

.phpinfo-modern table tbody tr.is-hovered td:first-child:not(:last-child),
.phpinfo-modern table tbody tr:hover td:first-child:not(:last-child) {
  color: var(--accent);
}

.phpinfo-modern table tbody tr:last-child td {
  border-bottom: none;
}

.phpinfo-modern table tbody td {
  color: var(--text-secondary);
}

.phpinfo-modern table tbody td:first-child:not(:last-child) {
  color: var(--text-primary);
  font-weight: 600;
}

.phpinfo-modern pre,
.phpinfo-modern code {
  font-family: 'SFMono-Regular', 'Menlo', 'DejaVu Sans Mono', 'Consolas', monospace;
  background: rgba(10, 64, 102, 0.06);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.phpinfo-modern pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

.phpinfo-modern .section-title {
  position: sticky;
  top: clamp(1rem, 3vw, 1.5rem);
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 1.5rem;
  font-size: clamp(1.75rem, 2.4vw, 1.95rem);
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 255, 253, 0.6));
  padding: 0.6rem 1rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px -18px rgba(12, 42, 55, 0.3);
  z-index: 2;
}

.phpinfo-modern details {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(12, 42, 55, 0.08);
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 200ms ease;
}

.phpinfo-modern details[open] {
  box-shadow: 0 20px 40px -28px rgba(12, 42, 55, 0.35);
}

.phpinfo-modern summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phpinfo-modern summary::marker {
  color: var(--accent);
}

@media (max-width: 768px) {
  body {
    padding: clamp(1.5rem, 6vw, 3rem);
  }

  .phpinfo-intro {
    width: 100%;
    padding: clamp(1.35rem, 6vw, 2.2rem) clamp(1.25rem, 6vw, 2rem);
  }

  .phpinfo-badge {
    font-size: 0.88rem;
  }

  .phpinfo-zend {
    width: 100%;
    padding: clamp(1.1rem, 5vw, 1.8rem) clamp(1rem, 6vw, 2rem);
  }

  .phpinfo-modern__content {
    padding: clamp(1.25rem, 6vw, 2rem);
  }

  .phpinfo-modern table,
  .phpinfo-modern details {
    border-radius: 14px;
  }

  .phpinfo-modern .section-title {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
  }

  .phpinfo-zend__title {
    font-size: clamp(1.1rem, 4.2vw, 1.3rem);
  }

  .phpinfo-modern table th,
  .phpinfo-modern table td {
    padding: 0.75rem clamp(0.75rem, 4vw, 1.25rem);
  }
}

@media (max-width: 600px) {
  .phpinfo-modern__content {
    padding: clamp(1rem, 8vw, 1.5rem);
  }

  .phpinfo-modern table {
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .phpinfo-modern table caption {
    padding: 0 0 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .phpinfo-modern .section-title {
    font-size: clamp(1.25rem, 6vw, 1.45rem);
  }

  .phpinfo-zend__title {
    font-size: clamp(1.05rem, 6vw, 1.2rem);
  }

  .phpinfo-modern table thead {
    display: none;
  }

  .phpinfo-modern table tbody tr:has(th) {
    display: none;
  }

  .phpinfo-modern table tbody {
    display: grid;
    gap: clamp(0.75rem, 5vw, 1.1rem);
  }

  .phpinfo-modern table tbody tr {
    display: grid;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(12, 42, 55, 0.08);
    border-radius: 16px;
    padding: clamp(0.85rem, 5vw, 1.2rem);
    box-shadow: 0 6px 18px -14px rgba(12, 42, 55, 0.25);
    transition: background 160ms ease;
  }

  .phpinfo-modern table th,
  .phpinfo-modern table td {
    padding: 0;
    border-bottom: none;
    font-size: 0.9rem;
  }

  .phpinfo-modern table td:first-child:not(:last-child) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }

  .phpinfo-modern table tbody td {
    display: block;
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .phpinfo-modern table tbody td:first-child:not(:last-child) {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
  }

  .phpinfo-modern table tbody tr.is-hovered,
  .phpinfo-modern table tbody tr:hover {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px -14px rgba(12, 42, 55, 0.25);
    transform: none;
  }

  .phpinfo-modern details {
    padding: 0.85rem 1.1rem;
    box-shadow: none;
  }

  .phpinfo-modern details[open] {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
