/* Components */

/* Neon Text */
.neon-text {
    transform: translateY(-0.1em);
    line-height: 1;
    font-family: "Monoton", "Courier Prime", monospace;
    font-size: clamp(22px, 2.6vw, 36px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #edffff;
    display: inline-flex;
    align-items: center;
    /* Fibonacci Glow: 5, 13, 21, 34, 55, 89 */
    text-shadow: 0 0 5px #edffff, 0 0 13px #53fff4, 0 0 21px #53fff4,
        0 0 34px #bc13fe, 0 0 55px #bc13fe, 0 0 89px #bc13fe;
    animation: neon-slow-pulse 4s ease-in-out infinite alternate;
    transform: translateY(calc(-0.1em - var(--neon-lift)));
}

.neon-char {
    display: inline-block;
    will-change: opacity, text-shadow;
    animation: neon-stable 4s ease-in-out infinite alternate;
}

.neon-char.glitching {
    animation: neon-short-circuit 0.382s steps(1, end) forwards !important;
    /* Golden Angle */
}

.neon-char.neon-off {
    animation: none !important;
    opacity: 0.1;
    text-shadow: none;
}

.neon-text.blackout .neon-char {
    animation: none !important;
    opacity: 0;
    text-shadow: none;
}

.neon-text.blackout .tweet-scroll-wrapper {
    animation: fadeInOnce 1.618s ease-out forwards;
    /* The Golden Time */
    opacity: 0;
}

.neon-title {
    font-family: "Monoton", sans-serif;
    color: #edffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-spacing: 0.6em;
    /* Changed: Added word spacing for better legibility */
    text-align: center;
}

/* Logos & Buttons */
button.logo {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

button.logo:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.logo img {
    cursor: pointer;
    position: relative;
    top: calc(var(--header-h) - var(--logo-size) / 2 + var(--hole-overshoot, 0px));
    display: block;
    height: var(--logo-size);
    width: auto;
    transition: transform 0.3s;
}

.logo img:not(.spin):hover {
    animation: pulse 0.3s 1;
}

.logo img.spin {
    animation: spinImpact 2s linear;
}

/* Menu */
.menu {
    position: fixed;
    top: calc(var(--header-h) + var(--chrome-gap));
    left: 50%;
    transform: translateX(-50%) translateY(100vh);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
    width: 100%;
    max-width: var(--maxw);
    height: calc(100vh - var(--header-h) - var(--chrome-gap));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    backdrop-filter: blur(13px);
    /* Fibonacci */
    -webkit-backdrop-filter: blur(13px);
}

.menu-top {
    width: 100%;
    height: 89px;
    /* Fibonacci (was 100) */
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 34px;
    /* Fibonacci gap */
    padding: 21px;
    /* Fibonacci (was 20) */
    color: #fff;
    background: rgba(18, 18, 30, 0.45);
    /* Card-style background */
}

/* CARDS: Shared Styles */
.shop-card,
.twitter-spot,
.my-carousel {
    border-radius: 13px;
    /* Fibonacci (was 12) */
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.382);
    /* Fib 34 + Golden Opacity */
    background: rgba(18, 18, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Holo-Glass Noise Texture */
    background:
        linear-gradient(rgba(18, 18, 30, 0.45), rgba(18, 18, 30, 0.45)),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    border: 1px solid rgba(83, 255, 244, 0.13);
    /* Fibonacci */

    /* Tilt & Transitions */
    transition: transform 0.1s ease-out, border-color 0.233s, background 0.233s, box-shadow 0.233s;
    /* Fib Timings */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Card Glow Effect */
.shop-card::after,
.twitter-spot::after,
.my-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 13px;
    /* Fibonacci */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent 61.8%);
    /* Phi Gradient */
    opacity: 0;
    transition: opacity 0.377s;
    /* Fibonacci */
    pointer-events: none;
    z-index: 2;
}

.shop-card:hover::after,
.twitter-spot:hover::after,
.my-carousel:hover::after {
    opacity: 1;
}

/* Card Hover State */
/* Card Hover State - Phi Harmonized */
.shop-card:hover,
.twitter-spot:hover,
.my-carousel:hover {
    border-color: rgba(83, 255, 244, 0.618);
    /* Phi Opacity (was solid) */
    background: rgba(18, 18, 30, 0.618);
    /* Phi Inverse Opacity (was 0.8) */
    box-shadow: 0 0 21px rgba(83, 255, 244, 0.382);
    /* Fib 21 + Golden Opacity */
    z-index: 5;
    /* Fibonacci Lift (was 5) */
}

/* Twitter Widget */
.twitter-tweet p {
    display: none;
    /* Radically hide the raw text */
}

.twitter-tweet {
    /* Keep container layout stable but hide content until replaced */
    color: transparent;
}



/* Twitter Card Specifics */
.twitter-spot {
    position: relative;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
}

/* Project Card - Trinity SOTA Design */
.project-card {
    position: relative;
    flex: 1;
    min-height: 233px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 13px;
    border-radius: 13px;
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.382);
    border: 1px solid rgba(83, 255, 244, 0.13);
    overflow: hidden;
    /* Snappy transition for Wahoo feel */
    transition: transform 0.1s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.2s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    text-decoration: none;
    background: rgba(18, 18, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.trinity-card {
    background: url('../img/trinityfond.webp') center/cover no-repeat;
}

/* Base overlay with Scanline */
.trinity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.7);
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    backdrop-filter: blur(2px);
    z-index: 1;
    transition: background 0.2s ease-out;
    pointer-events: none;
}

.trinity-card:hover::before {
    background-color: rgba(10, 10, 18, 0.4);
    backdrop-filter: blur(0px);
}

/* Wahoo Particle Effect Layer */
.trinity-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* Create stars/particles using radial gradients */
/* Create stars/particles using radial gradients */
.trinity-particles::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Layer 2 (Background): Sparser (fewer dots), Brighter (higher opacity in gradient), Much Slower */
    background-image:
        radial-gradient(1.5px 1.5px at 15% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 45% 35%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 75% 65%, rgba(83, 255, 244, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 25% 85%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 300px 300px;
    /* Larger tile = sparser */
    animation: galaxy-spin 120s linear infinite;
    /* Very Slow */
    opacity: 0.8;
    /* Higher visibility */
    z-index: 1;
}

.trinity-particles::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Layer 1 (Foreground): Normal density */
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 40% 70%, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 60% 10%, #53fff4, rgba(0, 0, 0, 0)),
        radial-gradient(2.5px 2.5px at 80% 50%, #bc13fe, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 10% 90%, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 50% 50%, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2.5px 2.5px at 90% 10%, #53fff4, rgba(0, 0, 0, 0));
    background-size: 200px 200px;
    animation: galaxy-spin 50s linear infinite;
    /* Slower (was 20s) */
    opacity: 0.5;
    z-index: 2;
}

.trinity-card:hover .trinity-particles::before {
    animation: galaxy-spin 40s linear infinite;
    /* BACKGROUND WARP (Slow) */
    opacity: 1;
}

.trinity-card:hover .trinity-particles::after {
    animation: galaxy-spin 15s linear infinite;
    /* WARP SPEED (Reduced significantly) */
    opacity: 1;
}

.trinity-card:hover .trinity-particles {
    opacity: 1;
}

@keyframes galaxy-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.trinity-card .card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    /* 3D float is handled by JS tilt usually, but we keep a subtle float if mouse leaves */
    transform: translateZ(20px);
}

/* SOTA LOGO */
.trinity-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(83, 255, 244, 0.8);
    box-shadow: 0 0 25px rgba(83, 255, 244, 0.4);
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
}

/* SOTA TITLE */
.trinity-title {
    font-family: "Monoton", sans-serif;
    color: #edffff;
    font-size: 2.2rem;
    /* Much Larger */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(83, 255, 244, 0.6), 0 0 20px rgba(83, 255, 244, 0.3);
    margin: 0;
    line-height: 1.1;
    position: relative;
    transition: letter-spacing 0.2s ease;
}

.trinity-subtitle {
    font-family: "Courier Prime", monospace;
    color: #a0a0b0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-weight: 700;
}

.trinity-badge {
    margin-top: 12px;
    background: rgba(83, 255, 244, 0.1);
    border: 1px solid rgba(83, 255, 244, 0.5);
    padding: 6px 16px;
    border-radius: 2px;
    /* More Tech/Square */
    font-size: 0.75rem;
    color: #53fff4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(83, 255, 244, 0.2);
    animation: badge-pulse 1.618s infinite;
    transition: all 0.2s;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(83, 255, 244, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(83, 255, 244, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(83, 255, 244, 0);
    }
}

/* GLITCH ANIMATION KEYFRAMES */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-color {
    0% {
        filter: drop-shadow(-2px 0 #ff00c1) drop-shadow(2px 0 #00fff9);
    }

    25% {
        filter: drop-shadow(-2px -2px #ff00c1) drop-shadow(2px 2px #00fff9);
    }

    50% {
        filter: drop-shadow(2px 0 #ff00c1) drop-shadow(-2px 0 #00fff9);
    }

    75% {
        filter: drop-shadow(2px -2px #ff00c1) drop-shadow(-2px 2px #00fff9);
    }

    100% {
        filter: drop-shadow(-2px 0 #ff00c1) drop-shadow(2px 0 #00fff9);
    }
}

/* HOVER STATES - SOTA */
.trinity-card:hover {
    border-color: #53fff4;
    box-shadow: 0 0 40px rgba(83, 255, 244, 0.2), 0 0 15px rgba(188, 19, 254, 0.2);
}

.trinity-card:hover .trinity-logo {
    transform: scale(1.1);
    /* No rotation */
    animation: glitch-color 0.6s infinite steps(2);
    border-color: #fff;
}

.trinity-card:hover .trinity-title {
    color: #fff;
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    letter-spacing: 4px;
    animation: glitch-skew 0.5s infinite linear alternate-reverse;
}

.trinity-card:hover .trinity-badge {
    background: #53fff4;
    color: #000;
    box-shadow: 0 0 20px #53fff4;
    border-color: #53fff4;
    transform: scale(1.05);
}


@media (max-width: 1024px) {
    .twitter-spot {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

.tweet-scroll-wrapper {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    scrollbar-width: none;
    border-radius: 8px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(83, 255, 244, 0.5));
}

.tweet-scroll-wrapper::-webkit-scrollbar {
    width: 0;
}

.twitter-spot iframe,
.twitter-tweet-rendered {
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    /* Mouse events handled by card */
}

/* Shop Grid & Cards */
.shop-grid {
    display: flex;
    flex: 0 0 auto;
    gap: 13px;
    /* Fibonacci (was 15) */
    min-height: 0;
    width: 100%;
}

.shop-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding: 13px;
    /* Fibonacci (was 10) */
    overflow: hidden;
}

/* Social Icons */
.icon-sprite {
    width: 100%;
    aspect-ratio: 1/1;
    background-image: url('../img/social_sprites.webp');
    background-size: 200% 200%;
    border-radius: 8px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(83, 255, 244, 0.5));
}

.icon-fb {
    background-position: 0 0;
}

.icon-vinted {
    background-position: 100% 0;
}

.icon-lbc {
    background-position: 0 100%;
}

.icon-yt {
    background-position: 100% 100%;
}

/* Carousel Specifics */
.my-carousel {
    position: relative;
    height: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 300px 168px;
    background: rgba(12, 12, 20, 0.5);
    /* Base tint overrides shared if needed */
}

@media (max-width: 1024px) {
    .my-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.carousel-title {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.glass-badge {
    background: rgba(20, 22, 24, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #edffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(83, 255, 244, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 10px rgba(83, 255, 244, 0.1);
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Carousel Buttons */
.my-carousel button.prev,
.my-carousel button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.my-carousel button.prev {
    left: 12px;
}

.my-carousel button.next {
    right: 12px;
}

.my-carousel button.prev:hover,
.my-carousel button.next:hover {
    transform: translateY(-50%) scale(1.05);
    border-color: #53fff4;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 15px rgba(83, 255, 244, 0.4), 0 0 25px rgba(188, 19, 254, 0.2);
}

.my-carousel button.prev::after,
.my-carousel button.next::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 4px rgba(83, 255, 244, 0.6)) drop-shadow(0 0 8px rgba(188, 19, 254, 0.3));
    transition: filter 0.2s;
}

.my-carousel button.prev::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4L7 12l8 8' fill='none' stroke='%2353fff4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.my-carousel button.next::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l8 8-8 8' fill='none' stroke='%2353fff4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.my-carousel button.prev:hover::after,
.my-carousel button.next:hover::after {
    filter: drop-shadow(0 0 8px rgba(83, 255, 244, 1));
}

/* Video Thumbnails */
.yt-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.yt-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: 92%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    z-index: 12;
    background: rgba(20, 22, 24, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.yt-placeholder .play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(188, 19, 254, 0.15);
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.yt-placeholder .play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 22px solid #53fff4;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    filter: drop-shadow(0 0 6px rgba(83, 255, 244, 0.6));
    transition: filter 0.2s;
}

.yt-placeholder:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #53fff4;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(83, 255, 244, 0.5), 0 0 30px rgba(188, 19, 254, 0.3);
}

.yt-placeholder:hover .play-btn::after {
    filter: drop-shadow(0 0 12px rgba(83, 255, 244, 1));
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

    .neon-text,
    .neon-char,
    .logo img.spin,
    .logo img:not(.spin):hover,
    .logo2 img:hover {
        animation: none !important;
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .neon-text {
        display: none;
    }

    /* Menu content: stack terminal + external link vertically */
    .menu-content {
        flex-direction: column;
        align-items: center;
    }

    .menu-content .menu-link {
        order: 2;
        /* Push external site icon below terminal */
        margin-top: 21px;
        /* Fibonacci spacing */
    }

    .shop-grid {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: space-between;
        gap: 10px;
    }

    .shop-card {
        flex: 0 0 calc(50% - 5px);
    }

    .shop-card .neon-title {
        font-size: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        display: block;
    }
}

/* Global Overrides */
.r-vakc41,
.twitter-tweet-rendered .r-vakc41,
[data-testid="tweet"] {
    max-width: none !important;
    width: 100% !important;
}

/* Terminal / Meta-Console */
/* Google Sans Flex loaded via CDN in index.html */

.c-terminal {
    width: 100%;
    /* Mobile First: Full Width */
    max-width: 900px;
    /* Wider limit on desktop (was 600) */
    height: auto;
    /* Allow it to grow with content until max-height */
    max-height: 500px;
    /* Reduced to 500px to avoid touching bottom */
    background: rgba(10, 10, 16, 0.95);
    border: 1px solid rgba(83, 255, 244, 0.3);
    border-radius: 8px;
    padding: 20px;
    /* User requested bigger: Google Sans Flex + size */
    font-family: "Google Sans Flex", "Courier Prime", monospace;
    font-size: 1.1rem;
    /* Bigger text (was 0.85rem) */
    line-height: 1.5;
    color: #a0a0b0;
    overflow-y: auto;
    /* Force Scroll */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(83, 255, 244, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(5px);
    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #53fff4 #0a0a10;
}

@media (min-width: 1024px) {
    .c-terminal {
        width: 80%;
        /* Wider (was 61.8%) */
    }
}

.c-terminal::-webkit-scrollbar {
    width: 8px;
    /* Little thicker */
}

.c-terminal::-webkit-scrollbar-thumb {
    background: #53fff4;
    border-radius: 4px;
}

.c-terminal::-webkit-scrollbar-track {
    background: #0a0a10;
}

.term-line {
    line-height: 1.5;
    opacity: 0;
    animation: fadeInTerm 0.3s forwards;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 500;
}

@keyframes fadeInTerm {
    to {
        opacity: 1;
    }
}

.term-time {
    color: #666;
    margin-right: 12px;
    font-size: 0.9rem;
    font-family: monospace;
    /* Keep time monospaced for alignment */
}

.term-msg {
    color: #ddd;
}

/* Log Types & Colors Update */
.term-info .term-msg {
    color: #88c0d0;
}

.term-success .term-msg {
    color: #a3be8c;
    text-shadow: 0 0 8px rgba(163, 190, 140, 0.3);
}

.term-warning .term-msg {
    color: #ebcb8b;
}

.term-error .term-msg {
    color: #bf616a;
    font-weight: bold;
}

.term-special .term-msg {
    color: #b48ead;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(180, 142, 173, 0.5);
    animation: pulse 2s infinite;
}

.term-dim .term-msg {
    color: #556075;
    font-style: italic;
}