/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    background-color: #05080c;
    color: #e0e6ed;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* CRT Screen Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(18, 30, 49, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 9999;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.8;
}

/* Canvas tech bg */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Container spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Header & Banner Styles */
.takedown-banner {
    text-align: center;
    margin-bottom: 40px;
}

.glow-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff9d00;
    text-transform: uppercase;
    text-shadow: 
        0 0 5px rgba(255, 157, 0, 0.5),
        0 0 10px rgba(255, 157, 0, 0.3),
        0 0 20px rgba(255, 157, 0, 0.2);
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 157, 0, 0.5), 0 0 15px rgba(255, 157, 0, 0.2);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 157, 0, 0.8), 0 0 30px rgba(255, 157, 0, 0.5), 0 0 5px #ff3c00;
        color: #ffb74d;
    }
}

/* Avatar Jail Section */
.avatar-jail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.jail-cell {
    position: relative;
    width: 90px;
    height: 90px;
    background: rgba(10, 20, 35, 0.8);
    border: 2px solid #556c8a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(85, 108, 138, 0.3);
    overflow: hidden;
}

.jail-emoji {
    font-size: 2.5rem;
    z-index: 1;
}

.jail-bars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
    pointer-events: none;
    z-index: 2;
}

.jail-bars span {
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #555, #ccc, #333);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.jail-tag {
    position: absolute;
    bottom: 5px;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.8);
    color: #ff3c3c;
    border: 1px solid #ff3c3c;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    z-index: 3;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-glow {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #a12cff;
    text-shadow: 
        0 0 8px rgba(161, 44, 255, 0.8),
        0 0 20px rgba(161, 44, 255, 0.4);
    letter-spacing: 4px;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ff3c3c;
    border: 1px solid #ff3c3c;
    padding: 2px 8px;
    margin-top: 5px;
    letter-spacing: 3px;
    text-shadow: 0 0 5px rgba(255, 60, 60, 0.5);
    background: rgba(255, 60, 60, 0.1);
}

/* Floats & Delays */
.animate-float {
    animation: float-y 4s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 1.5s;
}

@keyframes float-y {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.announcement-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #afc1d4;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Seals Container */
.seals-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.seal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.seal-box.primary-seal {
    width: 170px;
}

.seal-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) grayscale(10%);
    transition: all 0.5s ease;
}

.seal-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 225, 255, 0.4)) grayscale(0%);
    transform: scale(1.05);
}

.glow-seal {
    filter: drop-shadow(0 0 10px rgba(255, 157, 0, 0.3));
}

.seal-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    color: #7b93b0;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Control Panel with Cards Grid */
.control-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .control-panel {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: rgba(9, 17, 30, 0.85);
    border: 1px solid #1a2f4c;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.card-header {
    background: #0d1a2d;
    border-bottom: 1px solid #1a2f4c;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #e0e6ed;
    letter-spacing: 1.5px;
    flex-grow: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pulsing-red {
    background-color: #ff3c3c;
    box-shadow: 0 0 8px #ff3c3c;
    animation: pulse-red-dot 1.5s infinite;
}

.pulsing-blue {
    background-color: #00e1ff;
    box-shadow: 0 0 8px #00e1ff;
    animation: pulse-blue-dot 1.5s infinite;
}

@keyframes pulse-red-dot {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 2px #ff3c3c; }
    50% { opacity: 1; box-shadow: 0 0 10px #ff3c3c; }
}

@keyframes pulse-blue-dot {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 2px #00e1ff; }
    50% { opacity: 1; box-shadow: 0 0 10px #00e1ff; }
}

.terminal-controls {
    display: flex;
    gap: 5px;
}

.terminal-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e3352;
}

/* Terminal Body */
.terminal-body {
    padding: 18px;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 270px;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #03060a;
}

.terminal-line {
    word-break: break-all;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.system-line {
    color: #7b93b0;
}

.success-line {
    color: #00ff6a;
}

.warning-line {
    color: #ff9d00;
}

.danger-line {
    color: #ff3c3c;
    font-weight: bold;
}

.highlight-red {
    color: #ff3c3c;
    text-shadow: 0 0 5px rgba(255, 60, 60, 0.5);
    font-weight: bold;
}

.highlight-blue {
    color: #00e1ff;
    text-shadow: 0 0 5px rgba(0, 225, 255, 0.5);
}

/* Telemetry Card Body */
.telemetry-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 43px);
}

.telemetry-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telemetry-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #172a44;
    padding-bottom: 6px;
    font-size: 0.9rem;
}

.telemetry-item .label {
    color: #7b93b0;
}

.telemetry-item .value {
    color: #00e1ff;
    font-weight: bold;
}

/* Progress Section */
.progress-container {
    margin-top: 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #7b93b0;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.progress-percent {
    color: #ff9d00;
}

.progress-bar-bg {
    height: 12px;
    background: #0b1523;
    border: 1px solid #1a2f4c;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #ff3c3c, #ff9d00);
    box-shadow: 0 0 10px rgba(255, 157, 0, 0.5);
    transition: width 0.1s linear;
}

.progress-status {
    font-size: 0.75rem;
    color: #ff3c3c;
    margin-top: 6px;
    font-style: italic;
    letter-spacing: 0.5px;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Bottom Warning */
.warning-section {
    text-align: center;
    margin: 40px auto;
    max-width: 900px;
}

.warning-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ff3c3c;
    border: 1px solid rgba(255, 60, 60, 0.4);
    background: rgba(255, 60, 60, 0.05);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    line-height: 1.5;
    letter-spacing: 1px;
}

.assistance-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #7b93b0;
}

/* Footer Section */
.contact-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.2fr;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 950px) {
    .contact-footer {
        grid-template-columns: 1fr;
    }
}

.contact-button {
    background: rgba(9, 17, 30, 0.8);
    border: 1px solid #1a2f4c;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-button:hover {
    border-color: #00e1ff;
    background: rgba(0, 225, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: #00e1ff;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #556c8a;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.contact-val {
    font-size: 0.85rem;
    color: #e0e6ed;
    word-break: break-all;
    margin-top: 3px;
}

.tox-container {
    display: flex;
    gap: 10px;
}

@media (max-width: 950px) {
    .tox-container {
        flex-direction: column;
    }
}

.tox-button {
    background: rgba(9, 17, 30, 0.8);
    border: 1px solid #1a2f4c;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.tox-button:hover {
    border-color: #a12cff;
    background: rgba(161, 44, 255, 0.05);
    box-shadow: 0 0 15px rgba(161, 44, 255, 0.15);
    transform: translateY(-2px);
}

.tox-button:hover .contact-icon {
    color: #a12cff;
}

.qr-box {
    background: rgba(9, 17, 30, 0.8);
    border: 1px solid #1a2f4c;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@media (max-width: 950px) {
    .qr-box {
        width: 100%;
        flex-direction: row;
        height: auto;
        padding: 15px;
    }
}

.qr-box:hover {
    border-color: #00ff6a;
    background: rgba(0, 255, 106, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 106, 0.15);
    transform: translateY(-2px);
}

.qr-code-svg {
    width: 48px;
    height: 48px;
    color: #7b93b0;
    transition: color 0.3s ease;
}

.qr-box:hover .qr-code-svg {
    color: #00ff6a;
}

.qr-text {
    font-size: 0.6rem;
    font-weight: bold;
    color: #556c8a;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.qr-box:hover .qr-text {
    color: #00ff6a;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #09111e;
    border: 2px solid #ff3c3c;
    border-radius: 6px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(255, 60, 60, 0.4);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    background: #ff3c3c;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-alert-icon {
    font-size: 1.2rem;
}

.modal-body {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #afc1d4;
    text-align: center;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #1a2f4c;
    display: flex;
    justify-content: center;
}

.modal-btn {
    font-family: 'Orbitron', sans-serif;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-red {
    background: #ff3c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
}

.btn-red:hover {
    background: #e02424;
    box-shadow: 0 0 15px rgba(255, 60, 60, 0.6);
}

/* Audio Status disclaimer */
.sound-disclaimer {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: rgba(13, 26, 45, 0.9);
    border: 1px dashed #00e1ff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #00e1ff;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: pulse-border 2s infinite alternate;
    pointer-events: none;
}

.sound-wave {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00e1ff;
    box-shadow: 0 0 8px #00e1ff;
    display: inline-block;
    animation: pulse-red-dot 1s infinite;
}

@keyframes pulse-border {
    0% { border-color: rgba(0, 225, 255, 0.3); }
    100% { border-color: rgba(0, 225, 255, 1); }
}

/* Custom Glitch Text (Bonus effect) */
.text-glitch {
    position: relative;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.text-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.text-glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9, 0 1px #00fff9;
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(34px, 9999px, 55px, 0); }
    20% { clip: rect(1px, 9999px, 115px, 0); }
    30% { clip: rect(87px, 9999px, 12px, 0); }
    40% { clip: rect(42px, 9999px, 95px, 0); }
    50% { clip: rect(122px, 9999px, 35px, 0); }
    60% { clip: rect(67px, 9999px, 81px, 0); }
    70% { clip: rect(2px, 9999px, 10px, 0); }
    80% { clip: rect(140px, 9999px, 120px, 0); }
    90% { clip: rect(58px, 9999px, 50px, 0); }
    100% { clip: rect(99px, 9999px, 15px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(40px, 9999px, 100px, 0); }
    10% { clip: rect(12px, 9999px, 85px, 0); }
    20% { clip: rect(110px, 9999px, 130px, 0); }
    30% { clip: rect(5px, 9999px, 30px, 0); }
    40% { clip: rect(75px, 9999px, 15px, 0); }
    50% { clip: rect(95px, 9999px, 50px, 0); }
    60% { clip: rect(15px, 9999px, 75px, 0); }
    70% { clip: rect(125px, 9999px, 140px, 0); }
    80% { clip: rect(30px, 9999px, 90px, 0); }
    90% { clip: rect(65px, 9999px, 115px, 0); }
    100% { clip: rect(80px, 9999px, 45px, 0); }
}
