:root {
    --bg: #050505;
    --card-bg: rgba(15, 17, 21, 0.7);
    --border: #30363d;
    --border-active: #58a6ff;
    
    --accent: #2f81f7;
    --accent-glow: rgba(47, 129, 247, 0.4);
    --danger: #da3633;
    --danger-glow: rgba(218, 54, 51, 0.4);
    --success: #238636;
    
    --text: #c9d1d9;
    --text-muted: #8b949e;
    
    --font-main: 'JetBrains Mono', monospace;
    --font-display: 'Share Tech Mono', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    margin: 0; padding: 20px; 
    min-height: 100vh;
    overflow-x: hidden;
}

.background-grid {
    position: fixed; top: 0; left: 0; width: 200vw; height: 200vh;
    background-image: 
        linear-gradient(rgba(47, 129, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 129, 247, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); }
}

.vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 50%, #000 150%);
    z-index: -1; pointer-events: none;
}

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 100; pointer-events: none; opacity: 0.6;
}

.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

header { text-align: center; margin-bottom: 50px; margin-top: 20px; }
.home-link { text-decoration: none; }

.subtitle { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; margin-top: 10px; }
.separator { color: var(--accent); margin: 0 10px; }

.main-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.glitch {
    font-family: var(--font-display);
    font-size: 3.5rem; color: white;
    position: relative; letter-spacing: 5px;
    text-shadow: 2px 2px var(--accent);
}

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

.glitch::before {
    left: 2px; text-shadow: -1px 0 var(--danger);
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px; text-shadow: -1px 0 var(--accent);
    clip-path: inset(0 0 0 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 10% 0); }
    40% { clip-path: inset(80% 0 5% 0); }
    60% { clip-path: inset(10% 0 80% 0); }
    80% { clip-path: inset(50% 0 20% 0); }
    100% { clip-path: inset(70% 0 10% 0); }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px; border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

.card-header {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--accent);
    margin-bottom: 25px; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
}
.header-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.input-group { margin-bottom: 20px; }
label {
    display: block; font-size: 0.7rem; color: var(--text-muted);
    margin-bottom: 8px; font-weight: bold; letter-spacing: 0.5px;
}

input[type="text"], input[type="password"], input[type="number"], textarea {
    width: 100%; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    color: white; padding: 12px 15px;
    font-family: var(--font-main); font-size: 0.9rem;
    outline: none; transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    border-left-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(47, 129, 247, 0.05);
}

::placeholder { color: #444; }

.row { display: flex; gap: 15px; }
.field { flex: 1; }

.password-wrapper { position: relative; }
.icon-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    transition: 0.2s;
}
.icon-btn:hover { color: var(--accent); }

.file-upload-wrapper { position: relative; overflow: hidden; }
.custom-file-input {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
}
.file-dummy {
    background: rgba(47, 129, 247, 0.1); border: 1px dashed var(--border);
    padding: 12px; text-align: center; color: var(--accent);
    font-size: 0.85rem; border-radius: 4px; transition: 0.3s;
}
.custom-file-input:hover + .file-dummy {
    border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

.spam-box {
    background: rgba(218, 54, 51, 0.05); border: 1px solid rgba(218, 54, 51, 0.2);
    padding: 15px; border-radius: 4px; margin-bottom: 20px;
}

.checkbox-container {
    display: flex; align-items: center; cursor: pointer;
    font-size: 0.8rem; color: var(--danger); font-weight: bold;
    user-select: none;
}
.checkbox-container input { display: none; }
.checkmark {
    height: 16px; width: 16px; background-color: transparent;
    border: 1px solid var(--danger); margin-right: 10px;
    position: relative; display: inline-block;
}
.checkbox-container input:checked ~ .checkmark { background-color: var(--danger); box-shadow: 0 0 10px var(--danger-glow); }
.hidden-options { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(218, 54, 51, 0.2); }

button { font-family: var(--font-display); text-transform: uppercase; }

.primary-btn, .danger-btn {
    width: 100%; padding: 16px; font-size: 1rem; font-weight: bold;
    border: none; cursor: pointer; position: relative; overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s; letter-spacing: 2px;
}

.primary-btn {
    background: var(--accent); color: #000;
}
.primary-btn:hover {
    background: white; box-shadow: 0 0 20px var(--accent);
}

.danger-btn { background: var(--danger); color: white; }
.danger-btn:hover { background: #ff5555; box-shadow: 0 0 20px var(--danger); }

.console-wrapper { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.console-header {
    background: #161b22; color: var(--text-muted); padding: 5px 10px;
    font-size: 0.7rem; border-bottom: 1px solid var(--border);
}
.status-console {
    background: #0d1117; padding: 15px; height: 150px; overflow-y: auto;
    font-family: var(--font-main); font-size: 0.8rem; line-height: 1.6;
}
.log-entry { margin-bottom: 4px; border-left: 2px solid transparent; padding-left: 5px; }
.log-entry.success { border-left-color: var(--success); color: #7ee787; }
.log-entry.error { border-left-color: var(--danger); color: #ff7b72; }
.log-entry.system { color: var(--text-muted); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.hidden { display: none !important; }

@media (max-width: 850px) {
    .main-layout { grid-template-columns: 1fr; }
    .glitch { font-size: 2rem; }
    .background-grid { animation: none; }
}

.telegram-mockup {
    background: #0e1621; 
    border-radius: 6px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 20px;
    border: 1px solid #17212b;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.tg-msg {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.tg-bubble {
    background: #2b5278;
    color: #fff;
    padding: 6px 10px 6px 10px;
    border-radius: 6px 12px 12px 6px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tg-name {
    color: #64b5ef;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    cursor: pointer;
}

.tg-text {
    font-size: 1rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.tg-meta {
    float: right;
    margin-left: 10px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6d8ca6;
    font-size: 0.7rem;
    user-select: none;
}

.tg-file {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
}

.tg-file-icon {
    width: 40px;
    height: 40px;
    background: #2481cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.tg-file-info {
    display: flex;
    flex-direction: column;
}

.tg-filename {
    font-weight: 500;
    font-size: 0.9rem;
}

.tg-filesize {
    font-size: 0.75rem;
    color: #aebcd0;
    margin-top: 2px;
}