/* ==========================================================================
   SCARY HACKED WEBSITE & DOMAIN DEFACEMENT SYSTEM - DESIGN STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #050508;
    --bg-panel: rgba(12, 12, 20, 0.85);
    --border-red: rgba(255, 0, 60, 0.4);
    --neon-red: #ff003c;
    --neon-red-glow: rgba(255, 0, 60, 0.7);
    --neon-green: #00ff66;
    --neon-green-glow: rgba(0, 255, 102, 0.5);
    --gold-warn: #ffcc00;
    --text-main: #e0e0e0;
    --text-dim: #888899;
    --font-mono: 'Share Tech Mono', 'Fira Code', monospace;
    --font-horror: 'Creepster', cursive, monospace;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   CANVAS & CRT SCANLINE OVERLAY
   ========================================================================== */

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.25) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, transparent 40%, rgba(20, 0, 0, 0.85) 90%, #000 100%);
    pointer-events: none;
    z-index: 11;
}

.glitch-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 0, 60, 0.3);
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.05s ease-in-out;
}

/* ==========================================================================
   MAIN LAYOUT & CONTAINER
   ========================================================================== */

.hacked-container {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-red);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
    backdrop-filter: blur(8px);
}

.badge-danger {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--neon-red);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-red);
    animation: pulseRed 1.2s infinite ease-in-out;
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.3); }
}

.audio-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 60, 0.15);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px var(--neon-red-glow);
}

.icon-speaker {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SKULL HERO & SCARY GLITCH HEADER
   ========================================================================== */

.warning-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skull-frame {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.skull-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 35px var(--neon-red-glow), inset 0 0 20px #000;
    animation: floatSkull 4s ease-in-out infinite, scaryPulse 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.skull-image:hover {
    transform: scale(1.08) rotate(2deg);
    filter: saturate(200%) contrast(150%) drop-shadow(0 0 40px var(--neon-red));
}

@keyframes floatSkull {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scaryPulse {
    0%, 100% { box-shadow: 0 0 25px var(--neon-red-glow); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 60, 0.9); }
}

.skull-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(255,0,60,0.3) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glitch Typography */
.glitch-title {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px var(--neon-red-glow);
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip: rect(0, 0, 0, 0);
}

.glitch-title::before {
    left: -2px;
    text-shadow: 2px 0 var(--neon-red);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: 2px;
    text-shadow: -2px 0 var(--neon-green);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(40px, 9999px, 60px, 0); }
    40% { clip: rect(15px, 9999px, 85px, 0); }
    60% { clip: rect(70px, 9999px, 20px, 0); }
    80% { clip: rect(25px, 9999px, 50px, 0); }
    100% { clip: rect(90px, 9999px, 10px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(50px, 9999px, 20px, 0); }
    20% { clip: rect(10px, 9999px, 70px, 0); }
    40% { clip: rect(80px, 9999px, 30px, 0); }
    60% { clip: rect(30px, 9999px, 90px, 0); }
    80% { clip: rect(60px, 9999px, 10px, 0); }
    100% { clip: rect(20px, 9999px, 40px, 0); }
}

.sub-glitch {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.highlight-red {
    color: var(--neon-red);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-red-glow);
}

/* ==========================================================================
   GRID DASHBOARD (PANELS)
   ========================================================================== */

.grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 0, 60, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-header {
    font-size: 1.1rem;
    color: var(--neon-red);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--border-red);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.panel-icon {
    width: 22px;
    height: 22px;
    color: var(--neon-red);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.info-label {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.info-value {
    font-weight: bold;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.text-gold { color: var(--gold-warn); }
.text-red { color: var(--neon-red); }
.text-green { color: var(--neon-green); }
.text-dim { color: var(--text-dim); }

.text-danger-blink {
    color: var(--neon-red);
    animation: blinkText 1s infinite alternate;
}

@keyframes blinkText {
    0% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Timer Panel Display */
.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.time-box {
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--neon-red);
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    box-shadow: inset 0 0 10px rgba(255, 0, 60, 0.2);
}

.time-box span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red-glow);
}

.time-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.timer-colon {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-red);
    animation: blinkText 0.8s infinite;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 60, 0.3);
}

.progress-fill {
    width: 85%;
    height: 100%;
    background: linear-gradient(90deg, #ff003c, #ff7700);
    box-shadow: 0 0 10px var(--neon-red-glow);
    transition: width 0.5s ease-out;
}

.warning-note {
    font-size: 0.8rem;
    color: var(--gold-warn);
    line-height: 1.4;
    background: rgba(255, 204, 0, 0.08);
    padding: 10px;
    border-left: 3px solid var(--gold-warn);
    border-radius: 4px;
}

/* ==========================================================================
   TERMINAL SECTION
   ========================================================================== */

.terminal-section {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--border-red);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 60, 0.2);
}

.terminal-header {
    background: #11111a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-red);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn-dot.close { background: #ff5f56; }
.btn-dot.min { background: #ffbd2e; }
.btn-dot.max { background: #27c93f; }

.terminal-title {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.terminal-status {
    font-size: 0.75rem;
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--neon-green-glow);
}

.terminal-body {
    padding: 15px;
    height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 3px;
}

.term-line {
    line-height: 1.4;
    word-break: break-all;
}

.term-line.green { color: var(--neon-green); }
.term-line.yellow { color: var(--gold-warn); }
.term-line.red { color: var(--neon-red); }

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #090910;
    border-top: 1px solid rgba(255, 0, 60, 0.2);
}

.prompt {
    color: var(--neon-green);
    font-size: 0.85rem;
    white-space: nowrap;
}

#terminalInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary-red {
    background: var(--neon-red);
    color: #000;
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red-glow);
}

.btn-primary-red:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 35px #fff;
    transform: translateY(-2px);
}

.btn-secondary-glitch {
    background: rgba(0, 0, 0, 0.7);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.btn-secondary-glitch:hover {
    background: rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 25px var(--neon-red-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER NOTICE
   ========================================================================== */

.footer-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 0, 60, 0.2);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    color: #555566;
    font-size: 0.75rem;
}

/* ==========================================================================
   MODAL WINDOWS & JUMPSCARE OVERLAY
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: #0d0d15;
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    max-width: 550px;
    width: 100%;
    padding: 25px;
    position: relative;
    box-shadow: 0 0 40px var(--neon-red-glow);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--neon-red);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neon-red);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-red);
    padding-bottom: 10px;
}

.btc-amount {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--gold-warn);
    margin: 15px 0;
    text-align: center;
    background: rgba(255, 204, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px dashed var(--gold-warn);
}

.modal-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 6px;
}

.copy-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.copy-box input {
    flex: 1;
    background: #151522;
    border: 1px solid var(--border-red);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.btn-copy {
    background: var(--neon-red);
    color: #000;
    border: none;
    padding: 0 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #fff;
}

.modal-alert {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Jumpscare Screen */
.jumpscare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: screenShake 0.1s infinite;
}

.jumpscare-overlay.hidden {
    display: none;
}

.scary-skull-burst {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.scary-skull-big {
    width: min(80vw, 420px);
    height: min(80vw, 420px);
    border-radius: 50%;
    border: 4px solid var(--neon-red);
    box-shadow: 0 0 80px var(--neon-red), inset 0 0 40px #ff0000;
    filter: saturate(300%) contrast(200%);
    animation: skullFlicker 0.15s infinite;
}

@keyframes skullFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05) rotate(-3deg); }
}

@keyframes screenShake {
    0% { transform: translate(2px, 2px); }
    25% { transform: translate(-2px, -3px); }
    50% { transform: translate(3px, 1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(2px, -2px); }
}

.scary-text {
    font-family: var(--font-horror);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
    letter-spacing: 3px;
}

.scary-sub {
    color: var(--gold-warn);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hacked-container {
        padding: 12px;
    }
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }
    .grid-dashboard {
        grid-template-columns: 1fr;
    }
    .timer-display {
        gap: 4px;
    }
    .time-box {
        min-width: 50px;
        padding: 8px;
    }
    .time-box span:first-child {
        font-size: 1.3rem;
    }
}
