/* ========================================
   WhereAreWeGoing? - Component Styles
   🚀 AYAAN THEME - ULTRA CYAN EDITION 🚀
   ======================================== */

/* ========================================
   Input Section - BEAUTIFUL & FUNCTIONAL
   ======================================== */

.input-section {
    position: fixed;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200; /* HIGH Z-INDEX to be above backgrounds */
    width: 90%;
    max-width: 750px;
    transition: all var(--transition-normal);
}

.input-section.minimized {
    top: 20px;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.input-frame {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 10, 30, 0.98), rgba(0, 5, 20, 0.98));
    border: none;
    padding: 35px 40px;
    backdrop-filter: blur(25px);
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.2),
        0 0 100px rgba(144, 0, 255, 0.1),
        inset 0 0 80px rgba(0, 255, 255, 0.03);
}

/* MEGA Animated gradient border */
.input-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg,
        var(--neon-cyan),
        var(--neon-cyan),
        var(--neon-purple),
        var(--neon-pink),
        var(--neon-purple),
        var(--neon-cyan),
        var(--neon-cyan));
    background-size: 400% 400%;
    z-index: -2;
    animation: frameBorderFlow 6s ease infinite;
    filter: blur(1px);
}

@keyframes frameBorderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.input-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 10, 30, 0.98), rgba(0, 5, 20, 0.98));
    z-index: -1;
}

/* Holographic shimmer */
.input-frame .input-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    animation: frameShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes frameShimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Frame corners - MEGA CYAN GLOW */
.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
    transition: all var(--transition-normal);
}

.frame-corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.frame-corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.input-frame:hover .frame-corner {
    filter: drop-shadow(0 0 15px var(--neon-cyan)) drop-shadow(0 0 30px var(--neon-cyan));
}

.frame-corner.tl, .frame-corner.br {
    animation: cornerPulse1 2s ease-in-out infinite;
}

.frame-corner.tr, .frame-corner.bl {
    animation: cornerPulse2 2s ease-in-out infinite;
}

@keyframes cornerPulse1 {
    0%, 100% { border-color: var(--neon-cyan); }
    50% { border-color: var(--neon-purple); }
}

@keyframes cornerPulse2 {
    0%, 100% { border-color: var(--neon-purple); }
    50% { border-color: var(--neon-cyan); }
}

.input-content {
    position: relative;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.label-icon {
    font-size: 1.2rem;
    animation: labelIconPulse 1.2s ease-in-out infinite;
    color: var(--neon-cyan);
}

@keyframes labelIconPulse {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.7; transform: translateX(5px); }
}

.label-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), transparent);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.label-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    animation: labelLineShine 3s ease-in-out infinite;
}

@keyframes labelLineShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Input wrapper - MEGA BEAUTIFUL */
.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-cyan);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.15),
        inset 0 0 30px rgba(0, 255, 255, 0.03);
}

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent 30%, transparent 70%, rgba(144, 0, 255, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.input-wrapper:hover {
    border-color: var(--neon-cyan-bright);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.input-wrapper:focus-within {
    border-color: var(--neon-cyan-bright);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.4),
        0 0 80px rgba(0, 255, 255, 0.2),
        inset 0 0 40px rgba(0, 255, 255, 0.08);
}

.input-wrapper:focus-within::before {
    opacity: 1;
}

/* Data stream effect on focus */
.input-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 255, 0.02) 2px,
        rgba(0, 255, 255, 0.02) 4px
    );
    opacity: 0;
    animation: dataFlow 8s linear infinite;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.input-wrapper:focus-within::after {
    opacity: 1;
}

@keyframes dataFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.input-prefix {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 1rem;
    border-right: 2px solid rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.08);
    height: 100%;
    min-height: 65px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.prefix-icon::before {
    content: '>';
    color: var(--neon-cyan-bright);
    font-weight: bold;
    animation: cursorBlink 0.8s step-end infinite;
    text-shadow: 0 0 15px var(--neon-cyan);
    font-size: 1.2rem;
}

.prefix-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* ========================================
   THE INPUT ITSELF - FULLY FUNCTIONAL
   This is the CRITICAL fix for typing
   ======================================== */
.cyber-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 22px 20px;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 500;
    outline: none !important;
    min-width: 0;

    /* CRITICAL: Enable text selection and typing */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;

    /* CRITICAL: Enable touch interactions */
    touch-action: auto !important;
    -webkit-touch-callout: default !important;

    /* Styling */
    caret-color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;

    /* Make sure it's interactive */
    pointer-events: auto !important;
    cursor: text !important;
}

.cyber-input:focus {
    background: rgba(0, 255, 255, 0.05) !important;
}

.cyber-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
    text-shadow: none;
    opacity: 0.8;
}

.cyber-input::selection {
    background: var(--neon-cyan);
    color: var(--void-black);
}

/* Clear button */
.clear-btn {
    width: 55px;
    height: 55px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-right: 10px;
}

.clear-btn:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    transform: rotate(90deg) scale(1.1);
}

.clear-btn span::before {
    content: '\00d7';
    font-size: 2rem;
    font-weight: 300;
}

/* Action buttons - MEGA STYLE */
.input-actions {
    display: flex;
    gap: 18px;
    margin-top: 28px;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 35px;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    overflow: hidden;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.action-btn .btn-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: all var(--transition-normal);
}

.action-btn .btn-icon,
.action-btn .btn-text {
    position: relative;
    z-index: 1;
}

.action-btn .btn-icon {
    font-size: 1.1rem;
}

/* Primary button - THE MAIN ONE - CYAN POWER */
.action-btn.primary {
    flex: 1;
    clip-path: polygon(
        0 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% 100%,
        18px 100%,
        0 calc(100% - 18px)
    );
}

.action-btn.primary .btn-bg {
    background: linear-gradient(135deg,
        var(--neon-cyan),
        var(--neon-cyan),
        var(--neon-purple),
        var(--neon-pink));
    background-size: 300% 300%;
    animation: primaryBgFlow 4s ease infinite;
}

@keyframes primaryBgFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.action-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 40px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(0, 255, 255, 0.3);
}

.action-btn.primary:hover .btn-bg {
    filter: brightness(1.3);
}

.action-btn.primary:active {
    transform: translateY(-2px);
}

/* Shine effect */
.action-btn.primary .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 2;
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Secondary button - CYAN OUTLINE */
.action-btn.secondary {
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
}

.action-btn.secondary .btn-bg {
    background: transparent;
    border: 2px solid var(--neon-cyan);
}

.action-btn.secondary {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
}

.action-btn.secondary:hover {
    color: var(--void-black);
    text-shadow: none;
}

.action-btn.secondary:hover .btn-bg {
    background: var(--neon-cyan);
    box-shadow: 0 0 40px var(--neon-cyan);
}

/* Input stats - MEGA BEAUTIFUL */
.input-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    padding: 10px 18px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all var(--transition-fast);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.stat-badge:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.badge-icon {
    font-size: 0.7rem;
    color: var(--neon-green);
    animation: badgeIconPulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 8px var(--neon-green);
}

@keyframes badgeIconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.badge-label {
    color: var(--text-muted);
    letter-spacing: 0.18em;
    font-size: 0.75rem;
}

.badge-value {
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 12px var(--neon-cyan);
}

/* ========================================
   Error Toast - CYAN THEME
   ======================================== */

.error-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.2), rgba(144, 0, 255, 0.1));
    border: 2px solid var(--neon-pink);
    padding: 20px 28px;
    display: none;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    max-width: 480px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(255, 0, 128, 0.4);
}

.error-toast.active {
    display: flex;
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(120px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--neon-pink);
    flex-shrink: 0;
    animation: toastIconPulse 1s ease-in-out infinite;
    text-shadow: 0 0 12px var(--neon-pink);
}

@keyframes toastIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.5); }
    50% { box-shadow: 0 0 0 18px rgba(255, 0, 128, 0); }
}

.toast-content {
    flex: 1;
}

.toast-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--neon-pink);
    margin-bottom: 6px;
    text-shadow: 0 0 12px var(--neon-pink);
}

.toast-message {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-secondary);
    width: 35px;
    height: 35px;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    background: rgba(255, 0, 128, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);
}

/* ========================================
   Stats Bar - MEGA CYAN
   ======================================== */

.stats-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 180;
    display: none;
    flex-direction: column;
    align-items: center;
}

.stats-bar.active {
    display: flex;
    animation: statsSlideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes statsSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.stats-container {
    display: flex;
    gap: 35px;
    background: linear-gradient(180deg, rgba(0, 10, 30, 0.98), rgba(0, 5, 20, 0.95));
    padding: 20px 45px;
    border: 2px solid var(--neon-cyan);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.stat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-ring .ring-bg {
    fill: none;
    stroke: rgba(0, 255, 255, 0.15);
    stroke-width: 4;
}

.stat-ring .ring-fill {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

/* Different colors for each stat - MORE CYAN */
.stat-item:nth-child(1) .ring-fill {
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 12px var(--neon-cyan));
}
.stat-item:nth-child(2) .ring-fill {
    stroke: var(--neon-cyan-bright);
    filter: drop-shadow(0 0 12px var(--neon-cyan));
}
.stat-item:nth-child(3) .ring-fill {
    stroke: var(--neon-purple);
    filter: drop-shadow(0 0 12px var(--neon-purple));
}
.stat-item:nth-child(4) .ring-fill {
    stroke: var(--neon-pink);
    filter: drop-shadow(0 0 12px var(--neon-pink));
}

.stat-ring .stat-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.stats-toggle {
    background: rgba(0, 10, 30, 0.95);
    border: 2px solid var(--neon-cyan);
    border-top: none;
    color: var(--neon-cyan);
    padding: 8px 30px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
    border-radius: 0 0 10px 10px;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.stats-toggle:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.stats-bar.collapsed .stats-container {
    transform: translateY(-100%);
    opacity: 0;
}

.stats-bar.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* ========================================
   Side Panel - MEGA CYAN STYLE
   ======================================== */

.side-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--panel-width);
    max-width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 5, 20, 0.99), rgba(0, 10, 30, 0.99));
    border-left: 3px solid var(--neon-cyan);
    z-index: 250;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: -15px 0 60px rgba(0, 255, 255, 0.25);
}

.side-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 28px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(144, 0, 255, 0.08));
    border-bottom: 2px solid var(--neon-cyan);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    color: var(--neon-cyan);
    text-shadow: 0 0 18px var(--neon-cyan);
}

.title-icon {
    font-size: 1.4rem;
    animation: titleIconPulse 2s ease-in-out infinite;
}

@keyframes titleIconPulse {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.panel-close {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.panel-close:hover {
    background: var(--neon-pink);
    color: var(--void-black);
    box-shadow: 0 0 25px var(--neon-pink);
    transform: rotate(90deg);
}

.panel-info {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.panel-url {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    word-break: break-all;
    margin-bottom: 14px;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.panel-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.meta-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.meta-badge span {
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.depth-badge span {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Panel search */
.panel-search {
    padding: 20px 28px;
    position: relative;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.4);
    padding: 16px 50px 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: auto !important;
    pointer-events: auto !important;
}

.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    font-size: 1.1rem;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Panel links */
.panel-links {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.panel-links::-webkit-scrollbar {
    width: 10px;
}

.panel-links::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.6);
}

.panel-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 5px;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Link items - MEGA BEAUTIFUL */
.link-item {
    padding: 16px 20px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(144, 0, 255, 0.03));
    border-left: 4px solid var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    word-break: break-all;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), transparent);
    transition: width var(--transition-fast);
}

.link-item:hover {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(144, 0, 255, 0.08));
    border-left-color: var(--neon-cyan-bright);
    color: var(--text-primary);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.link-item:hover::before {
    width: 100%;
}

.link-item:active {
    transform: translateX(6px) scale(0.99);
}

.link-item.visited {
    border-left-color: var(--neon-green);
    opacity: 0.75;
}

.link-item.visited::after {
    content: 'VISITED';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--neon-green);
    letter-spacing: 0.18em;
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-green);
}

.link-item.cross-linked {
    border-left-color: var(--neon-orange);
}

.link-item.cross-linked::after {
    content: 'LINKED';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--neon-orange);
    letter-spacing: 0.18em;
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-orange);
}

/* Panel footer */
.panel-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.footer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-cyan);
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
}

.footer-btn:hover {
    color: var(--void-black);
    text-shadow: none;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.footer-btn:hover::before {
    transform: translateX(0);
}

.footer-btn .btn-icon,
.footer-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* Panel toggle (mobile) */
.panel-toggle {
    position: fixed;
    right: 22px;
    bottom: 110px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(0, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.panel-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 50px rgba(0, 255, 255, 0.7);
}

.panel-toggle.active {
    display: flex;
    animation: togglePop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes togglePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.toggle-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 28px;
    height: 28px;
    background: var(--neon-pink);
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-shadow: 0 0 20px var(--neon-pink);
}

/* ========================================
   Tooltip - CYAN GLOW
   ======================================== */

.tooltip {
    position: fixed;
    background: rgba(0, 5, 20, 0.98);
    border: 2px solid var(--neon-cyan);
    padding: 14px 20px;
    max-width: 420px;
    z-index: 1000;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(15px);
}

.tooltip.active {
    display: block;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tooltip-content {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--neon-cyan);
    word-break: break-all;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--neon-cyan);
    bottom: -20px;
    left: 28px;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .input-section {
        top: 120px;
        width: 95%;
    }

    .input-frame {
        padding: 25px 20px;
    }

    .frame-corner {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }

    .input-prefix {
        padding: 0 14px;
        font-size: 0.9rem;
        min-height: 55px;
    }

    .prefix-text {
        display: none;
    }

    .cyber-input {
        padding: 18px 14px;
        font-size: 1.05rem;
    }

    .input-actions {
        flex-direction: column;
        gap: 14px;
    }

    .action-btn {
        padding: 18px 22px;
        font-size: 0.85rem;
    }

    .action-btn.primary {
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    }

    .input-stats {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .stats-container {
        gap: 22px;
        padding: 15px 28px;
    }

    .stat-ring {
        width: 50px;
        height: 50px;
    }

    .stat-ring .stat-value {
        font-size: 0.95rem;
    }

    .side-panel {
        width: 100%;
    }

    .panel-toggle {
        display: flex;
        right: 18px;
        bottom: 90px;
        width: 58px;
        height: 58px;
    }

    .panel-toggle.active {
        display: flex;
    }

    .error-toast {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .input-label {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .stats-container {
        gap: 18px;
        padding: 12px 18px;
    }

    .stat-ring {
        width: 45px;
        height: 45px;
    }

    .stat-label {
        font-size: 0.55rem;
    }
}
