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

/* =========================
   ROOT / THEME
========================= */
:root {
    --bg-0: #03060a;
    --bg-1: #07111b;
    --bg-2: #0d1823;
    --panel: rgba(10, 18, 28, 0.78);
    --panel-strong: rgba(12, 22, 34, 0.92);
    --line: rgba(110, 180, 220, 0.14);
    --line-strong: rgba(0, 255, 204, 0.30);
    --text: #e8f1f7;
    --muted: #98a9b8;
    --accent: #00ffcc;
    --accent-2: #56c7ff;
    --accent-3: #7b61ff;
    --glow: 0 0 18px rgba(0, 255, 204, 0.18);
    --glow-strong: 0 0 30px rgba(86, 199, 255, 0.18);
    --radius: 18px;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
    --max-width: 1180px;
}

/* =========================
   BODY
========================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(circle at 15% 15%, rgba(86, 199, 255, 0.14), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(123, 97, 255, 0.10), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(0, 255, 204, 0.08), transparent 30%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* subtle grid overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
    opacity: 0.25;
    z-index: 0;
}

/* moving glow feel without animation dependency */
body::after {
    content: "";
    position: fixed;
    width: 560px;
    height: 560px;
    left: -140px;
    top: 18vh;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,204,0.10), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
img,
iframe,
video {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

a:hover {
    color: #7ffff0;
}

p {
    margin-bottom: 14px;
    color: var(--text);
}

ul,
ol {
    margin-left: 22px;
    margin-bottom: 12px;
}

li {
    margin-bottom: 8px;
    color: var(--text);
}

strong {
    color: #ffffff;
}

small,
.muted {
    color: var(--muted);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    width: min(100%, var(--max-width));
    margin: 18px auto 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 14px;
    z-index: 50;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(8, 14, 22, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.navbar h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f4fcff;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(86, 199, 255, 0.15);
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar nav a {
    color: #dce9f5;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.navbar nav a:hover {
    color: #041018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow);
    transform: translateY(-1px);
}

/* =========================
   LAYOUT
========================= */
.container {
    width: min(100% - 28px, var(--max-width));
    margin: 26px auto 60px;
    padding: 6px 0 0;
    position: relative;
    z-index: 1;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 56px 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,255,204,0.12), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(86,199,255,0.12), transparent 24%),
        linear-gradient(135deg, rgba(8,15,24,0.96), rgba(10,21,34,0.86));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,255,204,0.28), rgba(86,199,255,0.18), rgba(123,97,255,0.18));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 10px;
    color: #f7feff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(86, 199, 255, 0.14);
}

.subtitle {
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 700;
}

.hero p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: #d9e5ef;
}

/* =========================
   CARD SYSTEM
========================= */
.card {
    position: relative;
    margin-bottom: 22px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.075);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.025), transparent 25%),
        linear-gradient(180deg, transparent, rgba(255,255,255,0.012));
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,204,0.45), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 50px rgba(0,0,0,0.42), var(--glow-strong);
    background: var(--panel-strong);
}

/* =========================
   HEADINGS
========================= */
h2, h3, h4 {
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 1.45rem;
    color: #f6fdff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    letter-spacing: 0.4px;
}

h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: var(--glow);
}

h3 {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #eef8ff;
}

/* =========================
   BUTTONS
========================= */
.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.96rem;
    color: #021015;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(0, 255, 204, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 28px rgba(86, 199, 255, 0.22);
    filter: brightness(1.04);
    color: #011015;
}

/* =========================
   IMAGE STYLING
========================= */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
    background: #09111a;
}

/* optional image framing */
.image-frame {
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
}

/* =========================
   GRID HELPERS
========================= */
.grid-2,
.grid-3 {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   TAGS / PILLS
========================= */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tag,
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #eafcff;
    background: rgba(86, 199, 255, 0.10);
    border: 1px solid rgba(86, 199, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================
   HIGHLIGHT / QUOTE
========================= */
.highlight {
    padding: 14px 16px;
    margin-top: 14px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: rgba(0, 255, 204, 0.06);
    color: #dff9f5;
}

.quote {
    font-size: 1.08rem;
    font-style: italic;
    color: #edfaff;
    border-left: 3px solid var(--accent-2);
    padding-left: 14px;
}

/* =========================
   TABLES
========================= */
.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(6, 12, 18, 0.65);
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

th {
    background: rgba(86, 199, 255, 0.08);
    color: #f3fdff;
    font-size: 0.96rem;
    letter-spacing: 0.4px;
}

td {
    color: #dce7ef;
}

tr:hover td {
    background: rgba(255,255,255,0.025);
}

/* =========================
   CODE BLOCKS
========================= */
pre {
    background:
        linear-gradient(180deg, rgba(7,12,18,0.96), rgba(10,16,24,0.96));
    color: #dcefff;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(86,199,255,0.12);
    overflow-x: auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

code {
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.95rem;
}

/* =========================
   IFRAME / VIDEO
========================= */
iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    border-radius: 16px;
    background: #08111a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* =========================
   FORMS
========================= */
form {
    display: grid;
    gap: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    color: #eef8ff;
    background: rgba(8, 14, 22, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(0,255,204,0.45);
    box-shadow: 0 0 0 3px rgba(0,255,204,0.10);
    background: rgba(10,18,28,0.96);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========================
   FOOTER
========================= */
footer {
    width: min(100% - 28px, var(--max-width));
    margin: 30px auto 40px;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(8, 14, 22, 0.60);
    color: var(--muted);
    text-align: center;
    backdrop-filter: blur(10px);
}

/* =========================
   SECTION VARIANTS
========================= */
.panel-accent {
    background:
        radial-gradient(circle at top right, rgba(0,255,204,0.08), transparent 30%),
        var(--panel);
}

.panel-blue {
    background:
        radial-gradient(circle at top left, rgba(86,199,255,0.10), transparent 28%),
        var(--panel);
}

.panel-purple {
    background:
        radial-gradient(circle at top right, rgba(123,97,255,0.10), transparent 28%),
        var(--panel);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 960px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        margin-top: 10px;
        top: 8px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .navbar nav {
        justify-content: center;
    }

    .container {
        width: min(100% - 18px, var(--max-width));
        margin-top: 18px;
    }

    .hero {
        padding: 38px 18px;
        border-radius: 20px;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    iframe {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .navbar h1 {
        font-size: 1.05rem;
        letter-spacing: 1.2px;
    }

    .navbar nav a {
        font-size: 0.9rem;
        padding: 9px 11px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.92rem;
    }
}

.compact-grid {
    align-items: start;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.btn-secondary {
    color: #eafcff;
    background: rgba(86, 199, 255, 0.10);
    border: 1px solid rgba(86, 199, 255, 0.24);
    box-shadow: none;
}

.btn-secondary:hover {
    color: #021015;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-purple {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-3), #b794ff);
    box-shadow: 0 10px 24px rgba(123, 97, 255, 0.18);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #991b1b, #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.16);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.status {
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.9rem;
}

.ok { color: #86efac; }
.bad { color: #fca5a5; }
.warn { color: #facc15; }

.small-text {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.88rem;
}

.section-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header-row h2 {
    margin-bottom: 0;
}

.inline-tags {
    margin-top: 0;
}

.command-list {
    margin-top: 18px;
}

.command-list li {
    padding: 10px 0;
    color: #dbeafe;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.command-list li:last-child {
    border-bottom: 0;
}

.log-box {
    min-height: 160px;
    max-height: 280px;
    margin-bottom: 0;
    white-space: pre-wrap;
    overflow: auto;
}


/* =========================
   INTEGRATED PROJECT HUB
========================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card .icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.project-meta span {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .86rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.embedded-project {
    width: 100%;
    height: 78vh;
    min-height: 680px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    background: #050b12;
    box-shadow: var(--shadow);
}

.project-shell {
    padding: 0;
    overflow: hidden;
}

.project-shell-header {
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.project-shell-header h2 {
    margin-bottom: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 11px;
    border: 1px solid rgba(0,255,204,.25);
    background: rgba(0,255,204,.08);
    color: var(--accent);
    font-size: .88rem;
}

.site-map-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin-left: 0;
}

.site-map-list li {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
}

@media (max-width: 980px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .embedded-project {
        height: 70vh;
        min-height: 520px;
    }
}


/* =========================
   UI REFINEMENT PATCH
========================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(0,255,204,0.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(86,199,255,0.08), transparent 38%);
    pointer-events: none;
}

.card {
    backdrop-filter: blur(10px);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,255,204,0.22);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.35),
        0 0 18px rgba(0,255,204,0.08);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.08) 50%,
        transparent 100%
    );
    transform: translateX(-120%);
    transition: transform .6s ease;
}

.btn:hover::after {
    transform: translateX(120%);
}

.embedded-project {
    border-radius: 0 0 18px 18px;
    background: #02060a;
}

.project-shell {
    border: 1px solid rgba(255,255,255,0.08);
}

.navbar nav a {
    position: relative;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width .25s ease;
}

.navbar nav a:hover::after {
    width: 100%;
}

.map-shell {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #071018;
  cursor: grab;
  user-select: none;
}

.map-shell.dragging {
  cursor: grabbing;
}

.map-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.map-world img,
.map-image {
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

.map-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #6ee7ff;
  border: 2px solid white;
  box-shadow: 0 0 18px rgba(110,231,255,0.9);
}

.map-marker.agent .map-marker-dot {
  background: #51f0a6;
  box-shadow: 0 0 18px rgba(81,240,166,0.9);
}

.map-marker.help .map-marker-dot {
  background: #ff6b6b;
  box-shadow: 0 0 18px rgba(255,107,107,0.9);
}

.map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.map-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(8,11,18,0.82);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.map-controls button:hover {
  background: rgba(110,231,255,0.22);
}

.map-zoom-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8,11,18,0.82);
  border: 1px solid rgba(255,255,255,0.16);
  color: #dbeafe;
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.map-tooltip {
  position: absolute;
  z-index: 30;
  min-width: 180px;
  max-width: 260px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8,11,18,0.95);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  display: none;
  pointer-events: none;
}

.map-tooltip b {
  display: block;
  margin-bottom: 4px;
}

.map-tooltip small {
  color: #aab4c2;
}


/* =========================
   UNIFIED PORTFOLIO SHELL
========================= */
.navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: max-content;
    color: #f4fcff;
}

.navbar-brand span {
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-brand small {
    color: var(--accent-2);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.navbar-brand:hover { color: #fff; }

.navbar nav a.active,
.navbar nav a[aria-current="page"] {
    color: #041018;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: rgba(255,255,255,.24);
    box-shadow: var(--glow);
}

.navbar nav a.active::after,
.navbar nav a[aria-current="page"]::after { width: 100%; }

.compact-hero { padding: 42px 28px; }

.eyebrow {
    margin: 0 0 9px;
    color: var(--accent-2);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.centered-actions { justify-content: center; }

.card-static:hover {
    transform: none;
    background: var(--panel);
}

.project-shell { padding: 0; }

.project-shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
}

.project-shell-header h2 { margin: 8px 0 6px; }
.project-shell-header p { margin-bottom: 0; }

.embedded-project {
    display: block;
    width: 100%;
    height: 78vh;
    min-height: 680px;
    border: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    border: 1px solid rgba(0,255,204,.25);
    background: rgba(0,255,204,.08);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.demo-card {
    display: block;
    min-height: 165px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(4,16,26,.62);
    color: var(--text);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.demo-card:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: rgba(0,255,204,.48);
    background: rgba(10,28,40,.82);
}

.demo-card.active {
    border-color: rgba(0,255,204,.72);
    background: linear-gradient(145deg, rgba(0,255,204,.16), rgba(86,199,255,.08));
    box-shadow: var(--glow);
}

.demo-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--accent-2);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.demo-card h3 { margin-top: 22px; }
.demo-card p { color: var(--muted); font-size: .9rem; line-height: 1.48; }
.viewer-header { align-items: center; }
.viewer-actions { margin-top: 0; justify-content: flex-end; }
.cultural-frame { min-height: 650px; }
.kids-frame { min-height: 760px; }

@media (max-width: 1180px) {
    .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .navbar-brand { align-items: center; }
    .compact-hero { padding: 32px 18px; }
    .embedded-project, .cultural-frame, .kids-frame { min-height: 520px; height: 70vh; }
    .viewer-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .demo-grid { grid-template-columns: 1fr; }
    .demo-card { min-height: 0; }
}
