/* --- THE PALETTE OF OZ & HARPERVILLE --- */
:root {
    /* The Canvas */
    --void-emerald: #021a12; /* Almost black, deep forest green */
    --text-ivory: #f0f0f0;
    
    /* The Wicked Spectrum */
    --glinda-pink: #ff00cc;
    --elphaba-green: #39ff14;
    --oz-gold: #ffd700;
    --ruby-slipper: #e60026;
    
    /* The Font Stack */
    --font-main: 'Helvetica Neue', Arial, sans-serif; /* We keep it Swiss & Clean */
}

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

/* --- THE GLOBAL BODY (Default: Free & Scrollable) --- */
body {
    background-color: var(--void-emerald);
    color: var(--text-ivory);
    font-family: var(--font-main);
    
    /* The Reset */
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* The Freedom Settings */
    min-height: 100vh; /* At least full screen, but can grow */
    overflow-y: auto;  /* Scroll if you need to */
    overflow-x: hidden; /* No side-wobble */
    position: relative;
}

/* --- THE LANDING PAGE LOCK (Apply ONLY to index.html) --- */
body.cinematic-lock {
    height: 100vh; /* Force exactly one screen high */
    overflow: hidden; /* Kill the scroll */
    
    /* Center the content perfectly */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Delete the old .allow-scroll class if you see it down below. 
   We don't need it anymore because the default is now scrolling. */

/* --- THE AESTHETIC --- */

/* --- THE WICKED SHIMMER EFFECT --- */

/* The container sets the stage for the spectral magic */
.spectral-logo-container {
    position: relative;
    width: 80%; /* Adjust width as needed based on your actual PNG size */
    max-width: 600px; /* Ensures it doesn't get too huge on big screens */
    margin: 0 auto 1rem auto; /* Centers it */
    
    /* THE MAGIC: This uses the image itself as a mask. 
       Anything outside the letters becomes invisible. */
    -webkit-mask-image: url('assets/images/harperville-logo.png');
    mask-image: url('assets/images/harperville-logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* The actual image sits at the bottom layer */
.main-logo {
    width: 100%;
    height: auto;
    display: block;
    /* We dim the base image slightly so the glimmer pops more */
    filter: brightness(0.8) contrast(1.2); 
}

/* The "Comet" - A pseudo-element that slides across the top */
.spectral-logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 50%; /* The width of the glimmer band */
    height: 100%;
    
    /* The Wicked Gradient: Elphaba Green to Glinda Pink to Oz Gold */
    background: linear-gradient(
        120deg, 
        transparent 0%, 
        var(--elphaba-green) 30%, 
        var(--glinda-pink) 50%, 
        var(--oz-gold) 70%, 
        transparent 100%
    );
    
    /* Blending it to look like light */
    mix-blend-mode: overlay; 
    opacity: 0.8;
    
    /* The Animation */
    animation: comet-pass 3s ease-in-out infinite; /* Runs every 3 seconds */
}

/* Define the animation movement */
@keyframes comet-pass {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    50% { left: 150%; opacity: 0; } /* Moves all the way across and fades out */
    100% { left: 150%; opacity: 0; } /* Pauses before restarting */
}

.subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 4rem;
}

.container {
    text-align: center;
    z-index: 2; /* Sits above the noise */
    position: relative;
}

/* The Motto: The "Wicked" Gradient Text */
.provocation h2 {
    font-size: 3rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.highlight {
    background: linear-gradient(90deg, var(--elphaba-green), var(--glinda-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* --- THE WINNER'S SHIMMER (Money Talks) --- */
.gold-pulse {
    /* The Metallic Gradient Stack */
    background: linear-gradient(
        to right,
        #bf953f, /* Dark Gold */
        #fcf6ba, /* The High Shine (White-Gold) */
        #b38728, /* Medium Gold */
        #fbf5b7, /* Another Shine */
        #bf953f  /* Back to Dark */
    );
    
    /* Make the background huge so we can move it */
    background-size: 200% auto;
    
    /* Clip it to the text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* The Animation: A slow, confident roll of light */
    animation: gold-shimmer 3s linear infinite;
    
    /* The Glow: A subtle aura of wealth */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    
    display: inline-block; /* Keeps the glint stable */
}

/* The Physics Engine */
@keyframes gold-shimmer {
    to {
        background-position: 200% center;
    }
}
/* The Button: Glassmorphism */
.btn-sovereign {
    text-decoration: none;
    color: var(--text-ivory);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05); /* Glass feel */
    backdrop-filter: blur(5px);
}

.btn-sovereign:hover {
    border-color: var(--elphaba-green);
    box-shadow: 0 0 20px var(--elphaba-green);
    color: var(--elphaba-green);
}

/* Optional: Film Grain Noise Overlay for Texture */
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}
/* --- THE BINARY CHOICE --- */

.gate-wrapper {
    display: flex;
    flex-direction: column; /* Stack them vertically */
    gap: 1.5rem; /* Space between buttons */
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

/* Update the Sovereign Button (The Green Path) */
.btn-sovereign {
    /* existing styles remain, just ensuring these specifics */
    background: rgba(2, 26, 18, 0.6); /* Deep Emerald Glass */
    border: 1px solid var(--elphaba-green);
    color: var(--elphaba-green);
    font-weight: 700;
    width: 300px; /* Uniform width */
    text-align: center;
}

.btn-sovereign:hover {
    background: var(--elphaba-green);
    color: var(--void-emerald); /* Invert text on hover */
    box-shadow: 0 0 30px var(--elphaba-green);
}

/* The Monkey Button (The Red Path) */
.btn-monkey {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem; /* Smaller font - it's the "fine print" exit */
    padding: 1rem 2rem;
    width: 300px; /* Match width */
    text-align: center;
    transition: all 0.3s ease;
    
    /* The Inversed/Warning Look */
    background: transparent;
    color: rgba(255, 255, 255, 0.4); /* Ghostly text */
    border: 1px solid rgba(230, 0, 38, 0.3); /* Dim Ruby border */
}

.btn-monkey:hover {
    color: var(--ruby-slipper);
    border-color: var(--ruby-slipper);
    box-shadow: inset 0 0 20px rgba(230, 0, 38, 0.2); /* Inner red glow */
    background: rgba(0,0,0,0.5);
}
/* --- THE MAINFRAME DASHBOARD --- */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    padding-bottom: 1rem;
}

.system-status {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-ivory);
}

.exit-link {
    color: var(--ruby-slipper);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.exit-link:hover {
    opacity: 0.7;
}

/* --- THE BENTO GRID SYSTEM --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    grid-template-rows: repeat(3, minmax(150px, auto)); /* 3 Rows */
    gap: 1.5rem;
}

/* THE CARDS (Glassmorphism Blocks) */
.card {
    background: rgba(2, 26, 18, 0.7); /* Dark Emerald Glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-ivory);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--elphaba-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(57, 255, 20, 0.3);
}

/* --- SPECIFIC CARD SIZING (The "Tetris" Logic) --- */

/* --- PROFILE CARD SPECIFICS --- */

/* Profile: Big box, Top Left */
.profile-card {
    grid-column: span 2;
    grid-row: span 2;
    overflow: hidden; /* Ensure rounded corners clip the image */
    position: relative;
    color: var(--text-ivory);

    /* --- THE SOVEREIGN BACKGROUND STACK --- */
    /* We layer the gradient ON TOP of the image in one rule. */
    background-image:
        /* LAYER 1 (Top): The Ghost Gradient */
        linear-gradient(
            to bottom,              
            rgba(2, 26, 18, 0.0) 5%,   /* Top: Completely transparent (Crystal clear) */
            rgba(2, 26, 18, 0.1) 70%,  /* Middle: Very subtle hint of emerald */
            rgba(0, 0, 0, 0.6) 100%    /* Bottom: Just dark enough to read the white text */
        ),
        /* LAYER 2 (Bottom): The Image */
        url('assets/images/jackofharperville.png');

    /* Scaling mechanics */
    background-size: cover; /* Fills the box without stretching distorting */
    background-position: center top; /* Focuses on the top center (best for portraits) */
    background-repeat: no-repeat;
}

/* Adjusting internal alignment for the profile text */
.profile-content-align {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes the text down into the dark gradient area */
    padding-bottom: 1rem; /* A little breathing room at the bottom edge */
}

/* Ensure the text styling pops against the new dark background */
.profile-card h3 {
    font-size: 2.5rem; /* Made it slightly bigger */
    background: linear-gradient(90deg, var(--oz-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8)); /* Extra shadow for readability */
}

.profile-card .bio {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%; /* Keeps the text from getting too wide */
}

.profile-card .role {
    color: var(--elphaba-green);
    font-family: monospace;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Vault: Tall box, Top Right */
.vault-card {
    grid-column: span 1;
    grid-row: span 2;
    border: 1px solid var(--oz-gold); /* Gold border for the Vault */
}

.vault-card:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Ledger: Wide box, Middle Right */
.ledger-card {
    grid-column: span 1;
    grid-row: span 1;
}

/* Status: Wide box, Bottom Left */
.status-card {
    grid-column: span 2;
    display: flex;
    justify-content: center;
}

.status-row {
    margin-bottom: 0.5rem;
    font-family: monospace;
    color: rgba(255,255,255,0.6);
}

.status-row i {
    color: var(--ruby-slipper);
    margin-right: 10px;
}

/* Music: Spans 2 columns, taller height for the list view */
.music-card {
    grid-column: span 2;
    grid-row: span 2; /* Increased height so you can see the song list */
    min-height: 450px; /* Force it to be tall enough for the player */
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Stack everything in 1 column on phone */
        grid-template-rows: auto;
    }
    
    .profile-card, .vault-card, .ledger-card, .status-card, .music-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* --- THE LEDGER & PR WIRE --- */

/* The Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Auto-responsive columns */
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* The Blog Card */
.blog-card {
    background: rgba(2, 26, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--elphaba-green); /* The "Spine" */
}

.blog-card:hover {
    transform: translateY(-5px);
    background: rgba(2, 26, 18, 0.9);
    border-color: var(--elphaba-green);
}

.blog-date {
    font-size: 0.8rem;
    color: var(--oz-gold);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-ivory);
}

.blog-summary {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.read-more {
    color: var(--elphaba-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- THE PR MODAL (Glass Overlay) --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark background */
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: rgba(2, 26, 18, 0.95);
    border: 1px solid var(--oz-gold);
    padding: 2rem;
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.2);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 1rem;
}

.modal-header h3 {
    color: var(--oz-gold);
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--ruby-slipper);
    font-size: 1.5rem;
    cursor: pointer;
}

/* The Scrolling List for PRs */
.pr-list-scroll {
    max-height: 300px;
    overflow-y: auto; /* Scrollable if list gets long */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* PR Link Styling */
.pr-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-ivory);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.pr-link:hover {
    border-color: var(--oz-gold);
    background: rgba(255, 215, 0, 0.1);
}

.pr-date {
    font-family: monospace;
    color: var(--elphaba-green);
    margin-right: 1rem;
}

.pr-title {
    flex-grow: 1;
    font-size: 0.9rem;
}
/* --- BLOG POST STYLING --- */

.post-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
    padding-bottom: 2rem;
}

.post-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-ivory);
    text-transform: uppercase;
}

/* THE STATUS STRIP (The Dashboard) */
.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    flex: 1; /* Make them share space equally */
    min-width: 120px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1rem;
}

.status-item:last-child {
    border-right: none;
}

.status-label {
    font-size: 0.65rem;
    color: var(--oz-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: monospace;
}

.status-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--elphaba-green);
    font-family: monospace;
}

/* CONTENT TYPOGRAPHY */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--oz-gold);
    border-left: 2px solid var(--ruby-slipper);
    padding-left: 1rem;
}

.post-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--glinda-pink);
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
}

.post-footer {
    margin-top: 4rem;
    text-align: center;
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-sig {
    width: 150px;
    margin-bottom: 1rem;
    filter: grayscale(1);
}
/* --- LAYOUT & SCROLLING FIXES --- */

/* 1. Ensure the main window allows scrolling */
html, body {
    height: auto !important; /* Overrides fixed height */
    min-height: 100% !important;
    overflow-y: auto !important; /* Forces scrollbar */
    margin: 0;
}

/* 2. The Main Wrapper for the Blog Page */
/* You must wrap your entire blog HTML in a div with this class */
.blog-page-wrapper {
    width: 100%;
    min-height: 100vh; /* Fill at least the screen, but grow if needed */
    height: auto;      /* Crucial: Allows the box to grow with text */
    
    /* Reset Flexbox centering so it doesn't lock in the middle */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to top, not center */
    align-items: center;         /* Keeps content centered horizontally */
    
    padding: 4rem 1rem; /* Adds breathing room top/bottom/sides */
    box-sizing: border-box;
}

/* 3. Container Width Control */
/* Prevents the text from being too wide on large screens */
.post-container {
    width: 100%;
    max-width: 800px; /* Standard readable width */
    margin: 0 auto;   /* Centers the block horizontally */
}
/* --- THE DEFY GRAVITY ANIMATION (TRUE WEST) --- */

#broomstick-ride {
    position: fixed;
    z-index: 9999;
    width: 300px; /* Adjust based on your image size */
    
    /* Starting Position: Hiding in the South-East (Bottom-Right) */
    bottom: -300px; 
    right: -300px; /* Hiding off the right edge */
    
    /* Smooth movement */
    pointer-events: none;
}

/* The Class that triggers the flight */
.launch-sequence {
    animation: western-sky 1.5s ease-in forwards;
}

@keyframes western-sky {
    0% {
        bottom: -300px;
        right: -300px;
        transform: rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Appear quickly */
    }
    100% {
        /* Fly to the Western Sky (Top-Left) */
        bottom: 120%; /* Way up high */
        right: 120%;  /* Way over to the left */
        
        /* Tilt nose-up towards the West */
        /* Assuming your image is horizontal, handle-left */
        transform: rotate(-25deg); 
    }
}
/* --- I v1.5 (IVY WILLOW) --- */

.ivy-card {
    grid-column: span 1;
    grid-row: span 1;
    background: #020a06; /* Almost black */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(57, 255, 20, 0.3);
    text-decoration: none; /* Kills the underline on the link */
    color: var(--text-ivory);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background Image Logic */
.card-bg-ivy {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Ensure you save the image as 600x600px */
    background-image: url('assets/images/ivy-dark.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Keep it subtle so text pops */
    transition: all 0.5s ease;
    z-index: 0;
}

.ivy-card:hover .card-bg-ivy {
    opacity: 0.6;
    transform: scale(1.05);
}

/* Content needs to sit above the image */
.ivy-card .card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* The Status Row (Dot + Text) */
.status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Pushes it to the bottom */
}

/* The Glowing Green Dot */
.ivy-eye-glow-dot {
    width: 8px;
    height: 8px;
    background-color: var(--elphaba-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--elphaba-green);
    animation: blink-eye 4s infinite;
}

.status-blink {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--elphaba-green);
    margin: 0;
}

@keyframes blink-eye {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
/* --- SOVEREIGN MAP STYLING --- */

/* The Hover Cue on the Status Card */
.map-hover-cue {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 26, 18, 0.8); /* Dark tint */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--oz-gold);
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(3px);
}

.status-card:hover .map-hover-cue {
    opacity: 1; /* Show on hover */
}

/* Modal Sizing */
.map-modal-size {
    width: 95%;
    max-width: 1200px; /* Cinematic width */
    height: 85vh; /* Tall */
    display: flex;
    flex-direction: column;
    padding: 1rem; /* Tighter padding for map focus */
}

/* The Map Wrapper */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #05140e;
    border: 1px solid var(--oz-gold);
    border-radius: 4px;
    box-shadow: inset 0 0 50px #000; /* Inner shadow for vignette */
}

.oz-base-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the box */
    opacity: 0.9;
    filter: sepia(20%) contrast(1.1); /* Vintage vibe */
}

/* --- MAP PINS --- */
.map-pin {
    position: absolute;
    transform: translate(-50%, -50%); /* Centers pin on coordinates */
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Let clicks pass through */
}

.pin-dot {
    width: 10px;
    height: 10px;
    background: var(--oz-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--oz-gold);
    margin-bottom: 5px;
    animation: pulse-dot 3s infinite;
}

.dot-red {
    background: var(--ruby-slipper);
    box-shadow: 0 0 15px var(--ruby-slipper);
}

.star-icon {
    font-size: 1.5rem;
    color: var(--elphaba-green);
    filter: drop-shadow(0 0 8px var(--elphaba-green));
    margin-bottom: 5px;
    animation: float-star 3s ease-in-out infinite;
}

.pin-label {
    font-family: monospace;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-highlight {
    background: var(--elphaba-green);
    color: #000;
    font-weight: bold;
    border: 1px solid #fff;
}

/* Animations */
@keyframes pulse-dot {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes float-star {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
/* --- IVY MODAL & CHAT STYLING --- */

.ivy-modal-size {
    width: 90%;
    max-width: 500px; /* Phone width */
    height: 80vh;
    background: #000;
    border: 1px solid var(--elphaba-green);
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.2);
    display: flex;
    flex-direction: column;
}

.ivy-chat-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Contains the scroll */
    background: #050505;
}

#ivy-chat-log {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bubbles */
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.bubble-user {
    align-self: flex-end;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--oz-gold);
    color: var(--oz-gold);
    border-bottom-right-radius: 2px;
}

.bubble-ivy {
    align-self: flex-start;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--elphaba-green);
    color: #fff;
    border-bottom-left-radius: 2px;
}

/* Input Area */
#ivy-chat-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(57, 255, 20, 0.3);
    background: #000;
}

#ivy-input {
    flex-grow: 1;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    outline: none;
}

#ivy-send-btn {
    background: transparent;
    border: none;
    color: var(--elphaba-green);
    font-size: 1.3rem;
    margin-left: 12px;
    cursor: pointer;
}

.pulse-text { animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }