:root {
    --bg-dark: #0a0e17;
    --panel-bg: rgba(16, 22, 35, 0.9);
    --accent-it: #00d2ff;
    --accent-car: #ff3c00;
    --text-main: #e0e6ed;
    --text-muted: #8899a6;
    --shadow-it: 0 0 20px rgba(0, 210, 255, 0.3);
    --shadow-car: 0 0 20px rgba(255, 60, 0, 0.3);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    background-image: 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMwMGQyZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTQwIDQwaDQwdjQwSDQwVjQweiIvPjwvZz48L2c+PC9zdmc+'),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZjNjMDAiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTQwIDQwaDQwdjQwSDQwVjQweiIvPjwvZz48L2c+PC9zdmc+');
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    background-size: 50% auto, 50% auto;
}

/* Красивый скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 210, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-it), var(--accent-car));
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e5ff, #ff5500);
}

::-webkit-scrollbar-corner {
    background: var(--bg-dark);
}

/* Стили для Twemoji эмодзи */
img.emoji {
    display: inline-block;
    height: 1.2em;
    width: 1.2em;
    margin: 0 .1em;
    vertical-align: -0.2em;
    /* Твой классный неоновый эффект */
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
    
    /* Дополнительные настройки для стабильности */
    border: none !important;
    outline: none !important;
    user-select: none;         /* Нельзя выделить как текст */
    -webkit-user-drag: none;   /* Нельзя "схватить" и перетащить картинку */
    cursor: inherit;           /* Наследует курсор от текста (I-beam) или ссылки (pointer) */
}

/* Если смайл внутри ссылки, он не должен подчеркиваться */
.external-link img.emoji {
    text-decoration: none !important;
}

body::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-it), var(--accent-car));
    z-index: -1;
    opacity: 0.5;
}

.main-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* --- БЛОК ОБО МНЕ --- */
.about-block {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 4px solid var(--accent-it);
	overflow: hidden;
}

.about-block h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-it), var(--accent-car));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.about-text-content {
    flex: 1;
    text-align: left;
}

.about-text-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: var(--text-main);
}

.about-text-content p span {
    color: var(--accent-it);
    font-weight: bold;
    display: inline-block;
    min-width: 150px;
}

.about-text-content a {
    color: var(--accent-it);
    text-decoration: none;
    transition: var(--transition);
}

.about-text-content a:hover {
    color: #FF3C00;
}

.about-text-content a:visited {
    color: var(--accent-it);
}

.about-text-content a:visited:hover {
    color: #FF3C00;
}

.about-photo-wrapper {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
    border-top-color: var(--accent-it);
    border-bottom-color: var(--accent-car);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.about-photo-wrapper:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-it);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ПЛАТЕЖНЫЙ БЛОК --- */
.payment-block {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 4px solid var(--accent-it);
    border-right: 4px solid var(--accent-car);
}

.payment-block h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-it), var(--accent-car));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.payment-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    padding: 15px;
    color: var(--text-main);
    font-family: inherit;
    border-radius: 10px;
    transition: var(--transition);
}

.payment-input:focus {
    outline: none;
    border-color: var(--accent-it);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.payment-btn {
    background: linear-gradient(135deg, var(--accent-it) 0%, var(--accent-car) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    margin: 10px auto 0;
    width: fit-content;
    display: block;
}

.payment-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.4);
}

.payment-form p {
    font-family: sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 10px;
}

/* --- СООБЩЕНИЯ --- */
.messages-block {
    background: var(--panel-bg);
    border: 2px solid #222;
    border-radius: 20px;
    padding: 25px;
    text-align: left;
}

.messages-block h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-it);
    text-transform: uppercase;
    font-size: 1.1rem;
}

.messages-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Сообщение */
.message-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 15px 35px 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-car);
    overflow: hidden;
}

/* Дата в углу */
.msg-date-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
    border-top-left-radius: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Сумма в углу */
.msg-amount-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #9ca3af;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border-top-right-radius: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Обо мне в углу*/
.msg-ugl {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* Авторские права в углу social-bar */
.copyright-link {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
    font-family: monospace !important;
    color: #9ca3af !important;
    background: rgba(255, 255, 255, 0.05);
    border-top-left-radius: 8px; 
    border-bottom-right-radius: 12px; 
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-bottom: none;
    text-decoration: none !important;
    z-index: 10;
}

.copyright-link:hover {
    transform: none !important;
}

@keyframes textGlow {
    0% {
        color: var(--accent-it);
    }
    50% {
        color: var(--accent-car);
    }
    100% {
        color: var(--accent-it);
    }
}

.msg-ugl:hover {
    color: rgb(156, 163, 175) !important;
    text-decoration: none;
    animation-play-state: paused;
}

/* Основной контейнер сообщения */
.msg-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 15px 15px 5px;
}

/* Левая колонка - аватар */
.msg-avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* Правая колонка - текстовый блок */
.msg-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Верхняя строка - заголовок */
.msg-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-it);
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Нижний блок - описание */
.msg-description {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.message-item .external-link {
    color: var(--neon-primary, #00d4ff);
    text-decoration: underline;
    word-break: break-all;
}

.msg-name:hover {
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-1px);
}

.message-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
    color: var(--accent-it);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 210, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
}

.message-name:hover {
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-1px);
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.msg-text { 
    margin-top: 0; 
    margin-left: 0;
    color: #ccc; 
    font-size: 1rem;
    line-height: 1.6;
}

.msg-text {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    margin-top: 8px;
    border-radius: 8px;
}

/* Ширина message-item на всю ширину контейнера */
.message-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Стили для ответов на сообщения */
.message-reply {
/* Твой градиент */
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    /* Акцентная линия слева */
    border-left: 3px solid var(--accent-it);
    /* Скругляем все углы для мягкости, кроме левого верхнего (опционально) */
    border-radius: 8px;
    padding: 12px 15px;
    /* Отступ: 15px от сообщения, 65px слева (чтобы быть под текстом, а не под авой) */
    margin: 25px 0 5px 65px;
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Декоративная линия-связка (опционально) */
.message-reply::before {
    content: '└';
    position: absolute;
    left: -25px;
    top: 0;
    color: var(--accent-it);
    font-size: 1.5rem;
    opacity: 0.5;
}

.reply-label {
    font-size: 0.7rem;
    color: var(--accent-it);
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reply-label i {
    font-size: 0.7rem;
}

/* Текст самого ответа */
.reply-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
}

/* Адаптив под мобилки */
@media (max-width: 500px) {
    .message-reply {
        margin-left: 20px; /* На маленьких экранах прижимаем левее */
        padding: 10px;
    }
}

/* --- ЗАГОЛОВОК --- */
.header-main { text-align: center; margin: 20px 0; }
.header-main h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -2px; line-height: 0.9; }
.header-main h1 span.it { color: var(--accent-it); text-shadow: var(--shadow-it); }
.header-main h1 span.car { color: var(--accent-car); text-shadow: var(--shadow-car); }

/* --- СЕТКА ССЫЛОК --- */
.links-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.cell { 
    background: var(--panel-bg); 
    border-radius: 20px; 
    padding: 40px 30px; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: var(--transition); 
    border: 2px solid #222; 
    position: relative; 
    overflow: hidden; 
}

.cell:hover { transform: translateY(-10px); border-color: #444; }
.cell-it:hover { box-shadow: var(--shadow-it); border-color: var(--accent-it); }
.cell-car:hover { box-shadow: var(--shadow-car); border-color: var(--accent-car); }

.cell i { font-size: 4rem; margin-bottom: 20px; transition: var(--transition); }
.cell-it i { color: var(--accent-it); text-shadow: var(--shadow-it); }
.cell-car i { color: var(--accent-car); text-shadow: var(--shadow-car); }

.cell h2 { font-size: 1.8rem; margin-bottom: 15px; text-transform: uppercase; font-weight: 900; }
.cell p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* --- КАРТА --- */
.map-block { background: var(--panel-bg); border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 2px solid #222; }
.map-header { padding: 15px; text-align: center; font-weight: 700; font-size: 1.2rem; border-bottom: 1px solid #333; color: var(--text-main); }
.map-container { position: relative; overflow: hidden; border-radius: 15px; margin-top: 15px; border: 2px solid #333; background: #000; }
.map-container iframe { filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(90%); transition: var(--transition); }
.map-container:hover iframe { filter: invert(90%) hue-rotate(180deg) brightness(100%) contrast(100%); }

/* --- СОЦСЕТИ --- */
.social-bar { background: #000; padding: 50px; border-radius: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; border: 2px solid #222; }
.social-bar a { color: var(--text-muted); font-size: 3rem; transition: var(--transition); }
.social-bar a:hover { color: white; transform: scale(1.2); }
.social-bar a.it:hover { color: var(--accent-it); text-shadow: var(--shadow-it); }
.social-bar a.car:hover { color: var(--accent-car); text-shadow: var(--shadow-car); }
.social-bar a.m:hover { color: #ff6b35; text-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }

footer { text-align: center; padding: 30px; color: #444; font-size: 1rem; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 850px) { 
    .links-grid { grid-template-columns: 1fr; } 
    .header-main h1 { font-size: 2.5rem; } 
    body::after { display: none; } 
    
    .about-flex-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    .about-text-content p span { display: block; min-width: 0; }
    .about-photo-wrapper { flex: 0 0 120px; width: 120px; height: 120px; }
}