html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}


:root {
    --wire-px: 5px;
    --lab-white: #ffffff;
    --lab-bg: #f8f9fa;
    --lab-border: #e2e8f0;
    --gold: #D4AF37;
    --gold-light: #F1E5AC;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --mono: 'IBM Plex Mono', monospace;
    --bg: #f8faff;
    --white: #ffffff;
    --shadow: #dbe2ef;
    --gold-glow: 0 0 12px rgba(212, 175, 55, 0.6);
    /* Trading Palette */
    --signal-green: #00ff88;
    --signal-red: #ff3264;
    --signal-neutral: #ffffff; /* A bright flash in the middle of the transition */
    /* Orbit Configuration */
    --r-base: 320px;
    --r-ext: 380px;
    --chip-size: 110px;
    --gold-metallic: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

.ps-container {
    width: 220px;
    height: 220px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* clip so the glyph never pushes or overlaps neighboring product boxes */
    overflow: hidden;
    z-index: 0;
}

/* Glyph is absolutely positioned and centered.
   Use a small upward nudge so it doesn't appear visually cut.
   Reduce font-size / stroke so the symbol fully fits the container. */
.alch-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%); /* slight raise so it isn't cut off */
    font-family: "Segoe UI", "Arial", sans-serif;
    font-size: 300px; /* constrained to container size */
    line-height: 1;
    display: inline-block;
    pointer-events: none;
    -webkit-text-stroke: 4px var(--bg); /* thinner stroke to avoid overflow */
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: drop-shadow(0 0 4px rgba(184, 134, 11, 0.25));
    animation: shimmer-move 12s linear infinite;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    z-index: 1; /* sits inside the container but above decorative layers */
}

/* Tweak for small screens */
@media (max-width: 480px) {
    .ps-container {
        width: 140px;
        height: 140px;
    }

    .alch-glyph {
        font-size: 110px;
        -webkit-text-stroke: 3px var(--bg);
        transform: translate(-50%, -55%);
    }
}

/* --- SALT (The Body) --- 
   A circle with a horizontal line through the center */
.sym-salt {
    border: 2px solid var(--gold);
    border-radius: 50%;
}

    .sym-salt::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gold);
        transform: translateY(-50%);
    }

/* --- SULFUR (1F70D) CONTAINER, Triangle with across --- */
.sulfur-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
}

/* --- SILVER (1F71B) CONTAINER --- */
.silver-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. THE OUTER ARC (The Back of the Moon) */
.moon-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Only the left wire is visible */
    border-left: var(--wire-px) solid var(--gold);
    background: transparent;
    /* Rotated so the crescent faces the center stage */
    transform: rotate(20deg);
}

/* 2. THE INNER ARC (The Belly of the Moon)
   Same height (100px), but narrower width (70px).
   Because heights match, they touch at the top and bottom. */
.moon-inner {
    position: absolute;
    width: 70%;
    height: 100%;
    border-radius: 50%;
    /* Only the left wire is visible */
    border-left: var(--wire-px) solid var(--gold);
    background: transparent;
    /* Aligned to glance the outer wire at the tips */
    transform: rotate(20deg);
    /*left: 42px;*/ /* Mathematically offset to meet the outer arc */
}

/* --- COPPER ANTIMONIATE (1F725) CONTAINER --- */
.ca-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

/* 1. THE ORB (The Material Body)
   Hollow 2px gold circle */
.ca-orb {
    position: absolute;
    bottom: 5%; /* Sits in the lower half of the 150px footprint */
    width: 50%;
    height: 50%;
    border: var(--wire-px) solid var(--gold);
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
}

/* 2. THE VERTICAL STEM (The Spiritual Axis)
   Glances the top of the orb perfectly */
.ca-stem {
    position: absolute;
    top: 10%; /* Positioned at the top of the container */
    left: 50%;
    width: var(--wire-px);
    height: 35%; /* Extends down to meet the orb */
    background: var(--gold);
    transform: translateX(-50%);
}

/* 3. THE CROSSBAR 
   A horizontal 2px wire glancing the vertical stem */
.ca-bar {
    position: absolute;
    top: 28%; /* Positioned in the upper half of the stem */
    left: 50%;
    width: 40%;
    height: var(--wire-px);
    background: var(--gold);
    transform: translateX(-50%);
}

/* --- PERCENTAGE-BASED TRIDENT (1F751) --- */
.trident-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

/* 1. THE MAIN STEM (Central Axis) */
.trident-stem {
    position: absolute;
    left: 50%;
    top: 15%; /* Starts at 15% of height */
    height: 100%; /* Spans 70% of height */
    width: var(--wire-px);
    background: var(--gold);
    transform: translateX(-50%);
}

/* 2. THE CONNECTING BAR (Horizontal Bridge) */
.trident-bar {
    position: absolute;
    left: 50%;
    top: 55%; /* Glancing point: Prongs (30% + 25%) = 55% */
    width: 45%; /* Total width of the prong-span */
    height: var(--wire-px);
    background: var(--gold);
    transform: translateX(-50%);
}

/* 3. THE LEFT PRONG */
.trident-prong-l {
    position: absolute;
    left: 27.5%; /* 50% center - 22.5% (half of bar) */
    top: 30%;
    height: 25%;
    width: var(--wire-px);
    background: var(--gold);
}

/* 4. THE RIGHT PRONG */
.trident-prong-r {
    position: absolute;
    left: 72.5%; /* 50% center + 22.5% (half of bar) */
    top: 30%;
    height: 25%;
    width: var(--wire-px);
    background: var(--gold);
    /* Adjust for wire thickness so it stays 'inside' the 45% width */
    transform: translateX(-100%);
}

/* 1. THE HOLLOW TRIANGLE 
   Using your exact equilateral ratio and 'donut' path */
.sulfur-triangle {
    position: absolute;
    top: 0;
    width: 86.6%; /* Geometric ratio */
    height: 60%; /* Sized to leave room for the cross below */
    background: var(--gold);
    /* Hollow out the triangle: Outer path then Inner path */
    clip-path: polygon( 50% 0%, 100% 100%, 0% 100%, 50% 0%, 50% 3%, 6% 97%, 94% 97%, 50% 3% );
}

/* 2. THE VERTICAL STEM 
   Glances the bottom edge of the triangle perfectly */
.sulfur-stem {
    position: absolute;
    top: 60%; /* Starts exactly where the triangle ends */
    left: 50%;
    width: var(--wire-px);
    height: 35%;
    background: var(--gold);
    transform: translateX(-50%);
}

/* 3. THE CROSSBAR 
   Rectilinear horizontal trace crossing the stem */
.sulfur-crossbar {
    position: absolute;
    top: 77.5%; /* Centered on the vertical stem */
    left: 50%;
    width: 45%;
    height: var(--wire-px);
    background: var(--gold);
    transform: translateX(-50%);
}

/* --- MERCURY (The Mind) --- 
   Crescent on top, Circle in middle, Cross on bottom */
.sym-mercury {
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    margin: 15px auto;
}

    /* The Crescent horns */
    .sym-mercury::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        width: 25px;
        height: 12px;
        border: 2px solid var(--gold);
        border-bottom: 0;
        border-radius: 50% 50% 0 0;
        transform: translateX(-50%);
    }
    /* The Cross base */
    .sym-mercury::after {
        content: '+';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--gold);
        font-size: 1.5rem;
        font-weight: 100;
    }

/* --- FIRE --- 
   An upward triangle */
.sym-fire {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--gold);
}

/* --- AIR --- 
   An upward triangle with a horizontal bar */
.sym-air {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--gold);
}

    .sym-air::after {
        content: '';
        position: absolute;
        top: 15px;
        left: -10px;
        width: 20px;
        height: 2px;
        background: var(--bg);  /*"Cuts" through the triangle */
    }
/* --- THE ELEMENTS --- */

/* WATER (Downward Triangle) */
.sym-water::before {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(45deg);
}

/* EARTH (Downward Triangle with Bar) */
.sym-earth::before {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(45deg);
}

.sym-earth::after {
    content: '';
    position: absolute;
    top: 32px;
    width: 42px;
    height: 2px;
    background: var(--gold);
}

/* --- THE METALS / PLANETS --- */

/* GOLD / SOL (Circle with Center Point) */
.sym-gold {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

    .sym-gold::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 6px;
        background: var(--gold);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

/* COPPER / VENUS (Circle with Cross Below) */
.sym-copper {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    margin-top: -15px;
}

    .sym-copper::after {
        content: '';
        position: absolute;
        top: 35px;
        left: 50%;
        width: 2px;
        height: 18px;
        background: var(--gold);
        transform: translateX(-50%);
        box-shadow: -8px 10px 0 -8px var(--gold), 8px 10px 0 -8px var(--gold); /* The Crossbar */
    }
/* Specifically add the crossbar for copper */
.sym-copper-bar {
    position: absolute;
    bottom: 2px;
    width: 16px;
    height: 2px;
    background: var(--gold);
}

/* ANTIMONY (Circle with Cross Above) */
.sym-antimony {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    margin-top: 15px;
}

    .sym-antimony::after {
        content: '';
        position: absolute;
        top: -18px;
        left: 50%;
        width: 2px;
        height: 18px;
        background: var(--gold);
        transform: translateX(-50%);
    }

.sym-antimony-bar {
    position: absolute;
    top: -10px;
    width: 16px;
    height: 2px;
    background: var(--gold);
}

/* IRON / MARS (Circle with Arrow) */
.sym-iron {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

    .sym-iron::after {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        width: 15px;
        height: 15px;
        border-top: 2px solid var(--gold);
        border-right: 2px solid var(--gold);
    }

    .sym-iron::before {
        content: '';
        position: absolute;
        top: -8px;
        right: -8px;
        width: 2px;
        height: 20px;
        background: var(--gold);
        transform: rotate(-45deg);
        transform-origin: top right;
    }

/* --- THE PROCESSES --- */

/* AMALGAMATION (Horizontal Line with two semi-circles) */
.sym-amalgam {
    width: 50px;
    height: 2px;
    background: var(--gold);
}

    .sym-amalgam::before, .sym-amalgam::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 10px;
        border: 2px solid var(--gold);
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
    }

    .sym-amalgam::before {
        left: 0;
        top: -10px;
    }

    .sym-amalgam::after {
        right: 0;
        top: -10px;
    }




.btn-main {
    background: #111827;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
}


        /* Buttons & UI Elements */
.btn-gold {
   /* background: var(--gold);*/
    background: linear-gradient(90deg, #D4AF37, #FFD700, #B8860B, #D4AF37);

/*   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;*/
    animation: shimmer 4s linear infinite;
    color: white;
    padding: 1.2rem 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    margin-right: 2rem;
    cursor: pointer;
}


.gold-shimmer {
    background: linear-gradient(90deg, #D4AF37, #FFD700, #B8860B, #D4AF37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Standard Phone Adjustments (Approx 390px - 430px) */
@media (max-width: 500px) :root {
    --r-base: 130px; /* Much smaller circle for phones */
    --r-ext: 160px;
    --chip-size: 85px;
}

.clean-room {
    display: none;
}
/* previously unused layout helper; hidden to avoid accidental use */

.signal-shimmer { /* left for future use, kept minimal */
    background: linear-gradient(90deg, #065F46, #F87171, #10B981, #065F46);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 25s linear infinite;
}

/* Utility classes used in markup */
.flex-column {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.flex-columnS {
    display: inline-flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.hub-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    max-width: 400px;
}
/* --- THE RESPONSIVE CIRCUIT BOARD --- */
.circuit-board {
    position: relative;
    width: 600px;
    height: 600px;
    aspect-ratio: 1 / 1; /* Keeps the center anchored */
    margin: 4rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Grid Styling */
.rectilinear-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gold-wire {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    opacity: 0.1;
    stroke-linejoin: round;
}

/* 2. Neumorphic Buttons (Chips) */
.button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--chip-size);
    height: var(--chip-size);
    z-index: 10;
    /* The Math: Center the button, rotate it, push it out by radius, rotate text back */
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-chip {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: none;
    background: var(--bg);
    box-shadow: 12px 12px 24px var(--shadow), -12px -12px 24px var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 10;
}

    .neu-chip:hover {
        transform: translateY(-5px);
        color: var(--gold);
    }

    .neu-chip.active {
        box-shadow: inset 8px 8px 16px var(--shadow), inset -8px -8px 16px var(--white);
        color: var(--gold);
    }

/* 2. The Stack for Text */
.chip-label-stack {
    position: relative;
    width: 100%;
    height: 20px; /* Fixed height for the text area */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. The Gold Symbols (Default View) */
.alch-label {
    position: absolute;
    font-family: 'Noto Sans Symbols 2', sans-serif !important;
    font-size: 1.1rem;
    letter-spacing: 3px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    /* Shimmer Effect */
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-move 4s linear infinite;
    pointer-events: none;
}

/* 4. The Real Label (Hidden View) */
.real-label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    opacity: 0;
    transform: translateY(20px); /* Starts below */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* 5. HOVER & ACTIVE LOGIC */
/* If hovered OR if it's the selected product, show the real name */
.reveal-trigger:hover .alch-label,
.reveal-trigger.active .alch-label {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(4px);
}

.reveal-trigger:hover .real-label,
.reveal-trigger.active .real-label {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Active Button Styling */
.neu-chip.active {
    box-shadow: inset 4px 4px 8px var(--soft-shadow), inset -4px -4px 8px var(--white-glow);
    transform: scale(0.95);
}

    .neu-chip.active .real-label {
        color: #aa771c; /* Gold text when active */
    }

.pin {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 10px;
    box-shadow: var(--gold-glow);
}

.label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #666;
}

/* 3. Glassmorphism Popup */
.center-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    padding: 40px;
    position: relative;
    animation: glassPop 0.5s ease-out;
}

@keyframes glassPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glass-content h2 {
    color: #444;
    margin: 0;
    letter-spacing: 2px;
}

.gold-divider {
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin: 15px 0;
}

.glass-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

/* 4. Core Decoration */
/* 2. Ensure the container inside the anchor fills the space and centers content */
.central-hub-container {
    pointer-events: none; /* Re-enable clicks for buttons inside */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.glass-panel {
    pointer-events: auto; /* Re-enable clicks for buttons inside */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.pulse-ring {
    width: 300px;
    height: 300px;
    vertical-align: central;
    /*         border: 2px solid var(--gold);
        border-radius: 50%; */
    margin: 20px auto;
    opacity: 0;
    animation: pulse 12s infinite;
    pointer-events: none;
}


@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    20% {
        opacity: 0.2;  Becomes visible quickly 
    }

    80% {
        opacity: 0.4;  Stays visible almost until the very end 
    }

    100% {
        transform: scale(1);
        opacity: 0;  Only vanishes at the very last moment 
    }
}

/* 5. Packet Travel */


.lab-container {
    background-color: var(--lab-white);
    color: var(--text-dark);
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Grid Overlay for Lab Feel */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--lab-border) 1px, transparent 1px), linear-gradient(90deg, var(--lab-border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Conduit Animation */
.conduit-system {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.gold-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawGold 8s linear infinite;
    filter: blur(2px);
}

@keyframes drawGold {
    0% {
        stroke-dashoffset: 800;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }
    /* Starts visible very quickly */
    15% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    /* Finished movement by 15% */
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    /* Stays hidden for the remaining 85% */
}

.pulse {
    filter: drop-shadow(0 0 5px var(--gold));
}

/* Navigation */
.lab-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--lab-border);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.gold-highlight {
    color: var(--gold);
}

.status-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    margin-left: 2rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

.blink {
    color: #22c55e;
    margin-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav-right a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 2rem;
    letter-spacing: 1px;
}

/* Hero Section */
.lab-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-text {
    font-family: var(--mono);
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 80;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-actions {
    position: relative;
    width: 100%;
    /* This is the magic fix: ensure this area is tall enough for the 1000x1000 logic */
    min-height: 800px;
    margin: 40px 0; /* Add vertical breathing room */
    display: flex;
    justify-content: center;
    align-items: center;
}


@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid Cards */
.lab-grid-content {
    display: flex;
    /*     flex-direction: column; */ /* This is the "Magic" switch to vertical */
    gap: 2rem;
    padding: 0 4rem 4rem;
    position: relative;
    z-index: 10;
}

.node-card {
    background: white;
    border: 1px solid var(--lab-border);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

    .node-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    }

.gold-border {
    border-top: 4px solid var(--gold);
}

.node-header {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}



.data-badge {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
}

    .data-badge .label {
        font-size: 0.6rem;
        color: var(--text-muted);
        font-family: var(--mono);
    }

    .data-badge .value {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--gold);
    }

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono);
    color: var(--text-dark);
    font-size: 0.9em;
}



/* 1. Define the movement logic */
@keyframes travel-path {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* 2. Apply it to the packet */
.data-packet {
    /* Critical: This must be set to the SVG path string via inline style in Razor */
    offset-rotate: auto;
    /* Animation settings */
    animation: travel-path 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* Look and feel */
    fill: #fff;
    stroke: #ffd700;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px #ffd700);
}

/* Ensure the SVG container allows items to move outside its viewbox if needed */
.rectilinear-grid {
    overflow: visible;
    pointer-events: none;
}



/* The Button Class */
.btn-gold-shimmer {
    /* Base Gold Gradient */
    background: linear-gradient( 90deg, #bf953f 0%, #fcf6ba 45%, #ffffff 50%, #fcf6ba 55%, #bf953f 100% );
    background-size: 300% 100%; /* Make gradient wide so it can slide */
    /* Animation */
    animation: shimmer-move 24s infinite linear;
    /* Neumorphic Shadow (Outer) */
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Layout & Text */
    border: none;
    border-radius: 15px;
    color: #3d2b08; /* Dark brown/gold text for readability */
    font-weight: 700;
    padding: 15px 40px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 3s, box-shadow 3s;
    outline: none;
}


    /* Pressed state: Neumorphic Inset */
    .btn-gold-shimmer:active {
        transform: translateY(1px);
        box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
    }

    /* Disabled state */
    .btn-gold-shimmer:disabled {
        background: #d1d9e6;
        color: #999;
        animation: none;
        cursor: not-allowed;
        box-shadow: none;
    }
/* The Shimmer Animation */
@keyframes shimmer-move {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}



