:root {
    color-scheme: dark;
    --d99-bg: #071e20;
    --d99-surface: #102b2a;
    --d99-text: #fff2de;
    --d99-muted: #d7cbb5;
    --d99-accent: #ffae63;
    --d99-border: #4b5745;
    --d99-header: 70px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--d99-header) + 48px); }
body { margin: 0; background: var(--d99-bg); color: var(--d99-text); font: 1rem/1.65 system-ui, sans-serif; }
main { padding-top: var(--d99-header); min-height: 64vh; }
a { color: var(--d99-accent); text-underline-offset: .24em; }
a:hover { color: #ffe1b3; }
button, summary { cursor: pointer; font: inherit; }
:focus-visible { outline: 3px solid #ffdec0; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 4.25rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.25rem, 2.7vw, 1.9rem); }
p { max-width: 72ch; color: var(--d99-muted); }
.d99-wrap { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }
.d99-skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 10000; padding: 10px; background: var(--d99-bg); transform: translateY(-200%); }
.d99-skip:focus { transform: none; }
.d99-header { position: fixed; z-index: 100; inset: 0 0 auto; background: #081c1c; border-bottom: 1px solid var(--d99-border); }
.admin-bar .d99-header { top: 32px; }
.d99-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1280px, calc(100% - 2rem)); margin: auto; min-height: var(--d99-header); }
.d99-brand { display: flex; align-items: center; flex-shrink: 0; }
.d99-brand img { display: block; object-fit: contain; }
#d99-primary { display: flex; align-items: center; gap: clamp(.6rem, 1.3vw, 1.25rem); }
#d99-primary > a, #d99-primary summary { color: var(--d99-text); text-decoration: none; }
#d99-primary [aria-current="page"] { text-decoration: underline; }
#d99-primary details { position: relative; }
#d99-primary details ul { position: absolute; z-index: 1; top: 100%; left: -1rem; width: max-content; padding: .8rem 1rem; background: var(--d99-surface); border: 1px solid var(--d99-border); border-radius: 10px; }
.d99-menu-toggle { display: none; }
.d99-header-cta { flex: 0 0 auto; white-space: nowrap; }
.d99-crumb { margin-top: 1rem; color: var(--d99-muted); }
.d99-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
.d99-hero picture { display: block; }
.d99-hero img { display: block; width: 100%; height: auto; border: 1px solid var(--d99-border); border-radius: 22px; }
.d99-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 22rem; }
.d99-actions .d99-button { justify-content: space-between; gap: .5rem; min-height: 48px; }
.d99-actions .d99-button-alt:hover { background: var(--d99-accent); color: #201508; }
.d99-button { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem 1rem; border: 1px solid var(--d99-accent); border-radius: 8px; background: var(--d99-accent); color: #201508; text-decoration: none; font-weight: 700; }
.d99-button:hover { background: #ffe1b3; color: #201508; }
.d99-button-alt { background: transparent; color: var(--d99-accent); }
.d99-panel, .d99-cards article { padding: clamp(1rem, 3vw, 2rem); background: var(--d99-surface); border: 1px solid var(--d99-border); border-radius: 16px; }
.d99-panel, .d99-section { margin-block: 0 1.5rem; }
.d99-panel > :first-child, .d99-cards h3 { margin-top: 0; }
.d99-panel details { padding-block: .6rem; border-bottom: 1px solid var(--d99-border); }
.d99-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: .75rem; }
.d99-links { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.d99-reference { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.d99-reference dl { margin: 0; }
.d99-reference dd { margin: 0 0 1rem; font: 700 1.35rem/1.5 ui-monospace, monospace; }
.d99-table { overflow: auto; }
.d99-table table { width: 100%; border-collapse: collapse; }
.d99-table caption, .d99-table th, .d99-table td { text-align: left; padding: .45rem; }
.d99-table td { white-space: nowrap; border-bottom: 1px solid var(--d99-border); }
.d99-footer {
    margin-top: 3rem;
    padding: clamp(1.25rem, 4vw, 3rem) 0 max(7rem, calc(7rem + env(safe-area-inset-bottom)));
    background: radial-gradient(ellipse at top right, #70421c44, transparent 60%), #081c1c;
    border-top: 1px solid var(--d99-accent);
}
.d99-footer-top, .d99-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.d99-footer-top { border-bottom: 1px solid var(--d99-border); padding-bottom: 1.4rem; }
.d99-footer-brand { display: inline-flex; }
.d99-footer-brand img { display: block; max-width: 100%; height: auto; }
.d99-footer-top p, .d99-footer-bottom p { margin: 0; }
.d99-footer-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.d99-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; padding-block: 1.4rem; }
.d99-footer-grid nav { border: 1px solid var(--d99-border); background: #102b2a; border-radius: 12px; padding: clamp(.75rem, 2vw, 1.15rem); }
.d99-footer h2 { margin: 0 0 .65rem; font-size: 1.05rem; color: var(--d99-accent); }
.d99-footer-grid .d99-links { gap: 0; }
.d99-footer-grid a { display: block; padding-block: .4rem; color: var(--d99-text); text-decoration: none; }
.d99-footer-grid a:hover, .d99-footer-grid a[aria-current="page"] { color: var(--d99-accent); text-decoration: underline; }
.d99-footer-bottom { padding-top: 1rem; border-top: 1px solid var(--d99-border); font-size: .9rem; }
.d99-float { position: fixed; z-index: 90; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.d99-float > * { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--d99-border); border-radius: 50%; background: var(--d99-surface); color: var(--d99-accent); }
@media (max-width: 1080px) {
    .d99-menu-toggle { margin-left: auto; display: block; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--d99-border); border-radius: 8px; background: var(--d99-surface); color: var(--d99-text); }
    #d99-primary { display: none; position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - var(--d99-header) - 46px); overflow-y: auto; padding: .9rem 1rem; background: #081c1c; border-bottom: 1px solid var(--d99-border); }
    #d99-primary.d99-open { display: grid; }
    #d99-primary > a, #d99-primary summary { padding: .6rem .75rem; }
    #d99-primary details ul { position: static; width: auto; }
    .d99-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) { .admin-bar .d99-header { top: 46px; } }
@media (max-width: 600px) {
    #wpadminbar { position: fixed; }
    .d99-header-inner { width: calc(100% - 1rem); gap: .45rem; }
    .d99-brand img { width: clamp(80px, 26vw, 145px); }
    .d99-header-cta, .d99-menu-toggle { padding-inline: .55rem; font-size: .875rem; }
    .d99-hero, .d99-reference { grid-template-columns: minmax(0, 1fr); }
    .d99-hero img { aspect-ratio: 4 / 3; object-fit: cover; }
}
.d99-cards img { display: block; width: 100%; height: auto; margin-bottom: .85rem; border-radius: 8px; }
.d99-vpn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-left: 2rem; }
.d99-vpn-grid li { padding: .75rem; border: 1px solid var(--d99-border); border-radius: 10px; }
.d99-vpn-grid h3 { margin-top: 0; }
.d99-vpn-grid img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 8px; }
@media (max-width: 600px) { .d99-vpn-grid { grid-template-columns: minmax(0, 1fr); } }

.home .d99-hero { margin-block: 1.25rem 2rem; padding: clamp(1.2rem, 4vw, 3rem); background: linear-gradient(120deg,#163d37,#091f20); border-radius: 22px; border: 1px solid var(--d99-border); }
.d99-home-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.d99-home-grid .d99-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
@media (max-width: 700px) { .d99-home-grid { grid-template-columns: minmax(0,1fr); gap: 0; } }
